Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 25 of 146) sorted by relevance

123456

/packages/modules/DnsResolver/
DDnsStatsTest.cpp78 .latencyUs{10ms}, in TEST_F()
83 .latencyUs{250ms}, in TEST_F()
87 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 0, 0ms, {})); in TEST_F()
90 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 1, 10ms, {{NS_R_NO_ERROR, 1}})); in TEST_F()
93 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 2, 20ms, {{NS_R_NO_ERROR, 2}})); in TEST_F()
97 makeStatsData(server, 3, 270ms, {{NS_R_NO_ERROR, 2}, {NS_R_TIMEOUT, 1}})); in TEST_F()
101 makeStatsData(server, 3, 510ms, {{NS_R_NO_ERROR, 1}, {NS_R_TIMEOUT, 2}})); in TEST_F()
105 makeStatsData(server, 3, 750ms, {{NS_R_NO_ERROR, 0}, {NS_R_TIMEOUT, 3}})); in TEST_F()
228 expectedStats.push_back(makeStatsData(IPSockAddr::toIPSockAddr(exp, 53), 0, 0ms, {})); in TEST_F()
262 makeStatsData(servers[2], 0, 0ms, {}), makeStatsData(servers[3], 0, 0ms, {}), in TEST_F()
[all …]
/packages/modules/Bluetooth/system/test/
DREADME.md49 [ OK ] BluetoothTest.AdapterEnableDisable (2538 ms)
51 [ OK ] BluetoothTest.AdapterRepeatedEnableDisable (11384 ms)
53 [ OK ] BluetoothTest.AdapterSetGetName (2378 ms)
55 [ OK ] BluetoothTest.AdapterStartDiscovery (2397 ms)
57 [ OK ] BluetoothTest.AdapterCancelDiscovery (2401 ms)
59 [ OK ] BluetoothTest.AdapterDisableDuringBonding (11689 ms)
60 [----------] 6 tests from BluetoothTest (32789 ms total)
64 [ OK ] GattTest.GattClientRegister (2370 ms)
66 [ OK ] GattTest.GattClientScanRemoteDevice (2273 ms)
68 [ OK ] GattTest.GattClientAdvertise (2236 ms)
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTouchEventGenerator.java83 public TouchEventGenerator put(int id, int x, int y, long ms) { in put() argument
95 generateEvent(action, ms); in put()
123 public TouchEventGenerator move(long ms) { in move() argument
124 generateEvent(MotionEvent.ACTION_MOVE, ms); in move()
141 public TouchEventGenerator move(int id, int x, int y, long ms) { in move() argument
142 return position(id, x, y).move(ms); in move()
155 public TouchEventGenerator lift(int id, long ms) { in lift() argument
166 generateEvent(action, ms); in lift()
174 public TouchEventGenerator lift(int id, int x, int y, long ms) { in lift() argument
177 return lift(id, ms); in lift()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/
Daggregatable_report_window.json78 // 3,599,999 ms = 1 hour - 1 ms offset to avoid falling outside the
111 // 3,600,000 ms = 1 hour
144 // 86,402,000 ms = 86,400 s (clamped source's
174 // 88,400,999 ms = 88,400 s (source's aggregatable_report_window) + 1 s
175 // (source's timestamp) - 1 ms offset to avoid falling outside the
237 // 7,200,000 ms = 3,600 s (clamped aggregatable_report_window) + 1
238 // hour (base delay) - 1 ms offset
271 // 90,000,000 ms = 86,400 s (clamped aggregatable_report_window) + 1
272 // hour (base delay) + 1s (source's timestamp) - 1 ms offset
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeClock.java53 public void setCurrentTimeMillis(long ms) { in setCurrentTimeMillis() argument
54 if (ms < mBootTimeMillis) { in setCurrentTimeMillis()
57 mCurrentTimeMillis = ms; in setCurrentTimeMillis()
60 public void setBootTimeMillis(long ms) { in setBootTimeMillis() argument
61 if (ms > mCurrentTimeMillis) { in setBootTimeMillis()
64 mBootTimeMillis = ms; in setBootTimeMillis()
103 public void sleep(long ms) { in sleep() argument
105 mCurrentTimeMillis += ms; in sleep()
/packages/modules/StatsD/statsd/tests/
DHashableDimensionKey_test.cpp65 Metric2State ms; in TEST() local
66 ms.stateAtomId = stateAtomId; in TEST()
67 translateFieldMatcher(whatMatcher, &ms.metricFields); in TEST()
68 translateFieldMatcher(stateMatcher, &ms.stateFields); in TEST()
69 mMetric2StateLinks.push_back(ms); in TEST()
117 Metric2State ms; in TEST() local
118 ms.stateAtomId = stateAtomId; in TEST()
119 translateFieldMatcher(whatMatcher, &ms.metricFields); in TEST()
120 translateFieldMatcher(stateMatcher, &ms.stateFields); in TEST()
121 mMetric2StateLinks.push_back(ms); in TEST()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaSetLoader.java153 MediaSet ms = mMediaSet.getSubMediaSet(index); in uriForItem() local
154 return ms == null ? null : ms.getContentUri(); in uriForItem()
160 MediaSet ms = mMediaSet.getSubMediaSet(index); in urisForSubItems() local
161 if (ms == null) return null; in urisForSubItems()
163 ms.enumerateMediaItems(new MediaSet.ItemConsumer() { in urisForSubItems()
185 MediaSet ms = mMediaSet.getSubMediaSet(index); in getPathForItem() local
186 if (ms != null) { in getPathForItem()
187 return ms.getPath(); in getPathForItem()
/packages/modules/Bluetooth/tools/rootcanal/test/
Dposix_socket_unittest.cc76 std::chrono::milliseconds timeout = 500ms) { in connectPair()
91 sock2 = pasc_.ConnectToRemoteServer("localhost", pass_.port(), 1000ms); in connectPair()
176 clock::time_point until = clock::now() + 250ms; in TEST_F()
213 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return received; })); in TEST_F()
233 auto socket = pasc_.ConnectToRemoteServer("localhost", port, 250ms); in TEST_F()
257 auto socket = pasc_.ConnectToRemoteServer("localhost", port, 250ms); in TEST_F()
260 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return connected; })); in TEST_F()
285 auto socket = pasc_.ConnectToRemoteServer("localhost", port, 250ms); in TEST_F()
288 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return connected; })); in TEST_F()
295 auto socket = pasc_.ConnectToRemoteServer("localhost", port, 250ms); in TEST_F()
[all …]
Dasync_manager_unittest.cc221 std::this_thread::sleep_for(5ms); in TEST_F()
231 async_manager_.ExecAsyncPeriodically(1, 1ms, 2ms, [&running, this]() { in TEST_F()
239 EXPECT_TRUE(running.wait_for(100ms)); in TEST_F()
248 1, 1ms, 2ms, [&running, &cancel_done, &task_complete]() { in TEST_F()
252 std::this_thread::sleep_for(20ms); in TEST_F()
258 EXPECT_TRUE(running.wait_for(100ms)); in TEST_F()
344 unblock_slow.wait_for(25ms); in TEST_F()
360 if (inslow.wait_for(25ms)) { in TEST_F()
368 infast.wait_for(25ms); in TEST_F()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.cpp37 int ms = std::chrono::duration_cast<std::chrono::milliseconds>(end - mStart).count(); in getElapsedTime() local
38 int hour = ms / 3600000; in getElapsedTime()
39 int minutes = (ms % 3600000) / 60000; in getElapsedTime()
40 int seconds = (ms % 60000) / 1000; in getElapsedTime()
41 int milli = ms % 1000; in getElapsedTime()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp100 double lz,ms,ns,mn,m,n,lz_through2; in db_SolveQuartic() local
143 ms=lz+c3c3through4_min_c2; in db_SolveQuartic()
147 if((ms>=0.0)&&(ns>=0.0)) in db_SolveQuartic()
149 m=sqrt(ms); in db_SolveQuartic()
172 double lz,ms,ns,mn,m,n,lz_through2; in db_SolveQuarticForced() local
215 ms=lz+c3c3through4_min_c2; in db_SolveQuarticForced()
219 if(ms<0.0) ms=0.0; in db_SolveQuarticForced()
222 m=sqrt(ms); in db_SolveQuarticForced()
/packages/apps/TV/common/src/com/android/tv/common/util/
DClock.java53 void sleep(long ms); in sleep() argument
69 public void sleep(long ms) {
70 SystemClock.sleep(ms);
/packages/modules/Bluetooth/system/gd/os/fake_timer/
Dfake_timerfd.cc127 void fake_timerfd_advance(uint64_t ms) { in fake_timerfd_advance() argument
128 uint64_t new_clock = clock + ms; in fake_timerfd_advance()
137 void fake_timerfd_cap_at(uint64_t ms) { in fake_timerfd_cap_at() argument
138 max_clock = ms; in fake_timerfd_cap_at()
Dfake_timerfd.h35 void fake_timerfd_advance(uint64_t ms);
37 void fake_timerfd_cap_at(uint64_t ms);
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Domr1.txt4 NNAPI timing summary (self-times, ms wall-clock) …
19 NNAPI timing summary (self-times, ms wall-clock) …
34 NNAPI timing summary (self-times, ms wall-clock) …
49 NNAPI timing summary (self-times, ms wall-clock) …
64 NNAPI timing summary (self-times, ms wall-clock) …
/packages/apps/Nfc/nci/jni/
DIntervalTimer.cpp33 bool IntervalTimer::set(int ms, TIMER_FUNC cb) { in set() argument
46 ts.it_value.tv_sec = ms / 1000; in set()
47 ts.it_value.tv_nsec = (ms % 1000) * 1000000; in set()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_debug_conn.cc41 const uint64_t ms = ts / 1000; in format_ts() local
42 const time_t secs = ms / 1000; in format_ts()
47 snprintf(buffer, len, "%s.%03u", tempbuff, (uint16_t)(ms % 1000)); in format_ts()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/daydream/
DEnergySaverState.java154 private void setSleepTime(int ms) { in setSleepTime() argument
155 Settings.Secure.putInt(mContext.getContentResolver(), SLEEP_TIMEOUT, ms); in setSleepTime() local
158 private void setAttentiveSleepTime(int ms) { in setAttentiveSleepTime() argument
159 Settings.Secure.putInt(mContext.getContentResolver(), ATTENTIVE_TIMEOUT, ms); in setAttentiveSleepTime() local
/packages/modules/adb/daemon/
Dproperty_monitor_test.cpp112 std::this_thread::sleep_for(100ms); in TEST()
123 std::this_thread::sleep_for(100ms); in TEST()
154 std::this_thread::sleep_for(100ms); in TEST()
171 std::this_thread::sleep_for(100ms); in TEST()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClock.java68 public void sleep(long ms) { in sleep() argument
69 SystemClock.sleep(ms); in sleep()
/packages/modules/AdServices/adservices/tests/cts/assets/scenarios/data/
DScoringLogic.js17 const simulateDelay = (ms) => { argument
20 while(end < start + ms) {
DBiddingLogicV2With6SecDelay.js17 const simulateDelay = (ms) => { argument
20 while(end < start + ms) {
DScoringLogicWith6SecDelay.js17 const simulateDelay = (ms) => { argument
20 while(end < start + ms) {
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLooperIdleLock.java52 public boolean awaitLocked(long ms) { in awaitLocked() argument
57 mLock.wait(ms); in awaitLocked()
/packages/modules/Bluetooth/tools/rootcanal/packets/
Dhci_packets.pdl1530 hold_mode_max_interval: 16, // 0x0002-0xFFFE (1.25ms-40.9s)
1531 hold_mode_min_interval: 16, // 0x0002-0xFFFE (1.25ms-40.9s)
1541 sniff_max_interval: 16, // 0x0002-0xFFFE (1.25ms-40.9s)
1542 sniff_min_interval: 16, // 0x0002-0xFFFE (1.25ms-40.9s)
1543 sniff_attempt: 16, // 0x0001-0x7FFF (1.25ms-40.9s)
1544 sniff_timeout: 16, // 0x0000-0x7FFF (0ms-40.9s)
1675 maximum_latency : 16, // 0x0002-0xFFFE (1.25ms-40.9s)
1877 conn_accept_timeout : 16, // 0x0001 to 0xB540 (N * 0.625 ms) 0.625 ms to 29 s
1881 …conn_accept_timeout : 16, // 0x0001 to 0xB540 (N * 0.625 ms) 0.625 ms to 29 s, Default 0x1FA0, 5.0…
1948 page_scan_interval : 16, // Range: 0x0012 to 0x1000; only even values are valid * 0x625 ms
[all …]

123456