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.java73 private SecurityController mSecurityController = mock(SecurityController.class); field in QSSecurityFooterTest
78 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.java69 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest
101 mSecurityController = new SecurityControllerImpl(mContext, this); in setUp()
106 mSecurityController.removeCallback(this); in tearDown()
112 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
115 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
121 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()
128 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()
137 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
138 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
145 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()
100 mSecurityController.removeCallback(mCallback); in setListening()
136 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in handleRefreshState()
140 final boolean hasWorkProfile = mSecurityController.hasWorkProfile(); in handleRefreshState()
141 final boolean hasCACerts = mSecurityController.hasCACertInCurrentUser(); in handleRefreshState()
142 final boolean hasCACertsInWorkProfile = mSecurityController.hasCACertInWorkProfile(); in handleRefreshState()
143 final boolean isNetworkLoggingEnabled = mSecurityController.isNetworkLoggingEnabled(); in handleRefreshState()
144 final String vpnName = mSecurityController.getPrimaryVpnName(); in handleRefreshState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarSignalPolicy.java60 private final SecurityController mSecurityController; field in StatusBarSignalPolicy
89 mSecurityController = Dependency.get(SecurityController.class); in StatusBarSignalPolicy()
92 mSecurityController.addCallback(this); in StatusBarSignalPolicy()
97 mSecurityController.removeCallback(this); in destroy()
101 boolean vpnVisible = mSecurityController.isVpnEnabled(); in updateVpn()
102 int vpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in updateVpn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DSignalClusterView.java73 private final SecurityController mSecurityController; field in SignalClusterView
146 mSecurityController = Dependency.get(SecurityController.class); in SignalClusterView()
222 mVpnVisible = mSecurityController.isVpnEnabled(); in onAttachedToWindow()
223 mVpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in onAttachedToWindow()
239 mSecurityController.addCallback(this); in onAttachedToWindow()
246 mSecurityController.removeCallback(this); in onDetachedFromWindow()
266 mVpnVisible = mSecurityController.isVpnEnabled(); in onStateChanged()
267 mVpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in onStateChanged()