/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
H A D | AppOpsUidStateTrackerTest.java | 125 procStateBuilder(UID) in testNoCapability() 139 procStateBuilder(UID) in testForegroundWithMicrophoneCapability() 155 procStateBuilder(UID) in testBackgroundWithMicrophoneCapability() 171 procStateBuilder(UID) in testForegroundWithCameraCapability() 187 procStateBuilder(UID) in testBackgroundWithCameraCapability() 203 procStateBuilder(UID) in testForegroundWithLocationCapability() 219 procStateBuilder(UID) in testBackgroundWithLocationCapability() 235 procStateBuilder(UID) in testForegroundNotCapabilitiesTracked() 244 procStateBuilder(UID) in testBackgroundNotCapabilitiesTracked() 253 procStateBuilder(UID) in testBackgroundToForegroundTransition() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BinderWorkSourceTest.java | 47 private static final int UID = 100; field in BinderWorkSourceTest 107 Binder.setCallingWorkSourceUid(UID); in setWorkSource() 114 Binder.setCallingWorkSourceUid(UID); in clearWorkSource() 122 Binder.setCallingWorkSourceUid(UID); in setWorkSource_propagatedForMultipleCalls() 133 ThreadLocalWorkSource.setUid(UID); in setWorkSource_propagatedFromBinderProxyListener() 140 ThreadLocalWorkSource.setUid(UID); in threadWorkSourceNotPropagated() 153 Binder.setCallingWorkSourceUid(UID); in restoreWorkSource() 165 Binder.setCallingWorkSourceUid(UID); in nestedSetWorkSoucePropagated() 168 assertEquals(UID, workSources[0]); in nestedSetWorkSoucePropagated() 180 assertEquals(UID, workSources[1]); in nestedSetWorkSouceDoesNotEnablePropagation() [all …]
|
H A D | BinderTest.java | 26 private static final int UID = 100; field in BinderTest 30 Binder.setCallingWorkSourceUid(UID); in testSetWorkSource() 31 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testSetWorkSource() 36 Binder.setCallingWorkSourceUid(UID); in testClearWorkSource() 43 Binder.setCallingWorkSourceUid(UID); in testRestoreWorkSource() 46 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testRestoreWorkSource()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsSensorTest.java | 32 private static final int UID = 10500; field in BatteryStatsSensorTest 46 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 49 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 52 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 53 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 56 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 57 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 86 bi.noteStartSensorLocked(UID, SENSOR_ID); in testCountingWhileOffBattery() 98 bi.noteStopSensorLocked(UID, SENSOR_ID); in testCountingWhileOffBattery() 133 bi.noteStopSensorLocked(UID, SENSOR_ID); in testCountingWhileOnBattery() [all …]
|
H A D | BatteryStatsBackgroundStatsTest.java | 36 private static final int UID = 10500; field in BatteryStatsBackgroundStatsTest 169 bi.noteWifiScanStartedLocked(UID); in testWifiScan() 181 bi.noteWifiScanStoppedLocked(UID); in testWifiScan() 292 bi.noteJobStartLocked(jobName, UID); in testJob() 304 bi.noteJobStartLocked(jobName, UID); in testJob() 333 bi.noteJobStartLocked(jobName2, UID); in testJob() 353 bi.noteSyncStartLocked(syncName, UID); in testSyncs() 357 bi.noteSyncFinishLocked(syncName, UID); in testSyncs() 365 bi.noteSyncStartLocked(syncName, UID); in testSyncs() 373 bi.noteSyncFinishLocked(syncName, UID); in testSyncs() [all …]
|
H A D | BatteryStatsNoteTest.java | 1092 ws.add(UID); in testNoteGpsChanged() 2147 UID); in testProcStateSyncScheduling_mobileRadioActiveState() 2159 UID); in testProcStateSyncScheduling_mobileRadioActiveState() 2183 UID); in testNoteMobileRadioPowerStateLocked() 2188 curr, UID); in testNoteMobileRadioPowerStateLocked() 2197 curr, UID); in testNoteMobileRadioPowerStateLocked() 2206 curr, UID); in testNoteMobileRadioPowerStateLocked() 2215 curr, UID); in testNoteMobileRadioPowerStateLocked() 2244 UID); in testNoteMobileRadioPowerStateLocked_rateLimited() 2255 curr, UID); in testNoteMobileRadioPowerStateLocked_rateLimited() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
H A D | PowerAllowlistBackendTest.java | 55 private static final int UID = 12345; field in PowerAllowlistBackendTest 94 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted() 95 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isFalse(); in testIsAllowlisted() 102 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted() 103 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isTrue(); in testIsAllowlisted() 105 new String[] {PACKAGE_ONE, PACKAGE_TWO}, UID)).isTrue(); in testIsAllowlisted() 110 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted() 121 new String[] {PACKAGE_ONE, PACKAGE_TWO}, UID)).isFalse(); in testIsAllowlisted() 131 assertThat(mPowerAllowlistBackend.isAllowlisted(testSms, UID)).isTrue(); in isAllowlisted_shouldAllowlistDefaultSms() 142 assertThat(mPowerAllowlistBackend.isAllowlisted(testDialer, UID)).isTrue(); in isAllowlisted_shouldAllowlistDefaultDialer() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
H A D | AppTimeLimitControllerTests.java | 65 private static final int UID = 10100; field in AppTimeLimitControllerTests 337 UID, OBS_ID1); in testAllObservers_ExclusiveObserverIds() 497 assertFalse(hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_Timeout() 519 assertTrue(hasUsageSessionObserver(UID, OBS_ID1)); in testUsageSessionObserver_Timeout() 551 assertFalse(hasAppUsageObserver(UID, OBS_ID2)); in testAppUsageObserver_AlreadyRunning() 607 assertFalse(hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_AlreadyRunningTimeout() 663 int ANOTHER_UID = UID + 1; in testAppUsageObserver_MaxObserverLimit() 694 int ANOTHER_UID = UID + 1; in testUsageSessionObserver_MaxObserverLimit() 724 int ANOTHER_UID = UID + 1; in testAppUsageLimitObserver_MaxObserverLimit() 988 assertFalse(hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_PastUsage() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | GlobalSortKeyComparatorTest.java | 43 private final int UID = 1111111; field in GlobalSortKeyComparatorTest 52 PKG, 1, "media", UID, UID, n, in testComparator() 59 PKG, 1, "media", UID, UID, n, in testComparator() 66 PKG, 1, "media", UID, UID, n, in testComparator() 91 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 97 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 121 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull() 128 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull()
|
H A D | NotificationRecordLoggerTest.java | 58 private static final int UID = 9999; field in NotificationRecordLoggerTest 67 UID, 0, nb.build(), new UserHandle(UID), null, in getNotification()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
H A D | PowerGroupTest.java | 71 private static final int UID = 11; field in PowerGroupTest 118 mPowerGroup.dreamLocked(TIMESTAMP1, UID, /* allowWake= */ false); in testDreamPowerGroup() 130 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroup() 135 eq(UID), /* opUid= */ anyInt(), /* opPackageName= */ isNull(), in testDozePowerGroup() 141 mPowerGroup.sleepLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroupWhenNonInteractiveHasNoEffect() 144 eq(UID), /* opUid= */ anyInt(), /* opPackageName= */ isNull(), in testDozePowerGroupWhenNonInteractiveHasNoEffect() 168 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDreamPowerGroupWhenNotAwakeHasNoEffect() 184 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDreamPowerGroupWhenNotAwakeShouldWake() 205 mPowerGroup.setWakefulnessLocked(WAKEFULNESS_DOZING, TIMESTAMP1, UID, in testLastWakeAndSleepTimeIsUpdated() 228 mPowerGroup.setWakefulnessLocked(WAKEFULNESS_AWAKE, TIMESTAMP2, UID, in testLastWakeAndSleepTimeIsUpdated() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | CleanupManagerTest.java | 46 private static final int UID = 1234; field in CleanupManagerTest 72 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_unknownUser_storesInDb() 73 mManager.registerRecoveryAgent(USER_ID_2, UID); in registerRecoveryAgent_unknownUser_storesInDb() 86 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_registersSameUser_doesntChangeDb() 87 mManager.registerRecoveryAgent(USER_ID, UID); // ignored. in registerRecoveryAgent_registersSameUser_doesntChangeDb() 98 recoveryAgents.add(UID); in verifyKnownUsers_newSerialNumber_deletesData() 109 verify(mRecoverySnapshotStorage).remove(UID); in verifyKnownUsers_newSerialNumber_deletesData()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | EventLogTags.logtags | 25 30014 am_proc_start (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3),(Type|3),(Component|3) 27 30015 am_proc_bad (User|1|5),(UID|1|5),(Process Name|3) 29 30016 am_proc_good (User|1|5),(UID|1|5),(Process Name|3) 39 30030 am_create_service (User|1|5),(Service Record|1|5),(Name|3),(UID|1|5),(PID|1|5) 51 30036 am_provider_lost_process (User|1|5),(Package Name|3),(UID|1|5),(Name|3) 53 30037 am_process_start_timeout (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3) 78 30052 am_uid_running (UID|1|5) 80 30053 am_uid_stopped (UID|1|5) 82 30054 am_uid_active (UID|1|5) 84 30055 am_uid_idle (UID|1|5) [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
H A D | ArtStatsLogUtilsTest.java | 63 private static final int UID = 111; field in ArtStatsLogUtilsTest 109 UID, in testProfileAndVdexDexMetadata() 141 UID, in testProfileOnlyDexMetadata() 173 UID, in testVdexOnlyDexMetadata() 203 UID, in testNoneDexMetadata() 234 UID, in testUnKnownDexMetadata() 270 SESSION_ID, UID, in verifyWrites() 280 UID, in verifyWrites() 290 UID, in verifyWrites()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
H A D | VibrationThreadTest.java | 96 private static final int UID = Process.ROOT_UID; field in VibrationThreadTest 191 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude() 210 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude() 232 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes() 272 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorRepeatingWaveform_runsVibrationUntilThreadCancelled() 504 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorPrebaked_runsVibration() 527 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback() 568 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorComposed_runsVibration() 652 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorComposedEffects_runsDifferentVibrations() 694 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorComposedWithFallback_replacedInTheMiddleOfComposition() [all …]
|
H A D | VibratorManagerServiceTest.java | 129 private static final int UID = Process.ROOT_UID; field in VibratorManagerServiceTest 1418 new ArraySet<>(Arrays.asList(UID))); in vibrate_withAppsOnVirtualDisplayChange_ignoreVibrationFromVirtualDisplay() 1843 assertEquals(UID, statsInfo.uid); in frameworkStats_externalVibration_reportsAllMetrics() 1875 assertEquals(UID, metrics.uid); in frameworkStats_waveformVibration_reportsAllMetrics() 1928 assertEquals(UID, metrics.uid); in frameworkStats_repeatingVibration_reportsAllMetrics() 1989 assertEquals(UID, metrics.uid); in frameworkStats_prebakedAndComposedVibrations_reportsAllMetrics() 2047 assertEquals(UID, touchMetrics.uid); in frameworkStats_interruptingVibrations_reportsAllMetrics() 2056 assertEquals(UID, alarmMetrics.uid); in frameworkStats_interruptingVibrations_reportsAllMetrics() 2086 assertEquals(UID, touchMetrics.uid); in frameworkStats_ignoredVibration_reportsStatus() 2091 assertEquals(UID, ringtoneMetrics.uid); in frameworkStats_ignoredVibration_reportsStatus() [all …]
|
H A D | VibrationSettingsTest.java | 100 private static final int UID = 1; field in VibrationSettingsTest 259 UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND, 0, 0); in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 273 UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND, 0, 0); in shouldIgnoreVibration_fromForeground_allowsAnyUsage() 498 new ArraySet<>(Arrays.asList(UID))); in shouldIgnoreVibrationFromVirtualDisplays_displayNonVirtual_neverIgnored() 537 new ArraySet<>(Arrays.asList(UID))); in shouldIgnoreVibrationFromVirtualDisplays_appsOnVirtualDisplay() 568 UID, "some.app", usage), vibrateStartTime)); in shouldCancelVibrationOnScreenOff_withEventBeforeVibration_returnsAlwaysFalse() 577 createCallerInfo(UID, SYSUI_PACKAGE_NAME, usage), vibrateStartTime)); in shouldCancelVibrationOnScreenOff_withEventBeforeVibration_returnsAlwaysFalse() 595 createCallerInfo(UID, "some.app", usage), vibrateStartTime)); in shouldCancelVibrationOnScreenOff_withSleepReasonInAllowlist_returnsAlwaysFalse() 604 createCallerInfo(UID, SYSUI_PACKAGE_NAME, usage), vibrateStartTime)); in shouldCancelVibrationOnScreenOff_withSleepReasonInAllowlist_returnsAlwaysFalse() 616 createCallerInfo(UID, "some.app", usage), vibrateStartTime)); in shouldCancelVibrationOnScreenOff_withNonSystem_returnsTrueIfReasonNotInAllowlist() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/service/notification/ |
H A D | StatusBarNotificationTest.java | 62 private static final int UID = 9583; field in StatusBarNotificationTest 216 pkg, pkg, ID, TAG, uid, uid, notification, UserHandle.ALL, null, UID); in testGetPackageContext_worksWithUserAll() 227 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 230 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 261 pkg, pkg, ID, TAG, UID, UID, builder.build(), USER, null, UID); in getNotification()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationTestHelper.java | 113 public static final int UID = 1000; field in NotificationTestHelper 246 return createRow(PKG, UID, USER_HANDLE); in createRow() 270 return generateRow(notification, PKG, UID, USER_HANDLE, mDefaultInflationFlags); in createRow() 287 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow() 309 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary() 313 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild() 325 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubble() 342 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createStickyRow() 356 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createShortcutBubble() 374 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubbleInGroup() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/metrics/ |
H A D | MetricsReaderTest.java | 34 private static final int UID = 2; field in MetricsReaderTest 46 UID, in FakeLogReader() 102 assertEquals(UID, log.getUid()); in testPidUid()
|
/aosp14/system/core/storaged/ |
H A D | README.properties | 4 ro.storaged.uid_io.interval # interval storaged checks Per UID IO usage, in seconds 5 ro.storaged.uid_io.threshold # Per UID IO usage limit, in bytes
|
/aosp14/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
H A D | AppRepositoryTest.kt | 91 const val UID = 123 93 uid = UID
|
H A D | PackageManagerExtTest.kt | 122 const val UID = 123 125 uid = UID
|
/aosp14/system/core/libprocessgroup/profiles/ |
H A D | cgroups.proto | 32 string uid = 4 [json_name = "UID"]; 45 string uid = 3 [json_name = "UID"];
|
/aosp14/frameworks/base/proto/src/criticalevents/ |
H A D | critical_event_log.proto | 95 // UID of the ANRing process. 117 // UID of the crashed process. 135 // UID of the crashed process.
|