/frameworks/base/core/java/android/content/pm/ |
D | CrossProfileApps.java | 349 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/ |
D | CrossProfileAppsTest.java | 121 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()
|
D | UserInfoTest.java | 40 assertThat(ui.isManagedProfile()).isEqualTo(false); in testSimple()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppRepositoryTest.kt | 53 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/ |
D | WorkTileAutoAddable.kt | 56 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/ |
D | TvUserManager.java | 121 public boolean isManagedProfile() { in isManagedProfile() method in TvUserManager 122 return mUserManager.isManagedProfile(mUserId); in isManagedProfile()
|
D | ITvUserManager.java | 54 boolean isManagedProfile(); in isManagedProfile() method
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotPolicy.kt | 31 suspend fun isManagedProfile(@UserIdInt userId: Int): Boolean method
|
D | RequestProcessor.kt | 46 if (policy.isManagedProfile(info.user.identifier)) { in process()
|
D | ScreenshotPolicyImpl.kt | 71 override suspend fun isManagedProfile(@UserIdInt userId: Int): Boolean { in <lambda>() method 72 val managed = withContext(bgDispatcher) { userMgr.isManagedProfile(userId) } in <lambda>()
|
D | HeadlessScreenshotHandler.kt | 101 if (userManager.isManagedProfile(screenshot.getUserOrDefault().identifier)) { in logScreenshotResultStatus()
|
D | WorkProfileMessageController.kt | 53 if (userManager.isManagedProfile(userHandle.identifier) && !messageAlreadyDismissed()) { in onScreenshotTaken()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | FakeScreenshotPolicy.kt | 29 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/ |
D | MediaProjectionDevicePolicyModule.kt | 42 userTracker.userProfiles.find { it.isManagedProfile }?.userHandle in workProfileUserHandle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 231 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/ |
D | current.txt | 52 method public boolean isManagedProfile(); 63 method public boolean isManagedProfile();
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 105 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/ |
D | UserNeedsBadgingCache.java | 65 b = userInfo != null && userInfo.isManagedProfile(); in get()
|
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/ |
D | AppUtils.java | 62 return context.getSystemService(UserManager.class).isManagedProfile(userId) in getAppContentDescription()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/ |
D | EnterpriseRepository.kt | 37 fun getProfileTitle(userInfo: UserInfo): String = if (userInfo.isManagedProfile) { in getEnterpriseString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | SmsStats.java | 242 proto.isManagedProfile = mPhone.isManagedProfile(); in getIncomingDefaultProto() 270 proto.isManagedProfile = mPhone.isManagedProfile(); in getOutgoingDefaultProto()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatteryUtils.java | 83 return userManager.isManagedProfile() && !userManager.isSystemUser(); in isWorkProfile()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceControllerTest.kt | 205 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/ |
D | AppRepository.kt | 86 context.userManager.isManagedProfile(app.userId) -> { in produceIconContentDescription()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/ |
D | RecentTaskListProvider.kt | 104 } else if (isManagedProfile) { in UserInfo()
|