/packages/apps/Bluetooth/src/com/android/bluetooth/ |
Utils.java | 32 import android.os.UserHandle; 204 int callingUser = UserHandle.getCallingUserId(); 216 UserHandle.USER_SYSTEM); 236 int callingUser = UserHandle.getCallingUserId(); 242 int parentUser = (ui != null) ? ui.id : UserHandle.USER_NULL; 251 UserHandle.USER_SYSTEM);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
AccountSyncFragment.java | 33 import android.os.UserHandle; 59 private UserHandle mUserHandle; 93 mUserHandle = new UserHandle(UserHandle.myUserId()); 261 public void onAccountsUpdate(UserHandle userHandle) {
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 70 import android.os.UserHandle; 210 int userHandle) { 213 mUserHandle = userHandle; 317 mPackageIntentReceiver, UserHandle.of(mUserHandle), intentFilter, null, null); 388 return mContext.startServiceAsUser(serviceIntent, UserHandle.of(mUserHandle)) != null; 564 private int getAppUid(String app, int userHandle) { 571 result = pm.getPackageUidAsUser(app, userHandle); 773 new UserHandle(mUserHandle))) { 832 private SortedSet<Integer> getAppsUids(List<String> packageNames, int userHandle) { [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
P2pLinkManager.java | 52 import android.os.UserHandle; 231 UserHandle mUserHandle; // not valid in SEND_STATE_NOTHING_TO_SEND 346 mUserHandle = shareData.userHandle; 428 new UserHandle(userId)).getPackageManager(); 460 mUserHandle = shareData.userHandle; 495 UserInfo userInfo = userManager.getUserInfo(UserHandle.getUserId(uid)); 745 int doHandover(Uri[] uris, UserHandle userHandle) throws IOException { 773 mHandoverDataParser.getOutgoingHandoverData(response), uris, userHandle)) { 793 UserHandle userHandle [all...] |
/frameworks/base/core/java/android/app/ |
ContextImpl.java | 62 import android.os.UserHandle; 110 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, 154 private final UserHandle mUser; 801 public void startActivityAsUser(Intent intent, UserHandle user) { 826 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { 846 public void startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { 855 (Activity) null, intents, options, userHandle.getIdentifier()); [all...] |
/frameworks/base/core/java/android/app/admin/ |
DevicePolicyManager.java | 46 import android.os.UserHandle; 126 return UserHandle.myUserId(); [all...] |
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
AppWidgetServiceImpl.java | 68 import android.os.UserHandle; 155 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 260 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 270 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 277 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 283 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 289 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 411 if (newPackageAdded && userId == UserHandle.USER_SYSTEM) { 537 UserHandle.of(providerUserId)); 743 final int userId = UserHandle.getCallingUserId() [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyNetworkMonitor.java | 28 import android.os.UserHandle; 88 am.registerReceiver(null, null, this, filter, null, UserHandle.USER_ALL);
|
/device/google/dragon/crash_collector/src/com/android/crashreportprovider/ |
CrashReportProvider.java | 28 import android.os.UserHandle; 55 getContext().sendBroadcastAsUser(intent, UserHandle.OWNER,
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
ShellUiAutomatorBridge.java | 32 import android.os.UserHandle; 64 providerName, UserHandle.USER_SYSTEM, token);
|
/frameworks/base/core/java/android/content/pm/ |
ResolveInfo.java | 24 import android.os.UserHandle; 145 * If not equal to UserHandle.USER_CURRENT, then the intent will be forwarded to this user. 242 return pm.getUserBadgedIcon(dr, new UserHandle(UserHandle.myUserId())); 312 targetUserId = UserHandle.USER_CURRENT; 352 if (targetUserId != UserHandle.USER_CURRENT) { 454 if (a.targetUserId != UserHandle.USER_CURRENT) { 457 if (b.targetUserId != UserHandle.USER_CURRENT) {
|
/frameworks/base/core/java/android/provider/ |
ContactsInternal.java | 26 import android.os.UserHandle; 75 UserHandle user) {
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
LocalPreferences.java | 25 import android.os.UserHandle; 113 final int userId = UserHandle.myUserId();
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
FusedLocationProvider.java | 37 import android.os.UserHandle; 79 }, UserHandle.ALL, intentFilter, null, mHandler);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
StorageMeasurement.java | 35 import android.os.UserHandle; 95 * Key is {@link UserHandle}. 114 * Key of the {@link SparseArray} is {@link UserHandle}. 120 * {@link #mediaSize}. Key is {@link UserHandle}. 126 * internal storage. Key is {@link UserHandle}. 235 addValueIfKeyExists(mDetails.appsSize, stats.userHandle, codeSize + dataSize); 239 addValue(mDetails.usersSize, stats.userHandle, dataSize); 317 Context.BIND_AUTO_CREATE, UserHandle.SYSTEM);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
ManagedProfileController.java | 24 import android.os.UserHandle; 127 mContext.registerReceiverAsUser(mReceiver, UserHandle.ALL, filter, null, null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
SplitClockView.java | 24 import android.os.UserHandle; 78 getContext().registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, filter, null, null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbAccessoryUriActivity.java | 27 import android.os.UserHandle; 91 startActivityAsUser(intent, UserHandle.CURRENT);
|
/frameworks/base/services/core/java/com/android/server/ |
AttributeCache.java | 26 import android.os.UserHandle; 139 new UserHandle(userId));
|
NetworkScoreService.java | 37 import android.os.UserHandle; 76 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 78 if (userId == UserHandle.USER_NULL) return; 160 mUserIntentReceiver, UserHandle.SYSTEM, filter, null /* broadcastPermission*/, 211 mPackageMonitor.register(mContext, null /* thread */, UserHandle.SYSTEM, 366 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM); 373 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM); 464 UserHandle.SYSTEM);
|
UpdateLockService.java | 29 import android.os.UserHandle; 81 mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
|
/frameworks/base/services/core/java/com/android/server/am/ |
PreBootBroadcaster.java | 28 import android.os.UserHandle; 63 MATCH_SYSTEM_ONLY, UserHandle.of(userId));
|
UserSwitchingDialog.java | 25 import android.os.UserHandle; 69 if (UserManager.isSplitSystemUser() && newUser.id == UserHandle.USER_SYSTEM) {
|
/frameworks/base/services/core/java/com/android/server/job/ |
JobSchedulerShellCommand.java | 25 import android.os.UserHandle; 72 int userId = UserHandle.USER_SYSTEM;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
RankingHelper.java | 22 import android.os.UserHandle; 151 uid = pm.getPackageUidAsUser(name, UserHandle.USER_SYSTEM); 200 if (forBackup && UserHandle.getUserId(r.uid) != UserHandle.USER_SYSTEM) { 441 record.put("userId", UserHandle.getUserId(r.uid)); 479 final int userId = UserHandle.getUserId(ban.getKey()); 519 r.uid = pm.getPackageUidAsUser(r.pkg, UserHandle.USER_SYSTEM); 534 static int UNKNOWN_UID = UserHandle.USER_NULL;
|