Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java129 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in handleRefreshState()
139 mIsVisible = isDeviceManaged || hasCACerts || hasCACertsInWorkProfile || in handleRefreshState()
142 mFooterTextContent = getFooterText(isDeviceManaged, hasWorkProfile, in handleRefreshState()
156 protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile, in getFooterText() argument
160 if (isDeviceManaged) { in getFooterText()
235 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in createDialog()
253 CharSequence managementMessage = getManagementMessage(isDeviceManaged, in createDialog()
266 CharSequence caCertsMessage = getCaCertsMessage(isDeviceManaged, hasCACerts, in createDialog()
290 CharSequence vpnMessage = getVpnMessage(isDeviceManaged, hasWorkProfile, vpnName, in createDialog()
315 protected CharSequence getManagementMessage(boolean isDeviceManaged, in getManagementMessage() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java90 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in unmanaged()
99 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedNoOwnerName()
110 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedOwnerName()
121 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in updateOnTheFly()
127 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in updateOnTheFly()
136 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in updateOnTheFly()
146 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in updateOnTheFly()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java86 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
95 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
110 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
127 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingEnabled()
152 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedCACertsInstalled()
163 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOneVpnEnabled()
189 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedTwoVpnsEnabled()
214 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingAndVpnEnabled()
229 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testWorkProfileCACertsInstalled()
254 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testCACertsInstalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java98 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in testIsDeviceManaged()
99 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
101 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in testIsDeviceManaged()
102 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityController.java24 boolean isDeviceManaged(); in isDeviceManaged() method
DSecurityControllerImpl.java131 public boolean isDeviceManaged() { in isDeviceManaged() method in SecurityControllerImpl
132 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.java167 if (!mDozing && mDevicePolicyManager.isDeviceManaged()) { in updateDisclosure()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1046 assertTrue(dpm.isDeviceManaged()); in testClearDeviceOwner_fromDifferentUser()
3542 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3545 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3548 assertTrue(dpm.isDeviceManaged()); in testIsDeviceManaged()
3556 assertFalse(dpm.isDeviceManaged()); in testIsDeviceManaged()
3559 assertFalse(dpm.isDeviceManaged()); in testIsDeviceManaged()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4626 public boolean isDeviceManaged() { in isDeviceManaged() method in DevicePolicyManager
/frameworks/base/api/
Dsystem-current.txt6553 method public boolean isDeviceManaged();