/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 36 import android.os.UserHandle; 73 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime() 81 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime() 86 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 91 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 96 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 97 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM); 101 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 103 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 105 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); [all …]
|
D | GlobalSortKeyComparatorTest.java | 23 import android.os.UserHandle; 53 new UserHandle(UserHandle.myUserId()), in testComparator() 60 new UserHandle(UserHandle.myUserId()), in testComparator() 67 new UserHandle(UserHandle.myUserId()), in testComparator() 92 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull() 98 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull() 122 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull() 129 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
|
D | GroupHelperTest.java | 29 import android.os.UserHandle; 65 UserHandle user, String groupKey) { in getSbn() 77 UserHandle user) { in getSbn() 85 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_postingUnderLimit() 89 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_postingUnderLimit() 100 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiPackage() 104 getSbn(pkg2, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM), false); in testNoGroup_multiPackage() 106 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_multiPackage() 116 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiUser() 120 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.ALL), false); in testNoGroup_multiUser() [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 29 import android.os.UserHandle; 107 final Pair<UserHandle, Account> actual = findSendToAccount(mTestContext, preferredDomain); in checkFindSendToAccount() 108 assertEquals(UserHandle.of(expectedUserId), actual.first); in checkFindSendToAccount() 115 list(UserHandle.of(UserHandle.USER_SYSTEM))); in findSendToAccount_noWorkProfile() 118 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 127 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 138 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 149 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 160 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 178 list(UserHandle.of(UserHandle.USER_SYSTEM), UserHandle.of(10))); in findSendToAccount_withWorkProfile_noAccounts() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 31 public final class UserHandle implements Parcelable { class 47 public static final @NonNull UserHandle ALL = new UserHandle(USER_ALL); 56 public static final @NonNull UserHandle CURRENT = new UserHandle(USER_CURRENT); 68 public static final @NonNull UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF); 90 public static final @NonNull UserHandle OWNER = new UserHandle(USER_OWNER); 103 public static final @NonNull UserHandle SYSTEM = new UserHandle(USER_SYSTEM); 203 public static UserHandle getUserHandleForUid(int uid) { in getUserHandleForUid() 216 return UserHandle.USER_SYSTEM; in getUserId() 233 public static UserHandle of(@UserIdInt int userId) { in of() 234 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId); in of() [all …]
|
D | UserManager.java | 1308 boolean isSystemUserUnlocked = isUserUnlocked(UserHandle.SYSTEM); in canSwitchUsers() 1338 final boolean systemUserUnlocked = isUserUnlocked(UserHandle.SYSTEM); in getUserSwitchability() 1363 return UserHandle.myUserId(); in getUserHandle() 1419 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser() 1431 return UserHandle.myUserId() == UserHandle.USER_SYSTEM; in isSystemUser() 1445 return isUserAdmin(UserHandle.myUserId()); in isAdminUser() 1496 public boolean isRestrictedProfile(@NonNull UserHandle user) { in isRestrictedProfile() 1550 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser() 1563 return mService.isDemoUser(UserHandle.myUserId()); in isDemoUser() 1584 mIsManagedProfileCached = mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ILauncherApps.aidl | 34 import android.os.UserHandle; 46 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities() 48 String callingPackage, in ComponentName component, in UserHandle user); in resolveActivity() 51 in UserHandle user); in startSessionDetailsActivityAsUser() 54 in Bundle opts, in UserHandle user); in startActivityAsUser() 57 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() 58 boolean isPackageEnabled(String callingPackage, String packageName, in UserHandle user); in isPackageEnabled() 59 Bundle getSuspendedPackageLauncherExtras(String packageName, in UserHandle user); in getSuspendedPackageLauncherExtras() 61 String callingPackage, in ComponentName component, in UserHandle user); in isActivityEnabled() 63 String callingPackage, String packageName, int flags, in UserHandle user); in getApplicationInfo() [all …]
|
D | IOnAppsChangedListener.aidl | 21 import android.os.UserHandle; 27 void onPackageRemoved(in UserHandle user, String packageName); in onPackageRemoved() 28 void onPackageAdded(in UserHandle user, String packageName); in onPackageAdded() 29 void onPackageChanged(in UserHandle user, String packageName); in onPackageChanged() 30 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() 31 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() 32 void onPackagesSuspended(in UserHandle user, in String[] packageNames, in onPackagesSuspended() 34 void onPackagesUnsuspended(in UserHandle user, in String[] packageNames); in onPackagesUnsuspended() 35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged()
|
D | LauncherApps.java | 60 import android.os.UserHandle; 169 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() 180 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() 190 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() 203 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() 217 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() 233 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() 252 public void onPackagesSuspended(String[] packageNames, UserHandle user, in onPackagesSuspended() 266 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() 285 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() [all …]
|
D | CrossProfileApps.java | 26 import android.os.UserHandle; 65 @NonNull UserHandle targetUser) { in startMainActivity() 93 public void startActivity(@NonNull ComponentName component, @NonNull UserHandle targetUser) { in startActivity() 116 public @NonNull List<UserHandle> getTargetUserProfiles() { in getTargetUserProfiles() 137 public @NonNull CharSequence getProfileSwitchingLabel(@NonNull UserHandle userHandle) { in getProfileSwitchingLabel() 159 public @NonNull Drawable getProfileSwitchingIconDrawable(@NonNull UserHandle userHandle) { in getProfileSwitchingIconDrawable() 168 mResources, UserHandle.USER_SYSTEM, true /* light */); in getProfileSwitchingIconDrawable() 172 private void verifyCanAccessUser(UserHandle userHandle) { in verifyCanAccessUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 25 import android.os.UserHandle; 66 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 82 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles() 85 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles() 100 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 111 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 118 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 127 int nextBadge = mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM); in testProfileBadgeUnique() 170 if (!mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() 176 while (mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() [all …]
|
D | CrossProfileAppsServiceImplTest.java | 29 import android.os.UserHandle; 150 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_installed() 152 assertThat(targetProfiles).containsExactly(UserHandle.of(PROFILE_OF_PRIMARY_USER)); in getTargetUserProfiles_fromPrimaryUser_installed() 159 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_notInstalled() 168 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_userNotEnabled() 177 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromSecondaryUser() 186 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromProfile_installed() 188 assertThat(targetProfiles).containsExactly(UserHandle.of(PRIMARY_USER)); in getTargetUserProfiles_fromProfile_installed() 196 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromProfile_notInstalled() 215 UserHandle.of(PRIMARY_USER).getIdentifier(), in startActivityAsUser_currentUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayManagerTest.java | 40 import android.os.UserHandle; 80 private static final UserHandle TEST_USER = UserHandle.of(5); 81 private static final Set<UserHandle> TEST_USER_HANDLES = Sets.newHashSet(TEST_USER); 93 when(mOverlayManager.getOverlayInfosForTarget(ANDROID_PACKAGE, UserHandle.SYSTEM)) in setup() 111 when(mOverlayManager.getOverlayInfosForTarget(SYSUI_PACKAGE, UserHandle.SYSTEM)) in setup() 117 when(mOverlayManager.getOverlayInfosForTarget(SETTINGS_PACKAGE, UserHandle.SYSTEM)) in setup() 123 when(mOverlayManager.getOverlayInfosForTarget(LAUNCHER_PACKAGE, UserHandle.SYSTEM)) in setup() 129 when(mOverlayManager.getOverlayInfosForTarget(THEMEPICKER_PACKAGE, UserHandle.SYSTEM)) in setup() 153 entry.getValue(), UserHandle.SYSTEM); in allCategoriesSpecified_sysuiCategoriesAlsoAppliedToSysuiUser() 156 entry.getValue(), UserHandle.SYSTEM); in allCategoriesSpecified_sysuiCategoriesAlsoAppliedToSysuiUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 33 import android.os.UserHandle; 61 public static final int CALLER_UID = UserHandle.getUid(CALLER_USER_HANDLE, 20123); 66 public static final int CALLER_MANAGED_PROVISIONING_UID = UserHandle.getUid(CALLER_USER_HANDLE, 90 public static final int ANOTHER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM, 18434); 93 public static final int DELEGATE_CERT_INSTALLER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM, 138 public UserHandle getCallingUserHandle() { in getCallingUserHandle() 139 return new UserHandle(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle() 240 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission() 272 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() 319 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() [all …]
|
D | DevicePolicyManagerTest.java | 80 import android.os.UserHandle; 191 any(UserHandle.class)); in setUp() 242 final Map<Pair<String, UserHandle>, Bundle> appRestrictions = new HashMap<>(); in setUpUserManager() 248 UserHandle user = (UserHandle) invocation.getArguments()[2]; in setUpUserManager() 254 anyString(), nullable(Bundle.class), any(UserHandle.class)); in setUpUserManager() 259 UserHandle user = (UserHandle) invocation.getArguments()[1]; in setUpUserManager() 263 anyString(), any(UserHandle.class)); in setUpUserManager() 273 UserHandle.getUid(DpmMockContext.CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in setAsProfileOwner() 304 final int ANOTHER_UID = UserHandle.getUid(DpmMockContext.CALLER_USER_HANDLE, 1306); in testLoadAdminData() 316 eq(UserHandle.USER_SYSTEM)); in testLoadAdminData() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppsQueryHelperTests.java | 21 import android.os.UserHandle; 40 List<String> apps = mAppsQueryHelper.queryApps(0, true, UserHandle.SYSTEM); in testQueryAppsSystemAppsOnly() 43 apps = mAppsQueryHelper.queryApps(0, false, UserHandle.SYSTEM); in testQueryAppsSystemAppsOnly() 49 true, UserHandle.SYSTEM); in testQueryAppsNonLaunchable() 53 false, UserHandle.SYSTEM); in testQueryAppsNonLaunchable() 59 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, true, UserHandle.SYSTEM); in testQueryAppsInteractAcrossUser() 63 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, false, UserHandle.SYSTEM); in testQueryAppsInteractAcrossUser() 71 true, UserHandle.SYSTEM); in testQueryApps() 77 false, UserHandle.SYSTEM); in testQueryApps() 84 true, UserHandle.of(UserHandle.myUserId())); in testQueryAppsImes() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 26 import android.os.UserHandle; 49 final int user0 = UserHandle.USER_SYSTEM; in testCleanupDisabledPackageReceivers() 64 final BroadcastRecord recordAllAll = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 65 cleanupDisabledPackageReceivers(recordAllAll, pkgToCleanup, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 69 final BroadcastRecord recordAllOne = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 76 cleanupDisabledPackageReceivers(recordOneAll, pkgToCleanup, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 86 final BroadcastRecord recordAllM = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 116 && UserHandle.getUserId(appInfo.uid) == UserHandle in verifyRemaining() 124 .append('u').append(UserHandle.getUserId(appInfo.uid)).append(' '); in verifyRemaining() 151 UserHandle.getUid(userId, Process.FIRST_APPLICATION_UID + i))); in createReceiverInfos() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowBinder.java | 20 import android.os.UserHandle; 35 private static UserHandle sCallingUserHandle; 49 public static void setCallingUserHandle(UserHandle userHandle) { in setCallingUserHandle() 58 public static UserHandle getCallingUserHandle() { in getCallingUserHandle() 62 return UserHandle.of(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | PreferredActivityBackupHelper.java | 22 import android.os.UserHandle; 58 return pm.getPreferredActivityBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 60 return pm.getDefaultAppsBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 62 return pm.getIntentFilterVerificationBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 82 pm.restorePreferredActivities(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload() 85 pm.restoreDefaultApps(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload() 88 pm.restoreIntentFilterVerification(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 60 import android.os.UserHandle; 100 public final UserHandle user; 105 BroadcastCookie(UserHandle userHandle, String packageName, int callingPid, int callingUid) { in BroadcastCookie() 164 return UserHandle.getUserId(injectBinderCallingUid()); in injectCallingUserId() 179 return UserHandle.getUserId(injectBinderCallingUid()); in getCallingUserId() 200 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener() 229 UserHandle callingIdUserHandle = new UserHandle(getCallingUserId()); in registerPackageInstallerCallback() 232 new UserHandle(eventUserId), "shouldReceiveEvent")); in registerPackageInstallerCallback() 264 mPackageMonitor.register(mContext, UserHandle.ALL, true, mCallbackHandler); in startWatchingPackageBroadcasts() 327 UserHandle.getUserId(getCallingUid())); in verifyCallingPackage() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderPerformanceTest.java | 23 import android.os.UserHandle; 55 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 64 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 95 FAKE_SETTING_VALUE, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 99 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 104 FAKE_SETTING_VALUE_1, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 108 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 28 import android.os.UserHandle; 128 private UserHandle getTargetInputMethodUser(UserHandle fromUser, UserHandle toUser) in getTargetInputMethodUser() 132 UserHandle.getUid(fromUser.getIdentifier(), DUMMY_MESSAGE_APP_ID), in getTargetInputMethodUser() 151 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForCallingUser() 157 UserHandle differentUser = UserHandle.of(UserHandle.getCallingUserId() + 1); in testEditorInfoTargetInputMethodUserForDifferentUser() 165 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForAllUser() 166 assertEquals(UserHandle.of(ActivityManager.getCurrentUser()), in testEditorInfoTargetInputMethodUserForAllUser() 167 getTargetInputMethodUser(callingUser, UserHandle.ALL)); in testEditorInfoTargetInputMethodUserForAllUser()
|
/frameworks/base/media/java/android/media/projection/ |
D | MediaProjectionInfo.java | 21 import android.os.UserHandle; 28 private final UserHandle mUserHandle; 30 public MediaProjectionInfo(String packageName, UserHandle handle) { in MediaProjectionInfo() 37 mUserHandle = UserHandle.readFromParcel(in); in MediaProjectionInfo() 44 public UserHandle getUserHandle() { in getUserHandle() 78 UserHandle.writeToParcel(mUserHandle, out); in writeToParcel()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockPatternUtilsTest.java | 22 import android.os.UserHandle; 41 assertNotEquals(UserHandle.USER_NULL, LockPatternUtils.USER_FRP); 42 assertNotEquals(UserHandle.USER_ALL, LockPatternUtils.USER_FRP); 43 assertNotEquals(UserHandle.USER_CURRENT, LockPatternUtils.USER_FRP); 44 assertNotEquals(UserHandle.USER_CURRENT_OR_SELF, LockPatternUtils.USER_FRP);
|
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 24 import android.os.UserHandle; 37 public static EnforcedAdmin getProfileOrDeviceOwner(Context context, UserHandle user) { in getProfileOrDeviceOwner() 42 Context context, String enforcedRestriction, UserHandle user) { in getProfileOrDeviceOwner() 78 int targetUserId = UserHandle.myUserId(); in sendShowAdminSupportDetailsIntent() 86 context.startActivityAsUser(intent, UserHandle.of(targetUserId)); in sendShowAdminSupportDetailsIntent() 102 return um.getUserProfiles().contains(UserHandle.of(userId)); in isCurrentUserOrProfile() 115 public UserHandle user = null; 127 public EnforcedAdmin(ComponentName component, UserHandle user) { in EnforcedAdmin() 132 public EnforcedAdmin(ComponentName component, String enforcedRestriction, UserHandle user) { in EnforcedAdmin()
|