Home
last modified time | relevance | path

Searched refs:callingUser (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerNative.java113 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); in getInstallerForPackage() local
116 /*userId*/ callingUser); in getInstallerForPackage()
126 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); in getVersionCodeForPackage() local
128 .getPackageInfo(packageName, 0, callingUser); in getVersionCodeForPackage()
149 int callingUser = UserHandle.getCallingUserId(); in isPackageDebuggable() local
151 .getApplicationInfo(packageName, 0, callingUser); in isPackageDebuggable()
162 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); in isAudioPlaybackCaptureAllowed() local
166 ApplicationInfo appInfo = snapshot.getApplicationInfo(packageNames[i], 0, callingUser); in isAudioPlaybackCaptureAllowed()
174 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); in getLocationFlags() local
177 /*userId*/ callingUser); in getLocationFlags()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputViewTest.java220 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForCallingUser() local
221 assertEquals(callingUser, getTargetInputMethodUser(callingUser, callingUser)); in testEditorInfoTargetInputMethodUserForCallingUser()
234 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForAllUser() local
236 getTargetInputMethodUser(callingUser, UserHandle.ALL)); in testEditorInfoTargetInputMethodUserForAllUser()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTaskImpl.java154 int callingUser = UserHandle.getCallingUserId(); in startActivity() local
175 .setUserId(callingUser) in startActivity()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverActivityWorkProfileTest.java342 private void launchActivity(UserHandle callingUser) { in launchActivity() argument
346 if (callingUser != null) { in launchActivity()
347 sendIntent.putExtra(ResolverActivity.EXTRA_CALLING_USER, callingUser); in launchActivity()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDragDropControllerTests.java413 ArgumentCaptor<Integer> callingUser = ArgumentCaptor.forClass(Integer.class); in testValidateProfileAppShortcutArguments_notCallingUid() local
418 verify(shortcutService).createShortcutIntents(callingUser.capture(), any(), in testValidateProfileAppShortcutArguments_notCallingUid()
420 assertTrue(callingUser.getValue() == UserHandle.getUserId(TEST_PROFILE_UID)); in testValidateProfileAppShortcutArguments_notCallingUid()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java148 int callingUser = Binder.getCallingUserHandle().getIdentifier(); in getPinnedSlices() local
154 int userId = ContentProvider.getUserIdFromUri(uri, callingUser); in getPinnedSlices()
155 if (userId == callingUser) { in getPinnedSlices()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java291 final UserHandle callingUser = Binder.getCallingUserHandle(); in createProjection() local
298 ai = mPackageManager.getApplicationInfoAsUser(packageName, 0, callingUser); in createProjection()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1436 final int callingUser = UserHandle.getCallingUserId(); in enforceCrossUserPermission() local
1437 if (callingUser != userHandle) { in enforceCrossUserPermission()
1452 final int callingUser = UserHandle.getCallingUserId(); in enforceNonFullCrossUserPermission() local
1453 if (callingUser == userHandle) { in enforceNonFullCrossUserPermission()
/frameworks/base/core/java/android/content/
DContentProvider.java761 UserHandle callingUser = UserHandle.getUserHandleForUid(uid); in checkUser() local
763 0, callingUser); in checkUser()
767 UserHandle parent = um.getProfileParent(callingUser); in checkUser()
/frameworks/base/core/java/android/os/
DUserManager.java1956 final int callingUser = UserHandle.myUserId(); in getContextUserIfAppropriate() local
1957 if (callingUser != mUserId) { in getContextUserIfAppropriate()
1958 Log.w(TAG, "Using the calling user " + callingUser in getContextUserIfAppropriate()
1963 return callingUser; in getContextUserIfAppropriate()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java599 ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) { in getServiceByNameLocked() argument
602 Slog.v(TAG_MU, "getServiceByNameLocked(" + name + "), callingUser = " + callingUser); in getServiceByNameLocked()
603 return getServiceMapLocked(callingUser).mServicesByInstanceName.get(name); in getServiceByNameLocked()
606 boolean hasBackgroundServicesLocked(int callingUser) { in hasBackgroundServicesLocked() argument
607 ServiceMap smap = mServiceMap.get(callingUser); in hasBackgroundServicesLocked()
650 private ServiceMap getServiceMapLocked(int callingUser) { in getServiceMapLocked() argument
651 ServiceMap smap = mServiceMap.get(callingUser); in getServiceMapLocked()
653 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked()
654 mServiceMap.put(callingUser, smap); in getServiceMapLocked()
659 ArrayMap<ComponentName, ServiceRecord> getServicesLocked(int callingUser) { in getServicesLocked() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSMSDispatcher.java2389 UserHandle callingUser = UserHandle.getUserHandleForUid(Binder.getCallingUid()); in getSmsTracker() local
2390 final int userId = callingUser.getIdentifier(); in getSmsTracker()
2391 PackageManager pm = mContext.createContextAsUser(callingUser, 0).getPackageManager(); in getSmsTracker()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java2185 final int callingUser = UserHandle.getCallingUserId(); in hasNamedWallpaper() local
2201 if (!allowCrossUser && callingUser != user.id) { in hasNamedWallpaper()
2684 final UserHandle callingUser = Binder.getCallingUserHandle(); in removeOnLocalColorsChangedListener() local
2685 if (callingUser.getIdentifier() != userId) { in removeOnLocalColorsChangedListener()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java3940 final int callingUser = UserHandle.getUserId(callingUid);
3944 enforceDeletingChannelHasNoFgService(pkg, callingUser, channelId);
3946 callingUser, REASON_CHANNEL_REMOVED, null);
3951 mArchive.removeChannelNotifications(pkg, callingUser, channelId);
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java2510 final int callingUser = UserHandle.getUserId(callingUid); in enforceManageAppOpsModes() local
2512 if (mProfileOwners != null && mProfileOwners.get(callingUser, -1) == callingUid) { in enforceManageAppOpsModes()
2513 if (targetUid >= 0 && callingUser == UserHandle.getUserId(targetUid)) { in enforceManageAppOpsModes()