Home
last modified time | relevance | path

Searched refs:isManagedProfile (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/core/java/android/content/pm/
DCrossProfileApps.java349 public boolean isManagedProfile(@NonNull UserHandle userHandle) { in isManagedProfile() method in CrossProfileApps
354 return mUserManager.isManagedProfile(userHandle.getIdentifier()); in isManagedProfile()
373 final boolean isManagedProfile = mUserManager.isManagedProfile(userHandle.getIdentifier()); in getProfileSwitchingLabel()
377 getUpdatableProfileSwitchingLabelId(isManagedProfile), in getProfileSwitchingLabel()
378 () -> getDefaultProfileSwitchingLabel(isManagedProfile, callingAppLabel), in getProfileSwitchingLabel()
408 private String getUpdatableProfileSwitchingLabelId(boolean isManagedProfile) { in getUpdatableProfileSwitchingLabelId() argument
409 return isManagedProfile ? SWITCH_TO_WORK_LABEL : SWITCH_TO_PERSONAL_LABEL; in getUpdatableProfileSwitchingLabelId()
412 private String getDefaultProfileSwitchingLabel(boolean isManagedProfile, String label) { in getDefaultProfileSwitchingLabel() argument
413 final int stringRes = isManagedProfile in getDefaultProfileSwitchingLabel()
435 final boolean isManagedProfile = in getProfileSwitchingIconDrawable()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DCrossProfileAppsTest.java121 when(mUserManager.isManagedProfile(PERSONAL_PROFILE.getIdentifier())).thenReturn(false); in initUsers()
122 when(mUserManager.isManagedProfile(MANAGED_PROFILE.getIdentifier())).thenReturn(true); in initUsers()
152 boolean result = mCrossProfileApps.isManagedProfile(MANAGED_PROFILE); in isManagedProfile_managedProfile_returnsTrue()
161 boolean result = mCrossProfileApps.isManagedProfile(PERSONAL_PROFILE); in isManagedProfile_personalProfile_returnsFalse()
168 mCrossProfileApps.isManagedProfile(PERSONAL_PROFILE); in isManagedProfile_notValidTarget_throwsSecurityException()
DUserInfoTest.java40 assertThat(ui.isManagedProfile()).isEqualTo(false); in testSimple()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppRepositoryTest.kt53 whenever(userManager.isManagedProfile(APP.userId)).thenReturn(true) in produceIconContentDescription_workProfile()
63 whenever(userManager.isManagedProfile(APP.userId)).thenReturn(false) in produceIconContentDescription_personalProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DWorkTileAutoAddable.kt56 if (profiles.any { it.id == userId } && !profiles.any { it.isManagedProfile }) { in autoAddSignal()
68 if (profiles.any { it.isManagedProfile && it.isEnabled }) { in autoAddSignal()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java121 public boolean isManagedProfile() { in isManagedProfile() method in TvUserManager
122 return mUserManager.isManagedProfile(mUserId); in isManagedProfile()
DITvUserManager.java54 boolean isManagedProfile(); in isManagedProfile() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotPolicy.kt31 suspend fun isManagedProfile(@UserIdInt userId: Int): Boolean method
DRequestProcessor.kt46 if (policy.isManagedProfile(info.user.identifier)) { in process()
DScreenshotPolicyImpl.kt71 override suspend fun isManagedProfile(@UserIdInt userId: Int): Boolean { in <lambda>() method
72 val managed = withContext(bgDispatcher) { userMgr.isManagedProfile(userId) } in <lambda>()
DHeadlessScreenshotHandler.kt101 if (userManager.isManagedProfile(screenshot.getUserOrDefault().identifier)) { in logScreenshotResultStatus()
DWorkProfileMessageController.kt53 if (userManager.isManagedProfile(userHandle.identifier) && !messageAlreadyDismissed()) { in onScreenshotTaken()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DFakeScreenshotPolicy.kt29 override suspend fun isManagedProfile(userId: Int): Boolean { in isManagedProfile() method in com.android.systemui.screenshot.FakeScreenshotPolicy
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/
DMediaProjectionDevicePolicyModule.kt42 userTracker.userProfiles.find { it.isManagedProfile }?.userHandle in workProfileUserHandle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java231 boolean isManagedProfile = mUserManager.isManagedProfile(newUser);
232 if (!mDeviceProvisionedController.isCurrentUserSetup() && isManagedProfile) {
234 + "Deferring... Managed profile? " + isManagedProfile);
367 boolean isManagedProfile =
368 mUserManager.isManagedProfile(newUserHandle.getIdentifier());
370 && isManagedProfile) {
372 + " was received. Deferring... Managed profile? " + isManagedProfile);
/frameworks/opt/tv/tvsystem/api/
Dcurrent.txt52 method public boolean isManagedProfile();
63 method public boolean isManagedProfile();
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUtils.kt105 fun isManagedProfile(context: Context, userId: Int): Boolean = in isManagedProfile() method
106 context.getSystemService(UserManager::class.java)?.isManagedProfile(userId) ?: false in isManagedProfile()
/frameworks/base/services/core/java/com/android/server/pm/
DUserNeedsBadgingCache.java65 b = userInfo != null && userInfo.isManagedProfile(); in get()
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/
DAppUtils.java62 return context.getSystemService(UserManager.class).isManagedProfile(userId) in getAppContentDescription()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/
DEnterpriseRepository.kt37 fun getProfileTitle(userInfo: UserInfo): String = if (userInfo.isManagedProfile) { in getEnterpriseString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSmsStats.java242 proto.isManagedProfile = mPhone.isManagedProfile(); in getIncomingDefaultProto()
270 proto.isManagedProfile = mPhone.isManagedProfile(); in getOutgoingDefaultProto()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryUtils.java83 return userManager.isManagedProfile() && !userManager.isSystemUser(); in isWorkProfile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceControllerTest.kt205 mockUserInfo(userHandlePrimary, isManagedProfile = false), in <lambda>()
206 mockUserInfo(userHandleManaged, isManagedProfile = true), in <lambda>()
207 mockUserInfo(userHandleSecondary, isManagedProfile = false) in <lambda>()
909 private fun mockUserInfo(userHandle: UserHandle, isManagedProfile: Boolean): UserInfo { in <lambda>()
912 `when`(userInfo.isManagedProfile).thenReturn(isManagedProfile) in <lambda>()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppRepository.kt86 context.userManager.isManagedProfile(app.userId) -> { in produceIconContentDescription()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTaskListProvider.kt104 } else if (isManagedProfile) { in UserInfo()

12345