/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | OneShotTimerTest.cpp | 53 "TestTimer", 3ms, [] {}, [] {}, std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 58 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F() 66 clock->advanceTime(2ms); in TEST_F() 69 clock->advanceTime(2ms); in TEST_F() 78 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F() 86 clock->advanceTime(2ms); in TEST_F() 90 clock->advanceTime(2ms); in TEST_F() 93 clock->advanceTime(2ms); in TEST_F() 101 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F() 123 clock->advanceTime(2ms); in TEST_F() [all …]
|
D | AidlPowerHalWrapperTest.cpp | 64 mWrapper->setAllowedActualDeviation(std::chrono::nanoseconds{10ms}.count()); in SetUp() 160 std::chrono::nanoseconds base = 100ms; in TEST_F() 163 {{0ms, true}, {-1ms, true}, {200ms, true}, {2ms, true}, {100ms, false}, {109ms, true}}; in TEST_F() 204 auto base = toWorkDuration(100ms, 0); in TEST_F() 208 testCases = {{{{-1ms, 100}}, false}, in TEST_F() 209 {{{100ms - (mAllowedDeviation / 2), 100}}, false}, in TEST_F() 210 {{{100ms + (mAllowedDeviation / 2), 100}}, false}, in TEST_F() 211 {{{100ms + (mAllowedDeviation + 1ms), 100}}, true}, in TEST_F() 212 {{{100ms - (mAllowedDeviation + 1ms), 100}}, true}, in TEST_F() 213 {{{100ms, 100}, {200ms, 200}}, true}, in TEST_F() [all …]
|
D | SurfaceFlinger_NotifyPowerBoostTest.cpp | 36 std::this_thread::sleep_for(10ms); // wait for callback to be triggered in TEST_F() 39 std::this_thread::sleep_for(110ms); // wait for reset touch timer to expire and trigger callback in TEST_F() 43 std::this_thread::sleep_for(10ms); // wait for callback to maybe be triggered in TEST_F() 46 std::this_thread::sleep_for(110ms); // wait for reset touch timer to expire and trigger callback in TEST_F() 50 std::this_thread::sleep_for(10ms); // wait for callback to be triggered. in TEST_F()
|
D | VSyncDispatchRealtimeTest.cpp | 39 FixedRateIdealStubTracker() : mPeriod{toNs(3ms)} {} in FixedRateIdealStubTracker() 175 RepeatingCallbackReceiver(dispatch, toNs(1ms), toNs(3ms))}; in TEST_F() 195 auto next_vsync_interval = toNs(3ms); in TEST_F() 200 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F() 203 tracker.set_interval(next_vsync_interval += toNs(1ms), last_known); in TEST_F() 214 VRRStubTracker tracker(toNs(3ms)); in TEST_F() 218 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F() 224 tracker.set_interval(toNs(5ms), last_known); in TEST_F()
|
D | PowerAdvisorTest.cpp | 50 nsecs_t kErrorMargin = std::chrono::nanoseconds(1ms).count(); 97 const nsecs_t presentDuration = std::chrono::nanoseconds(5ms).count(); in TEST_F() 98 const nsecs_t postCompDuration = std::chrono::nanoseconds(1ms).count(); in TEST_F() 132 const nsecs_t presentDuration = std::chrono::nanoseconds(5ms).count(); in TEST_F() 133 const nsecs_t postCompDuration = std::chrono::nanoseconds(1ms).count(); in TEST_F() 173 const nsecs_t presentDuration = std::chrono::nanoseconds(10ms).count(); in TEST_F() 174 const nsecs_t postCompDuration = std::chrono::nanoseconds(1ms).count(); in TEST_F()
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorCallbackSchedulerTest.cpp | 86 mScheduler->schedule(createCallback(1), 15ms); in TEST_F() 89 ASSERT_FALSE(waitForCallbacks(1, 10ms)); in TEST_F() 92 ASSERT_TRUE(waitForCallbacks(1, 10ms)); in TEST_F() 97 mScheduler->schedule(createCallback(1), 10ms); in TEST_F() 98 mScheduler->schedule(createCallback(2), 5ms); in TEST_F() 99 mScheduler->schedule(createCallback(3), 1ms); in TEST_F() 101 ASSERT_TRUE(waitForCallbacks(3, 15ms)); in TEST_F() 113 ASSERT_TRUE(waitForCallbacks(5, 25ms)); in TEST_F() 118 mScheduler->schedule(createCallback(1), 5ms); in TEST_F() 122 ASSERT_FALSE(waitForCallbacks(1, 10ms)); in TEST_F()
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 97 EXPECT_CALL(*mMockScheduler.get(), schedule(_, Eq(1ms))) in TEST_F() 120 ASSERT_TRUE(mWrapper->on(1ms, callback).isOk()); in TEST_F() 123 ASSERT_TRUE(mWrapper->on(10ms, callback).isUnsupported()); in TEST_F() 124 ASSERT_TRUE(mWrapper->on(11ms, callback).isFailed()); in TEST_F() 125 ASSERT_TRUE(mWrapper->on(12ms, callback).isFailed()); in TEST_F() 264 EXPECT_CALL(*mMockScheduler.get(), schedule(_, Eq(10ms))) in TEST_F() 293 ASSERT_EQ(10ms, result.value()); in TEST_F() 322 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::CLICK, 10ms, 0.0f)); in TEST_F() 324 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::SPIN, 100ms, 0.5f)); in TEST_F() 326 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::THUD, 1000ms, 1.0f)); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | SmartStorageMaintIdler.java | 56 StorageManagerService ms = StorageManagerService.sSelf; in onStartJob() local 57 if (ms != null) { in onStartJob() 59 ms.runSmartIdleMaint(mFinishCallback); in onStartJob() 61 return ms != null; in onStartJob() 74 StorageManagerService ms = StorageManagerService.sSelf; in scheduleSmartIdlePass() local 75 if ((ms == null) || ms.isPassedLifetimeThresh()) { in scheduleSmartIdlePass()
|
D | MountServiceIdler.java | 71 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/native/services/inputflinger/tests/ |
D | UnwantedInteractionBlocker_test.cpp | 768 const nsecs_t downTime = toNs(0ms); in TEST_F() 773 generateMotionArgs(downTime, toNs(8ms), MOVE, {{1406.0, 650.0, 52.0}})); in TEST_F() 775 generateMotionArgs(downTime, toNs(16ms), MOVE, {{1429.0, 672.0, 46.0}})); in TEST_F() 777 generateMotionArgs(downTime, toNs(24ms), MOVE, {{1417.0, 685.0, 41.0}})); in TEST_F() 779 generateMotionArgs(downTime, toNs(32ms), POINTER_1_DOWN, in TEST_F() 782 generateMotionArgs(downTime, toNs(40ms), MOVE, in TEST_F() 785 generateMotionArgs(downTime, toNs(48ms), MOVE, in TEST_F() 788 generateMotionArgs(downTime, toNs(56ms), MOVE, in TEST_F() 791 generateMotionArgs(downTime, toNs(64ms), MOVE, in TEST_F() 794 generateMotionArgs(downTime, toNs(72ms), MOVE, in TEST_F() [all …]
|
/frameworks/av/media/utils/ |
D | TimerThread-test.cpp | 27 constexpr auto kJitter = 10ms; 58 std::this_thread::sleep_for(100ms - kJitter); in testBasic() 74 std::this_thread::sleep_for(100ms - kJitter); in testCancel() 93 std::this_thread::sleep_for(100ms + kJitter); in testCancelAfterRun() 129 std::this_thread::sleep_until(startTime + 100ms - kJitter); in testMultipleTasks() 134 std::this_thread::sleep_until(startTime + 100ms + kJitter); in testMultipleTasks() 143 std::this_thread::sleep_until(startTime + 200ms - kJitter); in testMultipleTasks() 148 std::this_thread::sleep_until(startTime + 200ms + kJitter); in testMultipleTasks() 155 std::this_thread::sleep_until(startTime + 300ms - kJitter); in testMultipleTasks() 159 std::this_thread::sleep_until(startTime + 300ms + kJitter); in testMultipleTasks() [all …]
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 244 {0ms, {{273, 0}}}, in TEST_F() 256 {0ms, {{293, 0}}}, in TEST_F() 268 {0ms, {{0, 0}}}, {10ms, {{5, 0}}}, {20ms, {{10, 0}}}, {20ms, {{10, 0}}}, // ACTION_UP in TEST_F() 292 { 0ms, {{271, 96}} }, in TEST_F() 882 { 0ms, {{1, 1}} }, // 0 s in TEST_F() 883 { 1ms, {{1, 1}} }, // 0.001 s in TEST_F() 884 { 2ms, {{1, 1}} }, // 0.002 s in TEST_F() 885 { 2ms, {{1, 1}} }, // ACTION_UP in TEST_F() 900 { 0ms, {{-2, -2}} }, in TEST_F() 901 { 1ms, {{-1, -1}} }, in TEST_F() [all …]
|
/frameworks/compile/libbcc/ |
D | README.rst | 61 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/av/media/utils/tests/ |
D | timecheck_tests.cpp | 42 }, 1000ms /* timeoutDuration */, {} /* secondChanceDuration */, false /* crash */); in TEST() 61 }, 1ms /* timeoutDuration */, {} /* secondChanceDuration */, false /* crash */); in TEST() 62 std::this_thread::sleep_for(100ms); in TEST()
|
/frameworks/base/samples/demo/haptic-assessment/ |
D | README.txt | 9 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/binder/tests/ |
D | IBinderRpcTest.aidl | 53 oneway void unlockInMsAsync(int ms); in unlockInMsAsync() argument 57 void sleepMs(int ms); in sleepMs() argument 58 oneway void sleepMsAsync(int ms); in sleepMsAsync() argument
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 265 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() 279 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() 285 EXPECT_TRUE(listener->wait_event(300ms)) in TEST_F() 303 EXPECT_TRUE(grayListener->wait_event(300ms)) in TEST_F() 306 EXPECT_TRUE(greenListener->wait_event(300ms)) in TEST_F() 341 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() 347 EXPECT_FALSE(listener->wait_event(100ms)) in TEST_F() 359 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() 363 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() 371 EXPECT_TRUE(listener->wait_event(300ms)) << "timed out waiting for luma event to be received"; in TEST_F() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | FakePowerManagerInternalWrapper.java | 34 public boolean wasDeviceIdleFor(long ms) { in wasDeviceIdleFor() argument 35 return ms <= mIdleDurationMs; in wasDeviceIdleFor()
|
/frameworks/av/services/audioflinger/ |
D | TypedLogger.h | 102 #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/services/core/java/com/android/server/hdmi/ |
D | PowerManagerInternalWrapper.java | 38 public boolean wasDeviceIdleFor(long ms) { in wasDeviceIdleFor() argument 39 return mPowerManagerInternal.wasDeviceIdleFor(ms); in wasDeviceIdleFor()
|
/frameworks/base/libs/hwui/utils/ |
D | TimeUtils.h | 28 constexpr nsecs_t operator"" _ms(unsigned long long ms) { 29 return milliseconds_to_nanoseconds(ms);
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/util/ |
D | Conversion.java | 38 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/ |
D | VtsFwkDisplayServiceV1_0TargetTest.cpp | 109 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/native/services/surfaceflinger/CompositionEngine/tests/planner/ |
D | FlattenerTest.cpp | 62 .mActiveLayerTimeout = 100ms, in FlattenerTest() 258 mTime += 200ms; in TEST_F() 281 mTime += 200ms; in TEST_F() 309 mTime += 200ms; in TEST_F() 330 mTime += 200ms; in TEST_F() 356 mTime += 200ms; in TEST_F() 381 mTime += 200ms; in TEST_F() 418 mTime += 200ms; in TEST_F() 447 mTime += 200ms; in TEST_F() 495 mTime += 200ms; in TEST_F() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 222 private long getDstAdjustedMillis(boolean apply, long ms) { in getDstAdjustedMillis() argument 225 return isInDst() ? (ms + HOUR_IN_MILLIS) : (ms - HOUR_IN_MILLIS); in getDstAdjustedMillis() 227 return isInDst() ? (ms - HOUR_IN_MILLIS) : (ms + HOUR_IN_MILLIS); in getDstAdjustedMillis() 230 return ms; in getDstAdjustedMillis() 234 final long ms = mCalendar.getTimeInMillis(); in normalizeInternal() local 236 return ms; in normalizeInternal()
|