Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/security/data/model/
DSecurityModel.kt29 val isDeviceManaged: Boolean, constant in com.android.systemui.security.data.model.SecurityModel
70 isDeviceManaged = securityController.isDeviceManaged, in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java206 final boolean isDeviceManaged = securityModel.isDeviceManaged(); in getButtonConfig()
226 boolean isVisible = (isDeviceManaged && !isDemoDevice) in getButtonConfig()
243 String text = getFooterText(isDeviceManaged, hasWorkProfile, in getButtonConfig()
267 protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile, in getFooterText() argument
276 if (isDeviceManaged || DEBUG_FORCE_VISIBLE) { in getFooterText()
486 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in createOrganizationDialogView()
504 CharSequence managementMessage = getManagementMessage(isDeviceManaged, in createOrganizationDialogView()
517 CharSequence caCertsMessage = getCaCertsMessage(isDeviceManaged, hasCACerts, in createOrganizationDialogView()
536 CharSequence networkLoggingMessage = getNetworkLoggingMessage(isDeviceManaged, in createOrganizationDialogView()
555 CharSequence vpnMessage = getVpnMessage(isDeviceManaged, hasWorkProfile, vpnName, in createOrganizationDialogView()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java159 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
166 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
178 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
192 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedFinancedDeviceWithOwnerName()
211 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()
255 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingEnabled_deviceOwner()
299 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedCACertsInstalled()
310 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOneVpnEnabled()
334 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedTwoVpnsEnabled()
357 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingAndVpnEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DFakeSecurityController.kt46 override fun isDeviceManaged(): Boolean = fakeState.isDeviceManaged in isDeviceManaged() method in com.android.systemui.statusbar.policy.FakeSecurityController
101 var isDeviceManaged: Boolean = false, variable in com.android.systemui.statusbar.policy.FakeSecurityController.FakeState
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java132 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in testIsDeviceManaged()
133 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
135 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in testIsDeviceManaged()
136 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityController.java28 boolean isDeviceManaged(); in isDeviceManaged() method
DSecurityControllerImpl.java193 public boolean isDeviceManaged() { in isDeviceManaged() method in SecurityControllerImpl
194 return mDevicePolicyManager.isDeviceManaged(); in isDeviceManaged()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeSecurityController.java32 public boolean isDeviceManaged() { in isDeviceManaged() method in FakeSecurityController
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerFactory.java92 return dpm.isDeviceManaged() && dpm.getDeviceOwnerType( in isFinancedDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java200 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_unmanaged()
214 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_noOrganizationName()
243 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_withOrganizationName()
269 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_updateOnTheFly()
273 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_updateOnTheFly()
281 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_updateOnTheFly()
289 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_updateOnTheFly()
301 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_financedDeviceWithOrganizationName()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerInternal.java214 public abstract boolean isDeviceManaged(); in isDeviceManaged() method in UserManagerInternal
DUserManagerService.java7484 public boolean isDeviceManaged() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractor.kt344 !devicePolicyManager.isDeviceManaged in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java551 isFinanced = mDevicePolicyManager.isDeviceManaged() in getDisclosureText()
798 return mDevicePolicyManager.isDeviceManaged() in isOrganizationOwnedDevice()
804 if (mDevicePolicyManager.isDeviceManaged()) { in getOrganizationOwnedDeviceOrganizationName()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractorTest.kt379 whenever(devicePolicyManager.isDeviceManaged).thenReturn(!isAllowed) in setAllowedToAdd()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java231 when(mUserManagerInternal.isDeviceManaged()).thenReturn(true); in setUp_baseServices()
DSyntheticPasswordTests.java439 when(mUserManagerInternal.isDeviceManaged()).thenReturn(false); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1512 assertThat(dpm.isDeviceManaged()).isTrue(); in testClearDeviceOwner_fromDifferentUser()
4950 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4953 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4956 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4964 assertThat(dpm.isDeviceManaged()).isFalse(); in testIsDeviceManaged()
4967 assertThat(dpm.isDeviceManaged()).isFalse(); in testIsDeviceManaged()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java9629 public boolean isDeviceManaged() { in isDeviceManaged() method in DevicePolicyManager
17083 return isDeviceManaged() in isFinancedDevice()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java3552 if (userManagerInternal.isDeviceManaged()) {
/frameworks/base/core/api/
Dsystem-current.txt1328 method public boolean isDeviceManaged();
/frameworks/base/boot/
Dboot-image-profile.txt2919 HSPLandroid/app/admin/DevicePolicyManager;->isDeviceManaged()Z
/frameworks/base/config/
Dboot-image-profile.txt2919 HSPLandroid/app/admin/DevicePolicyManager;->isDeviceManaged()Z