/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;
|
H A D | AccountManagerService.java | 157 private final int userId; field in class:AccountManagerService.UserAccounts 175 UserAccounts(Context context, int userId) { argument 176 this.userId = userId; 178 openHelper = new DatabaseHelper(context, userId); 245 private UserAccounts initUser(int userId) { argument 247 UserAccounts accounts = mUsers.get(userId); 249 accounts = new UserAccounts(mContext, userId); 250 mUsers.append(userId, accounts); 338 sendAccountsChangedBroadcast(accounts.userId); 348 getUserAccounts(int userId) argument 893 sendAccountsChangedBroadcast(int userId) argument 1483 getAccounts(int userId) argument 1873 getDatabaseName(int userId) argument 1900 DatabaseHelper(Context context, int userId) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ILockSettings.aidl | 21 void setBoolean(in String key, in boolean value, in int userId); 22 void setLong(in String key, in long value, in int userId); 23 void setString(in String key, in String value, in int userId); 24 boolean getBoolean(in String key, in boolean defaultValue, in int userId); 25 long getLong(in String key, in long defaultValue, in int userId); 26 String getString(in String key, in String defaultValue, in int userId); 27 void setLockPattern(in byte[] hash, int userId); 28 boolean checkPattern(in byte[] hash, int userId); 29 void setLockPassword(in byte[] hash, int userId); 30 boolean checkPassword(in byte[] hash, int userId); [all...] |
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/pm/ |
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...] |
H A D | SharedUserSetting.java | 27 int userId; field in class:SharedUserSetting 41 + name + "/" + 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 | 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 | PackageManagerService.java | 756 for (int userId : mDirtyUsers) { 757 mSettings.writePackageRestrictionsLPr(userId); 827 void scheduleWritePackageRestrictionsLocked(int userId) { argument 828 if (!sUserManager.exists(userId)) return; 829 mDirtyUsers.add(userId); 1251 PackageManager.GET_DISABLED_COMPONENTS, 0 /* TODO: Which userId? */); 1533 PackageInfo generatePackageInfo(PackageParser.Package p, int flags, int userId) { argument 1534 if (!sUserManager.exists(userId)) return null; 1538 pi = PackageParser.generatePackageInfo(p, null, flags, 0, 0, null, false, 0, userId); 1547 ps.getStopped(userId), p 1557 getPackageInfo(String packageName, int flags, int userId) argument 1599 getPackageUid(String packageName, int userId) argument 1709 generateApplicationInfoFromSettingsLPw(String packageName, int flags, int userId) argument 1727 generatePackageInfoFromSettingsLPw(String packageName, int flags, int userId) argument 1751 getApplicationInfo(String packageName, int flags, int userId) argument 1827 getActivityInfo(ComponentName component, int flags, int userId) argument 1847 getReceiverInfo(ComponentName component, int flags, int userId) argument 1864 getServiceInfo(ComponentName component, int flags, int userId) argument 1881 getProviderInfo(ComponentName component, int flags, int userId) argument 1935 checkValidCaller(int uid, int userId) argument 2313 resolveIntent(Intent intent, String resolvedType, int flags, int userId) argument 2320 chooseBestActivity(Intent intent, String resolvedType, int flags, List<ResolveInfo> query, int userId) argument 2355 findPreferredActivity(Intent intent, String resolvedType, int flags, List<ResolveInfo> query, int priority, int userId) argument 2451 queryIntentActivities(Intent intent, String resolvedType, int flags, int userId) argument 2489 queryIntentActivityOptions(ComponentName caller, Intent[] specifics, String[] specificTypes, Intent intent, String resolvedType, int flags, int userId) argument 2660 queryIntentReceivers(Intent intent, String resolvedType, int flags, int userId) argument 2697 resolveService(Intent intent, String resolvedType, int flags, int userId) argument 2711 queryIntentServices(Intent intent, String resolvedType, int flags, int userId) argument 2810 getInstalledApplications(int flags, String lastRead, int userId) argument 2884 resolveContentProvider(String name, int flags, int userId) argument 3424 getDataPathForUser(int userId) argument 3428 getDataPathForPackage(String packageName, int userId) argument 4691 queryIntent(Intent intent, String resolvedType, boolean defaultOnly, int userId) argument 4698 queryIntent(Intent intent, String resolvedType, int flags, int userId) argument 4706 queryIntentForPackage(Intent intent, String resolvedType, int flags, ArrayList<PackageParser.Activity> packageActivities, int userId) argument 4790 isFilterStopped(PackageParser.ActivityIntentInfo filter, int userId) argument 4811 newResult(PackageParser.ActivityIntentInfo info, int match, int userId) argument 4880 queryIntent(Intent intent, String resolvedType, boolean defaultOnly, int userId) argument 4886 queryIntent(Intent intent, String resolvedType, int flags, int userId) argument 4894 queryIntentForPackage(Intent intent, String resolvedType, int flags, ArrayList<PackageParser.Service> packageServices, int userId) argument 4973 isFilterStopped(PackageParser.ServiceIntentInfo filter, int userId) argument 4995 newResult(PackageParser.ServiceIntentInfo filter, int match, int userId) argument 5102 sendPackageBroadcast(String action, String pkg, Bundle extras, String targetPkg, IIntentReceiver finishedReceiver, int userId) argument 7806 clearApplicationUserData(final String packageName, final IPackageDataObserver observer, final int userId) argument 7839 clearApplicationUserDataLI(String packageName, int userId) argument 7905 deleteApplicationCacheFilesLI(String packageName, int userId) argument 8192 setApplicationEnabledSetting(String appPackageName, int newState, int flags, int userId) argument 8199 setComponentEnabledSetting(ComponentName componentName, int newState, int flags, int userId) argument 8206 setEnabledSetting( final String packageName, String className, int newState, final int flags, int userId) argument 8341 setPackageStoppedState(String packageName, boolean stopped, int userId) argument 8365 getApplicationEnabledSetting(String packageName, int userId) argument 8376 getComponentEnabledSetting(ComponentName componentName, int userId) argument 9411 removeUser(int userId) argument 9431 cleanUpUser(int userId) argument 9461 getUser(int userId) argument 9467 updateUserName(int userId, String name) argument [all...] |
H A D | Settings.java | 230 s.userId = newUserIdLPw(s); 231 Log.i(PackageManagerService.TAG, "New shared user " + name + ": id=" + s.userId); 234 if (s.userId >= 0) { 315 if (s.userId == uid) { 323 s.userId = uid; 446 p.appId = sharedUser.userId; 465 int userId = user.id; 467 new HashSet<String>(dis.getDisabledComponents(userId)), 468 userId); 470 new HashSet<String>(dis.getEnabledComponents(userId)), 706 getUserPackagesStateFile(int userId) argument 711 getUserPackagesStateBackupFile(int userId) argument 737 readPackageRestrictionsLPr(int userId) argument 889 writePackageRestrictionsLPr(int userId) argument 2063 readDisabledComponentsLPw(PackageSettingBase packageSetting, XmlPullParser parser, int userId) argument 2091 readEnabledComponentsLPw(PackageSettingBase packageSetting, XmlPullParser parser, int userId) argument 2237 removeUserLPr(int userId) argument 2279 isEnabledLPr(ComponentInfo componentInfo, int flags, int userId) argument 2320 getApplicationEnabledSettingLPr(String packageName, int userId) argument 2328 getComponentEnabledSettingLPr(ComponentName componentName, int userId) argument 2338 setPackageStoppedStateLPw(String packageName, boolean stopped, boolean allowedByPermission, int uid, int userId) argument [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | IPackageManager.aidl | 53 PackageInfo getPackageInfo(String packageName, int flags, int userId); 54 int getPackageUid(String packageName, int userId); 68 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); 70 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); 72 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId); 74 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId); 76 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId); 102 ResolveInfo resolveIntent(in Intent intent, String resolvedType, int flags, int userId); 105 String resolvedType, int flags, int userId); 110 String resolvedType, int flags, int userId); [all...] |
/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 | SyncStorageEngine.java | 147 final int userId; field in class:SyncStorageEngine.PendingOperation 156 PendingOperation(Account account, int userId, int source, argument 159 this.userId = userId; 169 this.userId = other.userId; 190 final int userId; field in class:SyncStorageEngine.AuthorityInfo 208 userId = toCopy.userId; 223 AuthorityInfo(Account account, int userId, Strin argument 270 onSyncRequest(Account account, int userId, String authority, Bundle extras) argument 458 getSyncAutomatically(Account account, int userId, String providerName) argument 480 setSyncAutomatically(Account account, int userId, String providerName, boolean sync) argument 501 getIsSyncable(Account account, int userId, String providerName) argument 524 setIsSyncable(Account account, int userId, String providerName, int syncable) argument 549 getBackoff(Account account, int userId, String providerName) argument 560 setBackoff(Account account, int userId, String providerName, long nextSyncTime, long nextDelay) argument 635 setDelayUntilTime(Account account, int userId, String providerName, long delayUntil) argument 653 getDelayUntilTime(Account account, int userId, String providerName) argument 664 updateOrRemovePeriodicSync(Account account, int userId, String providerName, Bundle extras, long period, boolean add) argument 738 addPeriodicSync(Account account, int userId, String providerName, Bundle extras, long pollFrequency) argument 744 removePeriodicSync(Account account, int userId, String providerName, Bundle extras) argument 750 getPeriodicSyncs(Account account, int userId, String providerName) argument 765 setMasterSyncAutomatically(boolean flag, int userId) argument 781 getMasterSyncAutomatically(int userId) argument 788 getOrCreateAuthority(Account account, int userId, String authority) argument 796 removeAuthority(Account account, int userId, String authority) argument 812 isSyncActive(Account account, int userId, String authority) argument 932 doDatabaseCleanup(Account[] accounts, int userId) argument 1015 removeActiveSync(SyncInfo syncInfo, int userId) argument 1038 insertStartSyncEvent(Account accountName, int userId, String authorityName, long now, int source, boolean initialization) argument 1201 getCurrentSyncs(int userId) argument 1252 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument 1276 isSyncPending(Account account, int userId, String authority) argument 1348 getAuthorityLocked(Account accountName, int userId, String authorityName, String tag) argument 1373 getOrCreateAuthorityLocked(Account accountName, int userId, String authorityName, int ident, boolean doWrite) argument 1404 removeAuthorityLocked(Account account, int userId, String authorityName, boolean doWrite) argument 2193 requestSync(Account account, int userId, String authority, Bundle extras) 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 | ContentService.java | 168 int userId = UserId.getCallingUserId(); 207 syncManager.scheduleLocalSync(null /* all accounts */, userId, 236 int userId = UserId.getCallingUserId(); 244 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */, 259 int userId = UserId.getCallingUserId(); 267 syncManager.clearScheduledSyncOperations(account, userId, authority); 268 syncManager.cancelActiveSync(account, userId, authority); 294 int userId = UserId.getCallingUserId(); 301 account, userId, providerName); 312 int userId [all...] |
H A D | SyncManager.java | 221 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { argument 224 if (accounts[i].userId == userId 258 currentSyncContext.mSyncOperation.userId)) { 352 public void onSyncRequest(Account account, int userId, String authority, 354 scheduleSync(account, userId, authority, extras, 0, false); 491 * @param userId the id of the user whose accounts are to be synced. If userId is USER_ALL, 500 public void scheduleSync(Account requestedAccount, int userId, String requestedAuthority, argument 515 if (requestedAccount != null && userId ! 646 scheduleLocalSync(Account account, int userId, String authority) argument 686 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument 790 cancelActiveSync(Account account, int userId, String authority) argument 823 clearScheduledSyncOperations(Account account, int userId, String authority) argument 2160 cancelActiveSyncLocked(Account account, int userId, String authority) argument [all...] |
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/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/services/java/com/android/server/ |
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 | 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...] |
/frameworks/base/services/java/com/android/server/am/ |
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 | 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);
|