Searched refs:getCallingUserId (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/content/
H A DContentService.java299 final int callingUserHandle = UserHandle.getCallingUserId();
330 UserHandle.getCallingUserId());
365 final int callingUserHandle = UserHandle.getCallingUserId();
448 UserHandle.getCallingUserId());
475 int userId = UserHandle.getCallingUserId();
503 syncAsUser(request, UserHandle.getCallingUserId());
569 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId());
617 int userId = UserHandle.getCallingUserId();
646 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId());
689 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId());
[all...]
/frameworks/base/services/core/java/com/android/server/search/
H A DSearchManagerService.java234 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity);
242 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList();
247 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities();
255 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity();
263 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity();
/frameworks/base/core/java/android/app/
H A DKeyguardManager.java277 return isDeviceLocked(UserHandle.getCallingUserId());
303 return isDeviceSecure(UserHandle.getCallingUserId());
H A DUiAutomationConnection.java173 int callingUserId = UserHandle.getCallingUserId();
193 int callingUserId = UserHandle.getCallingUserId();
/frameworks/base/core/java/android/database/
H A DContentObserver.java178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId());
/frameworks/base/services/core/java/com/android/server/pm/
H A DLauncherAppsService.java143 private int getCallingUserId() { method in class:LauncherAppsService.LauncherAppsImpl
166 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()),
368 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(),
389 mShortcutServiceInternal.getShortcuts(getCallingUserId(),
403 mShortcutServiceInternal.pinShortcuts(getCallingUserId(),
415 return mShortcutServiceInternal.getShortcutIconResId(getCallingUserId(),
427 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(),
434 return mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(),
450 if (!mShortcutServiceInternal.isPinnedByCaller(getCallingUserId(),
456 getCallingUserId(), callingPackag
[all...]
H A DUserManagerService.java558 if (userId != UserHandle.getCallingUserId()) {
575 if (userId != UserHandle.getCallingUserId()) {
862 int callingUserId = UserHandle.getCallingUserId();
880 int callingUserId = UserHandle.getCallingUserId();
894 return getUserInfoLU(UserHandle.getCallingUserId()).isRestricted();
1012 final int callingUserId = UserHandle.getCallingUserId();
2184 if (hasUserRestriction(UserManager.DISALLOW_ADD_USER, UserHandle.getCallingUserId())) {
2383 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(
2427 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(
2596 return getApplicationRestrictionsForUser(packageName, UserHandle.getCallingUserId());
[all...]
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
H A DRestrictionsManagerService.java77 int userHandle = UserHandle.getCallingUserId();
131 final int userHandle = UserHandle.getCallingUserId();
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProvider.java320 Slog.v(LOG_TAG, "query() for user: " + UserHandle.getCallingUserId());
342 final int userId = UserHandle.getCallingUserId();
352 final int userId = UserHandle.getCallingUserId();
370 Slog.v(LOG_TAG, "insert() for user: " + UserHandle.getCallingUserId());
389 if (insertGlobalSetting(name, value, UserHandle.getCallingUserId(), false)) {
395 if (insertSecureSetting(name, value, UserHandle.getCallingUserId(), false)) {
401 if (insertSystemSetting(name, value, UserHandle.getCallingUserId())) {
417 Slog.v(LOG_TAG, "bulkInsert() for user: " + UserHandle.getCallingUserId());
435 Slog.v(LOG_TAG, "delete() for user: " + UserHandle.getCallingUserId());
451 final int userId = UserHandle.getCallingUserId();
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DRotationPolicy.java159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId());
/frameworks/base/services/core/java/com/android/server/dreams/
H A DDreamManagerService.java502 final int userId = UserHandle.getCallingUserId();
515 final int userId = UserHandle.getCallingUserId();
528 final int userId = UserHandle.getCallingUserId();
568 final int callingUserId = UserHandle.getCallingUserId();
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbService.java234 final int userId = UserHandle.getCallingUserId();
240 final int userId = UserHandle.getCallingUserId();
246 final int userId = UserHandle.getCallingUserId();
253 final int userId = UserHandle.getCallingUserId();
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java746 final int userId = UserHandle.getCallingUserId();
783 final int userId = UserHandle.getCallingUserId();
809 final int userId = UserHandle.getCallingUserId();
852 final int userId = UserHandle.getCallingUserId();
887 Slog.i(TAG, "hasBindAppWidgetPermission() " + UserHandle.getCallingUserId());
911 Slog.i(TAG, "setBindAppWidgetPermission() " + UserHandle.getCallingUserId());
940 final int userId = UserHandle.getCallingUserId();
991 final int userId = UserHandle.getCallingUserId();
1102 final int userId = UserHandle.getCallingUserId();
1129 final int userId = UserHandle.getCallingUserId();
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java743 return getUserAccounts(UserHandle.getCallingUserId());
911 int userId = UserHandle.getCallingUserId();
952 int userId = UserHandle.getCallingUserId();
1006 int userId = UserHandle.getCallingUserId();
1046 UserHandle.getCallingUserId(),
1078 return (userId != UserHandle.getCallingUserId()
1095 int userId = UserHandle.getCallingUserId();
1192 int userId = UserHandle.getCallingUserId();
1410 int userId = UserHandle.getCallingUserId();
1490 int userId = UserHandle.getCallingUserId();
[all...]
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java140 return getClipboard(UserHandle.getCallingUserId());
374 final int targetUserHandle = UserHandle.getCallingUserId();
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java3333 final int userId = UserHandle.getCallingUserId();
3360 final int userId = UserHandle.getCallingUserId();
4439 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId());
4470 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId());
4528 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId());
4614 int userHandle = UserHandle.getCallingUserId();
4632 int userHandle = UserHandle.getCallingUserId();
5031 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) {
5033 + UserHandle.getCallingUserId() + " is not permitted.");
5150 final int userHandle = UserHandle.getCallingUserId();
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkScorerAppManager.java114 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) {
H A DVpnService.java606 pm.getApplicationInfo(packageName, 0, UserHandle.getCallingUserId());
/frameworks/base/core/java/android/os/
H A DUserHandle.java154 public static @UserIdInt int getCallingUserId() { method in class:UserHandle
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DTelephonyRegistryMock.java130 r.callerUserId = UserHandle.getCallingUserId();
/frameworks/base/core/tests/coretests/src/android/provider/
H A DSettingsProviderTest.java171 otherUser.id, UserHandle.getCallingUserId());
183 otherUser.id, UserHandle.getCallingUserId());
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerService.java750 final int callingUid = UserHandle.getCallingUserId();
793 final int callingUid = UserHandle.getCallingUserId();
833 final int callingUid = UserHandle.getCallingUserId();
880 int callingUid = UserHandle.getCallingUserId();
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DFingerprintService.java416 if (userId != UserHandle.getCallingUserId()) {
485 if (!isCurrentUserOrProfile(UserHandle.getCallingUserId())) {
780 final int callingUserId = UserHandle.getCallingUserId();
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsService.java1260 final int userId = UserHandle.getCallingUserId();
1281 final int userId = UserHandle.getCallingUserId();
1302 final int userId = UserHandle.getCallingUserId();
/frameworks/base/services/core/java/com/android/server/
H A DMmsServiceBroker.java502 final int callingUserId = UserHandle.getCallingUserId();

Completed in 1151 milliseconds

12