Home
last modified time | relevance | path

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

1234

/frameworks/native/services/surfaceflinger/tests/unittests/
DIdleTimerTest.cpp40 static constexpr auto waitTimeForExpected3msCallback = 100ms;
44 static constexpr auto waitTimeForUnexpected3msCallback = 6ms;
59 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, [] {}, [] {}); in TEST_F()
63 mIdleTimer = std::make_unique<scheduler::IdleTimer>(30ms, mResetTimerCallback.getInvocable(), in TEST_F()
70 bool callbackCalled = mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
75 EXPECT_FALSE(callbackCalled && std::chrono::steady_clock::now() - startTime < 30ms); in TEST_F()
83 mIdleTimer = std::make_unique<scheduler::IdleTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
89 mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
97 mExpiredTimerCallback.waitForCall(waitTimeForExpected3msCallback + 30ms).has_value()); in TEST_F()
103 EXPECT_FALSE(mExpiredTimerCallback.waitForCall(0ms).has_value()); in TEST_F()
[all …]
DDispSyncSourceTest.cpp53 static constexpr std::chrono::nanoseconds mPhaseOffset = 6ms;
54 static constexpr std::chrono::nanoseconds mOffsetThresholdForNextVsync = 16ms;
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp239 {0ms, {{ 273, NAN}}}, in TEST_F()
250 { 0ms, {{293, NAN}} }, in TEST_F()
262 { 0ms, {{0, NAN}} }, in TEST_F()
263 { 10ms, {{5, NAN}} }, in TEST_F()
264 { 20ms, {{10, NAN}} }, in TEST_F()
265 { 20ms, {{10, NAN}} }, // ACTION_UP in TEST_F()
289 { 0ms, {{271, 96}} }, in TEST_F()
823 { 0ms, {{1, 1}} }, // 0 s in TEST_F()
824 { 1ms, {{1, 1}} }, // 0.001 s in TEST_F()
825 { 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/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/base/libs/hwui/utils/
DTimeUtils.h28 constexpr nsecs_t operator"" _ms(unsigned long long ms) {
29 return milliseconds_to_nanoseconds(ms);
/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/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_F()
120 std::this_thread::sleep_for(250ms); in TEST_F()
125 std::this_thread::sleep_for(250ms); in TEST_F()
130 std::this_thread::sleep_for(250ms); in TEST_F()
/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/av/media/utils/fuzzers/
DTimeCheckFuzz.cpp57 auto ms = std::chrono::milliseconds(sleep_amount_ms); in LLVMFuzzerTestOneInput() local
58 std::this_thread::sleep_for(ms); in LLVMFuzzerTestOneInput()
/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/native/libs/gui/tests/
DRegionSampling_test.cpp251 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
265 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F()
271 EXPECT_TRUE(listener->wait_event(300ms)) in TEST_F()
289 EXPECT_TRUE(grayListener->wait_event(300ms)) in TEST_F()
292 EXPECT_TRUE(greenListener->wait_event(300ms)) in TEST_F()
/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/native/services/surfaceflinger/Scheduler/
DSchedulerUtils.h37 static constexpr std::chrono::nanoseconds OBSOLETE_TIME_EPSILON_NS = 1200ms;
44 static constexpr std::chrono::nanoseconds LOW_ACTIVITY_EPSILON_NS = 250ms;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java294 long ms = time - tmp * 1000L; in toHMS() local
304 return String.format("%s%d:%02d:%02d.%03d", millis < 0 ? "-" : "", tmp, m, s, ms); in toHMS()
307 public static String toUTCString(long ms) { in toUTCString() argument
308 if (ms < 0) { in toUTCString()
312 c.setTimeInMillis(ms); in toUTCString()
/frameworks/base/mime/java-res/
Dandroid.mime.types53 ?application/vnd.ms-pki.stl stl
54 ?application/vnd.ms-powerpoint pot
55 ?application/vnd.ms-wpl wpl
139 image/x-ms-bmp bmp
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java127 public void sleep(long ms) { in sleep() argument
128 SystemClock.sleep(ms); in sleep()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.h49 virtual void setStartTimeOffsetMs(int ms) { mStartTimeOffsetMs = ms; } in setStartTimeOffsetMs() argument
/frameworks/base/core/java/android/net/metrics/
DConnectStats.java85 private void countLatency(int errno, int ms) { in countLatency() argument
98 latencies.add(ms); in countLatency()

1234