Home
last modified time | relevance | path

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

12

/packages/modules/DnsResolver/
DDnsStatsTest.cpp62 const StatsRecords::Record recordNoError = {NS_R_NO_ERROR, 10ms}; in TEST_F()
63 const StatsRecords::Record recordTimeout = {NS_R_TIMEOUT, 250ms}; in TEST_F()
66 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 0, 0ms, {})); in TEST_F()
69 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 1, 10ms, {{NS_R_NO_ERROR, 1}})); in TEST_F()
72 EXPECT_EQ(sr.getStatsData(), makeStatsData(server, 2, 20ms, {{NS_R_NO_ERROR, 2}})); in TEST_F()
76 makeStatsData(server, 3, 270ms, {{NS_R_NO_ERROR, 2}, {NS_R_TIMEOUT, 1}})); in TEST_F()
80 makeStatsData(server, 3, 510ms, {{NS_R_NO_ERROR, 1}, {NS_R_TIMEOUT, 2}})); in TEST_F()
84 makeStatsData(server, 3, 750ms, {{NS_R_NO_ERROR, 0}, {NS_R_TIMEOUT, 3}})); in TEST_F()
192 expectedStats.push_back(makeStatsData(IPSockAddr::toIPSockAddr(exp, 53), 0, 0ms, {})); in TEST_F()
226 makeStatsData(servers[2], 0, 0ms, {}), makeStatsData(servers[3], 0, 0ms, {}), in TEST_F()
[all …]
Dresolv_cache_unit_test.cpp443 std::this_thread::sleep_for(1500ms); in TEST_F()
472 std::this_thread::sleep_for(100ms); in TEST_F()
483 std::this_thread::sleep_for(100ms); in TEST_F()
513 std::this_thread::sleep_for(100ms); in TEST_F()
544 std::this_thread::sleep_for(100ms); in TEST_F()
550 std::this_thread::sleep_for(100ms); in TEST_F()
608 std::this_thread::sleep_for(1500ms); in TEST_F()
DDnsQueryLog.cpp55 int ms = duration_cast<milliseconds>(ts.time_since_epoch()).count() % 1000; in timestampToString() local
56 return android::base::StringPrintf("%s.%03d", buf, ms); in timestampToString()
DDnsQueryLogTest.cpp144 DnsQueryLog queryLog(3, 100ms); in TEST_F()
151 std::this_thread::sleep_for(150ms); in TEST_F()
/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/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/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()
DIntervalTimer.h29 bool set(int ms, TIMER_FUNC cb);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDaydreamFragment.java191 private void setDreamTime(int ms) { in setDreamTime() argument
192 Settings.System.putInt(getActivity().getContentResolver(), SCREEN_OFF_TIMEOUT, ms); in setDreamTime() local
201 private void setSleepTime(int ms) { in setSleepTime() argument
202 Settings.Secure.putInt(getActivity().getContentResolver(), SLEEP_TIMEOUT, ms); in setSleepTime() local
/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/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/apps/Launcher3/src/com/android/launcher3/util/
DLooperIdleLock.java51 public boolean awaitLocked(long ms) { in awaitLocked() argument
56 mLock.wait(ms); in awaitLocked()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java85 protected void waitForMs(long ms) { in waitForMs() argument
87 Thread.sleep(ms); in waitForMs()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastActivityTestCase.java64 public static void waitForMs(long ms) { in waitForMs() argument
66 Thread.sleep(ms); in waitForMs()
DCellBroadcastServiceTestCase.java77 protected static void waitForMs(long ms) { in waitForMs() argument
79 Thread.sleep(ms); in waitForMs()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DLocationListeners.java178 String ms = String.format("Magnetic uT: (%6.2f, %6.2f, %6.2f)",
180 mTextUpdateHandler.setMagField(ms);
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java169 int ms = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); in DragView() local
170 measure(ms, ms); in DragView()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java221 private void recordVideo(int ms) throws Exception {
223 Thread.sleep(ms);
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java244 private void recordVideo(int ms) throws Exception {
246 Thread.sleep(ms);
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DOpportunisticNetworkServiceTest.java365 public static void waitForMs(long ms) { in waitForMs() argument
367 Thread.sleep(ms); in waitForMs()
DONSProfileSelectorTest.java390 public static void waitForMs(long ms) { in waitForMs() argument
392 Thread.sleep(ms); in waitForMs()

12