Home
last modified time | relevance | path

Searched refs:mSecurityController (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java75 private SecurityController mSecurityController = mock(SecurityController.class); field in QSSecurityFooterTest
80 mDependency.injectTestDependency(SecurityController.class, mSecurityController); in setUp()
98 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
99 when(mSecurityController.isProfileOwnerOfOrganizationOwnedDevice()).thenReturn(false); in testUnmanaged()
108 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
109 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedNoOwnerName()
123 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
124 when(mSecurityController.getDeviceOwnerOrganizationName()) in testManagedOwnerName()
140 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()
141 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedDemoMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java70 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest
99 mSecurityController = new SecurityControllerImpl( in setUp()
117 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
120 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
126 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()
131 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()
140 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
141 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
149 assertTrue(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
154 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testCaCertLoader()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java61 private final SecurityController mSecurityController; field in QSSecurityFooter
86 mSecurityController = Dependency.get(SecurityController.class); in QSSecurityFooter()
97 mSecurityController.addCallback(mCallback); in setListening()
100 mSecurityController.removeCallback(mCallback); in setListening()
140 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in handleRefreshState()
144 final boolean hasWorkProfile = mSecurityController.hasWorkProfile(); in handleRefreshState()
145 final boolean hasCACerts = mSecurityController.hasCACertInCurrentUser(); in handleRefreshState()
146 final boolean hasCACertsInWorkProfile = mSecurityController.hasCACertInWorkProfile(); in handleRefreshState()
147 final boolean isNetworkLoggingEnabled = mSecurityController.isNetworkLoggingEnabled(); in handleRefreshState()
148 final String vpnName = mSecurityController.getPrimaryVpnName(); in handleRefreshState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarSignalPolicy.java52 private final SecurityController mSecurityController; field in StatusBarSignalPolicy
81 mSecurityController = Dependency.get(SecurityController.class); in StatusBarSignalPolicy()
85 mSecurityController.addCallback(this); in StatusBarSignalPolicy()
91 mSecurityController.removeCallback(this); in destroy()
95 boolean vpnVisible = mSecurityController.isVpnEnabled(); in updateVpn()
96 int vpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in updateVpn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java236 @Inject Lazy<SecurityController> mSecurityController; field in Dependency
388 mProviders.put(SecurityController.class, mSecurityController::get); in start()