/frameworks/base/core/tests/coretests/src/android/os/ |
D | ProcessTest.java | 30 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName() 31 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), in testProcessGetUidFromName() 33 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100), in testProcessGetUidFromName()
|
D | UserHandleTest.java | 23 import static android.os.UserHandle.getUid; 102 return getUid(userId, appId); in multiuser_get_uid()
|
D | BinderWorkSourceService.java | 37 return ThreadLocalWorkSource.getUid();
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 175 if (mMediaButtonSession != null && mMediaButtonSession.getUid() == record.getUid()) { in onPlaystateChanged() 177 findMediaButtonSession(mMediaButtonSession.getUid()); in onPlaystateChanged() 211 mAudioPlayerStateMonitor.cleanUpAudioPlaybackUids(mediaButtonSession.getUid()); in updateMediaButtonSessionIfNeeded() 232 if (uid == session.getUid()) { in findMediaButtonSession() 234 mAudioPlayerStateMonitor.isPlaybackActive(session.getUid())) { in findMediaButtonSession()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 46 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateApp() 63 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + i + " clusterTimeUs=" in calculateApp() 69 Log.w(TAG, "UID " + u.getUid() + " CPU cluster # mismatch: Power Profile # " in calculateApp() 76 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + app.cpuTimeMs + " ms power=" in calculateApp()
|
D | BatterySipper.java | 193 public int getUid() { in getUid() method in BatterySipper 198 return uidObj.getUid(); in getUid()
|
/frameworks/base/core/java/com/android/internal/os/logging/ |
D | MetricsLoggerWrapper.java | 43 getUid(context, topActivityInfo.first, topActivityInfo.second), in logPictureInPictureDismissByTap() 54 getUid(context, topActivityInfo.first, topActivityInfo.second), in logPictureInPictureDismissByDrag() 64 getUid(context, topActivityInfo.first, topActivityInfo.second), in logPictureInPictureMinimize() 73 private static int getUid(Context context, ComponentName componentName, int userId) { in getUid() method in MetricsLoggerWrapper
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHelperTest.java | 109 when(mNormalBatterySipper.getUid()).thenReturn(UID); in setUp() 119 when(mSystemBatterySipper.getUid()).thenReturn(Process.SYSTEM_UID); in setUp() 174 when(mNormalBatterySipper.getUid()).thenReturn(Process.ROOT_UID); in testShouldHideSipper_TypeSystem_ReturnTrue() 233 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeSystem_systemPackage_returnTrue() 243 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeService_servicePackage_returnTrue() 297 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper() 302 doReturn(uidCode).when(uid).getUid(); in createTestSmearBatterySipper()
|
D | BatteryStatsCpuTimesTest.java | 326 final int isolatedUid = UserHandle.getUid(testUserId, isolatedAppId); in testReadKernelUidCpuTimesLocked_isolatedUid() 366 final int ownerUid = UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 42); in testReadKernelUidCpuTimesLocked_isolatedUid() 414 final int invalidUid = UserHandle.getUid(invalidUserId, FIRST_APPLICATION_UID + 99); in testReadKernelUidCpuTimesLocked_invalidUid() 466 UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 48), in testReadKernelUidCpuTimesLocked_withPartialTimers() 467 UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 10) in testReadKernelUidCpuTimesLocked_withPartialTimers() 729 UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 48), in testReadKernelUidCpuFreqTimesLocked_partialTimers() 730 UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 10) in testReadKernelUidCpuFreqTimesLocked_partialTimers() 903 final int isolatedUid = UserHandle.getUid(testUserId, isolatedAppId); in testReadKernelUidCpuFreqTimesLocked_isolatedUid() 947 final int ownerUid = UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 42); in testReadKernelUidCpuFreqTimesLocked_isolatedUid() 996 final int invalidUid = UserHandle.getUid(invalidUserId, FIRST_APPLICATION_UID + 99); in testReadKernelUidCpuFreqTimesLocked_invalidUid() [all …]
|
/frameworks/base/core/java/android/metrics/ |
D | MetricsReader.java | 98 .setUid(event.getUid()) in read() 175 mUid = nativeEvent.getUid(); in Event() 187 public int getUid() { in getUid() method in MetricsReader.Event
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputBinding.java | 76 mUid = binding.getUid(); in InputBinding() 106 public int getUid() { in getUid() method in InputBinding
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreKeyGeneratorSpi.java | 315 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey() 320 spec.getUid(), in engineGenerateKey() 339 keyAliasInKeystore, spec.getUid(), keyAlgorithmJCA); in engineGenerateKey() 345 mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey()
|
D | AndroidKeyStoreECDSASignatureSpi.java | 158 key.getAlias(), null, null, key.getUid(), keyCharacteristics); in initKey() 160 throw getKeyStore().getInvalidKeyException(key.getAlias(), key.getUid(), errorCode); in initKey()
|
D | AndroidKeyStoreLoadStoreParameter.java | 35 int getUid() { in getUid() method in AndroidKeyStoreLoadStoreParameter
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobSetTest.java | 87 final int callingUid1 = UserHandle.getUid(SECONDARY_USER_ID_1, 1); in testBothMapsHaveSameJobs() 88 final int callingUid2 = UserHandle.getUid(SECONDARY_USER_ID_2, 1); in testBothMapsHaveSameJobs() 139 str.append("(s=" + job.getSourceUid() + ", c=" + job.getUid() + "), "); in dump()
|
/frameworks/base/media/apex/java/android/media/ |
D | Session2Token.java | 109 final int uid = getUid(manager, serviceComponent.getPackageName()); in Session2Token() 197 public int getUid() { in getUid() method in Session2Token 264 private static int getUid(PackageManager manager, String packageName) { in getUid() method in Session2Token
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobConcurrencyManager.java | 351 final boolean preferredUidOkay = (preferredUid == nextPending.getUid()) in assignJobsToContextsInternalLocked() 366 if (job.getUid() != nextPending.getUid()) { in assignJobsToContextsInternalLocked() 438 if (map[i] != null && map[i].matches(jobStatus.getUid(), jobStatus.getJobId())) { in findJobContextIdFromMap() 454 .append(js.getUid()) in printPendingQueueLocked() 465 .append(map[i] == null? -1: map[i].getUid()) in printContextIdToJobMap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 165 if (item.getCode() == code && item.getUid() == uid in getAppOpItem() 250 || UserHandle.getUserId(item.getUid()) == userId)) { in getActiveAppOpsForUser() 260 || UserHandle.getUserId(item.getUid()) == userId)) { in getActiveAppOpsForUser() 343 removeNoted(item.getCode(), item.getUid(), item.getPackageName()); in scheduleRemoval()
|
/frameworks/base/core/java/android/app/usage/ |
D | CacheQuotaHint.java | 58 public int getUid() { in getUid() method in CacheQuotaHint 111 setUid(hint.getUid()); in Builder()
|
D | NetworkStats.java | 354 public int getUid() { in getUid() method in NetworkStats.Bucket 597 mHistory = mSession.getHistoryIntervalForUid(mTemplate, getUid(), in stepHistory() 661 bucketOut.mUid = Bucket.convertUid(getUid()); in getNextHistoryBucket() 693 private int getUid() { in getUid() method in NetworkStats
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 175 pkgInfo.applicationInfo.uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in buildPackageInfo() 351 final int uid = UserHandle.getUid(user, app); in expectPermission() 365 final int uid = UserHandle.getUid(user, app); in expectNoPermission() 464 MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates() 466 mPermissionMonitor.onPackageAdded(MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates() 503 mPermissionMonitor.onPackageAdded(MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringPackageInstallAndUninstall() 509 MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringPackageInstallAndUninstall() 519 mPermissionMonitor.onPackageAdded(packageName, UserHandle.getUid(user, uid)); in addPackageForUsers() 525 mPermissionMonitor.onPackageRemoved(packageName, UserHandle.getUid(user, uid)); in removePackageForUsers()
|
/frameworks/base/core/java/android/net/ |
D | Credentials.java | 41 public int getUid() { in getUid() method in Credentials
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationFilterTest.java | 82 when(mMockStatusBarNotification.getUid()).thenReturn(UID_NORMAL); in setUp() 107 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_FalseIfNoExtra() 130 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_TrueIfHasPermissionAndExtra()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMulticastLockManager.java | 91 public int getUid() { in getUid() method in WifiMulticastLockManager.Multicaster 171 if ((m != null) && (m.getUid() == uid) && (m.getTag().equals(tag))) { in releaseLock()
|
/frameworks/base/core/java/android/os/ |
D | ThreadLocalWorkSource.java | 52 public static int getUid() { in getUid() method in ThreadLocalWorkSource
|