Searched refs:mSecurityController (Results 1 – 5 of 5) sorted by relevance
75 private SecurityController mSecurityController = mock(SecurityController.class); field in QSSecurityFooterTest80 mDependency.injectTestDependency(SecurityController.class, mSecurityController); in setUp()98 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()99 when(mSecurityController.isProfileOwnerOfOrganizationOwnedDevice()).thenReturn(false); in testUnmanaged()108 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()109 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedNoOwnerName()123 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()124 when(mSecurityController.getDeviceOwnerOrganizationName()) in testManagedOwnerName()140 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()141 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); in testManagedDemoMode()[all …]
70 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest99 mSecurityController = new SecurityControllerImpl( in setUp()117 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()120 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()126 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()131 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()140 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()141 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()149 assertTrue(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()154 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testCaCertLoader()[all …]
61 private final SecurityController mSecurityController; field in QSSecurityFooter86 mSecurityController = Dependency.get(SecurityController.class); in QSSecurityFooter()97 mSecurityController.addCallback(mCallback); in setListening()100 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 …]
52 private final SecurityController mSecurityController; field in StatusBarSignalPolicy81 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()
236 @Inject Lazy<SecurityController> mSecurityController; field in Dependency388 mProviders.put(SecurityController.class, mSecurityController::get); in start()