Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/android/os/
DProcessTest.java35 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName()
36 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), in testProcessGetUidFromName()
38 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100), in testProcessGetUidFromName()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java160 if (mMediaButtonSession != null && mMediaButtonSession.getUid() == record.getUid()) { in onPlaystateChanged()
162 findMediaButtonSession(mMediaButtonSession.getUid()); in onPlaystateChanged()
196 mAudioPlaybackMonitor.cleanUpAudioPlaybackUids(mediaButtonSession.getUid()); in updateMediaButtonSessionIfNeeded()
217 if (uid == session.getUid()) { in findMediaButtonSession()
219 mAudioPlaybackMonitor.isPlaybackActive(session.getUid())) { in findMediaButtonSession()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java108 when(mNormalBatterySipper.getUid()).thenReturn(UID); in setUp()
118 when(mSystemBatterySipper.getUid()).thenReturn(Process.SYSTEM_UID); in setUp()
173 when(mNormalBatterySipper.getUid()).thenReturn(Process.ROOT_UID); in testShouldHideSipper_TypeSystem_ReturnTrue()
232 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeSystem_systemPackage_returnTrue()
242 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeService_servicePackage_returnTrue()
266 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper()
271 doReturn(uidCode).when(uid).getUid(); in createTestSmearBatterySipper()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationDataTest.java61 when(mMockStatusBarNotification.getUid()).thenReturn(UID_NORMAL); in setUp()
83 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_FalseIfNoExtra()
106 when(mMockStatusBarNotification.getUid()).thenReturn(UID_ALLOW_DURING_SETUP); in testShowNotificationEvenIfUnprovisioned_TrueIfHasPermissionAndExtra()
/frameworks/base/core/java/android/metrics/
DMetricsReader.java96 .setUid(event.getUid()) in read()
173 mUid = nativeEvent.getUid(); in Event()
185 public int getUid() { in getUid() method in MetricsReader.Event
/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/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyGeneratorSpi.java312 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey()
317 spec.getUid(), in engineGenerateKey()
332 keyAliasInKeystore, spec.getUid(), keyAlgorithmJCA); in engineGenerateKey()
338 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
DKeyStoreCryptoOperationUtils.java54 keyStore.getInvalidKeyException(key.getAlias(), key.getUid(), beginOpResultCode); in getInvalidKeyExceptionForInit()
/frameworks/base/core/java/com/android/internal/os/
DCpuPowerCalculator.java47 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateApp()
57 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + app.cpuTimeMs + " ms power=" in calculateApp()
DBatterySipper.java164 public int getUid() { in getUid() method in BatterySipper
169 return uidObj.getUid(); in getUid()
DBatteryStatsHelper.java563 Log.d(TAG, String.format("UID %d: total power=%s", u.getUid(), in processAppUsage()
568 if (totalPower != 0 || u.getUid() == 0) { in processAppUsage()
572 final int uid = app.getUid(); in processAppUsage()
874 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper()
883 sipper.screenPowerMah = screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper()
908 final String[] packages = mPackageManager.getPackagesForUid(sipper.getUid()); in isTypeService()
926 final int uid = sipper.uidObj == null ? -1 : sipper.getUid(); in isTypeSystem()
/frameworks/base/core/java/android/app/usage/
DCacheQuotaHint.java58 public int getUid() { in getUid() method in CacheQuotaHint
111 setUid(hint.getUid()); in Builder()
DNetworkStats.java289 public int getUid() { in getUid() method in NetworkStats.Bucket
527 mHistory = mSession.getHistoryIntervalForUid(mTemplate, getUid(), in stepHistory()
588 bucketOut.mUid = Bucket.convertUid(getUid()); in getNextHistoryBucket()
619 private int getUid() { in getUid() method in NetworkStats
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiMulticastLockManager.java90 public int getUid() { in getUid() method in WifiMulticastLockManager.Multicaster
163 if ((m != null) && (m.getUid() == uid)) { in releaseLock()
/frameworks/base/core/java/android/net/
DCredentials.java41 public int getUid() { in getUid() method in Credentials
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.cpp231 int uid_given = item->getUid(); in submit()
265 setPkgInfo(item, item->getUid(), true, true); in submit()
268 setPkgInfo(item, item->getUid(), true, true); in submit()
275 uid_given, item->getUid(), in submit()
657 if (nitem->getUid() != oitem->getUid()) { in compatibleItems()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java227 int uid = request.getUid(); in pushProcessedQuotas()
236 "Failed to set cache quota for " + request.getUid(), in pushProcessedQuotas()
250 volumeMap.put(UserHandle.getUid(userId, appId), quota); in insertIntoQuotaMap()
337 out.attribute(null, ATTR_UID, Integer.toString(request.getUid())); in saveToXml()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java82 int uid = ops.getUid(); in getAppList()
137 int uid = ops.getUid(); in getRequestFromOps()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java46 record.sbn.getUid(), record.getChannel().getId(), false)); in process()
DBadgeExtractor.java46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); in process()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java60 setUpPackageManagerForAdmin(admin2, UserHandle.getUid(10, 123)); in testMigration()
61 setUpPackageManagerForAdmin(admin3, UserHandle.getUid(11, 456)); in testMigration()
278 setUpPackageManagerForAdmin(admin1, UserHandle.getUid(10, 123)); in testMigration3_managedProfileOwner()
/frameworks/av/include/media/
DMidiDeviceInfo.h39 int getUid() const { return mId; } in getUid() function
/frameworks/av/media/libmedia/include/media/
DMidiDeviceInfo.h39 int getUid() const { return mId; } in getUid() function

12345