/frameworks/base/core/java/android/hardware/display/ |
BrightnessChangeEvent.java | 46 public final int userId; 78 int userId, float[] luxValues, long[] luxTimestamps, float batteryLevel, 84 this.userId = userId; 101 this.userId = other.userId; 117 userId = source.readInt(); 149 dest.writeInt(userId); 195 /** {@see BrightnessChangeEvent#userId} */ 196 public Builder setUserId(int userId) { [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternChecker.java | 60 * @param userId The user to check against the pattern. 66 final int userId, 82 return utils.verifyPattern(patternCopy, challenge, userId); 103 * @param userId The user to check against the pattern. 108 final int userId, 124 return utils.checkPattern(patternCopy, userId, callback::onEarlyMatched); 151 * @param userId The user to check against the pattern. 157 final int userId, 165 return utils.verifyPassword(password, challenge, userId); 187 * @param userId The user to check against the pattern [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
DefaultAppInfo.java | 39 public final int userId; 60 userId = uid; 70 userId = UserHandle.myUserId(); 85 componentName.getPackageName(), 0, userId); 106 componentName.getPackageName(), 0, userId); 108 return factory.getBadgedIcon(componentInfo, appInfo, userId); 119 packageItemInfo.packageName, 0, userId); 120 return factory.getBadgedIcon(packageItemInfo, appInfo, userId); 143 componentName, 0, userId); 146 componentName, 0, userId); [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
SystemAppsSnapshot.java | 73 * @param userId the user id for which the snapshot is requested. 75 public boolean hasSnapshot(int userId) { 76 return getSystemAppsFile(mContext, userId).exists(); 82 * @param userId the user id for which the snapshot is requested. 84 public Set<String> getSnapshot(int userId) { 85 return readSystemApps(getSystemAppsFile(mContext, userId)); 91 * @param userId the user id for which the snapshot should be taken. 93 public void takeNewSnapshot(int userId) { 94 final File systemAppsFile = getSystemAppsFile(mContext, userId); 96 writeSystemApps(mUtils.getCurrentSystemApps(mIPackageManager, userId), systemAppsFile) [all...] |
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
ManagedServicesTest.java | 148 for (int userId : mExpectedPrimary.get(approvalLevel).keySet()) { 151 mExpectedPrimary.get(approvalLevel).get(userId), 152 Build.VERSION_CODES.O, userId); 156 for (int userId : mExpectedSecondary.get(approvalLevel).keySet()) { 158 mExpectedSecondary.get(approvalLevel).get(userId), Build.VERSION_CODES.O, 159 userId); 198 for (int userId : mExpectedPrimary.get(approvalLevel).keySet()) { 201 mExpectedPrimary.get(approvalLevel).get(userId), 202 Build.VERSION_CODES.O, userId); 205 for (int userId : mExpectedSecondary.get(approvalLevel).keySet()) [all...] |
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
UserLifecycleTests.java | 90 for (int userId : mUsersToRemove) { 92 mUm.removeUser(userId); 242 private void switchUser(int userId) throws Exception { 244 registerUserSwitchObserver(latch, null, userId); 245 mAm.switchUser(userId); 249 private void stopUser(int userId, boolean force) throws Exception { 251 mIam.stopUser(userId, force /* force */, new IStopUserCallback.Stub() { 253 public void userStopped(int userId) throws RemoteException { 258 public void userStopAborted(int userId) throws RemoteException { 265 final CountDownLatch bootCompleteLatch, final int userId) throws Exception [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
DisplayAdjustmentUtils.java | 59 public static void applyDaltonizerSetting(Context context, int userId) { 67 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) { 69 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DEFAULT_DISPLAY_DALTONIZER, userId); 88 public static void applyInversionSetting(Context context, int userId) { 95 Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0;
|
/packages/apps/Settings/src/com/android/settings/password/ |
ChooseLockSettingsHelper.java | 101 * @param userId The userId for whom the lock should be confirmed. 106 boolean returnCredentials, int userId) { 108 returnCredentials, false, false, 0, Utils.enforceSameOwner(mActivity, userId)); 143 * @param userId The userId for whom the lock should be confirmed. 149 boolean returnCredentials, boolean external, int userId) { 151 returnCredentials, external, false, 0, Utils.enforceSameOwner(mActivity, userId)); 178 * @param userId The userId for whom the lock should be confirmed [all...] |
ConfirmDeviceCredentialActivity.java | 73 int userId = Utils.getCredentialOwnerUserId(this); 76 userId = Utils.getUserIdFromBundle(this, intent.getExtras()); 81 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(userId); 85 title = getTitleFromOrganizationName(userId); 96 && !lockPatternUtils.isSeparateProfileChallengeEnabled(userId)) { 101 0L /* challenge */, userId); 104 title, details, false /* returnCredentials */, true /* isExternal */, userId); 117 private String getTitleFromOrganizationName(int userId) { 121 ? dpm.getOrganizationNameForUser(userId) : null;
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
CompanionDeviceManagerService.java | 149 int userId = getChangingUserId(); 150 if (!ArrayUtils.isEmpty(readAllAssociations(userId, packageName))) { 151 updateSpecialAccessPermissionForAssociatedPackage(packageName, userId); 224 int userId = getCallingUserId(); 225 checkUsesFeature(callingPackage, userId); 232 UserHandle.of(userId)); 250 public List<String> getAssociations(String callingPackage, int userId) 252 checkCallerIsSystemOr(callingPackage, userId); 255 readAllAssociations(userId, callingPackage), 273 private void checkCallerIsSystemOr(String pkg, int userId) throws RemoteException [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
RecentTasks.java | 287 boolean isRecentsComponentHomeActivity(int userId) { 289 .getDefaultHomeActivity(userId); 329 * Loads the persistent recentTasks for {@code userId} into this list from persistent storage. 332 * @param userId the user Id 334 void loadUserRecentsLocked(int userId) { 335 if (mUsersWithRecentsLoaded.get(userId)) { 341 loadPersistedTaskIdsForUserLocked(userId); 346 if (task.userId == userId && shouldPersistTaskLocked(task)) { 351 Slog.i(TAG, "Loading recents for user " + userId + " into memory.") [all...] |
LockTaskController.java | 307 if (task.isActivityTypeRecents() && isRecentsAllowed(task.userId)) { 312 if (isKeyguardAllowed(task.userId) && isEmergencyCallTask(task)) { 319 private boolean isRecentsAllowed(int userId) { 320 return (getLockTaskFeaturesForUser(userId) 324 private boolean isKeyguardAllowed(int userId) { 325 return (getLockTaskFeaturesForUser(userId) 464 mHandler.post(() -> performStopLockTask(task.userId)); 469 private void performStopLockTask(int userId) { 472 setStatusBarState(LOCK_TASK_MODE_NONE, userId); 473 setKeyguardState(LOCK_TASK_MODE_NONE, userId); [all...] |
ProviderMap.java | 73 ContentProviderRecord getProviderByName(String name, int userId) { 84 return getProvidersByName(userId).get(name); 91 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { 102 return getProvidersByClass(userId).get(name); 113 final int userId = UserHandle.getUserId(record.appInfo.uid); 114 getProvidersByName(userId).put(name, record); 126 final int userId = UserHandle.getUserId(record.appInfo.uid); 127 getProvidersByClass(userId).put(name, record); 131 void removeProviderByName(String name, int userId) { 137 if (userId < 0) throw new IllegalArgumentException("Bad user " + userId) [all...] |
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 108 private UserServices<V> findOrCreateUserLocked(int userId) { 109 return findOrCreateUserLocked(userId, true); 113 private UserServices<V> findOrCreateUserLocked(int userId, boolean loadFromFileIfNew) { 114 UserServices<V> services = mUserServices.get(userId); 117 mUserServices.put(userId, services); 121 UserInfo user = getUser(userId); 177 private final void handlePackageEvent(Intent intent, int userId) { 204 generateServicesMap(uids, userId); 229 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1); 231 Slog.d(TAG, "u" + userId + " removed - cleaning up") [all...] |
/frameworks/base/core/java/android/os/ |
UserHandle.java | 203 public static UserHandle of(@UserIdInt int userId) { 204 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId); 208 * Returns the uid that is composed from the userId and the appId. 211 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { 213 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); 229 * Returns the gid shared between all apps with this userId. 232 public static int getUserGid(@UserIdInt int userId) { 233 return getUid(userId, Process.SHARED_USER_GID); 242 public static int getSharedAppGid(int userId, int appId) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
BaseShortcutManagerTest.java | 214 String packageName, @UserIdInt int userId) { 215 return BaseShortcutManagerTest.this.injectGetActivitiesWithMetadata(packageName, userId); 238 public String injectGetLocaleTagsForUser(@UserIdInt int userId) { 304 int injectGetPackageUid(String packageName, int userId) { 305 return getInjectedPackageInfo(packageName, userId, false).applicationInfo.uid; 314 File injectUserDataPath(@UserIdInt int userId) { 315 return new File(mInjectedFilePathRoot, "user-" + userId); 334 boolean hasShortcutHostPermission(@NonNull String callingPackage, int userId, 336 return mDefaultLauncherChecker.test(callingPackage, userId); 345 ComponentName getDefaultLauncher(@UserIdInt int userId) { [all...] |
/frameworks/native/cmds/installd/binder/android/os/ |
IInstalld.aidl | 21 void createUserData(@nullable @utf8InCpp String uuid, int userId, int userSerial, int flags); 22 void destroyUserData(@nullable @utf8InCpp String uuid, int userId, int flags); 25 int userId, int flags, int appId, in @utf8InCpp String seInfo, int targetSdkVersion); 27 int userId, int flags, int appId, @utf8InCpp String seInfo); 29 int userId, int flags); 31 int userId, int flags, long ceDataInode); 33 int userId, int flags, long ceDataInode); 38 int userId, int flags, int appId, in long[] ceDataInodes, 40 long[] getUserSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); 41 long[] getExternalSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds) [all...] |
/cts/hostsidetests/media/src/android/media/session/cts/ |
MediaSessionManagerHostTest.java | 77 for (int userId : mNotificationListeners) { 78 setAllowGetActiveSessionForTest(false, userId); 243 private void runTestAsUser(String testMethodName, int userId) 246 testMethodName, userId); 259 private void setAllowGetActiveSessionForTest(boolean allow, int userId) throws Exception { 263 + notificationListener + " " + userId; 266 mNotificationListeners.add(userId); 270 private void sendControlCommand(int userId, int flag) throws Exception { 271 executeShellCommand(MediaSessionTestHelperConstants.buildControlCommand(userId, flag));
|
/frameworks/base/services/core/java/com/android/server/vr/ |
EnabledComponentsObserver.java | 159 public void onSettingRestored(String prevValue, String newValue, int userId) { 193 * @param userId the user ID for the component to check. 196 public int isValid(ComponentName component, int userId) { 198 ArraySet<ComponentName> installedComponents = mInstalledSet.get(userId); 202 ArraySet<ComponentName> validComponents = mEnabledSet.get(userId); 213 * @param userId ID of the user to check. 216 public ArraySet<ComponentName> getInstalled(int userId) { 218 ArraySet<ComponentName> ret = mInstalledSet.get(userId); 229 * @param userId ID of the user to check. 232 public ArraySet<ComponentName> getEnabled(int userId) { [all...] |
/frameworks/base/core/java/android/os/storage/ |
IStorageManager.aidl | 171 void createUserKey(int userId, int serialNumber, boolean ephemeral) = 61; 172 void destroyUserKey(int userId) = 62; 173 void unlockUserKey(int userId, int serialNumber, in byte[] token, in byte[] secret) = 63; 174 void lockUserKey(int userId) = 64; 175 boolean isUserKeyUnlocked(int userId) = 65; 176 void prepareUserStorage(in String volumeUuid, int userId, int serialNumber, int flags) = 66; 177 void destroyUserStorage(in String volumeUuid, int userId, int flags) = 67; 179 void addUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 70; 180 void fixateNewestUserKeyAuth(int userId) = 71;
|
/frameworks/base/cmds/appwidget/src/com/android/commands/appwidget/ |
AppWidget.java | 88 int userId = UserHandle.USER_SYSTEM; 95 userId = UserHandle.USER_CURRENT; 97 userId = Integer.parseInt(user); 107 return new SetBindAppWidgetPermissionCommand(packageName, granted, userId); 142 int userId) { 145 mUserId = userId;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
UserHandleTest.java | 101 private static int multiuser_get_uid(int userId, int appId) { 102 return getUid(userId, appId); 105 private static int multiuser_get_cache_gid(int userId, int appId) { 106 return getCacheAppGid(userId, appId); 109 private static int multiuser_get_shared_gid(int userId, int appId) { 110 return getSharedAppGid(userId, appId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
WorkLockActivityController.java | 54 private void startWorkChallengeInTask(int taskId, int userId) { 63 .putExtra(Intent.EXTRA_USER_ID, userId) 90 private int startActivityAsUser(Intent intent, Bundle options, int userId) { 103 userId /*user*/); 113 public void onTaskProfileLocked(int taskId, int userId) { 114 startWorkChallengeInTask(taskId, userId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
RecentsSystemUser.java | 57 final int userId) { 67 userId); 70 mNonSystemUserRecents.put(userId, callback); 72 EventLogConstants.SYSUI_RECENTS_CONNECTION_SYSTEM_REGISTER_USER, userId); 78 public IRecentsNonSystemUserCallbacks getNonSystemUserRecentsForUser(int userId) { 79 return mNonSystemUserRecents.get(userId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationLockscreenUserManager.java | 79 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 87 if (userId != mCurrentUserId && isCurrentProfile(userId)) { 101 Log.v(TAG, "userId " + mCurrentUserId + " is in the house"); 261 public boolean isCurrentProfile(int userId) { 263 return userId == UserHandle.USER_ALL || mCurrentProfiles.get(userId) != null; 271 private boolean shouldTemporarilyHideNotifications(int userId) { 272 if (userId == UserHandle.USER_ALL) { 273 userId = mCurrentUserId [all...] |