Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputViewTest.java151 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForCallingUser() local
152 assertEquals(callingUser, getTargetInputMethodUser(callingUser, callingUser)); in testEditorInfoTargetInputMethodUserForCallingUser()
165 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForAllUser() local
167 getTargetInputMethodUser(callingUser, UserHandle.ALL)); in testEditorInfoTargetInputMethodUserForAllUser()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTaskImpl.java138 int callingUser = UserHandle.getCallingUserId(); in startActivity() local
158 .setMayWait(callingUser) in startActivity()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java143 int callingUser = Binder.getCallingUserHandle().getIdentifier(); in getPinnedSlices() local
149 int userId = ContentProvider.getUserIdFromUri(uri, callingUser); in getPinnedSlices()
150 if (userId == callingUser) { in getPinnedSlices()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java285 final UserHandle callingUser = Binder.getCallingUserHandle(); in createProjection() local
292 ai = mPackageManager.getApplicationInfoAsUser(packageName, 0, callingUser); in createProjection()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java370 ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) { in getServiceByNameLocked() argument
373 Slog.v(TAG_MU, "getServiceByNameLocked(" + name + "), callingUser = " + callingUser); in getServiceByNameLocked()
374 return getServiceMapLocked(callingUser).mServicesByInstanceName.get(name); in getServiceByNameLocked()
377 boolean hasBackgroundServicesLocked(int callingUser) { in hasBackgroundServicesLocked() argument
378 ServiceMap smap = mServiceMap.get(callingUser); in hasBackgroundServicesLocked()
382 private ServiceMap getServiceMapLocked(int callingUser) { in getServiceMapLocked() argument
383 ServiceMap smap = mServiceMap.get(callingUser); in getServiceMapLocked()
385 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked()
386 mServiceMap.put(callingUser, smap); in getServiceMapLocked()
391 ArrayMap<ComponentName, ServiceRecord> getServicesLocked(int callingUser) { in getServicesLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java2092 int callingUser = UserHandle.getCallingUserId(); in checkIfCallerIsForegroundUser() local
2096 UserInfo ui = um.getProfileParent(callingUser); in checkIfCallerIsForegroundUser()
2102 valid = (callingUser == foregroundUser) || parentUser == foregroundUser in checkIfCallerIsForegroundUser()
2106 + callingUser + " parentUser=" + parentUser + " foregroundUser=" in checkIfCallerIsForegroundUser()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1285 final int callingUser = UserHandle.getCallingUserId(); in enforceCrossUserPermission() local
1286 if (callingUser != userHandle) { in enforceCrossUserPermission()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1217 final int callingUser = UserHandle.getUserId(callingUid); in enforceManageAppOpsModes() local
1219 if (mProfileOwners != null && mProfileOwners.get(callingUser, -1) == callingUid) { in enforceManageAppOpsModes()
1220 if (targetUid >= 0 && callingUser == UserHandle.getUserId(targetUid)) { in enforceManageAppOpsModes()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java24082 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
24085 /*userId*/ callingUser);
24095 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
24096 PackageInfo pInfo = getPackageInfo(packageName, 0, callingUser);
24108 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
24109 ApplicationInfo info = getApplicationInfo(packageName, 0, callingUser);
24120 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
24123 ApplicationInfo appInfo = getApplicationInfo(packageNames[i], 0, callingUser);
24131 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
24134 /*userId*/ callingUser);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9391 UserInfo callingUser = getUserInfo(callingUserId); in checkCallerIsCurrentUserOrProfile() local
9399 if (callingUser.isManagedProfile() && callingUser.profileGroupId != currentUser.id) { in checkCallerIsCurrentUserOrProfile()
9404 if (!callingUser.isManagedProfile() && callingUserId != currentUser.id ) { in checkCallerIsCurrentUserOrProfile()