/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsMockContext.java | 77 static final int UID_PRIMARY_SOCIAL = UserHandle.getUid(USER_PRIMARY, UID_SOCIAL); 78 static final int UID_PRIMARY_CAMERA = UserHandle.getUid(USER_PRIMARY, UID_CAMERA); 79 static final int UID_PRIMARY_PRIVATE = UserHandle.getUid(USER_PRIMARY, UID_PRIVATE); 80 static final int UID_PRIMARY_PUBLIC = UserHandle.getUid(USER_PRIMARY, UID_PUBLIC); 81 static final int UID_PRIMARY_FORCE = UserHandle.getUid(USER_PRIMARY, UID_FORCE); 82 static final int UID_PRIMARY_COMPLEX = UserHandle.getUid(USER_PRIMARY, UID_COMPLEX); 84 static final int UID_SECONDARY_SOCIAL = UserHandle.getUid(USER_SECONDARY, UID_SOCIAL); 85 static final int UID_SECONDARY_CAMERA = UserHandle.getUid(USER_SECONDARY, UID_CAMERA); 86 static final int UID_SECONDARY_PRIVATE = UserHandle.getUid(USER_SECONDARY, UID_PRIVATE); 87 static final int UID_SECONDARY_PUBLIC = UserHandle.getUid(USER_SECONDARY, UID_PUBLIC); [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | UserPowerCalculatorTest.java | 60 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers() 62 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers() 67 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 69 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 84 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser() 86 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser() 88 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID2))).isNull(); in testSpecificUser() 89 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID3)) in testSpecificUser() 91 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID3)) in testSpecificUser() 100 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID1))).isNull(); in testSpecificUser() [all …]
|
D | BatteryStatsHelperTest.java | 108 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() 296 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper() 300 doReturn(uidCode).when(uid).getUid(); in createTestSmearBatterySipper()
|
D | BatteryUsageStatsTest.java | 99 when(mockUid.getUid()).thenReturn(i); in testParcelability_largeNumberOfUids() 122 Collectors.toMap(UidBatteryConsumer::getUid, c -> c)); in testParcelability_largeNumberOfUids() 181 if (uidBatteryConsumer.getUid() == APP_UID1) { in testAdd() 185 } else if (uidBatteryConsumer.getUid() == APP_UID2) { in testAdd() 190 fail("Unexpected UID " + uidBatteryConsumer.getUid()); in testAdd() 344 if (uidBatteryConsumer.getUid() == APP_UID1) { in assertBatteryUsageStats1() 349 fail("Unexpected UID " + uidBatteryConsumer.getUid()); in assertBatteryUsageStats1()
|
/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_APP_ZYGOTE_ISOLATED_UID), in testProcessGetUidFromName() 33 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), in testProcessGetUidFromName() 35 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()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemAppOpsHelper.java | 67 callerIdentity.getUid(), in startOpNoThrow() 85 callerIdentity.getUid(), in finishOp() 101 callerIdentity.getUid(), in checkOpNoThrow() 116 callerIdentity.getUid(), in noteOp() 133 callerIdentity.getUid(), in noteOpNoThrow()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 78 uidConsumers.sort((a, b) -> a.getUid() - b.getUid()); in testGetStatsProto() 85 assertEquals(UID_0, bus.getUidBatteryConsumers().get(0).getUid()); in testGetStatsProto() 93 assertEquals(UID_1, bus.getUidBatteryConsumers().get(1).getUid()); in testGetStatsProto() 101 assertEquals(UID_2, bus.getUidBatteryConsumers().get(2).getUid()); in testGetStatsProto() 145 assertEquals("Uid consumers had mismatched uids", uid, uidConsumer.getUid()); in assertSameUidBatteryConsumer() 240 when(mockUid.getUid()).thenReturn(i); in testLargeAtomTruncated() 251 when(largeConsumerMockUid.getUid()).thenReturn(largeConsumerUid); in testLargeAtomTruncated() 261 when(highUsageMockUid.getUid()).thenReturn(highUsageUid); in testLargeAtomTruncated()
|
/frameworks/base/core/java/android/service/notification/ |
D | ConversationChannelWrapper.java | 121 public int getUid() { in getUid() method in ConversationChannelWrapper 139 getUid() == that.getUid(); in equals() 145 getShortcutInfo(), getPkg(), getUid()); in hashCode()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 157 if (mMediaButtonSession != null && mMediaButtonSession.getUid() == record.getUid()) { in onPlaybackStateChanged() 159 findMediaButtonSession(mMediaButtonSession.getUid()); in onPlaybackStateChanged() 213 mAudioPlayerStateMonitor.cleanUpAudioPlaybackUids(mediaButtonSession.getUid()); in updateMediaButtonSessionIfNeeded() 250 if (uid == session.getUid()) { in findMediaButtonSession() 252 mAudioPlayerStateMonitor.isPlaybackActive(session.getUid()))) { in findMediaButtonSession()
|
D | MediaSession2Record.java | 82 public int getUid() { in getUid() method in MediaSession2Record 83 return mSessionToken.getUid(); in getUid() 88 return UserHandle.getUserHandleForUid(mSessionToken.getUid()).getIdentifier(); in getUserId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | SecurityEventTest.java | 114 UserHandle.getUid(10, 123), 456, "seinfo", "hash"}); in testSecurityEventRedaction() 136 new Object[] {1, "alias", UserHandle.getUid(0, 123)}); in testSecurityEventRedaction() 144 new Object[] {1, "alias", UserHandle.getUid(1, 123)}); in testSecurityEventRedaction() 152 new Object[] {1, "alias", UserHandle.getUid(2, 123)}); in testSecurityEventRedaction() 160 new Object[] {"alias", UserHandle.getUid(2, 123)}); in testSecurityEventRedaction()
|
D | DevicePolicyManagerServiceMigrationTest.java | 96 setUpPackageManagerForAdmin(admin2, UserHandle.getUid(10, 123)); in testMigration() 97 setUpPackageManagerForAdmin(admin3, UserHandle.getUid(11, 456)); in testMigration() 318 setUpPackageManagerForAdmin(admin1, UserHandle.getUid(10, 123)); in testMigration3_managedProfileOwner() 400 poContext.binder.callingUid = UserHandle.getUid(COPE_PROFILE_USER_ID, COPE_ADMIN1_APP_ID); in testCompMigrationAffiliated() 467 poContext.binder.callingUid = UserHandle.getUid(COPE_PROFILE_USER_ID, COPE_ADMIN1_APP_ID); in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus() 493 poContext.binder.callingUid = UserHandle.getUid(COPE_PROFILE_USER_ID, COPE_ADMIN1_APP_ID); in testCompMigration_unsuspendAppsWhenDpcNotRPlus() 521 setUpPackageManagerForAdmin(admin1, UserHandle.getUid(USER_SYSTEM, COPE_ADMIN1_APP_ID)); in prepareAdmin1AsDo() 546 setUpPackageManagerForFakeAdmin(admin, UserHandle.getUid(profileUserId, adminAppId), in preparePo()
|
/frameworks/base/core/java/android/os/ |
D | UidBatteryConsumer.java | 75 public int getUid() { in getUid() method in UidBatteryConsumer 129 UserHandle.formatUid(pw, getUid()); in dump() 160 serializer.attributeInt(null, BatteryUsageStats.XML_ATTR_UID, getUid()); in writeToXml() 220 mUid = batteryStatsUid.getUid(); in Builder() 239 public int getUid() { in getUid() method in UidBatteryConsumer.Builder
|
D | UserHandle.java | 320 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { in getUid() method in UserHandle 336 public int getUid(@AppIdInt int appId) { in getUid() method in UserHandle 337 return getUid(getIdentifier(), appId); in getUid() 354 return getUid(userId, Process.SHARED_USER_GID); in getUserGid() 395 return getUid(userId, (appId - AID_APP_START) + AID_CACHE_GID_START); in getCacheAppGid()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveUids.java | 100 if (dumpPackage != null && UserHandle.getAppId(uidRec.getUid()) != dumpAppId) { in dump() 110 pw.print(" UID "); UserHandle.formatUid(pw, uidRec.getUid()); in dump() 127 if (dumpPackage != null && UserHandle.getAppId(uidRec.getUid()) != dumpAppId) { in dumpProto()
|
/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/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | PackageInfoUserFieldsTest.kt | 61 uid = UserHandle.getUid(userId, in <lambda>() 68 uid = UserHandle.getUid(userId, UserHandle.getAppId(newPkg.uid)), in <lambda>() 132 uid = UserHandle.getUid(userId, UserHandle.getAppId(appIdUid)), in <lambda>()
|
/frameworks/base/core/java/android/metrics/ |
D | MetricsReader.java | 96 .setUid(event.getUid()) in read() 173 mUid = nativeEvent.getUid(); in Event() 185 public int getUid() { in getUid() method in MetricsReader.Event
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipUiEventLogger.java | 46 mPackageUid = getUid(mPackageName, taskInfo.userId); in setTaskInfo() 63 private int getUid(String packageName, int userId) { in getUid() method in PipUiEventLogger
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecordLoggerImpl.java | 42 /* int32 uid = 2 */ r.getUid(), in maybeLogNotificationPosted() 75 mUiEventLogger.logWithInstanceId(event, r.getUid(), r.getSbn().getPackageName(), in log()
|
/frameworks/base/core/java/android/content/ |
D | AttributionSource.java | 131 this(current.getUid(), current.getPackageName(), current.getAttributionTag(), in AttributionSource() 168 return new AttributionSource(getUid(), getPackageName(), getAttributionTag(), in withNextAttributionSource() 174 return new AttributionSource(getUid(), packageName, getAttributionTag(), in withPackageName() 180 return new AttributionSource(getUid(), getPackageName(), getAttributionTag(), in withToken() 370 public int getUid() { in getUid() method in AttributionSource
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 159 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + durationMs + " ms power=" in calculatePowerAndDuration() 220 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster in calculateUidModeledPowerMah() 226 Log.w(TAG, "UID " + u.getUid() + " CPU cluster # mismatch: Power Profile # " in calculateUidModeledPowerMah() 239 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateUidModeledPowerMah()
|
/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/services/core/java/com/android/server/location/gnss/ |
D | GnssListenerMultiplexer.java | 102 mForeground = mAppForegroundHelper.isAppForeground(getIdentity().getUid()); in onBinderListenerRegister() 131 if (getIdentity().getUid() == uid) { in onLocationPermissionsChanged() 150 if (getIdentity().getUid() == uid && foreground != mForeground) { in onForegroundChanged() 313 if (identity.getUid() == Process.SYSTEM_UID) { in isBackgroundRestrictionExempt()
|