Searched refs:userId (Results 201 - 225 of 540) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/content/
H A DContentProviderResult.java55 public ContentProviderResult(ContentProviderResult cpr, int userId) { argument
56 uri = ContentProvider.maybeAddUserId(cpr.uri, userId);
/frameworks/base/core/java/android/content/pm/
H A DAppsQueryHelper.java169 protected List<ApplicationInfo> getAllApps(int userId) { argument
173 | PackageManager.MATCH_DISABLED_COMPONENTS, userId).getList();
180 protected List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int userId) { argument
187 userId).getList();
194 protected List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int userId) { argument
200 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userId)
209 protected List<PackageInfo> getPackagesHoldingPermission(String perm, int userId) { argument
212 userId).getList();
/frameworks/base/core/java/android/hardware/fingerprint/
H A DIFingerprintServiceReceiver.aidl29 void onAuthenticationSucceeded(long deviceId, in Fingerprint fp, int userId);
/frameworks/base/media/java/android/media/
H A DIMediaRouterService.aidl26 void registerClientAsUser(IMediaRouterClient client, String packageName, int userId);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DRecentLocationApps.java83 int userId = UserHandle.getUserId(uid);
86 if (isAndroidOs || !profiles.contains(new UserHandle(userId))) {
138 int userId = UserHandle.getUserId(uid);
144 ipm.getApplicationInfo(packageName, PackageManager.GET_META_DATA, userId);
147 + ", userId " + userId);
151 final UserHandle userHandle = new UserHandle(userId);
152 Drawable icon = mDrawableFactory.getBadgedIcon(appInfo, userId);
164 + ", userId " + userId,
[all...]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityModel.java57 SecurityMode getSecurityMode(int userId) { argument
70 final int security = mLockPatternUtils.getActivePasswordQuality(userId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSecureSetting.java76 public void setUserId(int userId) { argument
77 mUserId = userId;
/frameworks/base/services/core/java/com/android/server/pm/
H A DBasePermission.java75 public int[] computeGids(int userId) { argument
79 userGids[i] = UserHandle.getUid(userId, gids[i]);
H A DSharedUserSetting.java27 int userId; field in class:SharedUserSetting
47 + name + "/" + userId + "}";
/frameworks/base/services/core/java/com/android/server/security/
H A DKeyAttestationApplicationIdProviderService.java59 int userId = UserHandle.getUserId(uid);
64 PackageManager.GET_SIGNATURES, userId);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/
H A DPet.java51 public void setUserId(int userId) { argument
52 mUserId = userId;
/frameworks/base/services/core/java/com/android/server/
H A DServiceWatcher.java162 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
165 switchUser(userId);
167 unlockUser(userId);
265 final int userId = bestIsMultiuser ? UserHandle.USER_SYSTEM : mCurrentUserId;
267 && bestVersion == mBoundVersion && userId == mBoundUserId;
270 bindToPackageLocked(bestComponent, bestVersion, userId);
288 private void bindToPackageLocked(ComponentName component, int version, int userId) { argument
294 mBoundUserId = userId;
295 if (D) Log.d(mTag, "binding " + component + " (v" + version + ") (u" + userId + ")");
298 new UserHandle(userId));
406 switchUser(int userId) argument
413 unlockUser(int userId) argument
[all...]
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbService.java289 public void setDevicePackage(UsbDevice device, String packageName, int userId) { argument
294 UserHandle user = UserHandle.of(userId);
300 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { argument
305 UserHandle user = UserHandle.of(userId);
312 final int userId = UserHandle.getCallingUserId();
313 return getSettingsForUser(userId).hasPermission(device);
318 final int userId = UserHandle.getCallingUserId();
319 return getSettingsForUser(userId).hasPermission(accessory);
324 final int userId = UserHandle.getCallingUserId();
325 getSettingsForUser(userId)
350 hasDefaults(String packageName, int userId) argument
360 clearDefaults(String packageName, int userId) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DDefaultDialerManager.java155 public static List<String> getInstalledDialerApplications(Context context, int userId) { argument
161 packageManager.queryIntentActivitiesAsUser(intent, 0, userId);
177 return filterByIntent(context, packageNames, dialIntentWithTelScheme, userId);
211 * @param userId The UserId
215 Intent intent, int userId) {
222 .queryIntentActivitiesAsUser(intent, 0, userId);
214 filterByIntent(Context context, List<String> packageNames, Intent intent, int userId) argument
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DRestrictedLockUtilsTest.java226 private UserInfo setUpUser(int userId, ComponentName[] admins) { argument
227 UserInfo userInfo = new UserInfo(userId, "primary", 0);
228 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo);
229 setUpActiveAdmins(userId, admins);
233 private UserInfo setUpManagedProfile(int userId, ComponentName[] admins) { argument
234 UserInfo userInfo = new UserInfo(userId, "profile", UserInfo.FLAG_MANAGED_PROFILE);
235 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo);
236 setUpActiveAdmins(userId, admins);
240 private void setUpActiveAdmins(int userId, ComponentName[] activeAdmins) { argument
241 when(mDevicePolicyManager.getActiveAdminsAsUser(userId))
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java179 public void onActivityPinned(String packageName, int userId, int taskId) { } argument
187 public void onTaskProfileLocked(int taskId, int userId) { } argument
234 public void onActivityPinned(String packageName, int userId, int taskId)
237 mHandler.obtainMessage(H.ON_ACTIVITY_PINNED, userId, taskId, packageName).sendToTarget();
284 public void onTaskProfileLocked(int taskId, int userId) {
285 mHandler.obtainMessage(H.ON_TASK_PROFILE_LOCKED, taskId, userId).sendToTarget();
393 public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId, argument
443 tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId);
472 isExcluded |= quietProfileIds.contains(t.userId);
650 int userId
827 getActivityInfo(ComponentName cn, int userId) argument
859 getBadgedActivityLabel(ActivityInfo info, int userId) argument
873 getBadgedApplicationLabel(ApplicationInfo appInfo, int userId) argument
888 getBadgedContentDescription(ActivityInfo info, int userId, ActivityManager.TaskDescription td, Resources res) argument
912 getBadgedActivityIcon(ActivityInfo info, int userId) argument
927 getBadgedApplicationIcon(ApplicationInfo appInfo, int userId) argument
941 getBadgedTaskDescriptionIcon(ActivityManager.TaskDescription taskDescription, int userId, Resources res) argument
971 getBadgedIcon(Drawable icon, int userId) argument
1012 getBadgedLabel(String label, int userId) argument
1022 isDeviceLocked(int userId) argument
1050 isSystemUser(int userId) argument
[all...]
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncStorageEngine.java168 final int userId; field in class:SyncStorageEngine.EndPoint
171 public EndPoint(Account account, String provider, int userId) { argument
174 this.userId = userId;
184 if (userId != spec.userId
185 && userId != UserHandle.USER_ALL
186 && spec.userId != UserHandle.USER_ALL) {
209 sb.append(":u" + userId);
374 boolean isAccountValid(Account account, int userId) { argument
384 isAuthorityValid(String authority, int userId) argument
615 getSyncAutomatically(Account account, int userId, String providerName) argument
637 setSyncAutomatically(Account account, int userId, String providerName, boolean sync) argument
673 getIsSyncable(Account account, int userId, String providerName) argument
698 setIsSyncable(Account account, int userId, String providerName, int syncable) argument
789 setBackoffLocked(Account account, int userId, String providerName, long nextSyncTime, long nextDelay) argument
889 setMasterSyncAutomatically(boolean flag, int userId) argument
907 getMasterSyncAutomatically(int userId) argument
960 doDatabaseCleanup(Account[] accounts, int userId) argument
1047 removeActiveSync(SyncInfo syncInfo, int userId) argument
1225 getCurrentSyncs(int userId) argument
1236 getCurrentSyncsCopy(int userId, boolean canAccessAccounts) argument
1254 getCurrentSyncsLocked(int userId) argument
1449 removeAuthorityLocked(Account account, int userId, String authorityName, boolean doWrite) argument
2144 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DRegisteredServicesCacheTest.java197 private void assertNotEmptyFileCreated(TestServicesCache cache, int userId) { argument
198 File dir = new File(cache.getUserSystemDirectory(userId),
226 protected List<ResolveInfo> queryIntentServices(int userId) { argument
228 .get(userId, new HashMap<ResolveInfo, ServiceInfo<TestServiceType>>());
233 protected File getUserSystemDirectory(int userId) { argument
234 File dir = new File(mDataDir, "users/" + userId);
245 protected UserInfo getUser(int userId) { argument
247 if (user.id == userId) {
259 void addServiceForQuerying(int userId, ResolveInfo resolveInfo, argument
261 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices.get(userId);
301 onUserRemoved(int userId) argument
[all...]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DNotificationComparatorTest.java83 int userId = UserHandle.myUserId();
108 new UserHandle(userId), "", 2000), getDefaultChannel());
118 new UserHandle(userId), "", 1999), getDefaultChannel());
126 pkg2, 1, "media", uid2, uid2, n3, new UserHandle(userId),
133 pkg2, 1, "inlinereply", uid2, uid2, n4, new UserHandle(userId),
141 smsPkg, 1, "sms", smsUid, smsUid, n5, new UserHandle(userId),
147 pkg2, 1, "starred", uid2, uid2, n6, new UserHandle(userId),
154 pkg2, 1, "contact", uid2, uid2, n7, new UserHandle(userId),
161 pkg2, 1, "urgent", uid2, uid2, n8, new UserHandle(userId),
171 pkg2, 1, "cheater", uid2, uid2, n9, new UserHandle(userId),
[all...]
/frameworks/base/core/java/android/app/
H A DINotificationManager.aidl43 void cancelAllNotifications(String pkg, int userId);
49 in Notification notification, int userId);
50 void cancelNotificationWithTag(String pkg, String tag, int id, int userId);
120 boolean isNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId);
124 void setNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId, boolean enabled);
125 void setNotificationAssistantAccessGrantedForUser(in ComponentName assistant, int userId, boolean enabled);
127 List<ComponentName> getEnabledNotificationListeners(int userId);
138 void setNotificationPolicyAccessGrantedForUser(String pkg, int userId, boolean granted);
150 ParceledListSlice getAppActiveNotifications(String callingPkg, int userId);
H A DKeyguardManager.java146 CharSequence title, CharSequence description, int userId) {
147 if (!isDeviceSecure(userId)) return null;
151 intent.putExtra(Intent.EXTRA_USER_ID, userId);
417 public boolean isDeviceLocked(int userId) { argument
419 return mTrustManager.isDeviceLocked(userId);
442 public boolean isDeviceSecure(int userId) { argument
444 return mTrustManager.isDeviceSecure(userId);
145 createConfirmDeviceCredentialIntent( CharSequence title, CharSequence description, int userId) argument
H A DWallpaperManager.java311 * @param userId Owner of the wallpaper or UserHandle.USER_ALL
314 @Nullable Handler handler, int userId) {
318 mService.registerWallpaperColorsCallback(this, userId);
333 * @param userId Owner of the wallpaper or UserHandle.USER_ALL
336 int userId) {
343 mService.unregisterWallpaperColorsCallback(this, userId);
353 public void onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) { argument
368 listener.first.onColorsChanged(colors, which, userId);
375 WallpaperColors getWallpaperColors(int which, int userId) { argument
382 return mService.getWallpaperColors(which, userId);
313 addOnColorsChangedListener(@onNull OnColorsChangedListener callback, @Nullable Handler handler, int userId) argument
335 removeOnColorsChangedListener(@onNull OnColorsChangedListener callback, int userId) argument
394 peekWallpaperBitmap(Context context, boolean returnDefault, @SetWallpaperFlags int which, int userId) argument
450 getCurrentWallpaperLocked(Context context, int userId) argument
830 getBitmapAsUser(int userId) argument
876 addOnColorsChangedListener(@onNull OnColorsChangedListener listener, @NonNull Handler handler, int userId) argument
895 removeOnColorsChangedListener(@onNull OnColorsChangedListener callback, int userId) argument
924 getWallpaperColors(int which, int userId) argument
943 getWallpaperFile(@etWallpaperFlags int which, int userId) argument
1021 getWallpaperIdForUser(@etWallpaperFlags int which, int userId) argument
1253 setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup, @SetWallpaperFlags int which, int userId) argument
1612 clearWallpaper(@etWallpaperFlags int which, int userId) argument
1645 setWallpaperComponent(ComponentName name, int userId) argument
1942 onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) argument
1972 onColorsChanged(WallpaperColors colors, int which, int userId) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipNotificationController.java106 public void onActivityPinned(String packageName, int userId, boolean deferUntilAnimationEnds) { argument
112 mDeferredNotificationUserId = userId;
114 showNotificationForApp(packageName, userId);
129 public void onActivityUnpinned(ComponentName topPipActivity, int userId) { argument
140 onActivityPinned(topPipActivity.getPackageName(), userId,
150 private void showNotificationForApp(String packageName, int userId) { argument
153 final UserHandle user = UserHandle.of(userId);
/frameworks/native/cmds/installd/
H A DInstalldNativeService.cpp346 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId,
359 int32_t uid = multiuser_get_uid(userId, appId);
360 int32_t cacheGid = multiuser_get_cache_gid(userId, appId);
369 auto path = create_data_user_ce_package_path(uuid_, userId, pkgname);
400 auto path = create_data_user_de_package_path(uuid_, userId, pkgname);
422 create_primary_current_profile_package_dir_path(userId, pkgname);
427 const std::string profile_file = create_current_profile_path(userId, pkgname,
448 const std::string& packageName, int32_t userId, int32_t flags) {
462 auto ce_path = create_data_user_ce_package_path(uuid_, userId, pkgname);
463 auto de_path = create_data_user_de_package_path(uuid_, userId, pkgnam
345 createAppData(const std::unique_ptr<std::string>& uuid, const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, const std::string& seInfo, int32_t targetSdkVersion, int64_t* _aidl_return) argument
447 migrateAppData(const std::unique_ptr<std::string>& uuid, const std::string& packageName, int32_t userId, int32_t flags) argument
507 clearAppData(const std::unique_ptr<std::string>& uuid, const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode) argument
587 destroyAppData(const std::unique_ptr<std::string>& uuid, const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode) argument
862 createUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, int32_t userSerial ATTRIBUTE_UNUSED, int32_t flags) argument
887 destroyUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, int32_t flags) argument
1143 collectQuotaStats(const std::string& device, int32_t userId, int32_t appId, struct stats* stats, struct stats* extStats) argument
1346 getAppSize(const std::unique_ptr<std::string>& uuid, const std::vector<std::string>& packageNames, int32_t userId, int32_t flags, int32_t appId, const std::vector<int64_t>& ceDataInodes, const std::vector<std::string>& codePaths, std::vector<int64_t>* _aidl_return) argument
1469 getUserSize(const std::unique_ptr<std::string>& uuid, int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, std::vector<int64_t>* _aidl_return) argument
1628 getExternalSize(const std::unique_ptr<std::string>& uuid, int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, std::vector<int64_t>* _aidl_return) argument
1782 setAppQuota(const std::unique_ptr<std::string>& uuid, int32_t userId, int32_t appId, int64_t cacheQuota) argument
1898 linkNativeLibraryDirectory( const std::unique_ptr<std::string>& uuid, const std::string& packageName, const std::string& nativeLibPath32, int32_t userId) argument
2171 restoreconAppData(const std::unique_ptr<std::string>& uuid, const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, const std::string& seInfo) argument
[all...]
/frameworks/base/services/core/java/com/android/server/vr/
H A DSettingsObserver.java61 * @param userId the user ID for which this setting has been restored.
63 void onSettingRestored(String prevValue, String newValue, int userId); argument
138 private void sendSettingRestored(final String prevValue, final String newValue, final int userId) { argument
140 l.onSettingRestored(prevValue, newValue, userId);

Completed in 888 milliseconds

1234567891011>>