/frameworks/base/services/core/java/com/android/server/pm/ |
CrossProfileAppsServiceImpl.java | 129 for (final int userId : enabledProfileIds) { 130 if (userId == callingUserId) { 133 if (!isPackageEnabled(callingPackage, userId)) { 136 targetProfiles.add(UserHandle.of(userId)); 144 private boolean isPackageEnabled(String packageName, @UserIdInt int userId) { 153 userId);
|
ShortcutUser.java | 65 private static final String KEY_USER_ID = "userId"; 70 final int userId; 73 private PackageWithUser(int userId, String packageName) { 74 this.userId = userId; 78 public static PackageWithUser of(int userId, String packageName) { 79 return new PackageWithUser(userId, packageName); 88 return packageName.hashCode() ^ userId; 98 return userId == that.userId && packageName.equals(that.packageName) [all...] |
/frameworks/base/services/core/java/com/android/server/webkit/ |
WebViewUpdateService.java | 69 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 80 PACKAGE_REMOVED, userId); 87 PACKAGE_CHANGED, userId); 93 ? PACKAGE_ADDED_REPLACED : PACKAGE_ADDED), userId); 96 mImpl.handleNewUser(userId); 99 mImpl.handleUserRemoved(userId);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
TaskWindowContainerController.java | 52 StackWindowController stackController, int userId, Rect bounds, int resizeMode, 55 this(taskId, listener, stackController, userId, bounds, resizeMode, 61 StackWindowController stackController, int userId, Rect bounds, int resizeMode, 78 final Task task = createTask(taskId, stack, userId, resizeMode, 88 Task createTask(int taskId, TaskStack stack, int userId, int resizeMode, 90 return new Task(taskId, stack, userId, mService, resizeMode, supportsPictureInPicture,
|
/frameworks/base/test-mock/src/android/test/mock/ |
MockPackageManager.java | 88 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) 185 public ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) 227 public List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId) { 353 public List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId) { 430 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { 442 int flags, int userId) { 459 public List<ResolveInfo> queryBroadcastReceiversAsUser(Intent intent, int flags, int userId) { 469 public ResolveInfo resolveServiceAsUser(Intent intent, int flags, int userId) { 480 public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { 487 Intent intent, int flags, int userId) { [all...] |
/system/vold/ |
VoldNativeService.cpp | 250 binder::Status VoldNativeService::onUserAdded(int32_t userId, int32_t userSerial) { 254 return translate(VolumeManager::Instance()->onUserAdded(userId, userSerial)); 257 binder::Status VoldNativeService::onUserRemoved(int32_t userId) { 261 return translate(VolumeManager::Instance()->onUserRemoved(userId)); 264 binder::Status VoldNativeService::onUserStarted(int32_t userId) { 268 return translate(VolumeManager::Instance()->onUserStarted(userId)); 271 binder::Status VoldNativeService::onUserStopped(int32_t userId) { 275 return translate(VolumeManager::Instance()->onUserStopped(userId)); 695 binder::Status VoldNativeService::createUserKey(int32_t userId, int32_t userSerial, 700 return translateBool(e4crypt_vold_create_user_key(userId, userSerial, ephemeral)) [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
UserSettings.java | 98 /** UserId of the user being removed */ 100 /** UserId of the user that was just added */ 419 private void onRemoveUserClicked(int userId) { 422 mRemovingUserId = userId; 444 private void onManageUserClicked(int userId, boolean newUser) { 446 if (userId == UserPreference.USERID_GUEST_DEFAULTS) { 457 UserInfo info = mUserManager.getUserInfo(userId); 460 extras.putInt(RestrictedProfileSettings.EXTRA_USER_ID, userId); 473 extras.putInt(UserDetailsSettings.EXTRA_USER_ID, userId); 483 private void onUserCreated(int userId) { [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
ApplicationsState.java | 123 // Map: userid => (Map: package name => AppEntry) 180 for (int userId : mUm.getProfileIdsWithDisabled(UserHandle.myUserId())) { 181 mEntriesMap.put(userId, new HashMap<String, AppEntry>()); 287 int userId = UserHandle.getUserId(info.uid); 288 final AppEntry entry = mEntriesMap.get(userId).get(info.packageName); 338 public AppEntry getEntry(String packageName, int userId) { 341 AppEntry entry = mEntriesMap.get(userId).get(packageName); 343 ApplicationInfo info = getAppInfoLocked(packageName, userId); 346 info = mIpm.getApplicationInfo(packageName, 0, userId); 361 private ApplicationInfo getAppInfoLocked(String pkg, int userId) { [all...] |
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
ManagedProfileTest.java | 307 private void runProfileTimeoutTest(String method, int userId) 310 method, userId); 625 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) 627 final String direction = (userId == mParentUserId) 636 "testCanReadAcrossProfiles", userId); 638 "testIsNotified", userId); 641 "testCannotReadAcrossProfiles", userId); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
SecurityControllerImpl.java | 89 // Key: userId, Value: whether the user has CACerts installed 185 private int getWorkProfileUserId(int userId) { 186 for (final UserInfo userInfo : mUserManager.getProfiles(userId)) { 255 int userId = getWorkProfileUserId(mCurrentUserId); 256 if (userId == UserHandle.USER_NULL) return false; 257 Boolean hasCACerts = mHasCACerts.get(userId); 400 protected Pair<Integer, Boolean> doInBackground(Integer... userId) { 402 UserHandle.of(userId[0]))) { 404 return new Pair<Integer, Boolean>(userId[0], hasCACerts); 408 () -> new CACertLoader().execute(userId[0]) [all...] |
UserInfoControllerImpl.java | 131 final int userId = userInfo.id; 152 Bitmap rawAvatar = um.getUserIcon(userId); 155 .setIcon(rawAvatar).setBadgeIfManagedUser(mContext, userId).bake(); 159 isGuest? UserHandle.USER_NULL : userId, 183 String userAccount = um.getUserAccount(userId);
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
AppsAsyncLoader.java | 79 int userId, 86 mUserId = userId; 302 return object1.userId - object2.userId; 437 public int userId; 451 int userId, 459 this.userId = userId; 487 public Builder setUserId(int userId) { 488 this.mUserId = userId; [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
AccountSyncFragment.java | 154 final int userId = mUserHandle.getIdentifier(); 160 authority, userId); 163 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); 167 if (!ContentResolver.getMasterSyncAutomaticallyAsUser(userId) || !syncOn) { 276 final int userId = mUserHandle.getIdentifier(); 277 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); 293 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, userId); 295 userId); 325 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId); 334 userId); [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
AppManagementFragment.java | 148 final int userId = UserHandle.getUserId(mEntry.info.uid); 149 mApplicationsState.removePackage(mPackageName, userId); 158 final int userId = UserHandle.getUserId(mEntry.info.uid); 159 mApplicationsState.requestSize(mPackageName, userId); 407 final int userId = UserHandle.getUserId(mEntry.info.uid); 408 mApplicationsState.requestSize(mPackageName, userId); 436 final int userId = UserHandle.getUserId(mEntry.info.uid); 437 mApplicationsState.requestSize(mPackageName, userId); 458 final int userId = UserHandle.getUserId(mEntry.info.uid); 459 mEntry = mApplicationsState.getEntry(mPackageName, userId); [all...] |
/packages/services/Car/service/src/com/android/car/ |
SystemActivityMonitoringService.java | 69 && this.stackInfo.userId == taskInfo.stackInfo.userId; 75 "TaskInfoContainer [topActivity=%s, taskId=%d, stackId=%d, userId=%d", 76 topActivity, taskId, stackInfo.stackId, stackInfo.userId); 202 int userId = 0; 209 userId = info.userId; 212 Log.d(CarLog.TAG_AM, "User id is " + userId); 237 Log.i(CarLog.TAG_AM, "restarting root activity with user id " + userId); 239 mContext.startActivityAsUser(rootActivityIntent, new UserHandle(userId)); [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
NotificationManagerService.java | 455 protected void readDefaultApprovedServices(int userId) { 465 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userId); 469 userId, true); 490 readDefaultAssistant(userId); 493 protected void readDefaultAssistant(int userId) { 502 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userId); 506 cn, userId, true); 688 public void onClearAll(int callingUid, int callingPid, int userId) { 690 cancelAllLocked(callingUid, callingPid, userId, REASON_CANCEL_ALL, null, [all...] |
CalendarTracker.java | 216 final int userId = mUserContext.getUserId(); 218 if (DEBUG) Log.d(TAG, "unregister content observer u=" + userId); 222 if (DEBUG) Log.d(TAG, "mRegistered = " + registered + " u=" + userId); 224 if (DEBUG) Log.d(TAG, "register content observer u=" + userId); 225 cr.registerContentObserver(Instances.CONTENT_URI, true, mObserver, userId); 226 cr.registerContentObserver(Events.CONTENT_URI, true, mObserver, userId); 227 cr.registerContentObserver(Calendars.CONTENT_URI, true, mObserver, userId);
|
/frameworks/base/services/core/java/com/android/server/am/ |
PendingIntentRecord.java | 75 final int userId; 92 userId = _userId; 126 if (userId != other.userId){ 171 + " flags=0x" + Integer.toHexString(flags) + " u=" + userId + "}"; 322 int userId = key.userId; 323 if (userId == UserHandle.USER_CURRENT) { 324 userId = owner.mUserController.getCurrentOrTargetUserId(); 348 resultTo, mergedOptions, userId, [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
AppStandbyControllerTests.java | 181 boolean isPackageEphemeral(int userId, String packageName) { 208 int userId) { 330 public void onAppIdleStateChanged(String packageName, int userId, boolean idle, 789 private String getAdminAppsStr(int userId) { 790 return getAdminAppsStr(userId, mController.getActiveAdminAppsForTest(userId)); 793 private String getAdminAppsStr(int userId, Set<String> adminApps) { 794 return "admin apps for u" + userId + ": " 798 private void assertIsActiveAdmin(String adminApp, int userId) { 799 assertTrue(adminApp + " should be an active admin; " + getAdminAppsStr(userId), [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
Utils.java | 54 public static void updateLocationEnabled(Context context, boolean enabled, int userId, 58 userId); 62 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF, userId); 69 intent, UserHandle.of(userId), android.Manifest.permission.WRITE_SECURE_SETTINGS); 73 wrapper.setLocationEnabledForUser(enabled, UserHandle.of(userId)); 76 public static boolean updateLocationMode(Context context, int oldMode, int newMode, int userId, 80 userId); 85 intent, UserHandle.of(userId), android.Manifest.permission.WRITE_SECURE_SETTINGS); 87 context.getContentResolver(), Settings.Secure.LOCATION_MODE, newMode, userId);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
UidDetailProvider.java | 149 final int userId = UserHandle.getUserId(uid); 150 UserHandle userHandle = new UserHandle(userId); 154 0 /* no flags */, userId); 158 new UserHandle(userId)); 167 0 /* no flags */, userId);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
RecentsTaskLoadPlan.java | 113 sourceComponent, t.userId, t.lastActiveTime); 142 if (mTmpLockedUsers.indexOfKey(t.userId) < 0) { 143 mTmpLockedUsers.put(t.userId, mKeyguardManager.isDeviceLocked(t.userId)); 145 boolean isLocked = mTmpLockedUsers.get(t.userId);
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
KeyguardServiceWrapper.java | 212 public void setCurrentUser(int userId) { 213 mKeyguardStateMonitor.setCurrentUser(userId); 215 mService.setCurrentUser(userId); 265 public boolean isSecure(int userId) { 266 return mKeyguardStateMonitor.isSecure(userId);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
FakeGateKeeperService.java | 171 public void clearSecureUserId(int userId) throws RemoteException { 172 sidMap.remove(userId); 180 public long getSecureUserId(int userId) throws RemoteException { 181 if (sidMap.containsKey(userId)) { 182 return sidMap.get(userId);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
InstallerTest.java | 98 final int userId = UserHandle.getUserId(app.uid); 120 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, 0, 125 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, Installer.FLAG_USE_QUOTA, 173 private int[] getAppIds(int userId) { 176 PackageManager.MATCH_UNINSTALLED_PACKAGES, userId)) {
|