/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
RegisteredServicesCache.java | 66 void onServicesUpdated(int userId, final List<ApduServiceInfo> services); 77 private UserServices findOrCreateUserLocked(int userId) { 78 UserServices services = mUserServices.get(userId); 81 mUserServices.put(userId, services); 145 public boolean hasService(int userId, ComponentName service) { 146 return getService(userId, service) != null; 149 public ApduServiceInfo getService(int userId, ComponentName service) { 151 UserServices userServices = findOrCreateUserLocked(userId); 156 public List<ApduServiceInfo> getServices(int userId) { 159 UserServices userServices = findOrCreateUserLocked(userId); [all...] |
RegisteredAidCache.java | 146 public boolean isDefaultServiceForAid(int userId, ComponentName service, String aid) { 150 serviceFound = mServiceCache.hasService(userId, service); 159 mServiceCache.invalidateCache(userId); 176 public boolean setDefaultServiceForCategory(int userId, ComponentName service, 186 if (service == null || mServiceCache.hasService(userId, service)) { 189 service != null ? service.flattenToString() : null, userId); 197 public boolean isDefaultServiceForCategory(int userId, String category, 206 serviceFound = mServiceCache.hasService(userId, service); 210 mServiceCache.invalidateCache(userId); 213 getDefaultServiceForCategory(userId, category, true) [all...] |
/frameworks/base/core/java/android/app/ |
INotificationManager.aidl | 30 void cancelAllNotifications(String pkg, int userId); 35 in Notification notification, inout int[] idReceived, int userId); 36 void cancelNotificationWithTag(String pkg, String tag, int id, int userId); 44 void registerListener(in INotificationListener listener, in ComponentName component, int userid); 45 void unregisterListener(in INotificationListener listener, int userid);
|
/frameworks/base/services/java/com/android/server/dreams/ |
DreamManagerService.java | 118 final int userId = UserHandle.getCallingUserId(); 121 return getDreamComponentsForUser(userId); 131 final int userId = UserHandle.getCallingUserId(); 137 userId); 147 final int userId = UserHandle.getCallingUserId(); 152 userId); 264 int userId = ActivityManager.getCurrentUser(); 265 ComponentName dream = chooseDreamForUser(userId); 268 startDreamLocked(dream, false /*isTest*/, userId); 282 private ComponentName chooseDreamForUser(int userId) { [all...] |
/frameworks/base/services/java/com/android/server/content/ |
SyncStorageEngine.java | 160 final int userId; 171 PendingOperation(Account account, int userId, int reason, int source, 174 this.userId = userId; 186 this.userId = other.userId; 210 final int userId; 228 userId = toCopy.userId; 249 * @param userId which user this sync is registered for [all...] |
ContentService.java | 321 int userId = UserHandle.getCallingUserId(); 330 syncManager.scheduleSync(account, userId, uId, authority, extras, 353 int userId = UserHandle.getCallingUserId(); 377 getSyncManager().getSyncStorageEngine().addPeriodicSync(syncToAdd, userId); 382 account, userId, uId, provider, extras, 407 int userId = UserHandle.getCallingUserId(); 414 syncManager.clearScheduledSyncOperations(account, userId, authority); 415 syncManager.cancelActiveSync(account, userId, authority); 430 final int userId = UserHandle.getCallingUserId(); 434 return syncManager.getSyncAdapterTypes(userId); [all...] |
SyncOperation.java | 63 public final int userId; 85 public SyncOperation(Account account, int userId, int reason, int source, String authority, 91 this.userId = userId; 146 this.userId = other.userId; 168 .append(userId).append(" (") 235 sb.append(" account {name=" + account.name + ", user=" + userId + ", type=" + account.type 241 .append(userId)
|
SyncManager.java | 262 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { 265 if (accounts[i].userId == userId 284 currentSyncContext.mSyncOperation.userId)) { 346 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 347 if (userId == UserHandle.USER_NULL) return; 350 onUserRemoved(userId); 352 onUserStarting(userId); 354 onUserStopping(userId); 387 public void onSyncRequest(Account account, int userId, int reason, String authority [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
SharedUserSetting.java | 27 int userId; 45 + name + "/" + userId + "}";
|
UserManagerService.java | 261 public UserInfo getUserInfo(int userId) { 264 return getUserInfoLocked(userId); 278 private UserInfo getUserInfoLocked(int userId) { 279 UserInfo ui = mUsers.get(userId); 281 if (ui != null && ui.partial && !mRemovingUserIds.get(userId)) { 282 Slog.w(LOG_TAG, "getUserInfo: unknown user #" + userId); 288 public boolean exists(int userId) { 290 return ArrayUtils.contains(mUserIds, userId); 295 public void setUserName(int userId, String name) { 299 UserInfo info = mUsers.get(userId); [all...] |
Installer.java | 230 public int remove(String name, int userId) { 235 builder.append(userId); 259 public int deleteCacheFiles(String name, int userId) { 264 builder.append(userId); 268 public int createUserData(String name, int uid, int userId) { 275 builder.append(userId); 279 public int removeUserDataDirs(int userId) { 282 builder.append(userId); 286 public int clearUserData(String name, int userId) { 291 builder.append(userId); [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
Task.java | 29 Task(AppWindowToken wtoken, TaskStack stack, int userId) { 33 mUserId = userId;
|
/frameworks/base/services/java/com/android/server/ |
WallpaperManagerService.java | 122 super(getWallpaperDir(wallpaper.userId).getAbsolutePath(), 124 mWallpaperDir = getWallpaperDir(wallpaper.userId); 170 int userId; 208 WallpaperData(int userId) { 209 this.userId = userId; 210 wallpaperFile = new File(getWallpaperDir(userId), WALLPAPER); 256 && mWallpaper.userId == mCurrentUserId) { 258 clearWallpaperLocked(true, mWallpaper.userId, null); 322 clearWallpaperLocked(false, wallpaper.userId, null) [all...] |
StatusBarManagerService.java | 81 int userId; 88 disableInternal(userId, 0, token, pkg); 159 private void disableInternal(int userId, int what, IBinder token, String pkg) { 163 disableLocked(userId, what, token, pkg); 167 private void disableLocked(int userId, int what, IBinder token, String pkg) { 172 manageDisableListLocked(userId, what, token, pkg); 547 void manageDisableListLocked(int userId, int what, IBinder token, String pkg) { 549 Slog.d(TAG, "manageDisableList userId=" + userId 558 if (t.token == token && t.userId == userId) [all...] |
/frameworks/base/cmds/content/src/com/android/commands/content/ |
Content.java | 169 int userId = UserHandle.USER_OWNER; 175 userId = Integer.parseInt(argumentValueRequired(argument)); 190 return new InsertCommand(uri, userId, values); 195 int userId = UserHandle.USER_OWNER; 201 userId = Integer.parseInt(argumentValueRequired(argument)); 212 return new DeleteCommand(uri, userId, where); 217 int userId = UserHandle.USER_OWNER; 224 userId = Integer.parseInt(argumentValueRequired(argument)); 241 return new UpdateCommand(uri, userId, values, where); 246 int userId = UserHandle.USER_OWNER [all...] |
/frameworks/base/core/java/android/accounts/ |
IAccountManager.aidl | 36 Account[] getAccountsAsUser(String accountType, int userId); 60 in Bundle options, boolean expectActivityLaunch, int userId); 65 boolean addSharedAccountAsUser(in Account account, int userId); 66 Account[] getSharedAccountsAsUser(int userId); 67 boolean removeSharedAccountAsUser(in Account account, int userId);
|
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 94 private UserServices<V> findOrCreateUserLocked(int userId) { 95 UserServices<V> services = mUserServices.get(userId); 98 mUserServices.put(userId, services); 161 public void invalidateCache(int userId) { 163 final UserServices<V> user = findOrCreateUserLocked(userId); 168 public void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId) { 170 final UserServices<V> user = findOrCreateUserLocked(userId); 198 private void notifyListener(final V type, final int userId, final boolean removed) { 215 listener2.onServiceChanged(type, userId, removed); 247 public ServiceInfo<V> getServiceInfo(V type, int userId) { [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbResolverActivity.java | 101 final int userId = UserHandle.myUserId(); 108 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); 110 service.setDevicePackage(mDevice, null, userId); 117 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); 119 service.setAccessoryPackage(mAccessory, null, userId); 124 startActivityAsUser(intent, new UserHandle(userId));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
MountServiceTests.java | 289 final int userId = 10; 293 buildObbPath("/storage/random/foo", userId, true)); 295 buildObbPath("/storage/random/foo", userId, false)); 299 buildObbPath("/storage/emulated_legacy/foo", userId, true)); 301 buildObbPath("/storage/emulated_legacy/foo", userId, false)); 303 buildObbPath("/storage/emulated/10/foo", userId, true)); 305 buildObbPath("/storage/emulated/10/foo", userId, false)); 309 buildObbPath("/storage/emulated_legacy/Android/obb/foo", userId, true)); 311 buildObbPath("/storage/emulated_legacy/Android/obb/foo", userId, false)); 313 buildObbPath("/storage/emulated/10/Android/obb/foo", userId, true)) [all...] |
/frameworks/base/media/java/android/media/ |
IMediaRouterService.aidl | 26 void registerClientAsUser(IMediaRouterClient client, String packageName, int userId);
|
/frameworks/base/services/java/com/android/server/search/ |
SearchManagerService.java | 82 private Searchables getSearchables(int userId) { 86 .getUserInfo(userId) != null; 92 Searchables searchables = mSearchables.get(userId); 95 //Log.i(TAG, "Building list of searchable activities for userId=" + userId); 96 searchables = new Searchables(mContext, userId); 98 mSearchables.append(userId, searchables); 104 private void onUserRemoved(int userId) { 105 if (userId != UserHandle.USER_OWNER) { 107 mSearchables.remove(userId); [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
ProfileUpdateReceiver.java | 54 int userId = UserHandle.myUserId(); 58 um.setUserName(userId, profileName);
|
/frameworks/base/services/java/com/android/server/am/ |
PendingIntentRecord.java | 57 final int userId; 74 userId = _userId; 108 if (userId != other.userId){ 165 + " flags=0x" + Integer.toHexString(flags) + " u=" + userId + "}"; 224 int userId = key.userId; 225 if (userId == UserHandle.USER_CURRENT) { 226 userId = owner.getCurrentUserIdLocked(); 250 allResolvedTypes, resultTo, options, userId); [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
AccessibilityManager.java | 167 final int userId; 175 userId = UserHandle.USER_CURRENT; 177 userId = UserHandle.myUserId(); 181 sInstance = new AccessibilityManager(context, service, userId); 192 * @param userId User id under which to run. 196 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { 199 mUserId = userId; 202 final int stateFlags = mService.addClient(mClient, userId);
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 67 * @param userId the userId of the sample SyncAdapter user object 72 public static ContactOperations createNewContact(Context context, long userId, 74 return new ContactOperations(context, userId, accountName, isSyncOperation, batchOperation); 100 public ContactOperations(Context context, long userId, String accountName, 105 mValues.put(RawContacts.SOURCE_ID, userId); 219 * @param userId the userId of the sample SyncAdapter user object 222 public ContactOperations addProfileAction(long userId) { 224 if (userId != 0) [all...] |