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.java72 private SecurityController mSecurityController = mock(SecurityController.class); field in QSSecurityFooterTest
77 mDependency.injectTestDependency(SecurityController.class, mSecurityController); in setUp()
95 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
104 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
105 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedNoOwnerName()
119 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
120 when(mSecurityController.getDeviceOwnerOrganizationName()) in testManagedOwnerName()
136 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()
137 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedDemoMode()
151 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java67 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest
101 mSecurityController = new SecurityControllerImpl(mContext, in setUp()
107 mSecurityController.removeCallback(this); in tearDown()
113 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
116 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
122 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()
129 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()
138 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
139 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
146 mSecurityController.new CACertLoader() in testWorkAccount()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java60 private final SecurityController mSecurityController; field in QSSecurityFooter
86 mSecurityController = Dependency.get(SecurityController.class); in QSSecurityFooter()
98 mSecurityController.addCallback(mCallback); in setListening()
101 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.java218 @Inject Lazy<SecurityController> mSecurityController; field in Dependency
369 mProviders.put(SecurityController.class, mSecurityController::get); in start()