Searched refs:mSecurityController (Results 1 – 5 of 5) sorted by relevance
92 private SecurityController mSecurityController; field in QSSecurityFooterTest107 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 …]
75 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest104 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 …]
78 private final SecurityController mSecurityController; field in QSSecurityFooter104 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 …]
63 private final SecurityController mSecurityController; field in StatusBarSignalPolicy101 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()
268 @Inject Lazy<SecurityController> mSecurityController; field in Dependency434 mProviders.put(SecurityController.class, mSecurityController::get); in start()