Home
last modified time | relevance | path

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

123456

/frameworks/native/services/surfaceflinger/tests/unittests/
DOneShotTimerTest.cpp40 static constexpr auto waitTimeForExpected3msCallback = 100ms;
44 static constexpr auto waitTimeForUnexpected3msCallback = 6ms;
60 3ms, [] {}, [] {}); in TEST_F()
64 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(30ms, mResetTimerCallback.getInvocable(), in TEST_F()
71 bool callbackCalled = mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
76 EXPECT_FALSE(callbackCalled && std::chrono::steady_clock::now() - startTime < 30ms); in TEST_F()
84 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
90 mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
98 mExpiredTimerCallback.waitForCall(waitTimeForExpected3msCallback + 30ms).has_value()); in TEST_F()
104 EXPECT_FALSE(mExpiredTimerCallback.waitForCall(0ms).has_value()); in TEST_F()
[all …]
DVSyncDispatchRealtimeTest.cpp38 FixedRateIdealStubTracker() : mPeriod{toNs(3ms)} {} in FixedRateIdealStubTracker()
163 RepeatingCallbackReceiver(dispatch, toNs(1ms))}; in TEST_F()
183 auto next_vsync_interval = toNs(3ms); in TEST_F()
188 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms)); in TEST_F()
191 tracker.set_interval(next_vsync_interval += toNs(1ms), last_known); in TEST_F()
202 VRRStubTracker tracker(toNs(3ms)); in TEST_F()
206 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms)); in TEST_F()
212 tracker.set_interval(toNs(5ms), last_known); in TEST_F()
DTimeStatsTest.cpp401 ->recordFrameDuration(std::chrono::duration_cast<std::chrono::nanoseconds>(1ms).count(), in TEST_F()
402 std::chrono::duration_cast<std::chrono::nanoseconds>(6ms) in TEST_F()
405 ->recordFrameDuration(std::chrono::duration_cast<std::chrono::nanoseconds>(1ms).count(), in TEST_F()
406 std::chrono::duration_cast<std::chrono::nanoseconds>(16ms) in TEST_F()
415 mTimeStats->recordRenderEngineDuration(std::chrono::duration_cast<std::chrono::nanoseconds>(1ms) in TEST_F()
419 std::chrono::nanoseconds>(3ms) in TEST_F()
422 mTimeStats->recordRenderEngineDuration(std::chrono::duration_cast<std::chrono::nanoseconds>(4ms) in TEST_F()
424 std::chrono::duration_cast<std::chrono::nanoseconds>(8ms) in TEST_F()
430 std::chrono::duration_cast<std::chrono::nanoseconds>(1ms).count())); in TEST_F()
470 ->recordFrameDuration(std::chrono::duration_cast<std::chrono::nanoseconds>(1ms).count(), in TEST_F()
[all …]
/frameworks/base/cmds/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()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp241 {0ms, {{ 273, NAN}}}, in TEST_F()
252 { 0ms, {{293, NAN}} }, in TEST_F()
264 { 0ms, {{0, NAN}} }, in TEST_F()
265 { 10ms, {{5, NAN}} }, in TEST_F()
266 { 20ms, {{10, NAN}} }, in TEST_F()
267 { 20ms, {{10, NAN}} }, // ACTION_UP in TEST_F()
291 { 0ms, {{271, 96}} }, in TEST_F()
825 { 0ms, {{1, 1}} }, // 0 s in TEST_F()
826 { 1ms, {{1, 1}} }, // 0.001 s in TEST_F()
827 { 2ms, {{1, 1}} }, // 0.002 s in TEST_F()
[all …]
/frameworks/ml/nn/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()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java71 StorageManagerService ms = StorageManagerService.sSelf; in onStartJob() local
72 if (ms != null) { in onStartJob()
76 ms.runIdleMaint(mFinishCallback); in onStartJob()
78 return ms != null; in onStartJob()
86 StorageManagerService ms = StorageManagerService.sSelf; in onStopJob() local
87 if (ms != null) { in onStopJob()
88 ms.abortIdleMaint(mFinishCallback); in onStopJob()
/frameworks/compile/libbcc/
DREADME.rst61 App_1 1218ms 9ms
62 App_2 842ms 4ms
64 MagicSmoke 182ms 3ms
65 Halo 127ms 3ms
66 Balls 149ms 3ms
67 SceneGraph 146ms 90ms
68 Model 104ms 4ms
69 Fountain 57ms 3ms
/frameworks/base/samples/demo/haptic-assessment/
DREADME.txt9 2) One shot vibration with 20ms duration at max amplitude.
11 3) Waveform vibration with 500ms duration at half amplitude, then 500ms duration
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp264 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
278 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
284 EXPECT_TRUE(listener->wait_event(300ms)) in TEST_F()
302 EXPECT_TRUE(grayListener->wait_event(300ms)) in TEST_F()
305 EXPECT_TRUE(greenListener->wait_event(300ms)) in TEST_F()
340 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
346 EXPECT_FALSE(listener->wait_event(100ms)) in TEST_F()
358 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
362 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
370 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
[all …]
/frameworks/base/startop/scripts/app_startup/
Dparse_metrics135 local ms
161 result=${result/ms/}
163 ms=${result/*s/}
167 ms=$result
169 ((result=sec*1000+ms))
/frameworks/ml/nn/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) …
/frameworks/av/services/audioflinger/
DTypedLogger.h102 #define LOG_LATENCY(ms) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
103 x->log<NBLog::EVENT_LATENCY>(ms); } while (0)
122 #define LOG_WARMUP_TIME(ms) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
123 x->log<NBLog::EVENT_WARMUP_TIME>(ms); } while (0)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClock.java64 public void sleep(long ms) { in sleep() argument
65 SystemClock.sleep(ms); in sleep()
/frameworks/native/services/inputflinger/tests/
DTestInputListener.h24 using std::chrono_literals::operator""ms;
35 TestInputListener(std::chrono::milliseconds eventHappenedTimeout = 0ms,
36 std::chrono::milliseconds eventDidNotHappenTimeout = 0ms);
/frameworks/base/tools/powermodel/src/com/android/powermodel/util/
DConversion.java38 public static double msToHr(double ms) { in msToHr() argument
39 return ms / 3600.0 / 1000.0; in msToHr()
/frameworks/base/libs/hwui/utils/
DTimeUtils.h28 constexpr nsecs_t operator"" _ms(unsigned long long ms) {
29 return milliseconds_to_nanoseconds(ms);
/frameworks/hardware/interfaces/displayservice/1.0/vts/functional/
DVtsFwkDisplayServiceV1_0TargetTest.cpp109 std::this_thread::sleep_for(100ms); // framerate is not fixed on Android devices in TEST_P()
120 std::this_thread::sleep_for(250ms); in TEST_P()
125 std::this_thread::sleep_for(250ms); in TEST_P()
130 std::this_thread::sleep_for(250ms); in TEST_P()
/frameworks/base/core/java/android/os/
DSystemClock.java124 public static void sleep(long ms) in sleep() argument
127 long duration = ms; in sleep()
136 duration = start + ms - uptimeMillis(); in sleep()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowBindRecyclerViewActivity.java32 private static void spinWaitMs(long ms) { in spinWaitMs() argument
34 while (System.nanoTime() - start < TimeUnit.MILLISECONDS.toNanos(ms)); in spinWaitMs()
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DTestContext.java54 public static void waitForMs(long ms) { in waitForMs() argument
56 Thread.sleep(ms); in waitForMs()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java101 public void sleep(long ms) { in sleep() argument
102 SystemClock.sleep(ms); in sleep()
/frameworks/native/cmds/flatland/
DREADME.txt29 measured, each sample measurement runs for between 50 and 200 ms, so a sleep
30 time between 10 and 50 ms should address most thermal problems.
38 Scenario | Resolution | Time (ms)
58 reliably benchmarked. This corresponds to a frame time less than 3 ms.
63 complete. This corresponds to a frame time over 50 ms. Rather than
/frameworks/opt/net/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()

123456