/aosp12/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
H A D | DomainVerificationEnforcerTest.kt | 506 runTestCases(callingUserId, callingUserId, throws = false) 513 runTestCases(callingUserId, callingUserId, throws = false) 543 runTestCases(callingUserId, callingUserId, throws = true) 550 runTestCases(callingUserId, callingUserId, throws = false) 557 runTestCases(callingUserId, callingUserId, throws = false) 590 runTestCases(callingUserId, callingUserId, throws = true) 595 runTestCases(callingUserId, callingUserId, throws = false) 600 runTestCases(callingUserId, callingUserId, throws = false) 690 runTestCases(callingUserId, callingUserId, throws = true) 697 runTestCases(callingUserId, callingUserId, throws = true) [all …]
|
/aosp12/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 …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 214 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() local 217 if (userId == callingUserId) { in authenticate() 296 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate() local 298 if (userId != callingUserId) { in canAuthenticate() 310 + ", callingUserId: " + callingUserId in canAuthenticate() 335 final int callingUserId = UserHandle.getCallingUserId(); in registerEnabledOnKeyguardCallback() local 375 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds() local 376 if (userId != callingUserId) { in getAuthenticatorIds() 411 if (userId != callingUserId) { in getButtonLabel() 457 if (userId != callingUserId) { in getPromptMessage() [all …]
|
H A D | BiometricService.java | 743 public int canAuthenticate(String opPackageName, int userId, int callingUserId, in canAuthenticate() argument 748 + ", Caller=" + callingUserId in canAuthenticate() 831 IBiometricEnabledOnKeyguardCallback callback, int callingUserId) { in registerEnabledOnKeyguardCallback() argument 836 callback.onChanged(mSettingObserver.getEnabledOnKeyguard(callingUserId), in registerEnabledOnKeyguardCallback() 837 callingUserId); in registerEnabledOnKeyguardCallback() local 852 public long[] getAuthenticatorIds(int callingUserId) { in getAuthenticatorIds() argument 858 final boolean hasEnrollments = sensor.impl.hasEnrolledTemplates(callingUserId, in getAuthenticatorIds() 860 final long authenticatorId = sensor.impl.getAuthenticatorId(callingUserId); in getAuthenticatorIds() 937 int callingUserId, in getCurrentModality() argument 943 + ", Caller=" + callingUserId in getCurrentModality()
|
/aosp12/frameworks/base/services/people/java/com/android/server/people/prediction/ |
H A D | SharesheetModelScorer.java | 172 @UserIdInt int callingUserId) { in computeScoreForAppShare() argument 174 postProcess(shareTargets, targetsLimit, dataManager, callingUserId); in computeScoreForAppShare() 178 int targetsLimit, @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in postProcess() argument 195 promoteForegroundApp(shareTargetMap, dataManager, callingUserId); in postProcess() 197 callingUserId); in postProcess() 207 @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in promoteMostChosenAndFrequentlyUsedApps() argument 225 callingUserId, now - ONE_MONTH_WINDOW, now, shareTargetMap.keySet()); in promoteMostChosenAndFrequentlyUsedApps() 275 @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in promoteForegroundApp() argument 277 callingUserId); in promoteForegroundApp() 300 @NonNull DataManager dataManager, @UserIdInt int callingUserId) { in findSharingForegroundApp() argument [all …]
|
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 | ShareTargetPredictor.java | 70 @UserIdInt int callingUserId, @NonNull Context context) { in ShareTargetPredictor() argument 71 super(predictionContext, updatePredictionsMethod, dataManager, callingUserId); in ShareTargetPredictor() 78 mRemoteAppPredictor = context.createContextAsUser(UserHandle.of(callingUserId), 0) in ShareTargetPredictor()
|
/aosp12/frameworks/base/core/java/android/hardware/biometrics/ |
H A D | IBiometricService.aidl | 49 int canAuthenticate(String opPackageName, int userId, int callingUserId, int authenticators); in canAuthenticate() argument 62 int callingUserId); in registerEnabledOnKeyguardCallback() argument 76 long[] getAuthenticatorIds(int callingUserId); in getAuthenticatorIds() argument 85 int getCurrentModality(String opPackageName, int userId, int callingUserId, int authenticators); in getCurrentModality() argument
|
/aosp12/frameworks/base/core/java/com/android/internal/app/ |
H A D | IntentForwarderActivity.java | 134 final int callingUserId = getUserId(); in onCreate() local 140 + callingUserId + " to user " + targetUserId); in onCreate() 145 newIntent.prepareToLeaveUser(callingUserId); in onCreate() 152 callingUserId, targetUserId); in onCreate() 226 Intent newIntent, int callingUserId, int targetUserId) { in launchResolverActivityWithCorrectTab() argument 234 newIntent, MATCH_DEFAULT_ONLY, callingUserId).join(); in launchResolverActivityWithCorrectTab() 236 ? targetUserId : callingUserId; in launchResolverActivityWithCorrectTab() 240 intentReceived.putExtra(EXTRA_CALLING_USER, UserHandle.of(callingUserId)); in launchResolverActivityWithCorrectTab()
|
/aosp12/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()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | AccessibilitySecurityPolicyTest.java | 490 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_userIdIsCallingUser_shouldResolveProfileParent() local 491 final int userId = callingUserId; in resolveCallingUserId_userIdIsCallingUser_shouldResolveProfileParent() 500 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local 506 callingUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() 516 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() local 522 callingUserId); in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() 535 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_anotherUserIdWithCrossUserPermission_returnUserId() local 542 callingUserId); in resolveCallingUserId_anotherUserIdWithCrossUserPermission_returnUserId() 553 final int callingUserId = UserHandle.getUserId(Process.myUid()); in resolveCallingUserId_anotherUserIdWithCrossUserFullPermission_returnUserId() local 560 callingUserId); in resolveCallingUserId_anotherUserIdWithCrossUserFullPermission_returnUserId() [all …]
|
/aosp12/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 …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/password/ |
H A D | SetNewPasswordController.java | 76 final int callingUserId = Utils.getSecureTargetUser(activityToken, in create() local 79 if (lockPatternUtils.isSeparateProfileChallengeAllowed(callingUserId)) { in create() 80 userId = callingUserId; in create()
|
/aosp12/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()
|
/aosp12/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()
|
H A D | BugreportManagerServiceImpl.java | 212 int callingUserId = UserHandle.getUserId(Binder.getCallingUid()); in isCurrentUserAffiliated() local 214 Slog.i(TAG, "callingUid: " + callingUserId + " deviceOwnerUid: " + deviceOwnerUid in isCurrentUserAffiliated() 217 if (callingUserId != deviceOwnerUid) { in isCurrentUserAffiliated()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/ |
H A D | FingerprintAuthenticator.java | 105 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument 106 return mFingerprintService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/ |
H A D | FaceAuthenticator.java | 105 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument 106 return mFaceService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
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()
|
/aosp12/frameworks/av/services/oboeservice/ |
H A D | AAudioService.cpp | 308 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); in convertHandleToServiceStream() local 312 bool callerOwnsIt = callingUserId == ownerUserId; in convertHandleToServiceStream() 313 bool serverCalling = callingUserId == clientUid; in convertHandleToServiceStream() 318 callingUserId, streamHandle, ownerUserId); in convertHandleToServiceStream()
|
/aosp12/frameworks/base/apex/media/service/java/com/android/server/media/ |
H A D | MediaCommunicationService.java | 392 private boolean hasEnabledNotificationListener(int callingUserId, in hasEnabledNotificationListener() argument 395 if (callingUserId != controllerUserId) { in hasEnabledNotificationListener() 418 int callingUserId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in handleIncomingUser() local 419 if (userId == callingUserId) { in handleIncomingUser() 434 + callingUserId + "), or with " + INTERACT_ACROSS_USERS_FULL + " permission"); in handleIncomingUser()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | UiAutomationConnection.java | 243 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats() local 246 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in clearWindowContentFrameStats() 263 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats() local 266 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in getWindowContentFrameStats()
|
/aosp12/frameworks/base/core/java/android/content/pm/ |
H A D | ShortcutServiceInternal.java | 95 public abstract boolean isRequestPinItemSupported(int callingUserId, int requestType); in isRequestPinItemSupported() argument 120 public abstract boolean isSharingShortcut(int callingUserId, @NonNull String callingPackage, in isSharingShortcut() argument
|
/aosp12/frameworks/base/services/core/java/com/android/server/security/ |
H A D | FileIntegrityService.java | 87 final int callingUserId = UserHandle.getUserId(callingUid); 91 packageName, 0 /*flag*/, callingUserId);
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilitySecurityPolicy.java | 408 final int callingUserId = UserHandle.getUserId(callingUid); in resolveCallingUserIdEnforcingPermissionsLocked() local 409 if (callingUserId == userId) { in resolveCallingUserIdEnforcingPermissionsLocked() 412 final int callingUserParentId = resolveProfileParentLocked(callingUserId); in resolveCallingUserIdEnforcingPermissionsLocked() 419 throw new SecurityException("Call from user " + callingUserId + " as user " in resolveCallingUserIdEnforcingPermissionsLocked()
|