Home
last modified time | relevance | path

Searched refs:isDeviceManaged (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java140 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in handleRefreshState()
153 mIsVisible = (isDeviceManaged && !isDemoDevice) || hasCACerts || hasCACertsInWorkProfile || in handleRefreshState()
156 mFooterTextContent = getFooterText(isDeviceManaged, hasWorkProfile, in handleRefreshState()
175 protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile, in getFooterText() argument
179 if (isDeviceManaged) { in getFooterText()
254 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in createDialog()
273 CharSequence managementMessage = getManagementMessage(isDeviceManaged, in createDialog()
286 CharSequence caCertsMessage = getCaCertsMessage(isDeviceManaged, hasCACerts, in createDialog()
310 CharSequence vpnMessage = getVpnMessage(isDeviceManaged, hasWorkProfile, vpnName, in createDialog()
371 protected CharSequence getManagementMessage(boolean isDeviceManaged, in getManagementMessage() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java95 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
104 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
119 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
136 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()
151 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingEnabled()
176 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedCACertsInstalled()
187 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOneVpnEnabled()
213 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedTwoVpnsEnabled()
238 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingAndVpnEnabled()
253 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testWorkProfileCACertsInstalled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java112 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in testIsDeviceManaged()
113 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
115 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in testIsDeviceManaged()
116 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java152 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in unmanaged()
161 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedNoOwnerName()
172 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedOwnerName()
183 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in updateOnTheFly()
189 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in updateOnTheFly()
198 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in updateOnTheFly()
208 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in updateOnTheFly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityController.java24 boolean isDeviceManaged(); in isDeviceManaged() method
DSecurityControllerImpl.java152 public boolean isDeviceManaged() { in isDeviceManaged() method in SecurityControllerImpl
153 return mDevicePolicyManager.isDeviceManaged(); in isDeviceManaged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeSecurityController.java29 public boolean isDeviceManaged() { in isDeviceManaged() method in FakeSecurityController
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java261 if (!mDozing && mDevicePolicyManager.isDeviceManaged()) { in updateDisclosure()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1207 assertTrue(dpm.isDeviceManaged()); in testClearDeviceOwner_fromDifferentUser()
3908 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3911 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3914 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3922 assertFalse(dpm.isDeviceManaged()); in testIsDeviceManaged()
3925 assertFalse(dpm.isDeviceManaged()); in testIsDeviceManaged()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java6061 public boolean isDeviceManaged() { in isDeviceManaged() method in DevicePolicyManager
/frameworks/base/api/
Dtest-current.txt436 method public boolean isDeviceManaged();
Dsystem-current.txt702 method public boolean isDeviceManaged();
/frameworks/base/non-updatable-api/
Dsystem-current.txt702 method public boolean isDeviceManaged();
/frameworks/base/config/
Dboot-image-profile.txt2535 HSPLandroid/app/admin/DevicePolicyManager;->isDeviceManaged()Z