Searched refs:userId (Results 1 - 25 of 132) sorted by relevance

123456

/frameworks/base/core/java/android/app/
H A DIStopUserCallback.aidl25 void userStopped(int userId);
26 void userStopAborted(int userId);
H A DINotificationManager.aidl30 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);
/frameworks/base/core/java/android/accounts/
H A DAccountAndUser.java26 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/core/java/com/android/internal/widget/
H A DILockSettings.aidl21 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 String pattern, int userId);
28 boolean checkPattern(in String pattern, int userId);
29 void setLockPassword(in String password, int userId);
30 boolean checkPassword(in String password, int userId);
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DMultiUserAvatarCache.java31 public void clear(int userId) { argument
32 mCache.remove(userId);
35 public Drawable get(int userId) { argument
36 return mCache.get(userId);
39 public void put(int userId, Drawable image) { argument
40 mCache.put(userId, image);
H A DKeyguardUpdateMonitorCallback.java93 void onUserSwitching(int userId) { } argument
98 void onUserSwitchComplete(int userId) { } argument
109 void onUserRemoved(int userId) { } argument
114 void onUserInfoChanged(int userId) { } argument
/frameworks/base/core/java/com/android/internal/appwidget/
H A DIAppWidgetService.aidl34 out List<RemoteViews> updatedViews, int userId);
35 void stopListening(int hostId, int userId);
36 int allocateAppWidgetId(String packageName, int hostId, int userId);
37 void deleteAppWidgetId(int appWidgetId, int userId);
38 void deleteHost(int hostId, int userId);
39 void deleteAllHosts(int userId);
40 RemoteViews getAppWidgetViews(int appWidgetId, int userId);
41 int[] getAppWidgetIdsForHost(int hostId, int userId);
46 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views, int userId);
47 void updateAppWidgetOptions(int appWidgetId, in Bundle extras, int userId);
[all...]
H A DIAppWidgetHost.aidl25 void updateAppWidget(int appWidgetId, in RemoteViews views, int userId);
26 void providerChanged(int appWidgetId, in AppWidgetProviderInfo info, int userId);
27 void providersChanged(int userId);
28 void viewDataChanged(int appWidgetId, int viewId, int userId);
/frameworks/base/core/java/android/print/
H A DIPrintManager.aidl35 List<PrintJobInfo> getPrintJobInfos(int appId, int userId);
36 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId);
38 in PrintAttributes attributes, String packageName, int appId, int userId);
39 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId);
40 void restartPrintJob(in PrintJobId printJobId, int appId, int userId);
43 int appId, int userId);
45 int userId);
47 List<PrintServiceInfo> getInstalledPrintServices(int userId);
48 List<PrintServiceInfo> getEnabledPrintServices(int userId);
50 void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId);
[all...]
/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCacheListener.java29 void onServiceChanged(V type, int userId, boolean removed); argument
H A DPackageCleanItem.java24 public final int userId; field in class:PackageCleanItem
28 public PackageCleanItem(int userId, String packageName, boolean andCode) { argument
29 this.userId = userId;
42 return userId == other.userId && packageName.equals(other.packageName)
53 result = 31 * result + userId;
64 dest.writeInt(userId);
81 userId = source.readInt();
H A DIPackageManager.aidl56 PackageInfo getPackageInfo(String packageName, int flags, int userId);
57 int getPackageUid(String packageName, int userId);
71 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId);
73 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId);
75 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId);
77 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId);
79 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId);
107 ResolveInfo resolveIntent(in Intent intent, String resolvedType, int flags, int userId);
110 String resolvedType, int flags, int userId);
115 String resolvedType, int flags, int userId);
[all...]
/frameworks/base/services/java/com/android/server/pm/
H A DPackageSettingBase.java181 private PackageUserState modifyUserState(int userId) { argument
182 PackageUserState state = userState.get(userId);
185 userState.put(userId, state);
190 public PackageUserState readUserState(int userId) { argument
191 PackageUserState state = userState.get(userId);
198 void setEnabled(int state, int userId, String callingPackage) { argument
199 PackageUserState st = modifyUserState(userId);
204 int getEnabled(int userId) { argument
205 return readUserState(userId).enabled;
208 String getLastDisabledAppCaller(int userId) { argument
212 setInstalled(boolean inst, int userId) argument
216 getInstalled(int userId) argument
247 getStopped(int userId) argument
251 setStopped(boolean stop, int userId) argument
255 getNotLaunched(int userId) argument
259 setNotLaunched(boolean stop, int userId) argument
263 getBlocked(int userId) argument
267 setBlocked(boolean blocked, int userId) argument
271 setUserState(int userId, int enabled, boolean installed, boolean stopped, boolean notLaunched, boolean blocked, String lastDisableAppCaller, HashSet<String> enabledComponents, HashSet<String> disabledComponents) argument
286 getEnabledComponents(int userId) argument
290 getDisabledComponents(int userId) argument
294 setEnabledComponents(HashSet<String> components, int userId) argument
298 setDisabledComponents(HashSet<String> components, int userId) argument
302 setEnabledComponentsCopy(HashSet<String> components, int userId) argument
307 setDisabledComponentsCopy(HashSet<String> components, int userId) argument
312 modifyUserStateComponents(int userId, boolean disabled, boolean enabled) argument
323 addDisabledComponent(String componentClassName, int userId) argument
327 addEnabledComponent(String componentClassName, int userId) argument
331 enableComponentLPw(String componentClassName, int userId) argument
339 disableComponentLPw(String componentClassName, int userId) argument
347 restoreComponentLPw(String componentClassName, int userId) argument
356 getCurrentEnabledStateLPr(String componentName, int userId) argument
368 removeUser(int userId) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DAppWidgetService.java123 public int allocateAppWidgetId(String packageName, int hostId, int userId) argument
125 return getImplForUser(userId).allocateAppWidgetId(packageName, hostId);
129 public int[] getAppWidgetIdsForHost(int hostId, int userId) throws RemoteException { argument
130 return getImplForUser(userId).getAppWidgetIdsForHost(hostId);
134 public void deleteAppWidgetId(int appWidgetId, int userId) throws RemoteException { argument
135 getImplForUser(userId).deleteAppWidgetId(appWidgetId);
139 public void deleteHost(int hostId, int userId) throws RemoteException { argument
140 getImplForUser(userId).deleteHost(hostId);
144 public void deleteAllHosts(int userId) throws RemoteException { argument
145 getImplForUser(userId)
149 bindAppWidgetId(int appWidgetId, ComponentName provider, Bundle options, int userId) argument
155 bindAppWidgetIdIfAllowed( String packageName, int appWidgetId, ComponentName provider, Bundle options, int userId) argument
163 hasBindAppWidgetPermission(String packageName, int userId) argument
169 setBindAppWidgetPermission(String packageName, boolean permission, int userId) argument
175 bindRemoteViewsService(int appWidgetId, Intent intent, IBinder connection, int userId) argument
181 startListening(IAppWidgetHost host, String packageName, int hostId, List<RemoteViews> updatedViews, int userId) argument
186 onUserRemoved(int userId) argument
200 onUserStopping(int userId) argument
211 checkPermission(int userId) argument
222 getImplForUser(int userId) argument
245 getAppWidgetIds(ComponentName provider, int userId) argument
250 getAppWidgetInfo(int appWidgetId, int userId) argument
256 getAppWidgetViews(int appWidgetId, int userId) argument
261 updateAppWidgetOptions(int appWidgetId, Bundle options, int userId) argument
266 getAppWidgetOptions(int appWidgetId, int userId) argument
271 getInstalledProviders(int categoryFilter, int userId) argument
277 notifyAppWidgetViewDataChanged(int[] appWidgetIds, int viewId, int userId) argument
284 partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views, int userId) argument
291 stopListening(int hostId, int userId) argument
296 unbindRemoteViewsService(int appWidgetId, Intent intent, int userId) argument
303 updateAppWidgetIds(int[] appWidgetIds, RemoteViews views, int userId) argument
309 updateAppWidgetProvider(ComponentName provider, RemoteViews views, int userId) argument
[all...]
H A DLockSettingsService.java122 final int userId = users.get(user).id;
124 String ownerInfo = Settings.Secure.getStringForUser(cr, OWNER_INFO, userId);
126 setString(OWNER_INFO, ownerInfo, userId);
127 Settings.Secure.putStringForUser(cr, ownerInfo, "", userId);
136 int ivalue = Settings.Secure.getIntForUser(cr, OWNER_INFO_ENABLED, userId);
138 setLong(OWNER_INFO_ENABLED, enabled ? 1 : 0, userId);
142 setLong(OWNER_INFO_ENABLED, 1, userId);
145 Settings.Secure.putIntForUser(cr, OWNER_INFO_ENABLED, 0, userId);
156 private final void checkWritePermission(int userId) { argument
160 private final void checkPasswordReadPermission(int userId) { argument
164 checkReadPermission(String requestedKey, int userId) argument
178 setBoolean(String key, boolean value, int userId) argument
185 setLong(String key, long value, int userId) argument
192 setString(String key, String value, int userId) argument
199 getBoolean(String key, boolean defaultValue, int userId) argument
208 getLong(String key, long defaultValue, int userId) argument
216 getString(String key, String defaultValue, int userId) argument
222 getLockPatternFilename(int userId) argument
235 getLockPasswordFilename(int userId) argument
249 havePassword(int userId) argument
256 havePattern(int userId) argument
262 maybeUpdateKeystore(String password, int userId) argument
277 setLockPattern(String pattern, int userId) argument
288 setLockPassword(String password, int userId) argument
297 checkPattern(String pattern, int userId) argument
325 checkPassword(String password, int userId) argument
353 removeUser(int userId) argument
391 writeToDb(String key, String value, int userId) argument
395 writeToDb(SQLiteDatabase db, String key, String value, int userId) argument
412 readFromDb(String key, String defaultValue, int userId) argument
491 loadSetting(SQLiteDatabase db, String key, int userId, boolean value) argument
[all...]
/frameworks/base/core/java/android/view/accessibility/
H A DIAccessibilityManager.aidl38 int addClient(IAccessibilityManagerClient client, int userId);
40 boolean sendAccessibilityEvent(in AccessibilityEvent uiEvent, int userId);
42 List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(int userId);
44 List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackType, int userId);
46 void interrupt(int userId);
49 in IAccessibilityInteractionConnection connection, int userId);
/frameworks/base/services/java/com/android/server/accounts/
H A DIAccountAuthenticatorCache.java43 AuthenticatorDescription type, int userId);
49 int userId);
55 void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId); argument
66 void invalidateCache(int userId); argument
42 getServiceInfo( AuthenticatorDescription type, int userId) argument
48 getAllServices( int userId) argument
/frameworks/base/services/java/com/android/server/usb/
H A DUsbService.java60 private UsbSettingsManager getSettingsForUser(int userId) { argument
62 UsbSettingsManager settings = mSettingsByUser.get(userId);
64 settings = new UsbSettingsManager(mContext, new UserHandle(userId));
65 mSettingsByUser.put(userId, settings);
93 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);
96 setCurrentUser(userId);
99 mSettingsByUser.remove(userId);
105 private void setCurrentUser(int userId) { argument
106 final UsbSettingsManager userSettings = getSettingsForUser(userId);
163 public void setDevicePackage(UsbDevice device, String packageName, int userId) { argument
169 setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) argument
214 hasDefaults(String packageName, int userId) argument
220 clearDefaults(String packageName, int userId) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DProviderMap.java65 ContentProviderRecord getProviderByName(String name, int userId) { argument
76 return getProvidersByName(userId).get(name);
83 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { argument
94 return getProvidersByClass(userId).get(name);
105 final int userId = UserHandle.getUserId(record.appInfo.uid);
106 getProvidersByName(userId).put(name, record);
118 final int userId = UserHandle.getUserId(record.appInfo.uid);
119 getProvidersByClass(userId).put(name, record);
123 void removeProviderByName(String name, int userId) { argument
129 if (userId <
142 removeProviderByClass(ComponentName name, int userId) argument
161 getProvidersByName(int userId) argument
173 getProvidersByClass(int userId) argument
187 collectForceStopProvidersLocked(String name, int appId, boolean doit, boolean evenPersistent, int userId, HashMap<ComponentName, ContentProviderRecord> providers, ArrayList<ContentProviderRecord> result) argument
205 collectForceStopProviders(String name, int appId, boolean doit, boolean evenPersistent, int userId, ArrayList<ContentProviderRecord> result) argument
[all...]
/frameworks/base/services/java/com/android/server/print/
H A DPrintManagerService.java101 PrintAttributes attributes, String packageName, int appId, int userId) {
103 final int resolvedUserId = resolveCallingUserEnforcingPermissions(userId);
119 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) { argument
121 final int resolvedUserId = resolveCallingUserEnforcingPermissions(userId);
135 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { argument
137 final int resolvedUserId = resolveCallingUserEnforcingPermissions(userId);
151 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { argument
153 final int resolvedUserId = resolveCallingUserEnforcingPermissions(userId);
167 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { argument
169 final int resolvedUserId = resolveCallingUserEnforcingPermissions(userId);
100 print(String printJobName, IPrintDocumentAdapter adapter, PrintAttributes attributes, String packageName, int appId, int userId) argument
183 getEnabledPrintServices(int userId) argument
198 getInstalledPrintServices(int userId) argument
213 createPrinterDiscoverySession(IPrinterDiscoveryObserver observer, int userId) argument
229 destroyPrinterDiscoverySession(IPrinterDiscoveryObserver observer, int userId) argument
245 startPrinterDiscovery(IPrinterDiscoveryObserver observer, List<PrinterId> priorityList, int userId) argument
261 stopPrinterDiscovery(IPrinterDiscoveryObserver observer, int userId) argument
276 validatePrinters(List<PrinterId> printerIds, int userId) argument
291 startPrinterStateTracking(PrinterId printerId, int userId) argument
306 stopPrinterStateTracking(PrinterId printerId, int userId) argument
321 addPrintJobStateChangeListener(IPrintJobStateChangeListener listener, int appId, int userId) argument
338 removePrintJobStateChangeListener(IPrintJobStateChangeListener listener, int userId) argument
522 getOrCreateUserStateLocked(int userId) argument
582 resolveCallingUserEnforcingPermissions(int userId) argument
625 showEnableInstalledPrintServiceNotification(ComponentName component, String label, int userId) argument
[all...]
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHost.java66 public void updateAppWidget(int appWidgetId, RemoteViews views, int userId) { argument
69 views.setUser(new UserHandle(userId));
71 Message msg = mHandler.obtainMessage(HANDLE_UPDATE, appWidgetId, userId, views);
75 public void providerChanged(int appWidgetId, AppWidgetProviderInfo info, int userId) { argument
80 appWidgetId, userId, info);
84 public void providersChanged(int userId) { argument
85 Message msg = mHandler.obtainMessage(HANDLE_PROVIDERS_CHANGED, userId, 0);
89 public void viewDataChanged(int appWidgetId, int viewId, int userId) { argument
91 appWidgetId, viewId, userId);
157 final int userId
218 allocateAppWidgetIdForPackage(int hostId, int userId, String packageName) argument
277 deleteAppWidgetIdForSystem(int appWidgetId, int userId) argument
322 deleteAllHosts(int userId) argument
402 updateAppWidgetView(int appWidgetId, RemoteViews views, int userId) argument
412 viewDataChanged(int appWidgetId, int viewId, int userId) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DIUsbManager.aidl47 void setDevicePackage(in UsbDevice device, String packageName, int userId);
52 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId);
80 boolean hasDefaults(String packageName, int userId);
83 void clearDefaults(String packageName, int userId);
/frameworks/base/services/java/com/android/server/content/
H A DSyncQueue.java61 public void addPendingOperations(int userId) { argument
63 if (op.userId != userId) continue;
66 op.account, op.userId, op.authority);
68 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
70 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId "
71 + op.userId);
75 op.account, op.userId, op.reason, op.syncSource, op.authority, op.extras,
77 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority),
125 operation.account, operation.userId, operatio
139 removeUser(int userId) argument
167 onBackoffChanged(Account account, int userId, String providerName, long backoff) argument
190 remove(Account account, int userId, String authority) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DTask.java26 Task(AppWindowToken wtoken, TaskStack stack, int userId) { argument
30 mUserId = userId;
/frameworks/base/core/java/android/ddm/
H A DDdmHandleAppName.java72 public static void setAppName(String name, int userId) { argument
79 sendAPNM(name, userId);
89 private static void sendAPNM(String appName, int userId) { argument
96 + 4 /* userId */);
100 out.putInt(userId);

Completed in 2192 milliseconds

123456