/frameworks/base/telecomm/java/android/telecom/ |
DefaultDialerManager.java | 155 public static List<String> getInstalledDialerApplications(Context context, int userId) { 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);
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountSyncPreferenceController.java | 106 final int userId = mUserHandle.getIdentifier(); 107 final SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser(userId); 117 ContentResolver.getIsSyncableAsUser(mAccount, sa.authority, userId); 121 mAccount, sa.authority, userId); 123 !ContentResolver.getMasterSyncAutomaticallyAsUser(userId);
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationEnabler.java | 166 RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { 168 mContext, UserManager.DISALLOW_SHARE_LOCATION, userId); 172 mContext, UserManager.DISALLOW_CONFIG_LOCATION, userId); 177 boolean hasShareLocationRestriction(int userId) { 179 mContext, UserManager.DISALLOW_SHARE_LOCATION, userId);
|
/system/vold/ |
VolumeManager.h | 92 int onUserAdded(userid_t userId, int userSerialNumber); 93 int onUserRemoved(userid_t userId); 94 int onUserStarted(userid_t userId); 95 int onUserStopped(userid_t userId); 135 int linkPrimary(userid_t userId);
|
/frameworks/base/services/core/java/com/android/server/content/ |
SyncStorageEngine.java | 187 final int userId; 190 public EndPoint(Account account, String provider, int userId) { 193 this.userId = userId; 203 if (userId != spec.userId 204 && userId != UserHandle.USER_ALL 205 && spec.userId != UserHandle.USER_ALL) { 228 sb.append(":u" + userId); 395 boolean isAccountValid(Account account, int userId) { [all...] |
SyncManager.java | 353 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { 356 if (accounts[i].userId == userId 450 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 451 if (userId == UserHandle.USER_NULL) return; 454 onUserRemoved(userId); 456 onUserUnlocked(userId); 458 onUserStopped(userId); 599 scheduleSync(info.account, info.userId, reason, info.provider, extras, 628 public void onServiceChanged(SyncAdapterType type, int userId, boolean removed) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
RegisteredServicesCacheTest.java | 199 private void assertNotEmptyFileCreated(TestServicesCache cache, int userId) { 200 File dir = new File(cache.getUserSystemDirectory(userId), 228 protected List<ResolveInfo> queryIntentServices(int userId) { 230 .get(userId, new HashMap<ResolveInfo, ServiceInfo<TestServiceType>>()); 235 protected File getUserSystemDirectory(int userId) { 236 File dir = new File(mDataDir, "users/" + userId); 247 protected UserInfo getUser(int userId) { 249 if (user.id == userId) { 261 void addServiceForQuerying(int userId, ResolveInfo resolveInfo, 263 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices.get(userId); [all...] |
/frameworks/native/cmds/installd/ |
InstalldNativeService.h | 43 binder::Status createUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, 45 binder::Status destroyUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, 49 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 52 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 55 const std::string& packageName, int32_t userId, int32_t flags); 57 const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode); 59 const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode); 64 const std::vector<std::string>& packageNames, int32_t userId, int32_t flags, 68 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, 71 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds [all...] |
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
BaseHostJUnit4Test.java | 164 * @param userId the user id of the user where to install the apk. 168 String apkFileName, boolean grantPermission, int userId, String... options) 170 installPackageAsUser(getDevice(), apkFileName, grantPermission, userId, options); 179 * @param userId the user id of the user where to install the apk. 186 int userId, 195 installer.setUserId(userId); 248 * @param userId the id of the user to run the test against. can be null. 253 String pkgName, String testClassName, Integer userId, Long testTimeoutMs) 261 userId, 377 * @param userId the id of the user to run the test against. can be null [all...] |
/frameworks/base/cmds/am/src/com/android/commands/am/ |
Am.java | 87 int userId; 89 userId = UserHandle.USER_ALL; 91 userId = UserHandle.USER_CURRENT; 93 userId = Integer.parseInt(arg); 95 return userId; 178 instrument.userId = parseUserArg(nextArgRequired()); 187 if (instrument.userId == UserHandle.USER_ALL) {
|
/frameworks/base/core/java/android/app/ |
KeyguardManager.java | 147 CharSequence title, CharSequence description, int userId) { 148 if (!isDeviceSecure(userId)) return null; 152 intent.putExtra(Intent.EXTRA_USER_ID, userId); 418 public boolean isDeviceLocked(int userId) { 420 return mTrustManager.isDeviceLocked(userId); 443 public boolean isDeviceSecure(int userId) { 445 return mTrustManager.isDeviceSecure(userId);
|
WallpaperManager.java | 308 * @param userId Owner of the wallpaper or UserHandle.USER_ALL 311 @Nullable Handler handler, int userId) { 315 mService.registerWallpaperColorsCallback(this, userId); 330 * @param userId Owner of the wallpaper or UserHandle.USER_ALL 333 int userId) { 340 mService.unregisterWallpaperColorsCallback(this, userId); 350 public void onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) { 365 listener.first.onColorsChanged(colors, which, userId); 372 WallpaperColors getWallpaperColors(int which, int userId) { 379 return mService.getWallpaperColors(which, userId); [all...] |
/packages/apps/Settings/src/com/android/settings/enterprise/ |
EnterprisePrivacyFeatureProviderImpl.java | 174 final int userId = getManagedProfileUserId(); 175 if (userId == UserHandle.USER_NULL) { 178 final ComponentName profileOwner = mDpm.getProfileOwnerAsUser(userId); 182 return mDpm.getMaximumFailedPasswordsForWipe(profileOwner, userId); 214 final int userId = getManagedProfileUserId(); 215 if (userId == UserHandle.USER_NULL) { 218 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(userId));
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 67 * @param userId the userId of the sample SyncAdapter user object 72 public static ContactOperations createNewContact(Context context, long userId, 74 return new ContactOperations(context, userId, accountName, isSyncOperation, batchOperation); 100 public ContactOperations(Context context, long userId, String accountName, 105 mValues.put(RawContacts.SOURCE_ID, userId); 219 * @param userId the userId of the sample SyncAdapter user object 222 public ContactOperations addProfileAction(long userId) { 224 if (userId != 0) [all...] |
/bionic/tools/bionicbb/ |
tasks.py | 94 labels = gmail_service.users().labels().list(userId='me').execute() 104 msg = msg_service.get(userId='me', id=msg['id']).execute() 106 msg_service.trash(userId='me', id=msg['id']).execute()
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
FingerprintManager.java | 172 public AuthenticationResult(CryptoObject crypto, Fingerprint fingerprint, int userId) { 175 mUserId = userId; 194 * Obtain the userId for which this fingerprint was authenticated. 407 * @param userId the user ID that the fingerprint hardware will authenticate for. 412 int flags, @NonNull AuthenticationCallback callback, Handler handler, int userId) { 431 mService.authenticate(mToken, sessionId, userId, mServiceReceiver, flags, 447 * @param userId the user ID that the fingerprint hardware will authenticate for. 449 private void authenticate(int userId, 469 mService.authenticate(mToken, sessionId, userId, mServiceReceiver, 562 * @param userId the user to whom this fingerprint will belong t [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
RestrictedLockUtilsTest.java | 286 private UserInfo setUpUser(int userId, ComponentName[] admins) { 287 UserInfo userInfo = new UserInfo(userId, "primary", 0); 288 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); 289 setUpActiveAdmins(userId, admins); 293 private UserInfo setUpManagedProfile(int userId, ComponentName[] admins) { 294 UserInfo userInfo = new UserInfo(userId, "profile", UserInfo.FLAG_MANAGED_PROFILE); 295 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); 296 setUpActiveAdmins(userId, admins); 300 private void setUpActiveAdmins(int userId, ComponentName[] activeAdmins) { 301 when(mDevicePolicyManager.getActiveAdminsAsUser(userId)) [all...] |
/frameworks/base/services/core/java/com/android/server/om/ |
IdmapManager.java | 52 @NonNull final PackageInfo overlayPackage, int userId) { 53 // unused userId: see comment in OverlayManagerServiceImpl.removeIdmapIfPossible 71 boolean removeIdmap(@NonNull final OverlayInfo oi, final int userId) { 72 // unused userId: see comment in OverlayManagerServiceImpl.removeIdmapIfPossible 86 // unused OverlayInfo.userId: see comment in OverlayManagerServiceImpl.removeIdmapIfPossible 90 boolean idmapExists(@NonNull final PackageInfo overlayPackage, final int userId) { 91 // unused userId: see comment in OverlayManagerServiceImpl.removeIdmapIfPossible
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
StatusBarManagerService.java | 97 int userId; 103 public DisableRecord(int userId, IBinder token) { 104 this.userId = userId; 116 disableForUser(0, token, pkg, userId); 117 disable2ForUser(0, token, pkg, userId); 152 return String.format("userId=%d what1=0x%08X what2=0x%08X pkg=%s token=%s", 153 userId, what1, what2, pkg, token); 605 public void disableForUser(int what, IBinder token, String pkg, int userId) { 609 disableLocked(userId, what, token, pkg, 1) [all...] |
/frameworks/base/services/core/java/com/android/server/vr/ |
SettingsObserver.java | 61 * @param userId the user ID for which this setting has been restored. 63 void onSettingRestored(String prevValue, String newValue, int userId); 138 private void sendSettingRestored(final String prevValue, final String newValue, final int userId) { 140 l.onSettingRestored(prevValue, newValue, userId);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
UserProvisioningStateHelper.java | 152 private void setUserProvisioningState(int state, int userId) { 153 ProvisionLogger.logi("Setting userProvisioningState for user " + userId + " to: " + state); 154 mDevicePolicyManager.setUserProvisioningState(state, userId);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
ManagedProfileTest.java | 76 int userId = user.getUserHandle().getIdentifier(); 77 um.removeUserEvenWhenDisallowed(userId); 78 Log.e(TAG, "remove managed profile user: " + userId);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
PrivateVolumeSettings.java | 288 private void addDetailItems(PreferenceGroup category, boolean showShared, int userId) { 291 addItem(category, itemsToAdd[i], null, userId); 295 private void addItem(PreferenceGroup group, int titleRes, CharSequence title, int userId) { 301 if (userId != UserHandle.myUserId()) { 321 item.userHandle = userId; 468 final int userId = (pref instanceof StorageItemPreference ? 511 mSharedVolume, userId); 530 intent.putExtra(Intent.EXTRA_USER_ID, userId); 563 final int userId = item.userHandle; 578 updatePreference(item, details.appsSize.get(userId)); [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
UserRestrictionsUtils.java | 336 public static boolean canProfileOwnerChange(String restriction, int userId) { 339 && !(userId != UserHandle.USER_SYSTEM 429 public static void applyUserRestrictions(Context context, int userId, 436 applyUserRestriction(context, userId, key, newValue); 447 private static void applyUserRestriction(Context context, int userId, String key, 450 Log.d(TAG, "Applying user restriction: userId=" + userId 480 + subInfo.getSubscriptionId(), "0", userId); 486 android.provider.Settings.Global.DATA_ROAMING, "0", userId); 494 userId); [all...] |
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
DexManager.java | 263 * Notifies that a new package was installed for {@code userId}. 264 * {@code userId} must not be {@code UserHandle.USER_ALL}. 266 * @throws IllegalArgumentException if {@code userId} is {@code UserHandle.USER_ALL}. 268 public void notifyPackageInstalled(PackageInfo pi, int userId) { 269 if (userId == UserHandle.USER_ALL) { 273 cachePackageInfo(pi, userId); 282 cachePackageCodeLocation(packageName, baseCodePath, splitCodePaths, null, /*userId*/ -1); 293 * Notifies that the user {@code userId} data for package {@code packageName} 296 * {@code userId} is allowed to be {@code UserHandle.USER_ALL} in which case 299 public void notifyPackageDataDestroyed(String packageName, int userId) { [all...] |