/cts/tests/tests/telecom/src/android/telecom/cts/ |
DataObjectUnitTests.java | 30 import android.os.UserHandle; 102 final UserHandle userHandle = Process.myUserHandle(); 106 userHandle); 110 assertEquals(userHandle, accountHandle.getUserHandle());
|
/frameworks/base/core/java/android/content/ |
IntentSender.java | 26 import android.os.UserHandle; 259 * sending the Intent. The returned UserHandle is supplied by the system, so 267 public UserHandle getCreatorUserHandle() { 271 return uid > 0 ? new UserHandle(UserHandle.getUserId(uid)) : null;
|
/frameworks/base/core/java/android/service/notification/ |
ZenModeConfig.java | 29 import android.os.UserHandle; 133 public int user = UserHandle.USER_SYSTEM; 705 public static Condition toTimeCondition(Context context, int minutesFromNow, int userHandle) { 706 return toTimeCondition(context, minutesFromNow, userHandle, false /*shortVersion*/); 709 public static Condition toTimeCondition(Context context, int minutesFromNow, int userHandle, 713 return toTimeCondition(context, now + millis, minutesFromNow, userHandle, shortVersion); 717 int userHandle, boolean shortVersion) { 720 final CharSequence formattedTime = getFormattedTime(context, time, userHandle); 752 int userHandle) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
AppRestrictionsHelper.java | 32 import android.os.UserHandle; 56 private final UserHandle mUser; 63 public AppRestrictionsHelper(Context context, UserHandle user) { 90 if (!mUserManager.getUserInfo(userId).isRestricted() && userId != UserHandle.myUserId()) { 344 private ApplicationInfo getAppInfoForUser(String packageName, int flags, UserHandle user) {
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
DreamController.java | 33 import android.os.UserHandle; 125 mContext.sendBroadcastAsUser(mCloseNotificationShadeIntent, UserHandle.ALL); 151 new UserHandle(userId))) { 209 mContext.sendBroadcastAsUser(mDreamingStoppedIntent, UserHandle.ALL); 264 mContext.sendBroadcastAsUser(mDreamingStartedIntent, UserHandle.ALL);
|
/packages/apps/Settings/src/com/android/settings/ |
AppListPreference.java | 33 import android.os.UserHandle; 114 final UserHandle managedProfile = Utils.getManagedProfile(UserManager.get(context)); 116 : UserHandle.myUserId(); 124 final UserHandle managedProfile = Utils.getManagedProfile(UserManager.get(context)); 126 : UserHandle.myUserId();
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
AppManagementFragment.java | 30 import android.os.UserHandle; 65 private final int mUserId = UserHandle.myUserId(); 99 pref.getLabel(), false, new UserHandle(pref.getUserId())); 187 if (mUserId == UserHandle.USER_SYSTEM) { 292 if (mUserId == UserHandle.USER_SYSTEM) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
MainFragment.java | 37 import android.os.UserHandle; 107 new UserHandle(UserHandle.myUserId()), 110 public void onAccountsUpdate(UserHandle userHandle) {
|
/packages/services/Mms/src/com/android/mms/service/ |
DownloadRequest.java | 32 import android.os.UserHandle; 207 users = new int[] {UserHandle.ALL.getIdentifier()}; 215 UserHandle targetUser = new UserHandle(users[i]); 216 if (users[i] != UserHandle.USER_SYSTEM) {
|
/frameworks/base/core/java/android/provider/ |
Settings.java | 55 import android.os.UserHandle; [all...] |
/frameworks/base/services/print/java/com/android/server/print/ |
PrintManagerService.java | 39 import android.os.UserHandle; 89 public void onUnlockUser(int userHandle) { 90 mPrintManagerImpl.handleUserUnlocked(userHandle); 94 public void onStopUser(int userHandle) { 95 mPrintManagerImpl.handleUserStopped(userHandle); 287 final int appId = UserHandle.getAppId(Binder.getCallingUid()); 290 if (appId != Process.SYSTEM_UID && appId != UserHandle.getAppId( 666 if (userId == UserHandle.USER_ALL 677 false, observer, UserHandle.USER_ALL); [all...] |
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
WallpaperBackupAgent.java | 38 import android.os.UserHandle; 92 File wallpaperDir = Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM); 127 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); 129 mWm.getWallpaperIdForUser(FLAG_LOCK, UserHandle.USER_SYSTEM); 138 ParcelFileDescriptor lockFd = mWm.getWallpaperFile(FLAG_LOCK, UserHandle.USER_SYSTEM); 232 mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM); 340 0, UserHandle.USER_SYSTEM);
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
MediaProjectionManagerService.java | 38 import android.os.UserHandle; 343 public final UserHandle userHandle; 354 userHandle = new UserHandle(UserHandle.getUserId(uid)); 463 return new MediaProjectionInfo(packageName, userHandle);
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 32 import android.os.UserHandle; 106 final int userHandle = UserHandle.getUserId(uid); 107 final int systemUidForUser = UserHandle.getUid(userHandle, Process.SYSTEM_UID); 470 sendBroadcastAsUser(intent, new UserHandle(UserHandle.myUserId()));
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
HostEmulationManager.java | 34 import android.os.UserHandle; 135 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); 281 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); 298 Context.BIND_AUTO_CREATE, UserHandle.CURRENT)) { 354 Context.BIND_AUTO_CREATE, new UserHandle(userId))) { 374 mContext.startActivityAsUser(dialogIntent, UserHandle.CURRENT); 386 mContext.startActivityAsUser(intent, UserHandle.CURRENT);
|
RegisteredServicesCache.java | 38 import android.os.UserHandle; 132 if (currentUser == UserHandle.getUserId(uid)) { 133 invalidateCache(UserHandle.getUserId(uid)); 153 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); 159 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, sdFilter, null, null); 220 new UserHandle(userId)).getPackageManager(); 380 final int userId = UserHandle.getUserId(currentUid);
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
DataUsageList.java | 34 import android.os.UserHandle; 321 final List<UserHandle> profiles = userManager.getUserProfiles(); 334 final int userId = UserHandle.getUserId(uid); 335 if (UserHandle.isApp(uid)) { 336 if (profiles.contains(new UserHandle(userId))) { 372 if (!profiles.contains(new UserHandle(UserHandle.getUserId(uid)))) {
|
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/ |
VpnTests.java | 25 import android.os.UserHandle; 132 LegacyVpnInfo oldVpn = mService.getLegacyVpnInfo(UserHandle.myUserId()); 139 mService.getLegacyVpnInfo(UserHandle.myUserId()) != null) { 145 mService.getLegacyVpnInfo(UserHandle.myUserId())); 220 mService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, UserHandle.myUserId()); 281 LegacyVpnInfo legacyVpnInfo = mService.getLegacyVpnInfo(UserHandle.myUserId()); 289 legacyVpnInfo = mService.getLegacyVpnInfo(UserHandle.myUserId());
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ConnectionServiceWrapper.java | 27 import android.os.UserHandle; 450 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 624 UserHandle userHandle = Binder.getCallingUserHandle(); 639 false /*includeDisabledAccounts*/, userHandle); 702 * @param userHandle The {@link UserHandle} to use when binding. 711 UserHandle userHandle) { 712 super(ConnectionService.SERVICE_INTERFACE, componentName, context, lock, userHandle); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
BluetoothManagerService.java | 50 import android.os.UserHandle; 275 PackageManager.MATCH_SYSTEM_ONLY, UserHandle.USER_SYSTEM); 633 int callingAppId = UserHandle.getAppId(Binder.getCallingUid()); 821 public void handleOnSwitchUser(int userHandle) { 822 if (DBG) Slog.d(TAG, "User " + userHandle + " switched"); 823 mHandler.obtainMessage(MESSAGE_USER_SWITCHED, userHandle, 0).sendToTarget(); [all...] |
/frameworks/base/services/core/java/com/android/server/accounts/ |
AccountManagerService.java | 77 import android.os.UserHandle; 155 public void onUnlockUser(int userHandle) { 156 mService.onUnlockUser(userHandle); 378 }, UserHandle.ALL, userFilter, null, null); 617 return getUserAccounts(UserHandle.getCallingUserId()); [all...] |
/frameworks/base/core/java/android/app/ |
PendingIntent.java | 35 import android.os.UserHandle; 346 flags, options, UserHandle.myUserId()); 355 * Note that UserHandle.CURRENT will be interpreted at the time the 359 @NonNull Intent intent, int flags, Bundle options, UserHandle user) { 487 UserHandle.myUserId()); 496 * Note that UserHandle.CURRENT will be interpreted at the time the 500 @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) { 546 new UserHandle(UserHandle.myUserId())); 551 * Note that UserHandle.CURRENT will be interpreted at the time th [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
ApplicationsState.java | 43 import android.os.UserHandle; 128 for (int userId : mUm.getProfileIdsWithDisabled(UserHandle.myUserId())) { 187 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { 226 int userId = UserHandle.getUserId(info.uid); 300 && userId == UserHandle.getUserId(info.uid)) { 344 && UserHandle.getUserId(appInfo.uid) == userId) { 431 final int profileIds[] = mUm.getProfileIdsWithDisabled(UserHandle.myUserId()); 466 int userId = UserHandle.getUserId(info.uid); 791 int userId = UserHandle.getUserId(info.uid); [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
PackageManagerShellCommand.java | 48 import android.os.UserHandle; 172 int userId = UserHandle.USER_SYSTEM; 177 userId = UserHandle.parseUserArg(getNextArgRequired()); 544 int userId = UserHandle.USER_SYSTEM; 577 userId = UserHandle.parseUserArg(getNextArgRequired()); 715 int userId = UserHandle.USER_ALL; 724 userId = UserHandle.parseUserArg(getNextArgRequired()); 745 if (userId == UserHandle.USER_ALL) { 746 userId = UserHandle.USER_SYSTEM; 787 doCreateSession(sessionParams, null /*installerPackageName*/, UserHandle.USER_ALL) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcDispatcher.java | 50 import android.os.UserHandle; 204 context.startActivityAsUser(rootIntent, UserHandle.CURRENT); 215 context.startActivityAsUser(rootIntent, UserHandle.CURRENT); 490 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); 543 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); 594 // hasUserRestriction does not support UserHandle.CURRENT 595 UserHandle.of(ActivityManager.getCurrentUser()))) { 606 mContext.startServiceAsUser(intent, UserHandle.CURRENT) [all...] |