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.java92 private SecurityController mSecurityController; field in QSSecurityFooterTest
107 mActivityStarter, mSecurityController, looper); in setUp()
112 when(mSecurityController.getDeviceOwnerComponentOnAnyUser()) in setUp()
114 when(mSecurityController.getDeviceOwnerType(DEVICE_OWNER_COMPONENT)) in setUp()
120 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
121 when(mSecurityController.isProfileOwnerOfOrganizationOwnedDevice()).thenReturn(false); in testUnmanaged()
130 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
131 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedNoOwnerName()
144 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
145 when(mSecurityController.getDeviceOwnerOrganizationName()) in testManagedOwnerName()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java75 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest
104 mSecurityController = new SecurityControllerImpl( in setUp()
122 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
125 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
131 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()
138 assertEquals(mSecurityController.getDeviceOwnerComponentOnAnyUser(), in testGetDeviceOwnerComponentOnAnyUser()
146 assertEquals(mSecurityController.getDeviceOwnerType(DEVICE_OWNER_COMPONENT), in testGetDeviceOwnerType()
152 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()
161 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
162 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java78 private final SecurityController mSecurityController; field in QSSecurityFooter
104 mSecurityController = securityController; in QSSecurityFooter()
115 mSecurityController.addCallback(mCallback); in setListening()
118 mSecurityController.removeCallback(mCallback); in setListening()
172 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in handleRefreshState()
176 final boolean hasWorkProfile = mSecurityController.hasWorkProfile(); in handleRefreshState()
177 final boolean hasCACerts = mSecurityController.hasCACertInCurrentUser(); in handleRefreshState()
178 final boolean hasCACertsInWorkProfile = mSecurityController.hasCACertInWorkProfile(); in handleRefreshState()
179 final boolean isNetworkLoggingEnabled = mSecurityController.isNetworkLoggingEnabled(); in handleRefreshState()
180 final String vpnName = mSecurityController.getPrimaryVpnName(); in handleRefreshState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarSignalPolicy.java63 private final SecurityController mSecurityController; field in StatusBarSignalPolicy
101 mSecurityController = securityController; in StatusBarSignalPolicy()
118 mSecurityController.addCallback(this); in StatusBarSignalPolicy()
124 mSecurityController.removeCallback(this); in destroy()
128 boolean vpnVisible = mSecurityController.isVpnEnabled(); in updateVpn()
129 int vpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in updateVpn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java268 @Inject Lazy<SecurityController> mSecurityController; field in Dependency
434 mProviders.put(SecurityController.class, mSecurityController::get); in start()