Home
last modified time | relevance | path

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

1234

/packages/modules/DnsResolver/
DDnsStatsTest.cpp77 .latencyUs{10ms}, in TEST_F()
82 .latencyUs{250ms}, in TEST_F()
86 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 0, 0ms, {})); in TEST_F()
89 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 1, 10ms, {{NS_R_NO_ERROR, 1}})); in TEST_F()
92 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 2, 20ms, {{NS_R_NO_ERROR, 2}})); in TEST_F()
96 makeStatsData(server, 3, 270ms, {{NS_R_NO_ERROR, 2}, {NS_R_TIMEOUT, 1}})); in TEST_F()
100 makeStatsData(server, 3, 510ms, {{NS_R_NO_ERROR, 1}, {NS_R_TIMEOUT, 2}})); in TEST_F()
104 makeStatsData(server, 3, 750ms, {{NS_R_NO_ERROR, 0}, {NS_R_TIMEOUT, 3}})); in TEST_F()
223 expectedStats.push_back(makeStatsData(IPSockAddr::toIPSockAddr(exp, 53), 0, 0ms, {})); in TEST_F()
257 makeStatsData(servers[2], 0, 0ms, {}), makeStatsData(servers[3], 0, 0ms, {}), in TEST_F()
[all …]
Dutil.cpp56 int ms = duration_cast<milliseconds>(ts.time_since_epoch()).count() % 1000; in timestampToString() local
57 return fmt::format("{}.{:03d}", buf, ms); in timestampToString()
/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/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/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/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/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/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/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) …
Dunittest.txt4 NNAPI timing summary (self-times, ms wall-clock) …
19 NNAPI timing summary (self-times, ms wall-clock) …
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodedstreamtest.cpp104 MemoryStream ms(data, size); in TestEncodedInputStream() local
105 EncodedInputStream<FileEncoding, MemoryStream> eis(ms); in TestEncodedInputStream()
144 MemoryStream ms(data, size); in TestAutoUTFInputStream() local
145 AutoUTFInputStream<unsigned, MemoryStream> eis(ms); in TestAutoUTFInputStream()
279 MemoryStream ms(json, sizeof(json)); in TEST_F() local
280 AutoUTFInputStream<unsigned, MemoryStream> eis(ms, kUTF8); in TEST_F()
/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/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/Wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java251 long ms = time - tmp * 1000L; in toHMS() local
261 return String.format("%s%d:%02d:%02d.%03d", millis < 0 ? "-" : "", tmp, m, s, ms); in toHMS()
264 public static String toUTCString(long ms) { in toUTCString() argument
265 if (ms < 0) { in toUTCString()
269 c.setTimeInMillis(ms); in toUTCString()
/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/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DEnergySaverFragment.java187 private void setSleepTime(int ms) { in setSleepTime() argument
188 Settings.Secure.putInt(getActivity().getContentResolver(), SLEEP_TIMEOUT, ms); in setSleepTime() local
191 private void setAttentiveSleepTime(int ms) { in setAttentiveSleepTime() argument
192 Settings.Secure.putInt(getActivity().getContentResolver(), ATTENTIVE_TIMEOUT, ms); in setAttentiveSleepTime() local
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto479 // Total wifi link layer usage data over the logging duration in ms.
1667 // histogram of duration (in ms) of attach sessions
1670 // histogram of duration (in ms) of publish sessions
1673 // histogram of duration (in ms) of subscribe sessions
1676 // histogram of duration (in ms) of data-paths (NDP)
1682 // histogram of usage (in MB) of data-path creation time (in ms) measured as request -> confirm
1685 // statistics for data-path (NDP) creation time (in ms) measured as request -> confirm: minimum
1688 // statistics for data-path (NDP) creation time (in ms) measured as request -> confirm: maximum
1691 // statistics for data-path (NDP) creation time (in ms) measured as request -> confirm: sum
1694 // statistics for data-path (NDP) creation time (in ms) measured as request -> confirm: sum of sq
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java991 int ms = (int)(distance * SCROLL_DURATION_MS_PER_PIX); in getScrollDuration() local
993 if (ms < minValue) { in getScrollDuration()
994 ms = minValue; in getScrollDuration()
995 } else if (ms > SCROLL_DURATION_MAX) { in getScrollDuration()
996 ms = SCROLL_DURATION_MAX; in getScrollDuration()
998 return ms; in getScrollDuration()
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.cpp107 Metric2State ms; in CountMetricProducer() local
108 ms.stateAtomId = stateLink.state_atom_id(); in CountMetricProducer()
109 translateFieldMatcher(stateLink.fields_in_what(), &ms.metricFields); in CountMetricProducer()
110 translateFieldMatcher(stateLink.fields_in_state(), &ms.stateFields); in CountMetricProducer()
111 mMetric2StateLinks.push_back(ms); in CountMetricProducer()
DDurationMetricProducer.cpp139 Metric2State ms; in DurationMetricProducer() local
140 ms.stateAtomId = stateLink.state_atom_id(); in DurationMetricProducer()
141 translateFieldMatcher(stateLink.fields_in_what(), &ms.metricFields); in DurationMetricProducer()
142 translateFieldMatcher(stateLink.fields_in_state(), &ms.stateFields); in DurationMetricProducer()
143 if (!subsetDimensions(ms.metricFields, mInternalDimensions)) { in DurationMetricProducer()
147 mMetric2StateLinks.push_back(ms); in DurationMetricProducer()
/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/apps/Launcher3/src/com/android/launcher3/util/
DLooperIdleLock.java52 public boolean awaitLocked(long ms) { in awaitLocked() argument
57 mLock.wait(ms); in awaitLocked()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp176 MemoryStream ms(json_, length_); in TEST_F() local
177 EncodedInputStream<UTF8<>, MemoryStream> is(ms); in TEST_F()
186 MemoryStream ms(json_, length_); in TEST_F() local
187 AutoUTFInputStream<unsigned, MemoryStream> is(ms); in TEST_F()
/packages/services/Car/cpp/telemetry/cartelemetryd/src/
Dmain.cpp49 constexpr const std::chrono::nanoseconds kPushCarDataDelayNs = 10ms;
69 std::this_thread::sleep_for(250ms); in main()
/packages/apps/Car/RotaryController/
Dreadme.md29 To rotate the controller multiple times (100 ms ago and 50 ms ago), run:

1234