/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/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; 107 final int userHandle = UserHandle.getUserId(uid); 108 final int systemUidForUser = UserHandle.getUid(userHandle, Process.SYSTEM_UID); 480 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/tests/src/com/android/server/telecom/tests/ |
PhoneAccountRegistrarTest.java | 28 import android.os.UserHandle; 391 assertEquals(a.userHandle, b.userHandle); 458 UserHandle userHandle = phoneAccountHandle.getUserHandle(); 460 .put(userHandle, new DefaultPhoneAccountHandle(userHandle, phoneAccountHandle));
|
/frameworks/base/services/core/java/com/android/server/media/ |
MediaSessionService.java | 53 import android.os.UserHandle; 184 public void onStartUser(int userHandle) { 189 public void onSwitchUser(int userHandle) { 194 public void onStopUser(int userHandle) { 196 UserRecord user = mUserRecords.get(userHandle); 342 && !isEnabledNotificationListener(compName, UserHandle.getUserId(uid), 484 if (record.mUserId == UserHandle.USER_ALL || record.mUserId == userId) { 581 Settings.System.MEDIA_BUTTON_RECEIVER, UserHandle.USER_CURRENT); 628 false, this, UserHandle.USER_ALL); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
BluetoothManagerService.java | 50 import android.os.UserHandle; 275 PackageManager.MATCH_SYSTEM_ONLY, UserHandle.USER_SYSTEM); 615 int callingAppId = UserHandle.getAppId(Binder.getCallingUid()); 803 public void handleOnSwitchUser(int userHandle) { 804 if (DBG) Slog.d(TAG, "User " + userHandle + " switched"); 805 mHandler.obtainMessage(MESSAGE_USER_SWITCHED, userHandle, 0).sendToTarget(); 811 public void handleOnUnlockUser(int userHandle) { 812 if (DBG) Slog.d(TAG, "User " + userHandle + " unlocked"); 813 mHandler.obtainMessage(MESSAGE_USER_UNLOCKED, userHandle, 0).sendToTarget(); [all...] |
TelephonyRegistry.java | 35 import android.os.UserHandle; 257 int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0); 258 if (DBG) log("onReceive: userHandle=" + userHandle); 259 mHandler.sendMessage(mHandler.obtainMessage(MSG_USER_SWITCHED, userHandle, 0)); 355 int callerUserId = UserHandle.getCallingUserId(); 357 log("listen oscl: E pkg=" + callingPackage + " myUserId=" + UserHandle.myUserId() 469 int callerUserId = UserHandle.getCallingUserId(); 473 + UserHandle.myUserId() + " callerUserId=" + callerUserId); [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...] |
UiAutomationConnection.java | 31 import android.os.UserHandle; 173 int callingUserId = UserHandle.getCallingUserId(); 193 int callingUserId = UserHandle.getCallingUserId();
|
/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); 806 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/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendTestMessages.java | 23 import android.os.UserHandle; 433 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 441 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 449 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 457 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 468 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 476 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 484 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 493 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, 502 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS [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...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 50 import android.os.UserHandle; 193 public UserInfo getUserInfo(int userHandle) { 195 if (ui.id == userHandle) { 203 public UserInfo getProfileParent(int userHandle) { 204 final UserInfo child = getUserInfo(userHandle); 209 if (ui.id != userHandle && ui.id == child.profileGroupId) { 222 public Bundle getUserRestrictions(UserHandle userHandle) { 232 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { [all...] |
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
WallpaperManagerService.java | 70 import android.os.UserHandle; 134 mService.switchUser(UserHandle.USER_SYSTEM, null); 139 public void onUnlockUser(int userHandle) { 140 mService.onUnlockUser(userHandle); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
WirelessSettings.java | 37 import android.os.UserHandle; 247 UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, UserHandle.myUserId())) { 266 UserManager.DISALLOW_CONFIG_VPN, UserHandle.myUserId())) { 293 UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, UserHandle.myUserId())) { 326 activity, UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId()) != null; 329 UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId())) {
|
/frameworks/base/docs/html/reference/android/support/wearable/watchface/ |
CanvasWatchFaceService.html | [all...] |
Gles2WatchFaceService.html | [all...] |
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/ |
SimpleAppWidgetHostService.java | 35 import android.os.UserHandle; 73 private UserHandle mUserHandle; 173 private UserHandle getUserHandleArgument(Context context, String key,
|
/frameworks/base/core/java/android/content/pm/ |
ShortcutManager.java | 24 import android.os.UserHandle; 90 * {@link LauncherApps#pinShortcuts(String, List, UserHandle)}. 276 return UserHandle.myUserId();
|