/frameworks/base/core/java/android/accounts/ |
H A D | AccountAndUser.java | 26 public int userId; field in class:AccountAndUser 28 public AccountAndUser(Account account, int userId) { argument 30 this.userId = userId; 38 && this.userId == other.userId; 43 return account.hashCode() + userId; 47 return account.toString() + " u" + userId;
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | SharedUserSetting.java | 27 int userId; field in class:SharedUserSetting 41 + name + "/" + userId + "}";
|
H A D | Installer.java | 228 public int remove(String name, int userId) { argument 233 builder.append(userId); 264 public int createUserData(String name, int uid, int userId) { argument 271 builder.append(userId); 275 public int removeUserDataDirs(int userId) { argument 278 builder.append(userId); 282 public int clearUserData(String name, int userId) { argument 287 builder.append(userId);
|
H A D | UserManager.java | 104 public UserInfo getUser(int userId) { argument 106 UserInfo info = mUsers.get(userId); 111 public boolean exists(int userId) { argument 113 return ArrayUtils.contains(mUserIds, userId); 117 public void updateUserName(int userId, String name) { argument 119 UserInfo info = mUsers.get(userId); 344 int userId = getNextAvailableId(); 345 UserInfo userInfo = new UserInfo(userId, name, flags); 346 File userPath = new File(mBaseUserPath, Integer.toString(userId)); 347 if (!createPackageFolders(userId, userPat [all...] |
H A D | PackageSettingBase.java | 182 void setEnabled(int state, int userId) { argument 183 enabled.put(userId, state); 186 int getEnabled(int userId) { argument 187 return enabled.get(userId, COMPONENT_ENABLED_STATE_DEFAULT); 190 boolean getStopped(int userId) { argument 191 return stopped.get(userId, false); 194 void setStopped(boolean stop, int userId) { argument 195 stopped.put(userId, stop); 198 boolean getNotLaunched(int userId) { argument 199 return notLaunched.get(userId, fals 202 setNotLaunched(boolean stop, int userId) argument 206 getEnabledComponents(int userId) argument 210 getDisabledComponents(int userId) argument 214 setEnabledComponents(HashSet<String> components, int userId) argument 218 setDisabledComponents(HashSet<String> components, int userId) argument 222 getComponentHashSet(SparseArray<HashSet<String>> setArray, int userId) argument 231 addDisabledComponent(String componentClassName, int userId) argument 236 addEnabledComponent(String componentClassName, int userId) argument 241 enableComponentLPw(String componentClassName, int userId) argument 249 disableComponentLPw(String componentClassName, int userId) argument 257 restoreComponentLPw(String componentClassName, int userId) argument 265 getCurrentEnabledStateLPr(String componentName, int userId) argument 277 removeUser(int userId) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | UserId.java | 90 * Returns the uid that is composed from the userId and the appId. 93 public static final int getUid(int userId, int appId) { argument 95 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE);
|
/frameworks/base/core/java/android/content/ |
H A D | SyncQueue.java | 53 syncStorageEngine.getBackoff(op.account, op.userId, op.authority); 61 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */, 63 syncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), 106 operation.account, operation.userId, operation.syncSource, 120 public void removeUser(int userId) { argument 123 if (op.userId == userId) { 148 public void onBackoffChanged(Account account, int userId, String providerName, long backoff) { argument 153 && op.userId == userId) { 171 remove(Account account, int userId, String authority) argument [all...] |
H A D | SyncOperation.java | 29 public final int userId; field in class:SyncOperation 42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras, argument 45 this.userId = userId; 80 this.userId = other.userId; 130 sb.append(" account {name=" + account.name + ", user=" + userId + ", type=" + account.type
|
H A D | ContextWrapper.java | 317 public void sendBroadcast(Intent intent, int userId) { argument 318 mBase.sendBroadcast(intent, userId); 399 public boolean bindService(Intent service, ServiceConnection conn, int flags, int userId) { argument 400 return mBase.bindService(service, conn, flags, userId);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | SyncStorageEngineTest.java | 124 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, argument 126 engine.setIsSyncable(account, userId, authority, 128 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account, userId, authority); 130 engine.removePeriodicSync(sync.account, userId, sync.authority, sync.extras);
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | TaskRecord.java | 41 int userId; // user for which this task was created field in class:TaskRecord 104 userId = UserId.getUserId(info.applicationInfo.uid); 109 if (numActivities != 0 || rootWasReset || userId != 0) { 112 pw.print(" userId="); pw.println(userId); 171 sb.append(userId);
|
H A D | ProviderMap.java | 61 ContentProviderRecord getProviderByName(String name, int userId) { argument 72 return getProvidersByName(userId).get(name); 79 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { argument 90 return getProvidersByClass(userId).get(name); 101 final int userId = UserId.getUserId(record.appInfo.uid); 102 getProvidersByName(userId).put(name, record); 114 final int userId = UserId.getUserId(record.appInfo.uid); 115 getProvidersByClass(userId).put(name, record); 149 final int userId = optionalUserId >= 0 151 final HashMap<String, ContentProviderRecord> map = mProvidersByNamePerUser.get(userId); [all...] |
H A D | ServiceRecord.java | 65 final int userId; // user that this service is running as field in class:ServiceRecord 299 userId = UserId.getUserId(appInfo.uid);
|
H A D | ProcessRecord.java | 51 final int userId; // user of process. field in class:ProcessRecord 157 pw.print(prefix); pw.print("user #"); pw.print(userId); 311 userId = UserId.getUserId(_uid); 389 sb.append(userId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockSettingsService.java | 97 private static final void checkWritePermission(int userId) { argument 105 private static final void checkPasswordReadPermission(int userId) { argument 113 private static final void checkReadPermission(int userId) { argument 116 && UserId.getUserId(callingUid) != userId) { 118 + " not authorized to read settings of user " + userId); 123 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument 124 checkWritePermission(userId); 126 writeToDb(key, value ? "1" : "0", userId); 130 public void setLong(String key, long value, int userId) throws RemoteException { argument 131 checkWritePermission(userId); 137 setString(String key, String value, int userId) argument 144 getBoolean(String key, boolean defaultValue, int userId) argument 153 getLong(String key, long defaultValue, int userId) argument 161 getString(String key, String defaultValue, int userId) argument 167 getLockPatternFilename(int userId) argument 179 getLockPasswordFilename(int userId) argument 192 havePassword(int userId) argument 199 havePattern(int userId) argument 206 setLockPattern(byte[] hash, int userId) argument 213 checkPattern(byte[] hash, int userId) argument 236 setLockPassword(byte[] hash, int userId) argument 243 checkPassword(byte[] hash, int userId) argument 267 removeUser(int userId) argument 305 writeToDb(String key, String value, int userId) argument 323 readFromDb(String key, String defaultValue, int userId) argument [all...] |
H A D | LockPatternUtils.java | 218 public void setCurrentUser(int userId) { argument 220 mCurrentUserId = userId; 234 public void removeUser(int userId) { argument 237 getLockSettings().removeUser(userId); 239 Log.e(TAG, "Couldn't remove lock settings for user " + userId); 260 int userId = getCurrentOrCallingUserId(); 262 return getLockSettings().checkPattern(patternToHash(pattern), userId); 275 int userId = getCurrentOrCallingUserId(); 277 return getLockSettings().checkPassword(passwordToHash(password), userId);
|
/frameworks/base/services/java/com/android/server/ |
H A D | ClipboardService.java | 59 final int userId; field in class:ClipboardService.PerUserClipboard 69 PerUserClipboard(int userId) { argument 70 this.userId = userId; 121 private PerUserClipboard getClipboard(int userId) { argument 123 Slog.i(TAG, "Got clipboard for user=" + userId); 124 PerUserClipboard puc = mClipboards.get(userId); 126 puc = new PerUserClipboard(userId); 127 mClipboards.put(userId, puc); 133 private void removeClipboard(int userId) { argument [all...] |
H A D | AppWidgetService.java | 239 public void onUserRemoved(int userId) { argument 240 AppWidgetServiceImpl impl = mAppWidgetServices.get(userId); 241 if (userId < 1) return; 244 AppWidgetServiceImpl.getSettingsFile(userId).delete(); 251 final int userId = Binder.getOrigCallingUser(); 252 AppWidgetServiceImpl service = mAppWidgetServices.get(userId); 256 service = new AppWidgetServiceImpl(mContext, userId); 260 mAppWidgetServices.append(userId, service);
|
H A D | IntentResolver.java | 204 boolean defaultOnly, ArrayList<ArrayList<F>> listCut, int userId) { 215 resolvedType, scheme, listCut.get(i), resultList, userId); 222 int userId) { 294 resolvedType, scheme, firstTypeCut, finalList, userId); 298 resolvedType, scheme, secondTypeCut, finalList, userId); 302 resolvedType, scheme, thirdTypeCut, finalList, userId); 306 resolvedType, scheme, schemeCut, finalList, userId); 333 protected boolean isFilterStopped(F filter, int userId) { argument 345 protected R newResult(F filter, int match, int userId) { argument 508 String resolvedType, String scheme, List<F> src, List<R> dest, int userId) { 203 queryIntentFromList(Intent intent, String resolvedType, boolean defaultOnly, ArrayList<ArrayList<F>> listCut, int userId) argument 221 queryIntent(Intent intent, String resolvedType, boolean defaultOnly, int userId) argument 506 buildResolveList(Intent intent, FastImmutableArraySet<String> categories, boolean debug, boolean defaultOnly, String resolvedType, String scheme, List<F> src, List<R> dest, int userId) argument [all...] |
H A D | WallpaperManagerService.java | 110 super(getWallpaperDir(wallpaper.userId).getAbsolutePath(), 112 mWallpaperDir = getWallpaperDir(wallpaper.userId); 157 int userId; field in class:WallpaperManagerService.WallpaperData 202 WallpaperData(int userId) { argument 203 this.userId = userId; 204 wallpaperFile = new File(getWallpaperDir(userId), WALLPAPER); 245 && mWallpaper.userId == mCurrentUserId) { 247 clearWallpaperLocked(true, mWallpaper.userId); 279 if (wallpaper.userId 397 getWallpaperDir(int userId) argument 437 removeUser(int userId) argument 451 switchUser(int userId) argument 490 clearWallpaperLocked(boolean defaultFailed, int userId) argument 875 makeJournaledFile(int userId) argument 928 loadSettingsLocked(int userId) argument [all...] |
H A D | AppWidgetServiceImpl.java | 181 AppWidgetServiceImpl(Context context, int userId) { argument 185 mUserId = userId; 648 int userId = UserId.getUserId(id.provider.uid); 654 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE, userId); 739 int userId = UserId.getUserId(id.provider.uid); 744 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE, userId); 1009 int userId = UserId.getUserId(id.provider.uid); 1013 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE, userId); 1615 static File getSettingsFile(int userId) { argument 1616 return new File("/data/system/users/" + userId [all...] |
/frameworks/base/media/java/android/media/ |
H A D | JetPlayer.java | 512 * @param userId the ID of the currently playing segment 515 void onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount); argument
|
/frameworks/base/core/java/android/app/ |
H A D | ApplicationPackageManager.java | 427 int userId = UserId.getUserId(Process.myUid()); 435 slice = mPM.getInstalledApplications(flags, lastKey, userId); 1219 public UserInfo getUser(int userId) { argument 1221 return mPM.getUser(userId);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | KeyguardUpdateMonitor.java | 326 protected void handleUserChanged(int userId) { argument 328 mInfoCallbacks.get(i).onUserChanged(userId); 566 void onUserChanged(int userId); argument 596 public void onUserChanged(int userId) { argument
|
H A D | KeyguardViewMediator.java | 789 private void onUserSwitched(int userId) { argument 790 mLockPatternUtils.setCurrentUser(userId); 796 private void onUserRemoved(int userId) { argument 797 mLockPatternUtils.removeUser(userId);
|