Searched refs:mSecurityController (Results 1 – 5 of 5) sorted by relevance
100 private SecurityController mSecurityController; field in QSSecurityFooterTest121 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 …]
79 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest110 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 …]
109 private final SecurityController mSecurityController; field in QSSecurityFooterUtils188 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 …]
63 private final SecurityController mSecurityController; field in StatusBarSignalPolicy97 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()
265 @Inject Lazy<SecurityController> mSecurityController; field in Dependency425 mProviders.put(SecurityController.class, mSecurityController::get); in start()