Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 25 of 122) sorted by relevance

12345

/frameworks/base/services/java/com/android/server/pm/
DPackageSettingBase.java175 private PackageUserState modifyUserState(int userId) { in modifyUserState() argument
176 PackageUserState state = userState.get(userId); in modifyUserState()
179 userState.put(userId, state); in modifyUserState()
184 public PackageUserState readUserState(int userId) { in readUserState() argument
185 PackageUserState state = userState.get(userId); in readUserState()
192 void setEnabled(int state, int userId) { in setEnabled() argument
193 modifyUserState(userId).enabled = state; in setEnabled()
196 int getEnabled(int userId) { in getEnabled() argument
197 return readUserState(userId).enabled; in getEnabled()
200 void setInstalled(boolean inst, int userId) { in setInstalled() argument
[all …]
DUserManagerService.java210 public UserInfo getUserInfo(int userId) { in getUserInfo() argument
213 return getUserInfoLocked(userId); in getUserInfo()
220 private UserInfo getUserInfoLocked(int userId) { in getUserInfoLocked() argument
221 UserInfo ui = mUsers.get(userId); in getUserInfoLocked()
223 if (ui != null && ui.partial && !mRemovingUserIds.get(userId)) { in getUserInfoLocked()
224 Slog.w(LOG_TAG, "getUserInfo: unknown user #" + userId); in getUserInfoLocked()
230 public boolean exists(int userId) { in exists() argument
232 return ArrayUtils.contains(mUserIds, userId); in exists()
237 public void setUserName(int userId, String name) { in setUserName() argument
241 UserInfo info = mUsers.get(userId); in setUserName()
[all …]
DInstaller.java228 public int remove(String name, int userId) { in remove() argument
233 builder.append(userId); in remove()
257 public int deleteCacheFiles(String name, int userId) { in deleteCacheFiles() argument
262 builder.append(userId); in deleteCacheFiles()
266 public int createUserData(String name, int uid, int userId) { in createUserData() argument
273 builder.append(userId); in createUserData()
277 public int removeUserDataDirs(int userId) { in removeUserDataDirs() argument
280 builder.append(userId); in removeUserDataDirs()
284 public int clearUserData(String name, int userId) { in clearUserData() argument
289 builder.append(userId); in clearUserData()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockSettingsService.java99 private static final void checkWritePermission(int userId) { in checkWritePermission() argument
107 private static final void checkPasswordReadPermission(int userId) { in checkPasswordReadPermission() argument
115 private static final void checkReadPermission(int userId) { in checkReadPermission() argument
118 && UserHandle.getUserId(callingUid) != userId) { in checkReadPermission()
120 + " not authorized to read settings of user " + userId); in checkReadPermission()
125 public void setBoolean(String key, boolean value, int userId) throws RemoteException { in setBoolean() argument
126 checkWritePermission(userId); in setBoolean()
128 writeToDb(key, value ? "1" : "0", userId); in setBoolean()
132 public void setLong(String key, long value, int userId) throws RemoteException { in setLong() argument
133 checkWritePermission(userId); in setLong()
[all …]
DILockSettings.aidl21 void setBoolean(in String key, in boolean value, in int userId); in setBoolean() argument
22 void setLong(in String key, in long value, in int userId); in setLong() argument
23 void setString(in String key, in String value, in int userId); in setString() argument
24 boolean getBoolean(in String key, in boolean defaultValue, in int userId); in getBoolean() argument
25 long getLong(in String key, in long defaultValue, in int userId); in getLong() argument
26 String getString(in String key, in String defaultValue, in int userId); in getString() argument
27 void setLockPattern(in byte[] hash, int userId); in setLockPattern() argument
28 boolean checkPattern(in byte[] hash, int userId); in checkPattern() argument
29 void setLockPassword(in byte[] hash, int userId); in setLockPassword() argument
30 boolean checkPassword(in byte[] hash, int userId); in checkPassword() argument
[all …]
/frameworks/base/services/java/com/android/server/usb/
DUsbService.java60 private UsbSettingsManager getSettingsForUser(int userId) { in getSettingsForUser() argument
62 UsbSettingsManager settings = mSettingsByUser.get(userId); in getSettingsForUser()
64 settings = new UsbSettingsManager(mContext, new UserHandle(userId)); in getSettingsForUser()
65 mSettingsByUser.put(userId, settings); in getSettingsForUser()
93 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);
96 setCurrentUser(userId);
99 mSettingsByUser.remove(userId);
105 private void setCurrentUser(int userId) { in setCurrentUser() argument
106 final UsbSettingsManager userSettings = getSettingsForUser(userId); in setCurrentUser()
163 public void setDevicePackage(UsbDevice device, String packageName, int userId) { in setDevicePackage() argument
[all …]
/frameworks/base/services/java/com/android/server/am/
DProviderMap.java64 ContentProviderRecord getProviderByName(String name, int userId) { in getProviderByName() argument
75 return getProvidersByName(userId).get(name); in getProviderByName()
82 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { in getProviderByClass() argument
93 return getProvidersByClass(userId).get(name); in getProviderByClass()
104 final int userId = UserHandle.getUserId(record.appInfo.uid); in putProviderByName() local
105 getProvidersByName(userId).put(name, record); in putProviderByName()
117 final int userId = UserHandle.getUserId(record.appInfo.uid); in putProviderByClass() local
118 getProvidersByClass(userId).put(name, record); in putProviderByClass()
122 void removeProviderByName(String name, int userId) { in removeProviderByName() argument
128 if (userId < 0) throw new IllegalArgumentException("Bad user " + userId); in removeProviderByName()
[all …]
DPendingIntentRecord.java57 final int userId; field in PendingIntentRecord.Key
74 userId = _userId; in Key()
108 if (userId != other.userId){ in equals()
165 + " flags=0x" + Integer.toHexString(flags) + " u=" + userId + "}"; in toString()
224 int userId = key.userId; in sendInner() local
225 if (userId == UserHandle.USER_CURRENT) { in sendInner()
226 userId = owner.getCurrentUserIdLocked(); in sendInner()
250 allResolvedTypes, resultTo, options, userId); in sendInner()
253 resultTo, resultWho, requestCode, 0, options, userId); in sendInner()
271 requiredPermission, (finishedReceiver != null), false, userId); in sendInner()
[all …]
/frameworks/base/core/java/android/accounts/
DAccountAndUser.java26 public int userId; field in AccountAndUser
28 public AccountAndUser(Account account, int userId) { in AccountAndUser() argument
30 this.userId = userId; in AccountAndUser()
38 && this.userId == other.userId; in equals()
43 return account.hashCode() + userId; in hashCode()
47 return account.toString() + " u" + userId; in toString()
DIAccountAuthenticatorCache.java42 AuthenticatorDescription type, int userId); in getServiceInfo() argument
48 int userId); in getAllServices() argument
54 void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId); in dump() argument
65 void invalidateCache(int userId); in invalidateCache() argument
/frameworks/base/services/java/com/android/server/
DAppWidgetService.java200 int userId) throws RemoteException { in bindRemoteViewsService() argument
202 && userId != UserHandle.getCallingUserId()) { in bindRemoteViewsService()
206 getImplForUser(userId).bindRemoteViewsService( in bindRemoteViewsService()
219 List<RemoteViews> updatedViews, int userId) throws RemoteException { in startListeningAsUser() argument
221 && userId != UserHandle.getCallingUserId()) { in startListeningAsUser()
225 return getImplForUser(userId).startListening(host, packageName, hostId, updatedViews); in startListeningAsUser()
228 public void onUserRemoved(int userId) { in onUserRemoved() argument
229 if (userId < 1) return; in onUserRemoved()
231 AppWidgetServiceImpl impl = mAppWidgetServices.get(userId); in onUserRemoved()
232 mAppWidgetServices.remove(userId); in onUserRemoved()
[all …]
DWallpaperManagerService.java121 super(getWallpaperDir(wallpaper.userId).getAbsolutePath(), in WallpaperObserver()
123 mWallpaperDir = getWallpaperDir(wallpaper.userId); in WallpaperObserver()
169 int userId; field in WallpaperManagerService.WallpaperData
207 WallpaperData(int userId) { in WallpaperData() argument
208 this.userId = userId; in WallpaperData()
209 wallpaperFile = new File(getWallpaperDir(userId), WALLPAPER); in WallpaperData()
253 && mWallpaper.userId == mCurrentUserId) { in onServiceDisconnected()
255 clearWallpaperLocked(true, mWallpaper.userId, null); in onServiceDisconnected()
311 clearWallpaperLocked(false, wallpaper.userId, null); in onPackageUpdateFinished()
391 clearWallpaperLocked(false, wallpaper.userId, null); in doPackagesChangedLocked()
[all …]
DNotificationManagerService.java329 final int userId; field in NotificationManagerService.NotificationRecord
335 int userId, int score, Notification notification) in NotificationRecord() argument
342 this.userId = userId; in NotificationRecord()
357 pw.println(prefix + " uid=" + uid + " userId=" + userId); in dump()
902 int[] idOut, int userId) in enqueueNotificationWithTag() argument
905 tag, id, notification, idOut, userId); in enqueueNotificationWithTag()
915 String tag, int id, Notification notification, int[] idOut, int userId) in enqueueNotificationInternal() argument
923 userId = ActivityManager.handleIncomingUser(callingPid, in enqueueNotificationInternal()
924 callingUid, userId, true, false, "enqueueNotification", pkg); in enqueueNotificationInternal()
925 final UserHandle user = new UserHandle(userId); in enqueueNotificationInternal()
[all …]
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl56 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument
57 int getPackageUid(String packageName, int userId); in getPackageUid() argument
71 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument
73 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); in getActivityInfo() argument
75 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId); in getReceiverInfo() argument
77 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId); in getServiceInfo() argument
79 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId); in getProviderInfo() argument
105 ResolveInfo resolveIntent(in Intent intent, String resolvedType, int flags, int userId); in resolveIntent() argument
108 String resolvedType, int flags, int userId); in queryIntentActivities() argument
113 String resolvedType, int flags, int userId); in queryIntentActivityOptions() argument
[all …]
DPackageCleanItem.java24 public final int userId; field in PackageCleanItem
28 public PackageCleanItem(int userId, String packageName, boolean andCode) { in PackageCleanItem() argument
29 this.userId = userId; in PackageCleanItem()
42 return userId == other.userId && packageName.equals(other.packageName) in equals()
53 result = 31 * result + userId; in hashCode()
64 dest.writeInt(userId); in writeToParcel()
81 userId = source.readInt(); in PackageCleanItem()
DRegisteredServicesCache.java94 private UserServices<V> findOrCreateUserLocked(int userId) { in findOrCreateUserLocked() argument
95 UserServices<V> services = mUserServices.get(userId); in findOrCreateUserLocked()
98 mUserServices.put(userId, services); in findOrCreateUserLocked()
161 public void invalidateCache(int userId) { in invalidateCache() argument
163 final UserServices<V> user = findOrCreateUserLocked(userId); in invalidateCache()
168 public void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId) { in dump() argument
170 final UserServices<V> user = findOrCreateUserLocked(userId); in dump()
198 private void notifyListener(final V type, final int userId, final boolean removed) { in notifyListener() argument
215 listener2.onServiceChanged(type, userId, removed); in notifyListener()
247 public ServiceInfo<V> getServiceInfo(V type, int userId) { in getServiceInfo() argument
[all …]
/frameworks/base/core/java/android/content/
DSyncQueue.java56 public void addPendingOperations(int userId) { in addPendingOperations() argument
58 if (op.userId != userId) continue; in addPendingOperations()
61 op.account, op.userId, op.authority); in addPendingOperations()
63 SyncAdapterType.newKey(op.authority, op.account.type), op.userId); in addPendingOperations()
66 + op.userId); in addPendingOperations()
70 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */, in addPendingOperations()
72 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), in addPendingOperations()
115 operation.account, operation.userId, operation.syncSource, in add()
129 public void removeUser(int userId) { in removeUser() argument
132 if (op.userId == userId) { in removeUser()
[all …]
DSyncStorageEngine.java149 final int userId; field in SyncStorageEngine.PendingOperation
158 PendingOperation(Account account, int userId, int source, in PendingOperation() argument
161 this.userId = userId; in PendingOperation()
171 this.userId = other.userId; in PendingOperation()
192 final int userId; field in SyncStorageEngine.AuthorityInfo
210 userId = toCopy.userId; in AuthorityInfo()
225 AuthorityInfo(Account account, int userId, String authority, int ident) { in AuthorityInfo() argument
227 this.userId = userId; in AuthorityInfo()
272 public void onSyncRequest(Account account, int userId, String authority, Bundle extras); in onSyncRequest() argument
464 public boolean getSyncAutomatically(Account account, int userId, String providerName) { in getSyncAutomatically() argument
[all …]
DContentService.java302 int userId = UserHandle.getCallingUserId(); in requestSync() local
310 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */, in requestSync()
325 int userId = UserHandle.getCallingUserId(); in cancelSync() local
333 syncManager.clearScheduledSyncOperations(account, userId, authority); in cancelSync()
334 syncManager.cancelActiveSync(account, userId, authority); in cancelSync()
348 final int userId = UserHandle.getCallingUserId(); in getSyncAdapterTypes() local
352 return syncManager.getSyncAdapterTypes(userId); in getSyncAdapterTypes()
361 int userId = UserHandle.getCallingUserId(); in getSyncAutomatically() local
368 account, userId, providerName); in getSyncAutomatically()
379 int userId = UserHandle.getCallingUserId(); in setSyncAutomatically() local
[all …]
DSyncManager.java234 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { in containsAccountAndUser() argument
237 if (accounts[i].userId == userId in containsAccountAndUser()
256 currentSyncContext.mSyncOperation.userId)) { in updateRunningAccounts()
314 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
315 if (userId == UserHandle.USER_NULL) return;
318 onUserRemoved(userId);
320 onUserStarting(userId);
322 onUserStopping(userId);
354 public void onSyncRequest(Account account, int userId, String authority, in SyncManager()
356 scheduleSync(account, userId, authority, extras, 0, false); in SyncManager()
[all …]
DSyncOperation.java29 public final int userId; field in SyncOperation
42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras, in SyncOperation() argument
45 this.userId = userId; in SyncOperation()
80 this.userId = other.userId; in SyncOperation()
101 .append(userId).append(" (") in dump()
135 sb.append(" account {name=" + account.name + ", user=" + userId + ", type=" + account.type in toKey()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java156 int userId = UserHandle.USER_OWNER; in parseInsertCommand() local
162 userId = Integer.parseInt(argumentValueRequired(argument)); in parseInsertCommand()
177 return new InsertCommand(uri, userId, values); in parseInsertCommand()
182 int userId = UserHandle.USER_OWNER; in parseDeleteCommand() local
188 userId = Integer.parseInt(argumentValueRequired(argument)); in parseDeleteCommand()
199 return new DeleteCommand(uri, userId, where); in parseDeleteCommand()
204 int userId = UserHandle.USER_OWNER; in parseUpdateCommand() local
211 userId = Integer.parseInt(argumentValueRequired(argument)); in parseUpdateCommand()
228 return new UpdateCommand(uri, userId, values, where); in parseUpdateCommand()
233 int userId = UserHandle.USER_OWNER; in parseQueryCommand() local
[all …]
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityManager.aidl38 int addClient(IAccessibilityManagerClient client, int userId); in addClient() argument
40 boolean sendAccessibilityEvent(in AccessibilityEvent uiEvent, int userId); in sendAccessibilityEvent() argument
42 List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(int userId); in getInstalledAccessibilityServiceList() argument
44 List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackType, int userId); in getEnabledAccessibilityServiceList() argument
46 void interrupt(int userId); in interrupt() argument
49 in IAccessibilityInteractionConnection connection, int userId); in addAccessibilityInteractionConnection() argument
/frameworks/base/services/java/com/android/server/dreams/
DDreamManagerService.java112 final int userId = UserHandle.getCallingUserId(); in getDreamComponents() local
115 return getDreamComponentsForUser(userId); in getDreamComponents()
125 final int userId = UserHandle.getCallingUserId(); in setDreamComponents() local
131 userId); in setDreamComponents() local
141 final int userId = UserHandle.getCallingUserId(); in getDefaultDreamComponent() local
146 userId); in getDefaultDreamComponent()
258 int userId = ActivityManager.getCurrentUser(); in startDream() local
259 ComponentName dream = chooseDreamForUser(userId); in startDream()
262 startDreamLocked(dream, false /*isTest*/, userId); in startDream()
276 private ComponentName chooseDreamForUser(int userId) { in chooseDreamForUser() argument
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityManagerService.java186 private UserState getUserStateLocked(int userId) { in getUserStateLocked() argument
187 UserState state = mUserStates.get(userId); in getUserStateLocked()
189 state = new UserState(userId); in getUserStateLocked()
190 mUserStates.put(userId, state); in getUserStateLocked()
235 final int userId = getChangingUserId(); in registerBroadcastReceivers()
236 if (userId != mCurrentUserId) { in registerBroadcastReceivers()
239 UserState state = getUserStateLocked(userId); in registerBroadcastReceivers()
249 state.mEnabledServices, userId); in registerBroadcastReceivers()
255 state.mEnabledServices, userId); in registerBroadcastReceivers()
266 final int userId = getChangingUserId(); in registerBroadcastReceivers()
[all …]

12345