Home
last modified time | relevance | path

Searched refs:callingUser (Results 1 – 11 of 11) 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.java383 ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) { in getServiceByNameLocked() argument
386 Slog.v(TAG_MU, "getServiceByNameLocked(" + name + "), callingUser = " + callingUser); in getServiceByNameLocked()
387 return getServiceMapLocked(callingUser).mServicesByInstanceName.get(name); in getServiceByNameLocked()
390 boolean hasBackgroundServicesLocked(int callingUser) { in hasBackgroundServicesLocked() argument
391 ServiceMap smap = mServiceMap.get(callingUser); in hasBackgroundServicesLocked()
395 private ServiceMap getServiceMapLocked(int callingUser) { in getServiceMapLocked() argument
396 ServiceMap smap = mServiceMap.get(callingUser); in getServiceMapLocked()
398 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked()
399 mServiceMap.put(callingUser, smap); in getServiceMapLocked()
404 ArrayMap<ComponentName, ServiceRecord> getServicesLocked(int callingUser) { in getServicesLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java2323 int callingUser = UserHandle.getCallingUserId(); in checkIfCallerIsForegroundUser() local
2327 UserInfo ui = um.getProfileParent(callingUser); in checkIfCallerIsForegroundUser()
2333 valid = (callingUser == foregroundUser) || parentUser == foregroundUser in checkIfCallerIsForegroundUser()
2337 + callingUser + " parentUser=" + parentUser + " foregroundUser=" in checkIfCallerIsForegroundUser()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSMSDispatcher.java1870 UserHandle callingUser = UserHandle.getUserHandleForUid(Binder.getCallingUid()); in getSmsTracker() local
1871 final int userId = callingUser.getIdentifier(); in getSmsTracker()
1872 PackageManager pm = mContext.createContextAsUser(callingUser, 0).getPackageManager(); in getSmsTracker()
/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.java1256 final int callingUser = UserHandle.getUserId(callingUid); in enforceManageAppOpsModes() local
1258 if (mProfileOwners != null && mProfileOwners.get(callingUser, -1) == callingUid) { in enforceManageAppOpsModes()
1259 if (targetUid >= 0 && callingUser == UserHandle.getUserId(targetUid)) { in enforceManageAppOpsModes()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java23627 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
23630 /*userId*/ callingUser);
23640 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
23641 PackageInfo pInfo = getPackageInfo(packageName, 0, callingUser);
23653 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
23654 ApplicationInfo info = getApplicationInfo(packageName, 0, callingUser);
23665 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
23668 ApplicationInfo appInfo = getApplicationInfo(packageNames[i], 0, callingUser);
23676 int callingUser = UserHandle.getUserId(Binder.getCallingUid());
23679 /*userId*/ callingUser);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9400 UserInfo callingUser = getUserInfo(callingUserId); in checkCallerIsCurrentUserOrProfile() local
9408 if (callingUser.isManagedProfile() && callingUser.profileGroupId != currentUser.id) { in checkCallerIsCurrentUserOrProfile()
9413 if (!callingUser.isManagedProfile() && callingUserId != currentUser.id ) { in checkCallerIsCurrentUserOrProfile()