/packages/modules/DnsResolver/ |
D | DnsStatsTest.cpp | 77 .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 …]
|
D | util.cpp | 56 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/ |
D | TouchEventGenerator.java | 83 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/ |
D | HashableDimensionKey_test.cpp | 65 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/ |
D | FakeClock.java | 53 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/ |
D | MediaSetLoader.java | 153 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/ |
D | db_utilities_poly.cpp | 100 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/ |
D | RandomGraphGeneratorUtils.cpp | 37 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/ |
D | omr1.txt | 4 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) …
|
D | unittest.txt | 4 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/ |
D | encodedstreamtest.cpp | 104 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/ |
D | Clock.java | 53 void sleep(long ms); in sleep() argument 69 public void sleep(long ms) { 70 SystemClock.sleep(ms);
|
/packages/apps/Nfc/nci/jni/ |
D | IntervalTimer.cpp | 33 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/ |
D | Utils.java | 251 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/ |
D | property_monitor_test.cpp | 112 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/ |
D | EnergySaverFragment.java | 187 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/ |
D | metrics.proto | 479 // 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/ |
D | ScrollController.java | 991 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/ |
D | CountMetricProducer.cpp | 107 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()
|
D | DurationMetricProducer.cpp | 139 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/ |
D | Clock.java | 68 public void sleep(long ms) { in sleep() argument 69 SystemClock.sleep(ms); in sleep()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | LooperIdleLock.java | 52 public boolean awaitLocked(long ms) { in awaitLocked() argument 57 mLock.wait(ms); in awaitLocked()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | rapidjsontest.cpp | 176 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/ |
D | main.cpp | 49 constexpr const std::chrono::nanoseconds kPushCarDataDelayNs = 10ms; 69 std::this_thread::sleep_for(250ms); in main()
|
/packages/apps/Car/RotaryController/ |
D | readme.md | 29 To rotate the controller multiple times (100 ms ago and 50 ms ago), run:
|