Searched refs:mSecurityController (Results 1 – 5 of 5) sorted by relevance
72 private SecurityController mSecurityController = mock(SecurityController.class); field in QSSecurityFooterTest77 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 …]
67 private SecurityControllerImpl mSecurityController; field in SecurityControllerTest101 mSecurityController = new SecurityControllerImpl(mContext, in setUp()107 mSecurityController.removeCallback(this); in tearDown()113 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()116 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()122 assertEquals("organization", mSecurityController.getDeviceOwnerOrganizationName()); in testGetDeviceOwnerOrganizationName()129 assertFalse(mSecurityController.hasCACertInCurrentUser()); in testWorkAccount()138 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()139 assertFalse(mSecurityController.hasCACertInWorkProfile()); in testWorkAccount()146 mSecurityController.new CACertLoader() in testWorkAccount()[all …]
60 private final SecurityController mSecurityController; field in QSSecurityFooter86 mSecurityController = Dependency.get(SecurityController.class); in QSSecurityFooter()98 mSecurityController.addCallback(mCallback); in setListening()101 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()
224 @Inject Lazy<SecurityController> mSecurityController; field in Dependency364 mProviders.put(SecurityController.class, mSecurityController::get); in start()