Home
last modified time | relevance | path

Searched refs:getCallingUserHandle (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomServiceImpl.java175 UserHandle callingUserHandle = Binder.getCallingUserHandle();
333 callingPackage, Binder.getCallingUserHandle())) {
961 Binder.getCallingUserHandle())) {
1081 UserHandle userHandle = Binder.getCallingUserHandle();
1130 UserHandle callingUserHandle = Binder.getCallingUserHandle();
1172 Binder.getCallingUserHandle())) {
1259 Binder.getCallingUserHandle());
1321 Binder.getCallingUserHandle());
1363 Binder.getCallingUserHandle());
1420 Binder.getCallingUserHandle());
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/slice/
H A DSliceManagerService.java148 int callingUser = Binder.getCallingUserHandle().getIdentifier(); in getPinnedSlices()
169 int user = Binder.getCallingUserHandle().getIdentifier(); in pinSlice()
187 uri = maybeAddUserId(uri, Binder.getCallingUserHandle().getIdentifier()); in unpinSlice()
201 return hasFullSliceAccess(pkg, Binder.getCallingUserHandle().getIdentifier()); in hasSliceAccess()
208 uri = maybeAddUserId(uri, Binder.getCallingUserHandle().getIdentifier()); in getPinnedSpecs()
215 int user = Binder.getCallingUserHandle().getIdentifier(); in grantSlicePermission()
223 int user = Binder.getCallingUserHandle().getIdentifier(); in revokeSlicePermission()
269 int userId = Binder.getCallingUserHandle().getIdentifier(); in grantPermissionFromUser()
414 int user = Binder.getCallingUserHandle().getIdentifier(); in enforceCrossUser()
425 Binder.getCallingUserHandle().getIdentifier()); in enforceAccess()
/aosp12/frameworks/base/core/java/android/app/
H A DStatusBarManager.java242 final int userId = Binder.getCallingUserHandle().getIdentifier(); in disable()
262 final int userId = Binder.getCallingUserHandle().getIdentifier(); in disable2()
471 final int userId = Binder.getCallingUserHandle().getIdentifier(); in setDisabledForSetup()
497 final int userId = Binder.getCallingUserHandle().getIdentifier(); in setExpansionDisabledForSimNetworkLock()
520 final int userId = Binder.getCallingUserHandle().getIdentifier(); in getDisableInfo()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DRingtonePlayer.java127 final UserHandle user = Binder.getCallingUserHandle();
203 final UserHandle user = Binder.getCallingUserHandle();
210 final UserHandle user = Binder.getCallingUserHandle();
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DTelecomServiceImplTest.java189 Binder.getCallingUserHandle());
192 Binder.getCallingUserHandle());
498 packageNameToUse, "cs"), "test", Binder.getCallingUserHandle()); in testRegisterPhoneAccount()
513 packageNameToUse, "cs"), "asdf", Binder.getCallingUserHandle()); in testRegisterPhoneAccountWithoutModifyPermission()
531 packageNameToUse, "cs"), "asdf", Binder.getCallingUserHandle()); in testRegisterPhoneAccountWithoutModifyPermissionFailure()
548 packageNameToUse, "cs"), "asdf", Binder.getCallingUserHandle()); in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure()
568 packageNameToUse, "cs"), "asdf", Binder.getCallingUserHandle()); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure()
606 packageNameToUse, "cs"), "test", Binder.getCallingUserHandle()); in testUnregisterPhoneAccount()
904 Binder.getCallingUserHandle())).thenReturn(null); in testIsVoicemailNumberAccountNotVisibleFailure()
913 eq(Binder.getCallingUserHandle()))) in testGetVoicemailNumberWithNullAccountHandle()
[all …]
H A DCreateConnectionProcessorTest.java679 eq(Binder.getCallingUserHandle()))).thenReturn(wrapper); in makeConnectionServiceWrapper()
685 Binder.getCallingUserHandle()); in makeQuickAccountHandle()
/aosp12/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
H A DShadowBinder.java58 public static UserHandle getCallingUserHandle() { in getCallingUserHandle() method in ShadowBinder
/aosp12/frameworks/base/services/people/java/com/android/server/people/
H A DPeopleService.java181 Binder.getCallingUserHandle().getIdentifier()));
188 Binder.getCallingUserHandle().getIdentifier());
195 Binder.getCallingUserHandle().getIdentifier());
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbSerialReader.java78 UserHandle user = Binder.getCallingUserHandle(); in getSerial()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServices.java164 Binder.getCallingUserHandle().getIdentifier()); in verifyCaller()
270 UserHandle userHandle = getCallingUserHandle(); in updateStatusIcon()
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java190 return Binder.getCallingUserHandle().getIdentifier(); in binderGetCallingUserId()
1415 int callingUserId = Binder.getCallingUserHandle().getIdentifier(); in getUserForAncestralSerialNumber()
1449 Binder.getCallingUserHandle().getIdentifier(), in setAncestralSerialNumber()
1545 int userId = Binder.getCallingUserHandle().getIdentifier(); in excludeKeysFromRestore()
1590 if (Binder.getCallingUserHandle().getIdentifier() != userId) { in enforceCallingPermissionOnUserId()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileAppsServiceImpl.java782 public UserHandle getCallingUserHandle() {
783 return Binder.getCallingUserHandle();
874 UserHandle getCallingUserHandle();
H A DLauncherAppsService.java232 Log.d(TAG, "Adding listener from " + Binder.getCallingUserHandle()); in addOnAppsChangedListener()
254 Log.d(TAG, "Removing listener from " + Binder.getCallingUserHandle()); in removeOnAppsChangedListener()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
H A DAndroidMockitoHelperTest.java177 assertThat(Binder.getCallingUserHandle()).isEqualTo(UserHandle.of(TEST_USER_ID)); in testMockBinderGetCallingUserHandle()
/aosp12/packages/services/Car/car-test-lib/src/android/car/test/mocks/
H A DAndroidMockitoHelper.java255 doReturn(UserHandle.of(userId)).when(() -> Binder.getCallingUserHandle()); in mockBinderGetCallingUserHandle()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerServiceTestable.java304 return context.binder.getCallingUserHandle(); in binderGetCallingUserHandle()
H A DDpmMockContext.java140 public UserHandle getCallingUserHandle() { in getCallingUserHandle() method in DpmMockContext.MockBinder
/aosp12/packages/modules/Scheduling/service/java/com/android/server/scheduling/
H A DRebootReadinessManagerService.java278 Binder.getCallingUserHandle(), mReadyToReboot); in markRebootPending()
/aosp12/frameworks/base/core/java/android/os/
H A DBinder.java341 public static final @NonNull UserHandle getCallingUserHandle() { in getCallingUserHandle() method in Binder
/aosp12/packages/apps/Settings/src/com/android/settings/accounts/
H A DAccountSyncSettings.java168 onAccountsUpdate(Binder.getCallingUserHandle()); in onResume()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplTest.java644 public UserHandle getCallingUserHandle() { in getCallingUserHandle() method in CrossProfileAppsServiceImplTest.TestInjector
/aosp12/frameworks/base/services/core/java/com/android/server/media/projection/
H A DMediaProjectionManagerService.java290 final UserHandle callingUser = Binder.getCallingUserHandle(); in createProjection()
/aosp12/frameworks/base/services/robotests/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplRoboTest.java709 public UserHandle getCallingUserHandle() { in getCallingUserHandle() method in CrossProfileAppsServiceImplRoboTest.TestInjector
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java4875 pkg, getCallingUserHandle().getIdentifier());
4928 Binder.getCallingUserHandle(),
4990 pkg, getCallingUserHandle().getIdentifier(), granted);
5098 return mListeners.getAllowedPackages(getCallingUserHandle().getIdentifier());
5120 return getAllowedNotificationAssistantForUser(getCallingUserHandle().getIdentifier());
5152 getCallingUserHandle().getIdentifier());
5169 getCallingUserHandle().getIdentifier());
5176 listener, getCallingUserHandle().getIdentifier(), granted, userSet);
5183 assistant, getCallingUserHandle().getIdentifier(), granted);
5219 getCallingUserHandle().getIdentifier());
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/
H A DCarProjectionService.java403 final int userHandleId = Binder.getCallingUserHandle().getIdentifier(); in updateProjectionStatus()

12