Home
last modified time | relevance | path

Searched refs:getUid (Results 1 – 25 of 177) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/os/
DProcessTest.java31 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName()
32 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), in testProcessGetUidFromName()
34 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100), in testProcessGetUidFromName()
DUserHandleTest.java23 import static android.os.UserHandle.getUid;
102 return getUid(userId, appId); in multiuser_get_uid()
DBinderWorkSourceService.java37 return ThreadLocalWorkSource.getUid();
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java175 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/
DCpuPowerCalculator.java46 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()
/frameworks/base/core/java/com/android/internal/os/logging/
DMetricsLoggerWrapper.java43 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/
DBatteryStatsHelperTest.java109 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()
DBatteryStatsCpuTimesTest.java326 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/view/inputmethod/
DInputBinding.java76 mUid = binding.getUid(); in InputBinding()
106 public int getUid() { in getUid() method in InputBinding
/frameworks/base/core/java/android/metrics/
DMetricsReader.java98 .setUid(event.getUid()) in read()
175 mUid = nativeEvent.getUid(); in Event()
187 public int getUid() { in getUid() method in MetricsReader.Event
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyGeneratorSpi.java319 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey()
324 spec.getUid(), in engineGenerateKey()
343 keyAliasInKeystore, spec.getUid(), keyAlgorithmJCA); in engineGenerateKey()
349 mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey()
DAndroidKeyStoreECDSASignatureSpi.java158 key.getAlias(), null, null, key.getUid(), keyCharacteristics); in initKey()
160 throw getKeyStore().getInvalidKeyException(key.getAlias(), key.getUid(), errorCode); in initKey()
DAndroidKeyStoreLoadStoreParameter.java35 int getUid() { in getUid() method in AndroidKeyStoreLoadStoreParameter
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobSetTest.java87 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/
DSession2Token.java109 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/core/java/android/app/usage/
DCacheQuotaHint.java58 public int getUid() { in getUid() method in CacheQuotaHint
111 setUid(hint.getUid()); in Builder()
DNetworkStats.java354 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/services/core/java/com/android/server/job/
DJobConcurrencyManager.java351 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/
DAppOpsControllerImpl.java163 if (item.getCode() == code && item.getUid() == uid in getAppOpItem()
248 || UserHandle.getUserId(item.getUid()) == userId)) { in getActiveAppOpsForUser()
258 || UserHandle.getUserId(item.getUid()) == userId)) { in getActiveAppOpsForUser()
340 removeNoted(item.getCode(), item.getUid(), item.getPackageName()); in scheduleRemoval()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java202 pkgInfo.applicationInfo.uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in buildPackageInfo()
392 final int uid = UserHandle.getUid(user, app); in expectPermission()
406 final int uid = UserHandle.getUid(user, app); in expectNoPermission()
501 mPermissionMonitor.onPackageRemoved(UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
503 mPermissionMonitor.onPackageAdded(MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
540 mPermissionMonitor.onPackageAdded(MOCK_PACKAGE1, UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringPackageInstallAndUninstall()
545 mPermissionMonitor.onPackageRemoved(UserHandle.getUid(MOCK_USER1, MOCK_UID1)); in testUidFilteringDuringPackageInstallAndUninstall()
555 mPermissionMonitor.onPackageAdded(packageName, UserHandle.getUid(user, uid)); in addPackageForUsers()
561 mPermissionMonitor.onPackageRemoved(UserHandle.getUid(user, uid)); in removePackageForUsers()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java81 when(mMockStatusBarNotification.getUid()).thenReturn(UID_NORMAL); in setUp()
106 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_FalseIfNoExtra()
129 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_TrueIfHasPermissionAndExtra()
/frameworks/base/core/java/android/net/
DCredentials.java41 public int getUid() { in getUid() method in Credentials
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiMulticastLockManager.java91 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/
DThreadLocalWorkSource.java52 public static int getUid() { in getUid() method in ThreadLocalWorkSource
DUserHandle.java241 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { in getUid() method in UserHandle
264 return getUid(userId, Process.SHARED_USER_GID); in getUserGid()
305 return getUid(userId, (appId - AID_APP_START) + AID_CACHE_GID_START); in getCacheAppGid()

12345678