/frameworks/base/core/java/android/nfc/cardemulation/ |
D | CardEmulation.java | 208 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, category); in isDefaultServiceForCategory() 217 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, in isDefaultServiceForCategory() 239 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid); in isDefaultServiceForAid() 248 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid); in isDefaultServiceForAid() 333 return sService.registerAidGroupForService(mContext.getUserId(), service, aidGroup); in registerAidsForService() 342 return sService.registerAidGroupForService(mContext.getUserId(), service, in registerAidsForService() 376 return sService.unsetOffHostForService(mContext.getUserId(), service); in unsetOffHostForService() 385 return sService.unsetOffHostForService(mContext.getUserId(), service); in unsetOffHostForService() 453 return sService.setOffHostForService(mContext.getUserId(), service, in setOffHostForService() 463 return sService.setOffHostForService(mContext.getUserId(), service, in setOffHostForService() [all …]
|
D | NfcFCardEmulation.java | 121 return sService.getSystemCodeForService(mContext.getUserId(), service); in getSystemCodeForService() 130 return sService.getSystemCodeForService(mContext.getUserId(), service); in getSystemCodeForService() 167 return sService.registerSystemCodeForService(mContext.getUserId(), in registerSystemCodeForService() 177 return sService.registerSystemCodeForService(mContext.getUserId(), in registerSystemCodeForService() 198 return sService.removeSystemCodeForService(mContext.getUserId(), service); in unregisterSystemCodeForService() 207 return sService.removeSystemCodeForService(mContext.getUserId(), service); in unregisterSystemCodeForService() 233 return sService.getNfcid2ForService(mContext.getUserId(), service); in getNfcid2ForService() 242 return sService.getNfcid2ForService(mContext.getUserId(), service); in getNfcid2ForService() 276 return sService.setNfcid2ForService(mContext.getUserId(), in setNfcid2ForService() 286 return sService.setNfcid2ForService(mContext.getUserId(), in setNfcid2ForService() [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | NotifyingApp.java | 41 public int getUserId() { in getUserId() method in NotifyingApp 106 return getUserId() == that.getUserId() in equals() 113 return Objects.hash(getUserId(), mPkg, getLastNotified()); in hashCode() 122 if (getUserId() == o.getUserId()) { in compareTo() 125 return Integer.compare(getUserId(), o.getUserId()); in compareTo()
|
/frameworks/base/core/java/android/content/ |
D | ClipboardManager.java | 106 mService.setPrimaryClip(clip, mContext.getOpPackageName(), mContext.getUserId()); in setPrimaryClip() 119 mService.clearPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in clearPrimaryClip() 135 return mService.getPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in getPrimaryClip() 153 mContext.getUserId()); in getPrimaryClipDescription() 167 return mService.hasPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in hasPrimaryClip() 179 mContext.getUserId()); in addPrimaryClipChangedListener() 195 mContext.getUserId()); in removePrimaryClipChangedListener() 232 return mService.hasClipboardText(mContext.getOpPackageName(), mContext.getUserId()); in hasText()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 140 return getUserId(uid1) == getUserId(uid2); in isSameUser() 204 return of(getUserId(uid)); in getUserHandleForUid() 212 public static @UserIdInt int getUserId(int uid) { in getUserId() method in UserHandle 223 return getUserId(Binder.getCallingUid()); in getCallingUserId() 270 return getSharedAppGid(getUserId(uid), getAppId(uid)); in getSharedAppGid() 300 return getCacheAppGid(getUserId(uid), getAppId(uid)); in getCacheAppGid() 322 sb.append(getUserId(uid)); in formatUid() 364 pw.print(getUserId(uid)); in formatUid() 408 return getUserId(Process.myUid()); in myUserId()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | GroupHelper.java | 58 = mUngroupedNotifications.get(sbn.getUserId()); in onNotificationPosted() 62 mUngroupedNotifications.put(sbn.getUserId(), ungroupedNotificationsByUser); in onNotificationPosted() 78 adjustAutogroupingSummary(sbn.getUserId(), sbn.getPackageName(), in onNotificationPosted() 84 maybeUngroup(sbn, false, sbn.getUserId()); in onNotificationPosted() 93 maybeUngroup(sbn, true, sbn.getUserId()); in onNotificationRemoved() 107 = mUngroupedNotifications.get(sbn.getUserId()); in maybeUngroup()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 152 public int getUserId() { in getUserId() method in ApplicationPackageManager 153 return mContext.getUserId(); in getUserId() 159 return getPackageInfoAsUser(packageName, flags, getUserId()); in getPackageInfo() 165 final int userId = getUserId(); in getPackageInfo() 274 final int userId = getUserId(); in getPackageGids() 290 return getPackageUidAsUser(packageName, flags, getUserId()); in getPackageUid() 395 return getApplicationInfoAsUser(packageName, flags, getUserId()); in getApplicationInfo() 445 final int userId = getUserId(); in getActivityInfo() 462 final int userId = getUserId(); in getReceiverInfo() 479 final int userId = getUserId(); in getServiceInfo() [all …]
|
D | KeyguardManager.java | 321 mWM.disableKeyguard(mToken, mTag, mContext.getUserId()); in disableKeyguard() 340 mWM.reenableKeyguard(mToken, mContext.getUserId()); in reenableKeyguard() 442 return mWM.isKeyguardSecure(mContext.getUserId()); in isKeyguardSecure() 468 return isDeviceLocked(mContext.getUserId()); in isDeviceLocked() 494 return isDeviceSecure(mContext.getUserId()); in isDeviceSecure()
|
D | UriGrantsManager.java | 68 getService().clearGrantedUriPermissions(packageName, mContext.getUserId()); in clearGrantedUriPermissions() 91 .getGrantedUriPermissions(packageName, mContext.getUserId()); in getGrantedUriPermissions()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotifyingAppTest.java | 39 assertEquals(0, na.getUserId()); in testConstructor() 55 assertEquals(90, na.getUserId()); in testUserId() 78 assertEquals(na.getUserId(), na1.getUserId()); in testWriteToParcel()
|
D | NotificationManagerServiceTest.java | 407 PKG, mContext.getUserId(), PKG, TEST_CHANNEL_ID)); in setUp() 567 nrBubble.sbn.getId(), nrBubble.sbn.getNotification(), nrBubble.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 579 nrPlain.sbn.getId(), nrPlain.sbn.getNotification(), nrPlain.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 592 nrSummary.sbn.getId(), nrSummary.sbn.getNotification(), nrSummary.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 608 mBinderService.getNotificationChannel(PKG, mContext.getUserId(), PKG, "id"); in testCreateNotificationChannels_SingleChannel() 632 PKG, mContext.getUserId(), PKG, "id1") != null); in testCreateNotificationChannels_TwoChannels() 634 PKG, mContext.getUserId(), PKG, "id2") != null); in testCreateNotificationChannels_TwoChannels() 651 mBinderService.getNotificationChannel(PKG, mContext.getUserId(), PKG, "id"); in testCreateNotificationChannels_SecondCreateDoesNotChangeImportance() 669 mBinderService.getNotificationChannel(PKG, mContext.getUserId(), PKG, "id"); in testCreateNotificationChannels_SecondCreateAllowedToDowngradeImportance() 692 mBinderService.getNotificationChannel(PKG, mContext.getUserId(), PKG, "id"); in testCreateNotificationChannels_CannotDowngradeImportanceIfAlreadyUpdated() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobSetTest.java | 71 assumeFalse("Test cannot run in user " + mContext.getUserId(), in setUp() 72 mContext.getUserId() == SECONDARY_USER_ID_1 in setUp() 73 || mContext.getUserId() == SECONDARY_USER_ID_2); in setUp() 82 mContext.getUserId(), "Test"); in getJobStatusWithCallinUid() 100 mJobSet.removeJobsOfNonUsers(new int[] {mContext.getUserId(), SECONDARY_USER_ID_1}); in testBothMapsHaveSameJobs() 102 mJobSet.removeJobsOfNonUsers(new int[] {mContext.getUserId()}); in testBothMapsHaveSameJobs()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowProcessControllerMapTests.java | 64 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp() 68 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp() 72 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp() 76 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp() 80 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 303 final int callingUserId = UserHandle.getUserId(callingUid); in getIntendingUserId() 358 final int intendingUserId = UserHandle.getUserId(intendingUid); in setPrimaryClip() 372 final int intendingUserId = UserHandle.getUserId(intendingUid); in clearPrimaryClip() 385 final int intendingUserId = UserHandle.getUserId(intendingUid); in getPrimaryClip() 401 final int intendingUserId = UserHandle.getUserId(intendingUid); in getPrimaryClipDescription() 417 final int intendingUserId = UserHandle.getUserId(intendingUid); in hasPrimaryClip() 432 final int intendingUserId = UserHandle.getUserId(intendingUid); in addPrimaryClipChangedListener() 451 final int intendingUserId = UserHandle.getUserId(intendingUid); in hasClipboardText() 520 final int userId = UserHandle.getUserId(uid); in setPrimaryClipInternal() 591 li.mUid, UserHandle.getUserId(li.mUid))) { in setPrimaryClipInternal() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 340 sService.beginRestoreSessionForUser(mContext.getUserId(), null, null); in beginRestoreSession() 470 return sService.getCurrentTransportComponentForUser(mContext.getUserId()); in getCurrentTransportComponent() 580 mContext.getUserId(), in updateTransportAttributes() 641 mContext.getUserId(), transport, wrapper); in selectBackupTransport() 688 return sService.getAvailableRestoreTokenForUser(mContext.getUserId(), packageName); in getAvailableRestoreToken() 710 return sService.isAppEligibleForBackupForUser(mContext.getUserId(), packageName); in isAppEligibleForBackup() 855 return sService.getConfigurationIntentForUser(mContext.getUserId(), transportName); in getConfigurationIntent() 877 return sService.getDestinationStringForUser(mContext.getUserId(), transportName); in getDestinationString() 899 return sService.getDataManagementIntentForUser(mContext.getUserId(), transportName); in getDataManagementIntent() 943 return sService.getDataManagementLabelForUser(mContext.getUserId(), transportName); in getDataManagementIntentLabel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationListControllerTest.java | 161 entry.notification.getUserId(), in testAppOps_addNotificationWithExistingAppOps() 163 when(mForegroundServiceController.getAppOps(entry.notification.getUserId(), in testAppOps_addNotificationWithExistingAppOps() 183 entry.notification.getUserId(), in testAdd_addNotificationWithNoExistingAppOps() 185 when(mForegroundServiceController.getAppOps(entry.notification.getUserId(), in testAdd_addNotificationWithNoExistingAppOps() 204 when(mForegroundServiceController.getAppOps(entry.notification.getUserId(), in testAdd_addNonForegroundNotificationWithExistingAppOps() 207 entry.notification.getUserId(), in testAdd_addNonForegroundNotificationWithExistingAppOps()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 157 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser() 163 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ContextCompat.java | 31 public int getUserId() { in getUserId() method in ContextCompat 32 return mWrapped.getUserId(); in getUserId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationFilter.java | 98 if (getUserManager().isLockscreenPublicMode(sbn.getUserId()) in shouldFilterOut() 100 || getUserManager().shouldHideNotifications(sbn.getUserId()) in shouldFilterOut() 123 && !getFsc().isDisclosureNeededForUser(sbn.getUserId())) { in shouldFilterOut() 131 if (!getFsc().isSystemAlertWarningNeeded(sbn.getUserId(), apps[0])) { in shouldFilterOut()
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 452 final UserInfo parentInfo = um.getProfileParent(mContext.getUserId()); in getParentProfileRingtones() 453 if (parentInfo != null && parentInfo.id != mContext.getUserId()) { in getParentProfileRingtones() 750 audioService.disableRingtoneSync(userContext.getUserId()); in disableSyncFromParent() 764 Settings.Secure.SYNC_PARENT_SOUNDS, 1 /* true */, userContext.getUserId()); in enableSyncFromParent() 783 setting, context.getUserId()); in getActualDefaultRingtoneUri() 789 && ContentProvider.getUserIdFromUri(ringtoneUri) == context.getUserId()) { in getActualDefaultRingtoneUri() 812 context.getUserId()) == 1) { in setActualDefaultRingtoneUri() 817 ringtoneUri = ContentProvider.maybeAddUserId(ringtoneUri, context.getUserId()); in setActualDefaultRingtoneUri() 820 ringtoneUri != null ? ringtoneUri.toString() : null, context.getUserId()); in setActualDefaultRingtoneUri() 825 final Uri cacheUri = getCacheForType(type, context.getUserId()); in setActualDefaultRingtoneUri() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 108 clearCache(record.getUserId()); in addSession() 129 clearCache(record.getUserId()); in removeSession() 165 clearCache(record.getUserId()); in onPlaystateChanged() 192 clearCache(record.getUserId()); in onSessionStateChange() 348 if (userId != UserHandle.USER_ALL && userId != session.getUserId()) { in getPriorityList()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 116 && UserHandle.getUserId(appInfo.uid) == UserHandle in verifyRemaining() 117 .getUserId(expectedAppInfo.uid)) { in verifyRemaining() 124 .append('u').append(UserHandle.getUserId(appInfo.uid)).append(' '); in verifyRemaining() 168 .getUserId(receiver.activityInfo.applicationInfo.uid))) { in excludeReceivers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceNotificationListener.java | 86 sbn.getUserId(), in removeNotification() 108 sbn.getUserId(), sbn)); in removeNotification() 120 sbn.getUserId(), in updateNotification()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 486 return mService.isAppInactive(packageName, mContext.getUserId()); in isAppInactive() 498 mService.setAppInactive(packageName, inactive, mContext.getUserId()); in setAppInactive() 527 mContext.getUserId()); in getAppStandbyBucket() 544 mContext.getUserId()); in getAppStandbyBucket() 564 mService.setAppStandbyBucket(packageName, bucket, mContext.getUserId()); in setAppStandbyBucket() 582 mContext.getOpPackageName(), mContext.getUserId()); in getAppStandbyBuckets() 614 mService.setAppStandbyBuckets(slice, mContext.getUserId()); in setAppStandbyBuckets()
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | SetupObserver.java | 45 mUserId = userBackupManagerService.getUserId(); in SetupObserver() 80 KeyValueBackupJob.schedule(mUserBackupManagerService.getUserId(), mContext, in onChange()
|