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.java100 private SecurityController mSecurityController; field in QSSecurityFooterTest
121 mainHandler, mActivityStarter, mSecurityController, looper, mDialogLaunchAnimator); in setUp()
123 when(mSecurityController.getDeviceOwnerComponentOnAnyUser()) in setUp()
125 when(mSecurityController.getDeviceOwnerType(DEVICE_OWNER_COMPONENT)) in setUp()
131 SecurityModel securityModel = SecurityModel.create(mSecurityController); in getButtonConfig()
151 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
152 when(mSecurityController.isProfileOwnerOfOrganizationOwnedDevice()).thenReturn(false); in testUnmanaged()
158 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
159 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedNoOwnerName()
170 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java79 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest
110 mSecurityController = new SecurityControllerImpl( in setUp()
131 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
134 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
140 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()
147 assertEquals(mSecurityController.getDeviceOwnerComponentOnAnyUser(), in testGetDeviceOwnerComponentOnAnyUser()
155 assertEquals(mSecurityController.getDeviceOwnerType(DEVICE_OWNER_COMPONENT), in testGetDeviceOwnerType()
161 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()
170 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
171 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java109 private final SecurityController mSecurityController; field in QSSecurityFooterUtils
188 mSecurityController = securityController; in QSSecurityFooterUtils()
478 if (mSecurityController.isParentalControlsEnabled()) { in createDialogView()
485 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in createOrganizationDialogView()
486 final boolean hasWorkProfile = mSecurityController.hasWorkProfile(); in createOrganizationDialogView()
488 mSecurityController.getDeviceOwnerOrganizationName(); in createOrganizationDialogView()
489 final boolean hasCACerts = mSecurityController.hasCACertInCurrentUser(); in createOrganizationDialogView()
490 final boolean hasCACertsInWorkProfile = mSecurityController.hasCACertInWorkProfile(); in createOrganizationDialogView()
491 final boolean isNetworkLoggingEnabled = mSecurityController.isNetworkLoggingEnabled(); in createOrganizationDialogView()
492 final String vpnName = mSecurityController.getPrimaryVpnName(); in createOrganizationDialogView()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarSignalPolicy.java63 private final SecurityController mSecurityController; field in StatusBarSignalPolicy
97 mSecurityController = securityController; in StatusBarSignalPolicy()
119 mSecurityController.addCallback(this); in init()
125 mSecurityController.removeCallback(this); in destroy()
129 boolean vpnVisible = mSecurityController.isVpnEnabled(); in updateVpn()
130 int vpnIconId = currentVpnIconId(mSecurityController.isVpnBranded()); in updateVpn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java265 @Inject Lazy<SecurityController> mSecurityController; field in Dependency
425 mProviders.put(SecurityController.class, mSecurityController::get); in start()