/aosp14/frameworks/base/core/java/android/os/ |
H A D | IUserManager.aidl | 41 int getProfileParentId(int userId); in getProfileParentId() argument 52 void setUserEnabled(int userId); in setUserEnabled() argument 53 void setUserAdmin(int userId); in setUserAdmin() argument 54 void revokeUserAdmin(int userId); in revokeUserAdmin() argument 56 boolean removeUser(int userId); in removeUser() argument 78 UserInfo getUserInfo(int userId); in getUserInfo() argument 85 boolean isRestricted(int userId); in isRestricted() argument 119 boolean isDemoUser(int userId); in isDemoUser() argument 120 boolean isAdminUser(int userId); in isAdminUser() argument 131 boolean hasBadge(int userId); in hasBadge() argument [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | PerformanceTracker.java | 69 createUserEntryIfNecessary(userId); in incrementAuthForUser() 79 createUserEntryIfNecessary(userId); in incrementCryptoAuthForUser() 89 createUserEntryIfNecessary(userId); in incrementAcquireForUser() 120 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAccept : 0; in getAcceptForUser() 124 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mReject : 0; in getRejectForUser() 128 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcquire : 0; in getAcquireForUser() 132 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcceptCrypto : 0; in getAcceptCryptoForUser() 136 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mRejectCrypto : 0; in getRejectCryptoForUser() 140 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcquireCrypto : 0; in getAcquireCryptoForUser() 144 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mTimedLockout : 0; in getTimedLockoutForUser() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | BackupManagerService.java | 283 if (userId == UserHandle.USER_SYSTEM || userId == mDefaultBackupUserId) { in deactivateBackupForUserLocked() 300 if (userId == UserHandle.USER_SYSTEM || userId == mDefaultBackupUserId) { in activateBackupForUserLocked() 774 return isUserReadyForBackup(userId) && isBackupEnabled(userId); in isBackupEnabledForUser() 926 int userId, in acknowledgeFullBackupOrRestoreForUser() argument 970 return (isUserReadyForBackup(userId)) ? getCurrentTransport(userId) : null; in getCurrentTransportForUser() 1015 return (isUserReadyForBackup(userId)) ? listAllTransports(userId) : null; in listAllTransportsForUser() 1069 int userId, in updateTransportAttributesForUser() argument 1078 userId, in updateTransportAttributesForUser() 1197 return isUserReadyForBackup(userId) ? getConfigurationIntent(userId, transport) in getConfigurationIntentForUser() 1224 return isUserReadyForBackup(userId) ? getDestinationString(userId, transport) in getDestinationStringForUser() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverableKeyStoreDbTest.java | 81 int userId = 12; in insertKey_replacesOldKey() local 114 int userId = 6; in insertKey_allowsTwoUidsToHaveSameAlias() local 140 int userId = 6; in removeKey_removesAKey() local 165 int userId = 12; in getKey_returnsInsertedKey() local 188 int userId = 12; in getAllKeys_getsKeysWithUserIdAndGenerationId() local 226 int userId = 12; in getAllKeys_doesNotReturnKeysWithBadGenerationId() local 260 int userId = 42; in getPlatformKeyGenerationId_returnsGenerationId() local 274 int userId = 42; in setPlatformKeyGenerationId_replacesOldEntry() local 283 int userId = 42; in getUserSerialNumbers_returnsSerialNumbers() local 297 int userId = 42; in getUserSerialNumbers_returnsMinusOneIfNoEntry() local [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternUtils.java | 264 public void userPresent(int userId) { in userPresent() argument 480 long challenge, int userId) { in verifyGatekeeperPasswordHandle() argument 570 int userId) { in getPasswordHistoryHashFactor() argument 707 if (isSecure(userId)) { in isLockScreenDisabled() 990 private String getSalt(int userId) { in getSalt() argument 1138 if (isSpecialUserId(userId)) { in setLockoutAttemptDeadline() 1298 int userId) { in requireStrongAuth() argument 1778 int userId) { in handleStrongAuthRequiredChanged() argument 1791 int userId) { in handleIsNonStrongBiometricAllowedChanged() argument 1806 int userId) { [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
H A D | UserLifecycleTests.java | 186 removeUser(userId); in createUser() 200 removeUser(userId); in createUser_realistic() 221 removeUser(userId); in createAndStartUser() 373 removeUser(userId); in startUser_startedTwiceBefore() 436 removeUser(userId); in startAndUnlockUser_startedTwiceBefore() 549 attestFalse("Failed to stop user " + userId, mAm.isUserRunning(userId)); in switchUser_stopped_realistic() 552 removeUser(userId); in switchUser_stopped_realistic() 695 removeUser(userId); in stopUser_realistic() 919 removeUser(userId); in managedProfileUnlock_stopped_realistic() 1177 removeUser(userId); in managedProfileStopped_realistic() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationHistoryManager.java | 135 onUserStopped(userId); in onUserRemoved() 186 + userId); in deleteNotificationHistoryItem() 202 + userId); in deleteConversations() 218 + userId); in deleteNotificationChannel() 262 for (int userId : userIds) { in readNotificationHistory() 316 mHistoryEnabled.put(userId, false); in disableHistory() 317 mUserState.put(userId, null); in disableHistory() 322 int userId) { in getUserHistoryAndInitializeIfNeededLocked() argument 323 if (!mHistoryEnabled.get(userId)) { in getUserHistoryAndInitializeIfNeededLocked() 327 mUserState.put(userId, null); in getUserHistoryAndInitializeIfNeededLocked() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserVisibilityMediator.java | 226 userId); in assignUserToDisplayOnStart() 242 ? userId in assignUserToDisplayOnStart() 279 mCurrentUserId = userId; in assignUserToDisplayOnStart() 464 if (userId == mCurrentUserId) { in canAssignUserToDisplayLocked() 504 if (userId == assignedUserId) { in canAssignUserToDisplayLocked() 537 if (!isUserVisible(userId)) { in assignUserToExtraDisplay() 570 userId); in assignUserToExtraDisplay() 586 userId, displayId); in unassignUserFromExtraDisplay() 885 return userId; in getUserAssignedToDisplay() 1093 switch (userId) { in isSpecialUserId() [all …]
|
H A D | PackageManagerInternalBase.java | 245 userId); in removeNonSystemPackageSuspensions() local 309 int filterCallingUid, int userId) { in queryIntentActivities() argument 311 filterCallingUid, userId); in queryIntentActivities() 327 int userId) { in queryIntentServices() argument 336 int userId) { in getHomeActivitiesAsUser() argument 417 verificationBundle, userId); in requestInstantAppResolutionPhaseTwo() 521 @UserIdInt int userId) { in canAccessComponent() argument 590 @UserIdInt int userId) { in forEachInstalledPackage() argument 617 String packageName, int userId) { in getApplicationEnabledState() argument 702 int callingUid, int userId) { in isPackageFrozen() argument [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsStrongAuth.java | 191 if (userId == UserHandle.USER_ALL) { in handleRequireStrongAuth() 295 .get(userId); in handleScheduleNonStrongBiometricTimeout() 331 .get(userId); in cancelNonStrongBiometricAlarmListener() 423 int userId) { in notifyStrongAuthTrackersForIsNonStrongBiometricAllowed() argument 453 public void removeUser(int userId) { in removeUser() argument 459 if (userId == UserHandle.USER_ALL || userId >= UserHandle.USER_SYSTEM) { in requireStrongAuth() 469 if (userId == UserHandle.USER_ALL || userId >= UserHandle.USER_SYSTEM) { in noLongerRequireStrongAuth() 478 public void reportUnlock(int userId) { in reportUnlock() argument 536 mUserId = userId; in StrongAuthTimeoutAlarmListener() 570 mUserId = userId; in NonStrongBiometricTimeoutAlarmListener() [all …]
|
H A D | LockSettingsStorage.java | 135 cv.put(COLUMN_USERID, userId); in writeKeyValue() 194 cv.put(COLUMN_USERID, userId); in removeKey() 213 mCache.setFetched(userId); in prefetchUser() 387 if (userId == 0) { in getLockCredentialFileForUser() 636 final int userId; field in LockSettingsStorage.PersistentData 642 this.userId = userId; in PersistentData() 693 dos.writeInt(userId); in toBytes() 896 if (mCache.keyAt(i).userId == userId) { in removeUser() 931 int userId; field in LockSettingsStorage.Cache.CacheKey 937 this.userId = userId; in set() [all …]
|
H A D | LockSettingsService.java | 986 userId); in onThirdPartyAppsStarted() 1017 if (isUserSecure(userId)) { in migrateUserToSpWithBoundCeKeyLocked() 2033 userId); in unlockUserKeyIfUnsecured() 2329 userId); in notifyPasswordChanged() 2810 int userId) { in onCredentialVerified() argument 2820 unlockUserKey(userId, sp); in onCredentialVerified() 2822 unlockUser(userId); in onCredentialVerified() 3124 userId); 3159 loadPasswordMetrics(authResult.syntheticPassword, userId), userId); 3559 int userId) { [all …]
|
H A D | SyntheticPasswordManager.java | 697 userId)) { in removeUser() 766 clearSidForUser(userId); in newSyntheticPassword() 807 syncState(userId); in saveSyntheticPasswordHandle() 1018 sid, userId); in createLskfBasedProtector() 1116 int userId) { in synchronizeGatekeeperFrpPassword() argument 1470 syncState(userId); in refreshPinLengthOnDisk() 1485 token, userId); in unlockTokenBasedProtector() 1614 int userId) { in verifyChallengeInternal() argument 1762 int userId) { in getPasswordMetrics() argument 1849 return 100000 + userId; in fakeUserId() [all …]
|
/aosp14/frameworks/base/media/java/android/media/tv/ |
H A D | ITvInputManager.aidl | 49 List<TvInputInfo> getTvInputList(int userId); in getTvInputList() argument 52 int getTvInputState(in String inputId, int userId); in getTvInputState() argument 61 boolean isParentalControlsEnabled(int userId); in isParentalControlsEnabled() argument 64 List<String> getBlockedRatings(int userId); in getBlockedRatings() argument 69 int seq, int userId); in createSession() argument 77 int userId); in dispatchSurfaceChanged() argument 83 int userId); in selectAudioPresentation() argument 88 int userId); in sendAppPrivateCommand() argument 91 int userId); in createOverlayView() argument 134 int userId); in captureFrame() argument [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeUserInfoHelper.java | 49 public void startUser(int userId) { in startUser() argument 50 startUserInternal(userId, true); in startUser() 56 mRunningUserIds.add(userId); in startUserInternal() 61 dispatchOnUserStarted(userId); in startUserInternal() 64 public void stopUser(int userId) { in stopUser() argument 70 setUserInvisibleInternal(userId); in stopUser() 71 dispatchOnUserStopped(userId); in stopUser() 87 startUserInternal(userId, false); in setCurrentUserIds() 100 mVisibleUserIds.add(userId); in setUserVisibleInternal() 110 mVisibleUserIds.remove(userId); in setUserInvisibleInternal() [all …]
|
/aosp14/frameworks/base/media/java/android/media/tv/interactive/ |
H A D | ITvInteractiveAppManager.aidl | 40 List<AppLinkInfo> getAppLinkInfoList(int userId); in getAppLinkInfoList() argument 44 void startInteractiveApp(in IBinder sessionToken, int userId); in startInteractiveApp() argument 45 void stopInteractiveApp(in IBinder sessionToken, int userId); in stopInteractiveApp() argument 46 void resetInteractiveApp(in IBinder sessionToken, int userId); in resetInteractiveApp() argument 60 int userId); in sendSigningResult() argument 84 int seq, int userId); in createSession() argument 85 void releaseSession(in IBinder sessionToken, int userId); in releaseSession() argument 95 int userId); in notifyRecordingStarted() argument 100 int userId); in dispatchSurfaceChanged() argument 107 int userId); in createMediaView() argument [all …]
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | CompanionApplicationController.java | 94 void onPackagesChanged(@UserIdInt int userId) { in onPackagesChanged() argument 200 userId, packageName, true); in scheduleRebinding() 214 userId, packageName); in isRebindingCompanionApplicationScheduled() 241 final int userId = association.getUserId(); in notifyCompanionApplicationDeviceAppeared() local 379 @UserIdInt int userId) { in forUser() 380 return super.forUser(userId); in forUser() 389 remove(userId); in invalidate() 405 Map<String, T> forUser = get(userId); in setValueForPackage() 408 put(userId, forUser); in setValueForPackage() 437 final int userId = keyAt(i); in dump() local [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/infra/ |
H A D | AbstractMasterSystemService.java | 266 final int userId = users.get(i).id; in AbstractMasterSystemService() local 464 updateCachedServiceLocked(userId); in setDefaultServiceEnabled() 652 updateCachedServiceListLocked(userId, isDisabledLocked(userId)); in updateCachedServiceLocked() 761 mServicesCacheList.delete(userId); in removeCachedServiceListLocked() 821 updateCachedServiceListLocked(userId, isDisabledLocked(userId)); in onServiceNameChanged() 838 updateCachedServiceListLocked(userId, isDisabledLocked(userId)); in onServiceNameListChanged() 943 pw.print(userId); in dumpLocked() 1021 + userId); in startTrackingPackageChanges() 1139 @UserIdInt int userId) { in startTrackingPackageChanges() 1174 userId); in startTrackingPackageChanges() [all …]
|
H A D | ServiceNameBaseResolver.java | 106 public String getServiceName(@UserIdInt int userId) { in getServiceName() argument 123 public String[] getServiceNameList(int userId) { in getServiceNameList() argument 136 + "user " + userId); in getServiceNameList() 139 return getDefaultServiceNameList(userId); in getServiceNameList() 156 public abstract String readServiceName(int userId); in readServiceName() argument 204 public boolean isTemporary(@UserIdInt int userId) { in isTemporary() argument 251 mTemporaryServiceNamesList.remove(userId); in resetTemporaryService() 271 mDefaultServicesDisabled.delete(userId); in setDefaultServiceEnabled() 281 public boolean isDefaultServiceEnabled(int userId) { in isDefaultServiceEnabled() argument 289 return !mDefaultServicesDisabled.get(userId); in isDefaultServiceEnabledLocked() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | PlatformKeyManager.java | 175 void regenerate(int userId) in regenerate() argument 186 generateAndLoadKey(userId, nextId); in regenerate() 205 init(userId); in getEncryptKey() 209 getDecryptKeyInternal(userId); in getEncryptKey() 214 userId)); in getEncryptKey() 215 regenerate(userId); in getEncryptKey() 258 init(userId); in getDecryptKey() 266 userId)); in getDecryptKey() 267 regenerate(userId); in getDecryptKey() 309 userId)); in ensureDecryptionKeyIsValid() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/trust/ |
H A D | TrustManagerService.java | 1033 if (agent.userId == userId) { in dispatchDeviceLocked() 1046 if (agent.userId == userId) { in dispatchEscrowTokenActivatedLocked() 1318 if (info.userId == userId) { in aggregateIsTrusted() 1333 if (info.userId == userId) { in aggregateIsTrustable() 1354 if (info.userId == userId) { in aggregateIsActiveUnlockRunning() 1387 if (info.userId == userId in getTrustGrantedMessages() 1403 if (info.userId == userId) { in aggregateIsTrustManaged() 1422 if (info.userId == userId) { in dispatchUnlockAttempt() 1435 if (info.userId == userId) { in dispatchUserRequestedUnlock() 1447 if (info.userId == userId) { in dispatchUserMayRequestUnlock() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/permission/ |
H A D | PermissionManagerServiceLoggingDecorator.java | 71 + ", userId = " + userId + ")"); in restoreDelayedRuntimePermissions() 170 int userId) { in getAllowlistedRestrictedPermissions() argument 208 int userId) { in shouldShowRequestPermissionRationale() argument 266 + userId + ")"); in isPermissionsReviewRequired() 305 + userId + ")"); in getGrantedPermissions() 313 + userId + ")"); in getPermissionGids() 397 public void onUserCreated(int userId) { in onUserCreated() argument 399 mService.onUserCreated(userId); in onUserCreated() 403 public void onUserRemoved(int userId) { in onUserRemoved() argument 405 mService.onUserRemoved(userId); in onUserRemoved() [all …]
|
/aosp14/frameworks/base/core/java/android/print/ |
H A D | IPrintManager.aidl | 40 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); in getPrintJobInfos() argument 48 int appId, int userId); in addPrintJobStateChangeListener() argument 50 int userId); in removePrintJobStateChangeListener() argument 61 int userId); in addPrintServicesChangeListener() argument 72 int userId); in removePrintServicesChangeListener() argument 111 int userId); in addPrintServiceRecommendationsChangeListener() argument 122 int userId); in removePrintServiceRecommendationsChangeListener() argument 135 in List<PrinterId> priorityList, int userId); in startPrinterDiscovery() argument 150 Icon getCustomPrinterIcon(in PrinterId printerId, int userId); in getCustomPrinterIcon() argument 154 int userId); in destroyPrinterDiscoverySession() argument [all …]
|
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsService.java | 541 mUserId = userId; in LaunchTimeAlarmQueue() 1912 final int userId; in parseUserIdFromArgs() local 1927 return userId; in parseUserIdFromArgs() 2381 userId); in getAppStandbyBucket() 2414 int userId) { in getAppStandbyBuckets() argument 2428 userId); in getAppStandbyBuckets() 2484 userId); in getAppMinStandbyBucket() 2502 int userId) { in setEstimatedLaunchTime() argument 2662 userId); in unregisterUsageSessionObserver() 2899 userId); in registerAppUsageObserver() [all …]
|
/aosp14/frameworks/base/apex/jobscheduler/framework/java/com/android/server/usage/ |
H A D | AppStandbyInternal.java | 73 void postCheckIdleStates(int userId); in postCheckIdleStates() argument 83 long getTimeSinceLastJobRun(String packageName, int userId); in getTimeSinceLastJobRun() argument 85 void setEstimatedLaunchTime(String packageName, int userId, in setEstimatedLaunchTime() argument 93 long getEstimatedLaunchTime(String packageName, int userId); in getEstimatedLaunchTime() argument 102 void onUserRemoved(int userId); in onUserRemoved() argument 130 int[] getIdleUidsForUser(int userId); in getIdleUidsForUser() argument 135 int getAppStandbyBucket(String packageName, int userId, in getAppStandbyBucket() argument 138 List<AppStandbyInfo> getAppStandbyBuckets(int userId); in getAppStandbyBuckets() argument 182 void restrictApp(@NonNull String packageName, int userId, in restrictApp() argument 224 void addActiveDeviceAdmin(String adminPkg, int userId); in addActiveDeviceAdmin() argument [all …]
|