/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
H A D | DomainVerificationEnforcerTest.kt | 513 runTestCases(callingUserId, callingUserId, throws = false) 520 runTestCases(callingUserId, callingUserId, throws = false) 550 runTestCases(callingUserId, callingUserId, throws = true) 557 runTestCases(callingUserId, callingUserId, throws = false) 564 runTestCases(callingUserId, callingUserId, throws = false) 597 runTestCases(callingUserId, callingUserId, throws = true) 602 runTestCases(callingUserId, callingUserId, throws = false) 607 runTestCases(callingUserId, callingUserId, throws = false) 697 runTestCases(callingUserId, callingUserId, throws = true) 704 runTestCases(callingUserId, callingUserId, throws = true) [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
H A D | DomainVerificationEnforcer.java | 137 if (callingUserId != targetUserId) { in assertApprovedUserStateQuerent() 144 if (!mCallback.doesUserExist(callingUserId)) { in assertApprovedUserStateQuerent() 158 if (callingUserId != targetUserId) { in assertApprovedUserSelector() 170 if (!mCallback.doesUserExist(callingUserId)) { in assertApprovedUserSelector() 190 if (callingUserId != targetUserId) { in callerIsLegacyUserSelector() 199 if (!mCallback.doesUserExist(callingUserId)) { in callerIsLegacyUserSelector() 210 if (callingUserId != targetUserId) { in callerIsLegacyUserQuerent() 218 if (!mCallback.doesUserExist(callingUserId)) { in callerIsLegacyUserQuerent() 233 public void assertOwnerQuerent(int callingUid, @UserIdInt int callingUserId, in assertOwnerQuerent() argument 236 if (callingUserId != targetUserId) { in assertOwnerQuerent() [all …]
|
/aosp14/frameworks/base/services/people/java/com/android/server/people/prediction/ |
H A D | AppTargetPredictor.java | 47 @NonNull DataManager dataManager, @UserIdInt int callingUserId, Context context) { in create() argument 50 callingUserId, context); in create() 53 predictionContext, updatePredictionsMethod, dataManager, callingUserId); in create() 64 @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in AppTargetPredictor() argument 68 mCallingUserId = callingUserId; in AppTargetPredictor()
|
H A D | SharesheetModelScorer.java | 169 @UserIdInt int callingUserId, @Nullable String chooserActivity) { in computeScoreForAppShare() argument 171 postProcess(shareTargets, targetsLimit, dataManager, callingUserId, chooserActivity); in computeScoreForAppShare() 175 int targetsLimit, @NonNull DataManager dataManager, @UserIdInt int callingUserId, in postProcess() argument 193 promoteForegroundApp(shareTargetMap, dataManager, callingUserId, chooserActivity); in postProcess() 195 callingUserId); in postProcess() 205 @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in promoteMostChosenAndFrequentlyUsedApps() argument 223 callingUserId, now - ONE_MONTH_WINDOW, now, shareTargetMap.keySet()); in promoteMostChosenAndFrequentlyUsedApps() 273 @NonNull DataManager dataManager, @UserIdInt int callingUserId, in promoteForegroundApp() argument 276 callingUserId, chooserActivity); in promoteForegroundApp() 299 @NonNull DataManager dataManager, @UserIdInt int callingUserId, in findSharingForegroundApp() argument [all …]
|
H A D | ShareTargetPredictor.java | 73 @UserIdInt int callingUserId, @NonNull Context context) { in ShareTargetPredictor() argument 74 super(predictionContext, updatePredictionsMethod, dataManager, callingUserId); in ShareTargetPredictor() 81 mRemoteAppPredictor = context.createContextAsUser(UserHandle.of(callingUserId), 0) in ShareTargetPredictor()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 225 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() local 228 if (userId == callingUserId) { in authenticate() 312 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate() local 314 if (userId != callingUserId) { in canAuthenticate() 326 + ", callingUserId: " + callingUserId in canAuthenticate() 390 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds() local 391 if (userId != callingUserId) { in getAuthenticatorIds() 435 final int callingUserId = UserHandle.getCallingUserId(); in getButtonLabel() local 437 if (userId != callingUserId) { in getButtonLabel() 483 if (userId != callingUserId) { in getPromptMessage() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/biometrics/ |
H A D | IBiometricService.aidl | 54 int canAuthenticate(String opPackageName, int userId, int callingUserId, int authenticators); in canAuthenticate() argument 86 long[] getAuthenticatorIds(int callingUserId); in getAuthenticatorIds() argument 102 int getCurrentModality(String opPackageName, int userId, int callingUserId, int authenticators); in getCurrentModality() argument
|
H A D | IBiometricAuthenticator.aidl | 73 long getAuthenticatorId(int callingUserId); in getAuthenticatorId() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/search/ |
H A D | Searchables.java | 470 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdSearchableInfoList() local 472 if (pm.canAccessComponent(callingUid, info.getSearchActivity(), callingUserId)) { in createFilterdSearchableInfoList() 486 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdResolveInfoList() local 489 callingUid, info.activityInfo.getComponentName(), callingUserId)) { in createFilterdResolveInfoList() 502 final int callingUserId = UserHandle.getCallingUserId(); in getGlobalSearchActivity() local 504 && pm.canAccessComponent(callingUid, mCurrentGlobalSearchActivity, callingUserId)) { in getGlobalSearchActivity() 516 final int callingUserId = UserHandle.getCallingUserId(); in getWebSearchActivity() local 518 && pm.canAccessComponent(callingUid, mWebSearchActivity, callingUserId)) { in getWebSearchActivity()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | AccessibilitySecurityPolicyTest.java | 474 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_userIdIsCallingUser_shouldResolveProfileParent() local 475 final int userId = callingUserId; in resolveCallingUserId_userIdIsCallingUser_shouldResolveProfileParent() 484 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local 490 callingUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() 500 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() local 506 callingUserId); in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() 519 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_anotherUserIdWithCrossUserPermission_returnUserId() local 526 callingUserId); in resolveCallingUserId_anotherUserIdWithCrossUserPermission_returnUserId() 537 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_anotherUserIdWithCrossUserFullPermission_returnUserId() local 544 callingUserId); in resolveCallingUserId_anotherUserIdWithCrossUserFullPermission_returnUserId() [all …]
|
/aosp14/frameworks/base/services/people/java/com/android/server/people/ |
H A D | SessionInfo.java | 44 @UserIdInt int callingUserId, Context context) { in SessionInfo() argument 46 this::updatePredictions, dataManager, callingUserId, context); in SessionInfo()
|
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/ |
H A D | DataManager.java | 200 List<UserInfo> users = mUserManager.getEnabledProfiles(callingUserId); in forPackagesInProfile() 234 @UserIdInt int callingUserId) { in getShareShortcuts() argument 236 mContext.getPackageName(), intentFilter, callingUserId); in getShareShortcuts() 307 public List<ConversationChannel> getRecentConversations(@UserIdInt int callingUserId) { in getRecentConversations() argument 309 forPackagesInProfile(callingUserId, packageData -> { in getRecentConversations() 331 @UserIdInt int callingUserId) { in removeRecentConversation() argument 343 public void removeAllRecentConversations(@UserIdInt int callingUserId) { in removeAllRecentConversations() argument 344 pruneOldRecentConversations(callingUserId, Long.MAX_VALUE); in removeAllRecentConversations() 352 forPackagesInProfile(callingUserId, packageData -> { in pruneOldRecentConversations() 376 forPackagesInProfile(callingUserId, packageData -> { in pruneExpiredConversationStatuses() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/os/ |
H A D | DeviceIdentifiersPolicyService.java | 86 int callingUserId = UserHandle.getUserId(callingUid); in checkPackageBelongsToCaller() local 90 callingPackage, callingUserId); in checkPackageBelongsToCaller()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilitySecurityPolicy.java | 411 final int callingUserId = UserHandle.getCallingUserId(); in canEnableDisableInputMethod() local 415 InputMethodManagerInternal.get().getInputMethodListAsUser(callingUserId); in canEnableDisableInputMethod() 434 mContext, inputMethodInfo.getPackageName(), callingUserId) != null) { in canEnableDisableInputMethod() 483 final int callingUserId = UserHandle.getUserId(callingUid); in resolveCallingUserIdEnforcingPermissionsLocked() local 484 if (callingUserId == userId) { in resolveCallingUserIdEnforcingPermissionsLocked() 487 final int callingUserParentId = resolveProfileParentLocked(callingUserId); in resolveCallingUserIdEnforcingPermissionsLocked() 494 throw new SecurityException("Call from user " + callingUserId + " as user " in resolveCallingUserIdEnforcingPermissionsLocked()
|
H A D | AccessibilityServiceConnection.java | 312 final int callingUserId = UserHandle.getCallingUserId(); in switchToInputMethod() local 315 result = InputMethodManagerInternal.get().switchToInputMethod(imeId, callingUserId); in switchToInputMethod() 334 final int callingUserId = UserHandle.getCallingUserId(); in setInputMethodEnabled() local 348 enabled, callingUserId)) { in setInputMethodEnabled()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | IntentForwarderActivity.java | 161 final int callingUserId = getUserId(); in onCreate() local 167 + callingUserId + " to user " + targetUserId); in onCreate() 172 newIntent.prepareToLeaveUser(callingUserId); in onCreate() 179 callingUserId, targetUserId); in onCreate() 431 Intent newIntent, int callingUserId, int targetUserId) { in launchResolverActivityWithCorrectTab() argument 439 newIntent, MATCH_DEFAULT_ONLY, callingUserId).join(); in launchResolverActivityWithCorrectTab() 441 ? targetUserId : callingUserId; in launchResolverActivityWithCorrectTab() 445 intentReceived.putExtra(EXTRA_CALLING_USER, UserHandle.of(callingUserId)); in launchResolverActivityWithCorrectTab()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | DomainVerificationConnection.java | 80 final int callingUserId = UserHandle.getUserId(callingUid); in isCallerPackage() local 81 return callingUid == mPm.snapshotComputer().getPackageUid(packageName, 0, callingUserId); in isCallerPackage()
|
H A D | ComputerEngine.java | 2745 final int callingUserId = UserHandle.getUserId(callingUid); in enforceCrossUserOrProfilePermission() local 2827 final int callingUserId = UserHandle.getUserId(callingUid); in enforceCrossUserPermission() local 3524 final int callingUserId = UserHandle.getUserId(callingUid); in getNotifyPackagesForReplacedReceived() local 3595 final int callingUserId = UserHandle.getUserId(callingUid); in currentToCanonicalPackageNames() local 3620 final int callingUserId = UserHandle.getUserId(callingUid); in canonicalToCurrentPackageNames() local 4138 final int callingUserId = UserHandle.getUserId(callingUid); in checkUidSignatures() local 4230 final int callingUserId = UserHandle.getUserId(callingUid); in hasSigningCertificate() local 4250 final int callingUserId = UserHandle.getUserId(callingUid); in hasUidSigningCertificate() local 4272 if (canViewInstantApps(callingUid, callingUserId)) { in getAllPackages() 4748 final int callingUserId = UserHandle.getCallingUserId(); in querySyncProviders() local [all …]
|
H A D | ShortcutRequestPinProcessor.java | 220 public boolean isRequestPinItemSupported(int callingUserId, int requestType) { in isRequestPinItemSupported() argument 221 return getRequestPinConfirmationActivity(callingUserId, requestType) != null; in isRequestPinItemSupported() 418 int callingUserId, int requestType) { in getRequestPinConfirmationActivity() argument 420 final int launcherUserId = mService.getParentOrSelfUserId(callingUserId); in getRequestPinConfirmationActivity()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/ |
H A D | FaceAuthenticator.java | 111 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument 112 return mFaceService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/ |
H A D | FingerprintAuthenticator.java | 112 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument 113 return mFingerprintService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | UiAutomationConnection.java | 286 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats() local 289 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in clearWindowContentFrameStats() 306 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats() local 309 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in getWindowContentFrameStats()
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | ShortcutServiceInternal.java | 125 public abstract boolean isRequestPinItemSupported(int callingUserId, int requestType); in isRequestPinItemSupported() argument 158 public abstract boolean isSharingShortcut(int callingUserId, @NonNull String callingPackage, in isSharingShortcut() argument
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | PermissionsUtils.java | 148 final int callingUserId = getCallingUserId(); in enforceCallerIsSystemOr() local 150 throw new SecurityException("Calling UserId (" + callingUserId + ") does not match " in enforceCallerIsSystemOr()
|
/aosp14/frameworks/base/services/core/java/com/android/server/security/ |
H A D | FileIntegrityService.java | 117 final int callingUserId = UserHandle.getUserId(callingUid); 121 packageName, 0 /*flag*/, callingUserId);
|