Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSSecurityFooterUtils.java206 final boolean isDeviceManaged = securityModel.isDeviceManaged(); in getButtonConfig()
226 boolean isVisible = (isDeviceManaged && !isDemoDevice) in getButtonConfig()
243 String text = getFooterText(isDeviceManaged, hasWorkProfile, in getButtonConfig()
276 if (isDeviceManaged || DEBUG_FORCE_VISIBLE) { in getFooterText()
486 final boolean isDeviceManaged = mSecurityController.isDeviceManaged(); in createOrganizationDialogView()
655 protected CharSequence getManagementMessage(boolean isDeviceManaged, in getManagementMessage() argument
657 if (!isDeviceManaged) { in getManagementMessage()
680 if (isDeviceManaged) { in getCaCertsMessage()
695 if (isDeviceManaged) { in getNetworkLoggingMessage()
709 if (isDeviceManaged) { in getVpnMessage()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSSecurityFooterTest.java158 when(mSecurityController.isDeviceManaged()).thenReturn(false); in testUnmanaged()
165 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedNoOwnerName()
177 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOwnerName()
191 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedFinancedDeviceWithOwnerName()
210 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedDemoMode()
254 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingEnabled_deviceOwner()
298 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedCACertsInstalled()
309 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedOneVpnEnabled()
333 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testManagedTwoVpnsEnabled()
356 when(mSecurityController.isDeviceManaged()).thenReturn(true); in testNetworkLoggingAndVpnEnabled()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/security/data/model/
H A DSecurityModel.kt29 val isDeviceManaged: Boolean,
70 isDeviceManaged = securityController.isDeviceManaged,
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
H A DFakeSecurityController.kt46 override fun isDeviceManaged(): Boolean = fakeState.isDeviceManaged
99 var isDeviceManaged: Boolean = false,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerTest.java130 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in testIsDeviceManaged()
131 assertTrue(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
133 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in testIsDeviceManaged()
134 assertFalse(mSecurityController.isDeviceManaged()); in testIsDeviceManaged()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSecurityController.java28 boolean isDeviceManaged(); in isDeviceManaged() method
H A DSecurityControllerImpl.java168 public boolean isDeviceManaged() { in isDeviceManaged() method in SecurityControllerImpl
169 return mDevicePolicyManager.isDeviceManaged(); in isDeviceManaged()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
H A DFakeSecurityController.java32 public boolean isDeviceManaged() { in isDeviceManaged() method in FakeSecurityController
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DKeyguardIndicationControllerTest.java195 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_unmanaged()
209 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_noOrganizationName()
238 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_withOrganizationName()
264 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_updateOnTheFly()
268 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_updateOnTheFly()
276 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_updateOnTheFly()
284 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in disclosure_updateOnTheFly()
296 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in disclosure_deviceOwner_financedDeviceWithOrganizationName()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
H A DActionDisabledByAdminControllerFactory.java92 return dpm.isDeviceManaged() && dpm.getDeviceOwnerType( in isFinancedDevice()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerInternal.java213 public abstract boolean isDeviceManaged(); in isDeviceManaged() method in UserManagerInternal
H A DUserManagerService.java6863 public boolean isDeviceManaged() {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
H A DGuestUserInteractor.kt342 !devicePolicyManager.isDeviceManaged
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java494 isFinanced = mDevicePolicyManager.isDeviceManaged() in getDisclosureText()
722 return mDevicePolicyManager.isDeviceManaged() in isOrganizationOwnedDevice()
728 if (mDevicePolicyManager.isDeviceManaged()) { in getOrganizationOwnedDeviceOrganizationName()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
H A DGuestUserInteractorTest.kt365 whenever(devicePolicyManager.isDeviceManaged).thenReturn(!isAllowed)
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DBaseLockSettingsServiceTests.java234 when(mUserManagerInternal.isDeviceManaged()).thenReturn(true); in setUp_baseServices()
H A DSyntheticPasswordTests.java439 when(mUserManagerInternal.isDeviceManaged()).thenReturn(false); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java1506 assertThat(dpm.isDeviceManaged()).isTrue(); in testClearDeviceOwner_fromDifferentUser()
4944 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4947 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4950 assertThat(dpm.isDeviceManaged()).isTrue(); in testIsDeviceManaged()
4958 assertThat(dpm.isDeviceManaged()).isFalse(); in testIsDeviceManaged()
4961 assertThat(dpm.isDeviceManaged()).isFalse(); in testIsDeviceManaged()
/aosp14/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManager.java9301 public boolean isDeviceManaged() { in isDeviceManaged() method in DevicePolicyManager
16605 return isDeviceManaged() in isFinancedDevice()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsService.java3311 if (userManagerInternal.isDeviceManaged()) {
/aosp14/frameworks/base/core/api/
H A Dsystem-current.txt1267 method public boolean isDeviceManaged();
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt2978 HSPLandroid/app/admin/DevicePolicyManager;->isDeviceManaged()Z
/aosp14/frameworks/base/config/
H A Dboot-image-profile.txt2978 HSPLandroid/app/admin/DevicePolicyManager;->isDeviceManaged()Z