Home
last modified time | relevance | path

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

12345678910

/frameworks/native/libs/input/tests/
DTouchResampling_test.cpp233 {0ms, {{0, 10, 20}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F()
236 frameTime = 5ms; in TEST_F()
239 {0ms, {{0, 10, 20}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F()
246 {10ms, {{0, 20, 30}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F()
247 {20ms, {{0, 30, 30}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F()
250 frameTime = 35ms; in TEST_F()
253 {10ms, {{0, 20, 30}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F()
254 {20ms, {{0, 30, 30}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F()
255 {25ms, {{0, 35, 30, .isResampled = true}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F()
272 {0ms, {{1, 10, 20}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F()
[all …]
DMotionPredictor_test.cpp184 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
185 predictor.record(getMotionEvent(MOVE, 0, 1, 35ms)); // No movement. in TEST()
193 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
194 predictor.record(getMotionEvent(MOVE, 0, 5, 35ms)); // Move enough to overcome the noise floor. in TEST()
203 predictor.record(getMotionEvent(DOWN, 3.75, 3, 20ms)); in TEST()
204 predictor.record(getMotionEvent(MOVE, 4.8, 3, 30ms)); in TEST()
205 predictor.record(getMotionEvent(MOVE, 6.2, 3, 40ms)); in TEST()
206 predictor.record(getMotionEvent(MOVE, 8, 3, 50ms)); in TEST()
209 predictor.record(getMotionEvent(UP, 10.25, 3, 60ms)); in TEST()
217 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST()
[all …]
DVelocityTracker_test.cpp29 using std::literals::chrono_literals::operator""ms;
309 std::vector<PlanarMotionEventEntry> motions = {{10ms, {{2, 4}}}, in TEST_F()
310 {20ms, {{4, 12}}}, in TEST_F()
311 {30ms, {{6, 20}}}, in TEST_F()
312 {40ms, {{10, 30}}}}; in TEST_F()
368 std::vector<PlanarMotionEventEntry> motions = {{10ms, {{1, 2}}}, in TEST_F()
369 {20ms, {{2, 4}}}, in TEST_F()
370 {30ms, {{3, 6}}}, in TEST_F()
371 {35ms, {{30, 60, .isResampled = true}}}, in TEST_F()
372 {40ms, {{4, 8}}}}; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp64 Duration presentDuration = 0ms;
65 Duration postCompDuration = 0ms;
137 std::chrono::nanoseconds(1ms).count(), mEventFlag); in SetUpFmq()
223 std::chrono::nanoseconds(1ms).count(), mEventFlag)); in testGpuScenario()
287 std::chrono::nanoseconds(1ms).count(), mEventFlag)); in testGpuScenario()
327 const Duration presentDuration = 5ms; in TEST_F()
328 const Duration postCompDuration = 1ms; in TEST_F()
351 mPowerAdvisor->setHwcValidateTiming(displayIds[0], startTime + 1ms, startTime + 1500us); in TEST_F()
352 mPowerAdvisor->setHwcPresentTiming(displayIds[0], startTime + 2ms, startTime + 2500us); in TEST_F()
365 const Duration presentDuration = 5ms; in TEST_F()
[all …]
DOneShotTimerTest.cpp53 "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 …]
DVSyncDispatchRealtimeTest.cpp66 FixedRateIdealStubTracker() : StubTracker{toNs(3ms)} {} in FixedRateIdealStubTracker()
176 RepeatingCallbackReceiver(dispatch, toNs(1ms), toNs(3ms))}; in TEST_F()
196 auto next_vsync_interval = toNs(3ms); in TEST_F()
202 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F()
205 tracker->set_interval(next_vsync_interval += toNs(1ms), last_known); in TEST_F()
216 auto tracker = std::make_shared<VRRStubTracker>(toNs(3ms)); in TEST_F()
221 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F()
227 tracker->set_interval(toNs(5ms), last_known); in TEST_F()
DSurfaceFlinger_PowerHintTest.cpp41 constexpr Duration kMockHwcRunTime = 20ms; in TEST_F()
48 constexpr Period kMockVsyncPeriod = 15ms; in TEST_F()
62 constexpr Duration kMockHwcRunTime = 20ms; in TEST_F()
69 constexpr Period kMockVsyncPeriod = 15ms; in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DFrameTargeterTest.cpp73 .sfWorkDuration = 10ms, in Frame()
138 TimePoint frameBeginTime(989ms); in TEST_F()
139 const Frame frame(this, vsyncId++, frameBeginTime, 10ms, 60_Hz, 60_Hz); in TEST_F()
142 EXPECT_EQ(target().frameBeginTime(), TimePoint(989ms)); in TEST_F()
143 EXPECT_EQ(target().expectedPresentTime(), TimePoint(999ms)); in TEST_F()
144 EXPECT_EQ(target().expectedFrameDuration(), 10ms); in TEST_F()
147 TimePoint frameBeginTime(1100ms); in TEST_F()
148 const Frame frame(this, vsyncId++, frameBeginTime, 11ms, 60_Hz, 60_Hz); in TEST_F()
151 EXPECT_EQ(target().frameBeginTime(), TimePoint(1100ms)); in TEST_F()
152 EXPECT_EQ(target().expectedPresentTime(), TimePoint(1111ms)); in TEST_F()
[all …]
/frameworks/native/services/vibratorservice/test/
DVibratorCallbackSchedulerTest.cpp35 static const auto TEST_TIMEOUT = 100ms;
71 auto callbackDuration = 50ms; in TEST_F()
84 mScheduler->schedule(createCallback(1), 50ms + 2 * TEST_TIMEOUT); in TEST_F()
85 mScheduler->schedule(createCallback(2), 50ms + TEST_TIMEOUT); in TEST_F()
86 mScheduler->schedule(createCallback(3), 50ms); in TEST_F()
89 ASSERT_THAT(waitForCallbacks(3, 50ms + 3 * TEST_TIMEOUT), Eq(3)); in TEST_F()
95 mScheduler->schedule(createCallback(1), 100ms); in TEST_F()
99 ASSERT_THAT(waitForCallbacks(1, 100ms + TEST_TIMEOUT), Eq(0)); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp97 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/
DSmartStorageMaintIdler.java56 final StorageManagerService ms = StorageManagerService.sSelf; in onStartJob() local
61 if (ms != null) { in onStartJob()
62 ms.runSmartIdleMaint(mFinishCallback); in onStartJob()
68 return ms != null; in onStartJob()
83 StorageManagerService ms = StorageManagerService.sSelf; in scheduleSmartIdlePass() local
84 if ((ms == null) || ms.isPassedLifetimeThresh()) { in scheduleSmartIdlePass()
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/native/services/inputflinger/tests/
DUnwantedInteractionBlocker_test.cpp734 const nsecs_t downTime = toNs(0ms); in TEST_F()
739 generateMotionArgs(downTime, toNs(8ms), MOVE, {{1406.0, 650.0, 52.0}})); in TEST_F()
741 generateMotionArgs(downTime, toNs(16ms), MOVE, {{1429.0, 672.0, 46.0}})); in TEST_F()
743 generateMotionArgs(downTime, toNs(24ms), MOVE, {{1417.0, 685.0, 41.0}})); in TEST_F()
745 generateMotionArgs(downTime, toNs(32ms), POINTER_1_DOWN, in TEST_F()
748 generateMotionArgs(downTime, toNs(40ms), MOVE, in TEST_F()
751 generateMotionArgs(downTime, toNs(48ms), MOVE, in TEST_F()
754 generateMotionArgs(downTime, toNs(56ms), MOVE, in TEST_F()
757 generateMotionArgs(downTime, toNs(64ms), MOVE, in TEST_F()
760 generateMotionArgs(downTime, toNs(72ms), MOVE, in TEST_F()
[all …]
DFakeInputDispatcherPolicy.cpp158 .wait_for(lock, 100ms, [this, enabled, window]() REQUIRES(mLock) { in assertSetPointerCaptureCalled()
179 if (mPointerCaptureChangedCondition.wait_for(lock, 100ms) != std::cv_status::timeout) { in assertSetPointerCaptureNotCalled()
200 getItemFromStorageLockedInterruptible(100ms, mBrokenInputChannels, lock, in assertNotifyInputChannelBrokenWasCalled()
211 return 500ms; in getKeyWaitingForEventsTimeout()
226 if (!mFocusedDisplayNotifiedCondition.wait_for(lock, 100ms, in assertFocusedDisplayNotified()
245 getItemFromStorageLockedInterruptible(500ms, mUserActivityPokeEvents, lock, in assertUserActivityNotPoked()
257 getItemFromStorageLockedInterruptible(500ms, mUserActivityPokeEvents, lock, in assertUserActivityPoked()
268 ASSERT_EQ(std::make_pair(deviceId, uids), mNotifiedInteractions.popWithTimeout(100ms)); in assertNotifyDeviceInteractionWasCalled()
272 ASSERT_FALSE(mNotifiedInteractions.popWithTimeout(10ms)); in assertNotifyDeviceInteractionWasNotCalled()
285 getItemFromStorageLockedInterruptible(100ms, mReportedUnhandledKeycodes, lock, in assertUnhandledKeyReported()
[all …]
DTestConstants.h25 using std::chrono_literals::operator""ms;
28 static constexpr std::chrono::duration WAIT_TIMEOUT = 100ms;
/frameworks/av/media/utils/tests/
Dtimecheck_tests.cpp41 }, 1000ms /* timeoutDuration */, {} /* secondChanceDuration */, false /* crash */); in TEST()
60 }, 1ms /* timeoutDuration */, {} /* secondChanceDuration */, false /* crash */); in TEST()
61 std::this_thread::sleep_for(100ms); in TEST()
87 }, 1ms /* timeoutDuration */, {} /* secondChanceDuration */, true /* crash */);
88 std::this_thread::sleep_for(100ms);
DTimerThread-test.cpp27 constexpr auto kJitter = 10ms;
58 std::this_thread::sleep_for(100ms - kJitter); in testBasic()
76 std::this_thread::sleep_for(100ms - kJitter); in testCancel()
97 std::this_thread::sleep_for(100ms + kJitter); in testCancelAfterRun()
135 std::this_thread::sleep_until(startTime + 100ms - kJitter); in testMultipleTasks()
140 std::this_thread::sleep_until(startTime + 100ms + kJitter); in testMultipleTasks()
149 std::this_thread::sleep_until(startTime + 200ms - kJitter); in testMultipleTasks()
154 std::this_thread::sleep_until(startTime + 200ms + kJitter); in testMultipleTasks()
161 std::this_thread::sleep_until(startTime + 300ms - kJitter); in testMultipleTasks()
165 std::this_thread::sleep_until(startTime + 300ms + kJitter); in testMultipleTasks()
[all …]
/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/binder/tests/
DIBinderRpcTest.aidl56 oneway void unlockInMsAsync(int ms); in unlockInMsAsync() argument
60 void sleepMs(int ms); in sleepMs() argument
61 oneway void sleepMsAsync(int ms); in sleepMsAsync() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DFakePowerManagerInternalWrapper.java34 public boolean wasDeviceIdleFor(long ms) { in wasDeviceIdleFor() argument
35 return ms <= mIdleDurationMs; in wasDeviceIdleFor()
/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerManagerInternalWrapper.java38 public boolean wasDeviceIdleFor(long ms) { in wasDeviceIdleFor() argument
39 return mPowerManagerInternal.wasDeviceIdleFor(ms); in wasDeviceIdleFor()
/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/av/media/codec2/vndk/platform/
DC2SurfaceSyncObj.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { in timespec_add_ms() argument
32 ts.tv_sec += ms / 1000; in timespec_add_ms()
33 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms()
359 bool C2SyncVariables::tryLockFor(size_t ms) { in tryLockFor() argument
371 static_cast<time_t>(ms / 1000), in tryLockFor()
372 static_cast<long>((ms % 1000) * 1000000)}; in tryLockFor()
375 timespec_add_ms(end, ms); in tryLockFor()

12345678910