Home
last modified time | relevance | path

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

123456

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DGpuCapacityCalculationTest.cpp24 using std::literals::chrono_literals::operator""ms;
42 EXPECT_THAT(gpu_time_attribution(12ms, 0ms), DoubleEq(0)); in TEST()
43 EXPECT_THAT(gpu_time_attribution(12ms, 8ms), DoubleEq(2.0 / 3.0)); in TEST()
44 EXPECT_THAT(gpu_time_attribution(12ms, 6ms), DoubleEq(0.5)); in TEST()
45 EXPECT_THAT(gpu_time_attribution(12ms, 12ms), DoubleEq(1.0)); in TEST()
46 EXPECT_THAT(gpu_time_attribution(12ms, 12ms), DoubleEq(1.0)); in TEST()
50 EXPECT_THAT(gpu_time_attribution(0ms, 8ms), DoubleEq(0.0)); in TEST()
51 EXPECT_THAT(gpu_time_attribution(0ms, 0ms), DoubleEq(0.0)); in TEST()
56 .durationNanos = to_int_nanoseconds(12ms), in TEST()
57 .cpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
[all …]
DBackgroundWorkerTest.cpp29 using std::literals::chrono_literals::operator""ms;
61 p->schedule(pqId, 500, tNow + 500ms); in TEST()
62 p->schedule(pqId, 100, tNow + 100ms); in TEST()
63 p->schedule(pqId, 300, tNow + 300ms); in TEST()
67 cv.wait_for(lock, 1500ms, [&]() { return vec.size() == 3; }); in TEST()
95 worker.schedule(303, tNow + 500ms); in TEST()
96 worker.schedule(101, tNow + 100ms); in TEST()
97 worker.schedule(202, tNow + 300ms); in TEST()
101 cv.wait_for(lock, 1500ms, [&]() { return vec.size() == 3; }); in TEST()
137 worker1.schedule(5, tNow + 300ms); in TEST()
[all …]
DSessionTaskMapTest.cpp21 using std::literals::chrono_literals::operator""ms;
201 sve.votes->add(sessionId, CpuVote(true, tNow, 400ms, 123, 1024)); in TEST()
220 sv.votes->add(1, CpuVote(true, tNow, 400ms, 123, 1024)); in TEST()
224 EXPECT_FALSE(m.isAnyAppSessionActive(tNow + 500ms)); in TEST()
303 sv.votes->add(11, CpuVote(true, tNow, 400ms, 111, 1024)); in TEST()
313 sv.votes->add(22, CpuVote(true, tNow, 400ms, 222, 1024)); in TEST()
349 m.addGpuVote(session_id1, gpu_vote_id, Cycles(222), now, 400ms); in TEST()
350 EXPECT_EQ(m.getSessionsGpuCapacity(now + 1ms), Cycles(222)); in TEST()
351 EXPECT_EQ(m.getSessionsGpuCapacity(now + 401ms), Cycles(0)); in TEST()
353 m.addGpuVote(session_id1, gpu_vote_id, Cycles(111), now, 100ms); in TEST()
[all …]
DUClampVoterTest.cpp30 using std::literals::chrono_literals::operator""ms;
37 VoteRange vr(true, tNow, 200ms); in TEST()
43 VoteRange vr(false, tNow, 200ms); in TEST()
55 VoteRange vote_range(true, tNow, 250ms); in TEST()
59 EXPECT_TRUE(vote_range.isTimeInRange(tNow + 250ms)); in TEST()
60 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms + 1ns)); in TEST()
65 VoteRange vote_range(true, tNow, 250ms); in TEST()
71 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms)); in TEST()
72 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms + 1ns)); in TEST()
183 votes->add(defaultVoteId, CpuVote(true, tNow, 400ms, uclampMinDefault, 1024)); in TEST()
[all …]
DPhysicalQuantityTypeTest.cpp22 using std::chrono_literals::operator""ms;
71 EXPECT_THAT(Cycles(1000) / 500ms, Eq(2000_hz)); in TEST()
73 EXPECT_THAT(1000_hz * 12ms, Eq(Cycles(12))); in TEST()
/hardware/interfaces/broadcastradio/common/tests/
DWorkerThread_test.cpp50 100ms); in TEST()
52 sleep_for(150ms); in TEST()
56 ASSERT_EQ_WITH_TOLERANCE(delta, 100ms, 50ms); in TEST()
64 thread.schedule([&]() { executed2 = true; }, 100ms); in TEST()
65 thread.schedule([&]() { executed1 = true; }, 25ms); in TEST()
67 sleep_for(50ms); in TEST()
69 sleep_for(100ms); in TEST()
85 50ms); in TEST()
92 400ms); in TEST()
99 100ms); in TEST()
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DNodeLooperThreadTest.cc29 using std::literals::chrono_literals::operator""ms;
31 constexpr auto kSLEEP_TOLERANCE_MS = 50ms;
83 std::vector<NodeAction> actions{{0, 0, 200ms}, {1, 1, 400ms}}; in TEST_F()
88 std::this_thread::sleep_for(200ms); in TEST_F()
91 std::this_thread::sleep_for(200ms); in TEST_F()
106 std::vector<NodeAction> actions{{0, 0, 200ms}, {1, 1, 500ms}}; in TEST_F()
114 actions = std::vector<NodeAction>{{0, 0, 300ms}, {1, 1, 100ms}}; in TEST_F()
116 std::this_thread::sleep_for(200ms); in TEST_F()
119 std::this_thread::sleep_for(150ms); in TEST_F()
123 std::this_thread::sleep_for(150ms); in TEST_F()
[all …]
DRequestGroupTest.cc27 using std::literals::chrono_literals::operator""ms;
42 auto duration = 500ms; in TEST()
45 auto sleep_time = 200ms; in TEST()
74 auto duration = 5ms; in TEST()
77 ret = req.AddRequest("INTERACTION", start + duration + 1ms); in TEST()
79 std::this_thread::sleep_for(duration + 10ms); in TEST()
90 auto duration = 5000ms; in TEST()
99 auto shorter_duration = 100ms; in TEST()
107 duration = 10000ms; in TEST()
119 auto duration_interact = 500ms; in TEST()
[all …]
DFileNodeTest.cc29 using std::literals::chrono_literals::operator""ms;
32 constexpr auto kSLEEP_TOLERANCE_MS = 2ms;
123 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 200ms)); in TEST()
129 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 2000ms)); in TEST()
141 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
148 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
171 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
178 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
203 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
210 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
[all …]
DPropertyNodeTest.cc30 using std::literals::chrono_literals::operator""ms;
33 constexpr auto kSLEEP_TOLERANCE_MS = 2ms;
129 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
136 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
159 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
166 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
189 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
196 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
202 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 100ms)); in TEST()
208 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 300ms)); in TEST()
/hardware/interfaces/gnss/2.0/
DIGnssMeasurementCallback.hal94 * <td>1 ms</td>
95 * <td>1 ms</td>
96 * <td>1 ms</td>
97 * <td>1 ms</td>
98 * <td>1 ms</td>
99 * <td>1 ms</td>
102 * <td>1 ms</td>
103 * <td>1 ms</td>
109 * <td>20 ms (optional)</td>
110 * <td>10 ms</td>
[all …]
/hardware/interfaces/vibrator/1.3/example/
DVibrator.cpp111 uint32_t ms; in perform() local
123 ms = effectToMs(effect, &status); in perform()
128 status = activate(ms); in perform()
130 _hidl_cb(status, ms); in perform()
156 Status Vibrator::activate(uint32_t ms) { in activate() argument
160 if (ms > 0) { in activate()
168 ts.it_value.tv_sec = ms / MS_PER_S; in activate()
169 ts.it_value.tv_nsec = ms % MS_PER_S * NS_PER_MS; in activate()
176 if ((status != Status::OK) || !ms) { in activate()
/hardware/interfaces/vibrator/bench/
Dbenchmark.cpp50 static constexpr auto VIBRATION_CALLBACK_TIMEOUT = 100ms;
196 auto ms = MAX_ON_DURATION_MS;
200 if (shouldSkipWithError(state, mVibrator->on(ms))) {
214 auto ms = MAX_ON_DURATION_MS;
219 if (shouldSkipWithError(state, mVibrator->on(ms))) {
238 auto ms = MAX_ON_DURATION_MS;
246 if (shouldSkipWithError(state, mVibrator->on(ms))) {
418 auto ms = MAX_ON_DURATION_MS;
424 if (shouldSkipWithError(state, mVibrator->on(ms, cb))) {
441 auto ms = MAX_ON_DURATION_MS;
[all …]
/hardware/nxp/keymint/transport/
DIntervalTimer.cpp53 bool IntervalTimer::set(int ms, void* ptr, TIMER_FUNC cb) { in set() argument
66 ts.it_value.tv_sec = ms / 1000; in set()
67 ts.it_value.tv_nsec = (ms % 1000) * 1000000; in set()
/hardware/nxp/nfc/snxxx/halimpl/utils/
DIntervalTimer.cpp52 bool IntervalTimer::set(int ms, void* ptr, TIMER_FUNC cb) { in set() argument
65 ts.it_value.tv_sec = ms / 1000; in set()
66 ts.it_value.tv_nsec = (ms % 1000) * 1000000; in set()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dcam_semaphore_tests.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { in timespec_add_ms() argument
31 ts.tv_sec += ms / 1000; in timespec_add_ms()
32 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms()
/hardware/google/pixel/vibrator/cs40l25/tests/
Dutils.h35 static inline uint32_t msToCycles(EffectDuration ms) { in msToCycles() argument
36 return ms * 48; in msToCycles()
/hardware/google/pixel/vibrator/cs40l26/tests/
Dutils.h42 static inline uint32_t msToCycles(EffectDuration ms) { in msToCycles() argument
43 return ms * 48; in msToCycles()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_graphics_state.c708 vk_multisample_state_init(struct vk_multisample_state *ms, in vk_multisample_state_init() argument
712 memset(ms, 0, sizeof(*ms)); in vk_multisample_state_init()
718 ms->rasterization_samples = ms_info->rasterizationSamples; in vk_multisample_state_init()
721 ms->sample_shading_enable = ms_info->sampleShadingEnable; in vk_multisample_state_init()
722 ms->min_sample_shading = ms_info->minSampleShading; in vk_multisample_state_init()
729 ms->sample_mask = ms_info->pSampleMask ? *ms_info->pSampleMask : ~0; in vk_multisample_state_init()
731 ms->alpha_to_coverage_enable = ms_info->alphaToCoverageEnable; in vk_multisample_state_init()
732 ms->alpha_to_one_enable = ms_info->alphaToOneEnable; in vk_multisample_state_init()
735 ms->sample_locations_enable = false; in vk_multisample_state_init()
736 ms->sample_locations = NULL; in vk_multisample_state_init()
[all …]
/hardware/interfaces/wifi/netlinkinterceptor/vts/functional/
Dinterceptor_aidl_test.cpp160 std::this_thread::sleep_for(50ms); in TEST_P()
164 std::this_thread::sleep_for(50ms); in TEST_P()
179 std::this_thread::sleep_for(50ms); in TEST_P()
182 std::this_thread::sleep_for(50ms); in TEST_P()
/hardware/interfaces/health/2.1/vts/functional/
DVtsHalHealthV2_1TargetTest.cpp156 first->waitInvoke(200ms); in TestCallbacks()
157 second->waitInvoke(200ms); in TestCallbacks()
169 first->waitInvoke(200ms); in TestCallbacks()
170 second->waitInvoke(200ms); in TestCallbacks()
175 TEST_AND_RETURN_FAILURE(!first->waitInvoke(200ms)); in TestCallbacks()
/hardware/qcom/display/msm8998/sdm/include/utils/
Dlocker.h142 int WaitFinite(int ms) { in WaitFinite() argument
146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite()
147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite()
/hardware/qcom/display/msm8909/sdm/include/utils/
Dlocker.h142 int WaitFinite(int ms) { in WaitFinite() argument
146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite()
147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite()
/hardware/qcom/display/msm8996/sdm/include/utils/
Dlocker.h142 int WaitFinite(int ms) { in WaitFinite() argument
146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite()
147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite()
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
Dlocker.h142 int WaitFinite(int ms) { in WaitFinite() argument
146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite()
147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite()

123456