/hardware/interfaces/broadcastradio/common/tests/ |
D | WorkerThread_test.cpp | 50 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/ |
D | NodeLooperThreadTest.cc | 29 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 …]
|
D | RequestGroupTest.cc | 27 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 …]
|
D | FileNodeTest.cc | 29 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 …]
|
D | PropertyNodeTest.cc | 30 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()
|
D | HintManagerTest.cc | 34 using std::literals::chrono_literals::operator""ms; 36 constexpr auto kSLEEP_TOLERANCE_MS = 50ms; 236 std::vector<NodeAction>{{0, 1, 800ms}, {1, 1, 0ms}, {2, 1, 800ms}}; in SetUp() 238 std::vector<NodeAction>{{0, 0, 0ms}, {1, 0, 400ms}, {2, 0, 400ms}}; in SetUp() 347 EXPECT_TRUE(hm->DoHint("INTERACTION", 200ms)); in TEST_F() 354 EXPECT_TRUE(hm->DoHint("LAUNCH", 500ms)); in TEST_F() 356 std::this_thread::sleep_for(400ms); in TEST_F() 361 std::this_thread::sleep_for(100ms + kSLEEP_TOLERANCE_MS); in TEST_F() 371 std::this_thread::sleep_for(200ms); in TEST_F() 397 EXPECT_TRUE(hm->DoHint("LAUNCH", 500ms)); in TEST_F() [all …]
|
/hardware/interfaces/gnss/2.0/ |
D | IGnssMeasurementCallback.hal | 94 * <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/ |
D | Vibrator.cpp | 111 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/google/pixel/vibrator/cs40l25/tests/ |
D | utils.h | 35 static inline uint32_t msToCycles(EffectDuration ms) { in msToCycles() argument 36 return ms * 48; in msToCycles()
|
/hardware/nxp/nfc/snxxx/halimpl/utils/ |
D | IntervalTimer.cpp | 52 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()
|
D | IntervalTimer.h | 49 bool set(int ms, void* ptr, TIMER_FUNC cb);
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | cam_semaphore_tests.cpp | 30 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/cs40l26/tests/ |
D | utils.h | 42 static inline uint32_t msToCycles(EffectDuration ms) { in msToCycles() argument 43 return ms * 48; in msToCycles()
|
/hardware/interfaces/wifi/netlinkinterceptor/vts/functional/ |
D | interceptor_aidl_test.cpp | 160 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/qcom/display/msm8909w_3100/sdm/include/utils/ |
D | locker.h | 142 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/msm8998/sdm/include/utils/ |
D | locker.h | 142 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/ |
D | locker.h | 142 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/ |
D | locker.h | 142 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/interfaces/health/2.1/vts/functional/ |
D | VtsHalHealthV2_1TargetTest.cpp | 156 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/interfaces/vibrator/bench/ |
D | benchmark.cpp | 158 uint32_t ms = UINT32_MAX; 162 mVibrator->on(ms); 169 uint32_t ms = UINT32_MAX; 173 mVibrator->on(ms); 299 int32_t ms = INT32_MAX; 304 mVibrator->on(ms, cb); 511 int32_t ms = 0; 514 mVibrator->getCompositionDelayMax(&ms); 534 int32_t ms = 0; 543 mVibrator->getPrimitiveDuration(primitive, &ms);
|
/hardware/libhardware/tests/input/evdev/ |
D | InputHub_test.cpp | 87 auto f = delay_async(100ms, [&]() { EXPECT_EQ(OK, mInputHub->wake()); }); in TEST_F() 110 auto f = delay_async(100ms, in TEST_F() 148 auto f = delay_async(100ms, [&]() { deviceFile.reset(); }); in TEST_F() 171 auto inputDelayMs = 100ms; in TEST_F() 229 auto f = delay_async(100ms, in TEST_F()
|
/hardware/google/interfaces/media/c2/1.0/ |
D | IConfigurable.hal | 43 * This method must return within 1ms if \p mayBlock is DONT_BLOCK, and 44 * within 5ms otherwise. 75 * This method must return within 1ms if \p mayBlock is false, and within 76 * 5ms otherwise. 113 * This method must return within 1ms. 138 * This method must return within 1ms if \p mayBlock is false, and within 139 * 5ms otherwise.
|
/hardware/google/aemu/base/ |
D | MemoryTracker.cpp | 198 std::unique_ptr<MallocStats> ms(new MallocStats()); in getUsage() local 201 ms->mAllocated += it->mStats.mAllocated.load(); in getUsage() 202 ms->mLive += it->mStats.mLive.load(); in getUsage() 205 return std::move(ms); in getUsage()
|
/hardware/google/aemu/base/include/aemu/base/system/ |
D | System.h | 22 void sleepMs(uint64_t ms);
|
/hardware/interfaces/broadcastradio/common/vts/utils/include/broadcastradio-vts-utils/ |
D | pointer-utils.h | 39 constexpr auto step = 10ms; in clearAndWait()
|