Home
last modified time | relevance | path

Searched refs:callingUserId (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationEnforcerTest.kt103 whenever(callingUserId) { callingUserIdInt.get() } in <lambda>()
150 callingUserIdInt.set(it.callingUserId) in <lambda>()
172 it.callingUid, it.callingUserId, in <lambda>()
181 it.callingUid, it.callingUserId, in <lambda>()
292 callingUserId: Int, in <lambda>()
302 callingUserId, in <lambda>()
313 val callingUserId: Int, in <lambda>() constant in com.android.server.pm.test.verify.domain.Params.Input
504 fun runTestCases(callingUserId: Int, targetUserId: Int, throws: Boolean) { in <lambda>()
507 runCrossUserMethod(allUids, target, callingUserId, targetUserId, throws) in <lambda>()
510 val callingUserId = 0 in <lambda>() constant
[all …]
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java135 public boolean assertApprovedUserStateQuerent(int callingUid, @UserIdInt int callingUserId, in assertApprovedUserStateQuerent() argument
137 if (callingUserId != targetUserId) { in assertApprovedUserStateQuerent()
144 if (!mCallback.doesUserExist(callingUserId)) { in assertApprovedUserStateQuerent()
145 throw new SecurityException("User " + callingUserId + " does not exist"); in assertApprovedUserStateQuerent()
156 public boolean assertApprovedUserSelector(int callingUid, @UserIdInt int callingUserId, in assertApprovedUserSelector() argument
158 if (callingUserId != targetUserId) { in assertApprovedUserSelector()
170 if (!mCallback.doesUserExist(callingUserId)) { in assertApprovedUserSelector()
171 throw new SecurityException("User " + callingUserId + " does not exist"); in assertApprovedUserSelector()
183 public boolean callerIsLegacyUserSelector(int callingUid, @UserIdInt int callingUserId, in callerIsLegacyUserSelector() argument
190 if (callingUserId != targetUserId) { in callerIsLegacyUserSelector()
[all …]
/frameworks/base/services/people/java/com/android/server/people/prediction/
DAppTargetPredictor.java47 @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()
DSharesheetModelScorer.java169 @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 …]
DShareTargetPredictor.java73 @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()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java274 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() local
277 if (userId == callingUserId) { in authenticate()
280 Slog.w(TAG, "User " + callingUserId + " is requesting authentication of userid: " in authenticate()
364 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate() local
366 if (userId != callingUserId) { in canAuthenticate()
375 opPackageName, userId, callingUserId, authenticators); in canAuthenticate()
378 + ", callingUserId: " + callingUserId in canAuthenticate()
392 final int callingUserId = UserHandle.getCallingUserId(); in getLastAuthenticationTime() local
394 if (userId != callingUserId) { in getLastAuthenticationTime()
497 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds() local
[all …]
/frameworks/base/core/java/android/hardware/biometrics/
DIBiometricService.aidl54 int canAuthenticate(String opPackageName, int userId, int callingUserId, int authenticators); in canAuthenticate() argument
90 long[] getAuthenticatorIds(int callingUserId); in getAuthenticatorIds() argument
106 int getCurrentModality(String opPackageName, int userId, int callingUserId, int authenticators); in getCurrentModality() argument
DIBiometricAuthenticator.aidl73 long getAuthenticatorId(int callingUserId); in getAuthenticatorId() argument
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java162 final int callingUserId = getUserId(); in onCreate() local
168 + callingUserId + " to user " + targetUserId); in onCreate()
173 newIntent.prepareToLeaveUser(callingUserId); in onCreate()
177 if (isPrivateProfile(callingUserId)) { in onCreate()
178 buildAndExecuteForPrivateProfile(intentReceived, className, newIntent, callingUserId, in onCreate()
182 callingUserId, in onCreate()
188 Intent intentReceived, String className, Intent newIntent, int callingUserId, in buildAndExecute() argument
194 callingUserId, targetUserId, false); in buildAndExecute()
214 Intent intentReceived, String className, Intent newIntent, int callingUserId, in buildAndExecuteForPrivateProfile() argument
222 callingUserId, targetUserId, true); in buildAndExecuteForPrivateProfile()
[all …]
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java514 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdSearchableInfoList() local
516 if (pm.canAccessComponent(callingUid, info.getSearchActivity(), callingUserId)) { in createFilterdSearchableInfoList()
530 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdResolveInfoList() local
533 callingUid, info.activityInfo.getComponentName(), callingUserId)) { in createFilterdResolveInfoList()
546 final int callingUserId = UserHandle.getCallingUserId(); in getGlobalSearchActivity() local
548 && pm.canAccessComponent(callingUid, mCurrentGlobalSearchActivity, callingUserId)) { in getGlobalSearchActivity()
560 final int callingUserId = UserHandle.getCallingUserId(); in getWebSearchActivity() local
562 && pm.canAccessComponent(callingUid, mWebSearchActivity, callingUserId)) { in getWebSearchActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java474 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 …]
/frameworks/base/services/people/java/com/android/server/people/
DSessionInfo.java44 @UserIdInt int callingUserId, Context context) { in SessionInfo() argument
46 this::updatePredictions, dataManager, callingUserId, context); in SessionInfo()
/frameworks/base/services/core/java/com/android/server/os/
DDeviceIdentifiersPolicyService.java86 int callingUserId = UserHandle.getUserId(callingUid); in checkPackageBelongsToCaller() local
90 callingPackage, callingUserId); in checkPackageBelongsToCaller()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java199 void forPackagesInProfile(@UserIdInt int callingUserId, Consumer<PackageData> consumer) { in forPackagesInProfile() argument
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
333 mShortcutServiceInternal.uncacheShortcuts(callingUserId, mContext.getPackageName(), in removeRecentConversation()
343 public void removeAllRecentConversations(@UserIdInt int callingUserId) { in removeAllRecentConversations() argument
344 pruneOldRecentConversations(callingUserId, Long.MAX_VALUE); in removeAllRecentConversations()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java411 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()
/frameworks/base/services/core/java/com/android/server/pm/
DDomainVerificationConnection.java80 final int callingUserId = UserHandle.getUserId(callingUid); in isCallerPackage() local
81 return callingUid == mPm.snapshotComputer().getPackageUid(packageName, 0, callingUserId); in isCallerPackage()
DShortcutRequestPinProcessor.java220 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 if (!mService.areShortcutsSupportedOnHomeScreen(callingUserId)) { in getRequestPinConfirmationActivity()
424 final int launcherUserId = mService.getParentOrSelfUserId(callingUserId); in getRequestPinConfirmationActivity()
DComputerEngine.java2202 int callingUid, int callingUserId, int userId, boolean requireFullPermission, in hasCrossUserPermission() argument
2204 if (!requirePermissionWhenSameUser && userId == callingUserId) { in hasCrossUserPermission()
2483 final int callingUserId = UserHandle.getUserId(callingUid); in isRecentsAccessingChildProfiles() local
2484 if (ActivityManager.getCurrentUser() != callingUserId) { in isRecentsAccessingChildProfiles()
2487 return mUserManager.isSameProfileGroup(callingUserId, targetUserId); in isRecentsAccessingChildProfiles()
2857 final int callingUserId = UserHandle.getUserId(callingUid); in enforceCrossUserOrProfilePermission() local
2858 if (hasCrossUserPermission(callingUid, callingUserId, userId, requireFullPermission, in enforceCrossUserOrProfilePermission()
2862 final boolean isSameProfileGroup = isSameProfileGroup(callingUserId, userId); in enforceCrossUserOrProfilePermission()
2939 final int callingUserId = UserHandle.getUserId(callingUid); in enforceCrossUserPermission() local
2941 callingUid, callingUserId, userId, requireFullPermission, in enforceCrossUserPermission()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceAuthenticator.java111 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument
112 return mFaceService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintAuthenticator.java112 public long getAuthenticatorId(int callingUserId) throws RemoteException { in getAuthenticatorId() argument
113 return mFingerprintService.getAuthenticatorId(mSensorId, callingUserId); in getAuthenticatorId()
/frameworks/av/services/oboeservice/
DAAudioService.cpp326 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); in convertHandleToServiceStream() local
330 const bool callerOwnsIt = callingUserId == ownerUserId; in convertHandleToServiceStream()
331 const bool serverCalling = callingUserId == clientUid; in convertHandleToServiceStream()
336 callingUserId, streamHandle, ownerUserId); in convertHandleToServiceStream()
/frameworks/base/core/java/android/content/pm/
DShortcutServiceInternal.java130 public abstract boolean isRequestPinItemSupported(int callingUserId, int requestType); in isRequestPinItemSupported() argument
163 public abstract boolean isSharingShortcut(int callingUserId, @NonNull String callingPackage, in isSharingShortcut() argument
/frameworks/base/core/java/android/content/
DContentProvider.java372 final int callingUserId = UserHandle.getUserId(callingUid); in logGetTypeData() local
375 ? maybeAddUserId(uri, callingUserId) : uri; in logGetTypeData()
383 && !deniedAccessSystemUserOnlyProvider(callingUserId, in logGetTypeData()
870 final int callingUserId = UserHandle.getUserId(uid); in checkUser() local
872 if (deniedAccessSystemUserOnlyProvider(callingUserId, mSystemUserOnly)) { in checkUser()
876 if (callingUserId == context.getUserId() || mSingleUser) { in checkUser()
887 return isContentRedirectionAllowedForUser(callingUserId); in checkUser()
997 final int callingUserId = UserHandle.getUserId(uid); in enforceReadPermissionInner() local
998 if (deniedAccessSystemUserOnlyProvider(callingUserId, mSystemUserOnly)) { in enforceReadPermissionInner()
1002 ? maybeAddUserId(uri, callingUserId) : uri; in enforceReadPermissionInner()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/os/
DBugreportManagerServiceImplTest.java198 int callingUserId = UserHandle.getUserId(callingUid); in testStartBugreport_nonAdminProfileOfAdminCurrentUser() local
199 when(mMockUserManager.isUserAdmin(callingUserId)).thenReturn(false); in testStartBugreport_nonAdminProfileOfAdminCurrentUser()
200 when(mMockUserManager.getProfileParent(callingUserId)).thenReturn(ADMIN_USER_INFO); in testStartBugreport_nonAdminProfileOfAdminCurrentUser()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java288 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats() local
291 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in clearWindowContentFrameStats()
308 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats() local
311 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in getWindowContentFrameStats()

1234