FakeSecurityController.java revision 340b0e5216b4fcc435e0459b1ca46155a572100d
19abca5e9f88c47579f8334c6c48741a259185b9bJason Monk/*
29abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Copyright (C) 2016 The Android Open Source Project
39abca5e9f88c47579f8334c6c48741a259185b9bJason Monk *
49abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
59abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * except in compliance with the License. You may obtain a copy of the License at
69abca5e9f88c47579f8334c6c48741a259185b9bJason Monk *
79abca5e9f88c47579f8334c6c48741a259185b9bJason Monk *      http://www.apache.org/licenses/LICENSE-2.0
89abca5e9f88c47579f8334c6c48741a259185b9bJason Monk *
99abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Unless required by applicable law or agreed to in writing, software distributed under the
109abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
119abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * KIND, either express or implied. See the License for the specific language governing
129abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * permissions and limitations under the License.
139abca5e9f88c47579f8334c6c48741a259185b9bJason Monk */
149abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
159abca5e9f88c47579f8334c6c48741a259185b9bJason Monkpackage com.android.systemui.utils.leaks;
169abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
17340b0e5216b4fcc435e0459b1ca46155a572100dJason Monkimport android.testing.LeakCheck;
18340b0e5216b4fcc435e0459b1ca46155a572100dJason Monk
199abca5e9f88c47579f8334c6c48741a259185b9bJason Monkimport com.android.systemui.statusbar.policy.SecurityController;
209abca5e9f88c47579f8334c6c48741a259185b9bJason Monkimport com.android.systemui.statusbar.policy.SecurityController.SecurityControllerCallback;
219abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
229abca5e9f88c47579f8334c6c48741a259185b9bJason Monkpublic class FakeSecurityController extends BaseLeakChecker<SecurityControllerCallback>
239abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        implements SecurityController {
24340b0e5216b4fcc435e0459b1ca46155a572100dJason Monk    public FakeSecurityController(LeakCheck test) {
259abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        super(test, "security");
269abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
279abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
289abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
299abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public boolean isDeviceManaged() {
309abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return false;
319abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
329abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
339abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
349abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public boolean hasProfileOwner() {
359abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return false;
369abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
379abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
389abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
399abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public String getDeviceOwnerName() {
409abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return null;
419abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
429abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
439abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
449abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public String getProfileOwnerName() {
459abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return null;
469abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
479abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
489abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
499abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public CharSequence getDeviceOwnerOrganizationName() {
509abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return null;
519abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
529abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
539abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
549d945d90a4e97df7167d6508044cb7e099ddec9cphweiss    public boolean isNetworkLoggingEnabled() {
559d945d90a4e97df7167d6508044cb7e099ddec9cphweiss        return false;
569d945d90a4e97df7167d6508044cb7e099ddec9cphweiss    }
579d945d90a4e97df7167d6508044cb7e099ddec9cphweiss
589d945d90a4e97df7167d6508044cb7e099ddec9cphweiss    @Override
599abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public boolean isVpnEnabled() {
609abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return false;
619abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
629abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
639abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
649abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public boolean isVpnRestricted() {
659abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return false;
669abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
679abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
689abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
699abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public boolean isVpnBranded() {
709abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return false;
719abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
729abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
739abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
749abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public String getPrimaryVpnName() {
759abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return null;
769abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
779abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
789abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
799abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public String getProfileVpnName() {
809abca5e9f88c47579f8334c6c48741a259185b9bJason Monk        return null;
819abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
829abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
839abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    @Override
849abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    public void onUserSwitched(int newUserId) {
859abca5e9f88c47579f8334c6c48741a259185b9bJason Monk
869abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    }
879abca5e9f88c47579f8334c6c48741a259185b9bJason Monk}
88