/packages/apps/Nfc/src/com/android/nfc/ |
NfcApplication.java | 23 import android.os.UserHandle; 60 if (UserHandle.myUserId() == 0 && isMainProcess) {
|
RegisteredComponentCache.java | 33 import android.os.UserHandle; 75 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, intentFilter, null, null); 80 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, sdFilter, null, null); 84 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, userFilter, null, null); 149 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser());
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppCounter.java | 26 import android.os.UserHandle; 44 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) {
|
/packages/apps/Settings/src/com/android/settings/users/ |
ProfileUpdateReceiver.java | 23 import android.os.UserHandle; 53 int userId = UserHandle.myUserId();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ServiceBinder.java | 24 import android.os.UserHandle; 180 /** {@link UserHandle} to use for binding, to support work profiles and multi-user. */ 181 private UserHandle mUserHandle; 209 * @param userHandle The {@link UserHandle} to use for binding. 212 TelecomSystem.SyncRoot lock, UserHandle userHandle) { 220 mUserHandle = userHandle;
|
TelecomServiceImpl.java | 39 import android.os.UserHandle; 123 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 145 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 163 UserHandle callingUserHandle = Binder.getCallingUserHandle(); 189 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 215 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 235 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 254 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 294 final UserHandle callingUserHandle = Binder.getCallingUserHandle(); 312 final UserHandle callingUserHandle = Binder.getCallingUserHandle() [all...] |
/frameworks/base/docs/html/sdk/api_diff/24/changes/ |
android.os.UserHandle.html | 10 android.os.UserHandle 74 Class android.os.<A HREF="../../../../reference/android/os/UserHandle.html" target="_top"><font size="+2"><code>UserHandle</code></font></A> 86 <A NAME="android.os.UserHandle.getUserHandleForUid_added(int)"></A> 87 <nobr><code>UserHandle</code> <A HREF="../../../../reference/android/os/UserHandle.html#getUserHandleForUid(int)" target="_top"><code>getUserHandleForUid</code></A>(<code>int</code>)</nobr>
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsAccess.java | 31 import android.os.UserHandle; 117 || UserHandle.getAppId(callingUid) == android.os.Process.SYSTEM_UID) { 157 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); 163 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid);
|
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 23 import android.os.UserHandle; 65 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, 79 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, 93 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, 107 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, 121 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL,
|
/packages/apps/Settings/src/com/android/settings/ |
RestrictedSettingsFragment.java | 28 import android.os.UserHandle; 216 mRestrictionKey, UserHandle.myUserId()); 217 if (mEnforcedAdmin != null && mEnforcedAdmin.userId == UserHandle.USER_NULL) { 218 mEnforcedAdmin.userId = UserHandle.myUserId(); 255 UserHandle.of(UserHandle.myUserId())) && (mIsAdminUser || !mOnlyAvailableForAdmins);
|
MasterClear.java | 32 import android.os.UserHandle; 207 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId()); 219 final UserHandle userHandle = new UserHandle(profileId); 255 0, userHandle); 257 authContext.getDrawable(desc.iconId), userHandle); 290 getActivity(), UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId()); 293 UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId())) {
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
AppDialogFragment.java | 30 import android.os.UserHandle; 165 final UserHandle userHandle = UserHandle.of(getUserId()); 166 return mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, userHandle); 170 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid);
|
/packages/services/Car/service/src/com/android/car/ |
CarProjectionService.java | 31 import android.os.UserHandle; 124 UserHandle userHandle = UserHandle.getUserHandleForUid(Binder.getCallingUid()); 125 mContext.startServiceAsUser(serviceIntent, userHandle); 126 mContext.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_IMPORTANT, userHandle);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
SecurityFragment.java | 35 import android.os.UserHandle; 328 UserHandle.myUserId()); 356 return lpu.isLockPasswordEnabled(UserHandle.myUserId()) 357 || lpu.isLockPatternEnabled(UserHandle.myUserId()); 371 UserManager.get(getActivity()).getUserInfo(UserHandle.myUserId()); 374 switchUserNow(UserHandle.USER_SYSTEM); 387 new LockPatternUtils(getActivity()).clearLock(UserHandle.myUserId()); 445 UserInfo userInfo = userManager.getUserInfo(UserHandle.myUserId()); 450 UserInfo userInfo = userManager.getUserInfo(UserHandle.myUserId()); 467 UserInfo.FLAG_RESTRICTED, UserHandle.myUserId()) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
StorageNotification.java | 32 import android.os.UserHandle; 94 mNotificationManager.cancelAsUser(fsUuid, PRIVATE_ID, UserHandle.ALL); 122 mNotificationManager.cancelAsUser(null, MOVE_ID, UserHandle.ALL); 193 mNotificationManager.cancelAsUser(fsUuid, PRIVATE_ID, UserHandle.ALL); 215 .build(), UserHandle.ALL); 241 UserHandle.ALL); 245 mNotificationManager.cancelAsUser(disk.getId(), DISK_ID, UserHandle.ALL); 255 mNotificationManager.cancelAsUser(disk.getId(), DISK_ID, UserHandle.ALL); 311 mNotificationManager.notifyAsUser(vol.getId(), PUBLIC_ID, notif, UserHandle.ALL); 313 mNotificationManager.cancelAsUser(vol.getId(), PUBLIC_ID, UserHandle.ALL) [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
CallLogManagerTest.java | 31 import android.os.UserHandle; 112 UserHandle.of(CURRENT_USER_ID) 118 UserHandle.of(OTHER_USER_ID) 124 UserHandle.of(MANAGED_USER_ID) 140 when(userManager.isUserRunning(any(UserHandle.class))).thenReturn(true); 141 when(userManager.isUserUnlocked(any(UserHandle.class))).thenReturn(true); 142 when(userManager.hasUserRestriction(any(String.class), any(UserHandle.class))) 164 UserHandle.of(CURRENT_USER_ID) 187 UserHandle.of(CURRENT_USER_ID) 211 UserHandle.of(CURRENT_USER_ID [all...] |
CallScreeningServiceFilterTest.java | 28 import android.os.UserHandle; 95 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); 112 eq(mContext), eq(UserHandle.USER_CURRENT))).thenReturn(PKG_NAME); 118 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true); 124 eq(mContext), eq(UserHandle.USER_CURRENT))).thenReturn(null); 154 anyInt(), eq(UserHandle.CURRENT))).thenReturn(false); 204 eq(UserHandle.CURRENT));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
AppManagementFragment.java | 28 import android.os.UserHandle; 88 mEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); 127 final int userId = UserHandle.getUserId(mEntry.info.uid); 135 final int userId = UserHandle.getUserId(mEntry.info.uid); 282 final int userId = UserHandle.getUserId(mEntry.info.uid); 310 final int userId = UserHandle.getUserId(mEntry.info.uid); 341 final int userId = UserHandle.getUserId(mEntry.info.uid);
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
NfcFCardEmulation.java | 28 import android.os.UserHandle; 121 return sService.getSystemCodeForService(UserHandle.myUserId(), service); 130 return sService.getSystemCodeForService(UserHandle.myUserId(), service); 167 return sService.registerSystemCodeForService(UserHandle.myUserId(), 177 return sService.registerSystemCodeForService(UserHandle.myUserId(), 198 return sService.removeSystemCodeForService(UserHandle.myUserId(), service); 207 return sService.removeSystemCodeForService(UserHandle.myUserId(), service); 233 return sService.getNfcid2ForService(UserHandle.myUserId(), service); 242 return sService.getNfcid2ForService(UserHandle.myUserId(), service); 276 return sService.setNfcid2ForService(UserHandle.myUserId() [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
OwnersTest.java | 22 import android.os.UserHandle; 60 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); 77 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); 114 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); 134 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); 170 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); 198 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); 250 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); 282 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); 358 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()) [all...] |
/frameworks/base/core/java/android/service/notification/ |
StatusBarNotification.java | 25 import android.os.UserHandle; 43 private final UserHandle user; 50 int initialPid, int score, Notification notification, UserHandle user) { 57 int initialPid, Notification notification, UserHandle user, String overrideGroupKey, 77 int initialPid, int score, Notification notification, UserHandle user, 107 this.user = UserHandle.readFromParcel(in); 248 * Returns a userHandle for the instance of the app that posted this notification. 294 * The {@link android.os.UserHandle} for whom this notification is intended. 296 public UserHandle getUser() {
|
/frameworks/base/services/core/java/com/android/server/ |
ServiceWatcher.java | 34 import android.os.UserHandle; 74 private int mCurrentUserId = UserHandle.USER_SYSTEM; 85 private int mBoundUserId = UserHandle.USER_NULL; 159 UserHandle.USER_NULL); 166 }, UserHandle.ALL, intentFilter, null, mHandler); 170 mPackageMonitor.register(mContext, null, UserHandle.ALL, true); 250 final int userId = bestIsMultiuser ? UserHandle.USER_SYSTEM : mCurrentUserId; 266 mBoundUserId = UserHandle.USER_NULL; 283 new UserHandle(userId));
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
CustomizationRestrictionsTest.java | 26 import android.os.UserHandle; 97 UserHandle userHandle = Process.myUserHandle(); 99 Class<?> userHandleClass = userHandle.getClass(); 101 return (Integer) methodGetIdentifier.invoke(userHandle, null);
|
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
Dpm.java | 27 import android.os.UserHandle; 50 private int mUserId = UserHandle.USER_SYSTEM; 115 mUserId = UserHandle.USER_CURRENT; 119 if (mUserId == UserHandle.USER_CURRENT) { 154 mDevicePolicyManager.removeActiveAdmin(mComponent, UserHandle.USER_SYSTEM);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
GuestResumeSessionReceiver.java | 29 import android.os.UserHandle; 50 context.registerReceiverAsUser(this, UserHandle.SYSTEM, 61 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 62 if (userId == UserHandle.USER_NULL) { 125 ActivityManagerNative.getDefault().switchUser(UserHandle.USER_SYSTEM);
|