Home
last modified time | relevance | path

Searched refs:_000 (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DMeasuredEnergySnapshotTest.java62 private static final int VOLTAGE_0 = 4_000;
65 private static final int VOLTAGE_3 = 3_000;
70 createEnergyConsumerResult(CONSUMER_OTHER_0.id, 90_000, new int[]{47, 3},
71 new long[]{14_000, 13_000}),
72 createEnergyConsumerResult(CONSUMER_DISPLAY.id, 14_000, null, null),
77 createEnergyConsumerResult(CONSUMER_DISPLAY.id, 24_000, null, null),
78 createEnergyConsumerResult(CONSUMER_OTHER_0.id, 90_000, new int[]{47, 3},
79 new long[]{14_000, 13_000}),
80 createEnergyConsumerResult(CONSUMER_OTHER_2.id, 12_000, new int[]{6},
81 new long[]{10_000}),
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java111 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
112 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
113 assertEquals(220_000, actualTime); in testNoteStartWakeLocked()
114 assertEquals(120_000, bgTime); in testNoteStartWakeLocked()
266 bi.updateTimeBasesLocked(true, Display.STATE_UNKNOWN, 100_000, 100_000); in testNoteScreenStateTimersLocked()
270 assertEquals(150_000, bi.computeBatteryRealtime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
271 assertEquals(100_000, bi.computeBatteryScreenOffRealtime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
272 assertEquals(50_000, bi.getScreenOnTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
273 assertEquals(0, bi.getScreenDozeTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
277 assertEquals(250_000, bi.computeBatteryRealtime(350_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
[all …]
DBatteryStatsDurationTimerTest.java116 timeBase.setRunning(true, /* uptimeUs */ 0, /* realtimeUs */ 100_000); in testReset()
125 assertEquals(0, timer.getCurrentDurationMsLocked(12_000)); in testReset()
152 timeBase.setRunning(true, /* uptimeUs */ 0, /* realtimeUs */ 100_000); in testResetAndDetach()
161 clocks.uptime = clocks.realtime = 7_000; in testResetAndDetach()
162 assertEquals(0, timer.getCurrentDurationMsLocked(8_000)); in testResetAndDetach()
DBatteryStatsSensorTest.java42 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop()
64 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop()
68 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop()
385 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorReset()
497 assertEquals(111_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
499 assertEquals(111_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
518 assertEquals(112_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
520 assertEquals(112_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
DBatteryStatsUserLifecycleTests.java52 private static final long USER_REMOVE_TIMEOUT_MS = 5_000;
53 private static final long STOP_USER_TIMEOUT_MS = 10_000;
54 private static final long BATTERYSTATS_POLLING_TIMEOUT_MS = 5_000;
DBatteryUsageStatsStoreTest.java143 mMockClocks.realtime + 500_000, mMockClocks.uptime + 500_000, in prepareBatteryStats()
144 mMockClocks.currentTime + 500_000); in prepareBatteryStats()
DBatteryStatsBackgroundStatsTest.java81 assertEquals(106_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
88 assertEquals(114_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
96 assertEquals(227_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
103 assertEquals(227_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
152 assertEquals(150_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testScreenOffBgTimeBase()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DScanResultUpdaterTest.java80 long maxScanAge = 15_000; in testGetScanResults_filtersOldScans()
99 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testGetScanResults_invalidMaxScanAgeMillis_throwsException()
101 sru.getScanResults(20_000); in testGetScanResults_invalidMaxScanAgeMillis_throwsException()
113 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testConstructor_maxScanAge_filtersOldScans()
115 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testConstructor_maxScanAge_filtersOldScans()
116 ScanResult scan2 = buildScanResult(SSID, BSSID_2, NOW_MILLIS - 15_000); in testConstructor_maxScanAge_filtersOldScans()
117 ScanResult scan3 = buildScanResult(SSID, BSSID_3, NOW_MILLIS - 20_000); in testConstructor_maxScanAge_filtersOldScans()
132 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testGetScanResults_overridesConstructorMaxScanAge()
134 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testGetScanResults_overridesConstructorMaxScanAge()
135 ScanResult scan2 = buildScanResult(SSID, BSSID_2, NOW_MILLIS - 15_000); in testGetScanResults_overridesConstructorMaxScanAge()
[all …]
DNetworkDetailsTrackerTest.java50 private static final long MAX_SCAN_AGE_MILLIS = 15_000;
51 private static final long SCAN_INTERVAL_MILLIS = 10_000;
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixerTest.java90 int iterations = 100_000; in getAddend_withDifferentKey_returnsDifferentResult()
109 int iterations = 100_000; in getMultiplicand_withDifferentKey_returnsDifferentResult()
125 int iterations = 100_000; in getMultiplicand_isOdd()
139 int iterations = 100_000; in mix_randomlyDistributesBits()
164 int iterations = 100_000; in mix_doesNotProduceSameNumberAsInput()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionDeviceConfig.java34 private static final long DEFAULT_MEDIA_BUTTON_RECEIVER_FGS_ALLOWLIST_DURATION_MS = 10_000;
45 private static final long DEFAULT_MEDIA_SESSION_CALLBACK_FGS_ALLOWLIST_DURATION_MS = 10_000;
57 = 10_000;
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastConstants.java46 private static final long DEFAULT_TIMEOUT = 10_000 * Build.HW_TIMEOUT_MULTIPLIER;
47 private static final long DEFAULT_SLOW_TIME = 5_000 * Build.HW_TIMEOUT_MULTIPLIER;
48 private static final long DEFAULT_DEFERRAL = 5_000 * Build.HW_TIMEOUT_MULTIPLIER;
52 10_000 * Build.HW_TIMEOUT_MULTIPLIER;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java40 if (q.remove(5_000) == ref) { in createCollectionWaiter()
53 long deadline = SystemClock.uptimeMillis() + 5_000; in waitForCondition()
/frameworks/base/core/java/com/android/internal/os/
DBackgroundThread.java31 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000;
32 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
DSystemServerCpuThreadReader.java127 result.threadCpuTimesUs[i] = processCpuUsage.threadCpuTimesMillis[i] * 1_000; in readAbsolute()
129 processCpuUsage.selectedThreadCpuTimesMillis[i] * 1_000; in readAbsolute()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DJobSchedulerBackgroundThread.java33 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000;
34 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobActivity.java35 public static final int JOB_INITIAL_BACKOFF = 10_000;
36 public static final int JOB_MINIMUM_LATENCY = 5_000;
/frameworks/base/core/java/android/window/
DDisplayAreaOrganizer.java105 public static final int FEATURE_SYSTEM_LAST = 10_000;
116 public static final int FEATURE_VENDOR_LAST = FEATURE_VENDOR_FIRST + 10_000;
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/
DSearchSpec.java71 private static final int MAX_NUM_PER_PAGE = 10_000;
72 private static final int MAX_SNIPPET_COUNT = 10_000;
73 private static final int MAX_SNIPPET_PER_PROPERTY_COUNT = 10_000;
74 private static final int MAX_SNIPPET_SIZE_LIMIT = 10_000;
/frameworks/base/tests/JobSchedulerPerfTests/src/com/android/frameworks/perftests/job/
DJobStorePerfTests.java89 sJobStore.waitForWriteToCompleteForTesting(10_000); in runPersistedJobWriting()
117 sJobStore.waitForWriteToCompleteForTesting(10_000); in runPersistedJobReading()
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java113 checkFormatBytes(1_000, FLAG_SI_UNITS, "1.00", 1_000); in testFormatBytesSi()
123 checkFormatBytes(1_000, FLAG_IEC_UNITS, "0.98", 1_003); in testFormatBytesIec()
/frameworks/base/core/java/android/util/
DDataUnit.java36 KILOBYTES { @Override public long toBytes(long v) { return v * 1_000; } }, in toBytes()
/frameworks/base/apct-tests/perftests/multiuser/apps/dummyapp/src/com/android/multiuser/test/
DDummyForegroundActivity.java28 public static final int TOP_SLEEP_TIME_MS = 2_000;
/frameworks/base/services/core/java/com/android/server/power/
DAttentionDetector.java69 static final long DEFAULT_PRE_DIM_CHECK_DURATION_MILLIS = 2_000;
330 if (millis < 0 || millis > 13_000) { in getPreDimCheckDurationMillis()
345 if (millis < 0 || millis > 10_000) { in getPostDimCheckDurationMillis()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSlowReceiver.java27 private static final long RECEIVER_DELAY = 6_000;

12345