/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/ |
D | FileNodeTest.cc | 31 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 117 std::chrono::milliseconds expire_time = t.Update(true); in TEST() 119 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 125 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 135 std::chrono::milliseconds expire_time = t.Update(true); in TEST() 138 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 144 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 150 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST() 156 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST() 165 std::chrono::milliseconds expire_time = t.Update(true); in TEST() [all …]
|
D | PropertyNodeTest.cc | 32 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 125 std::chrono::milliseconds expire_time = t.Update(true); in TEST() 128 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 134 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 140 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST() 146 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST() 155 std::chrono::milliseconds expire_time = t.Update(true); in TEST() 158 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 164 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 170 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() [all …]
|
D | RequestGroupTest.cc | 29 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 47 std::chrono::milliseconds expire_time; in TEST() 60 std::chrono::milliseconds expire_time; in TEST() 62 auto expect = std::chrono::duration_cast<std::chrono::milliseconds>( in TEST() 80 std::chrono::milliseconds expire_time; in TEST() 82 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST() 93 std::chrono::milliseconds expire_time; in TEST() 123 std::chrono::milliseconds expire_time; in TEST() 138 std::chrono::milliseconds expire_time; in TEST() 140 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | RecurrentTimer_test.cpp | 26 using std::chrono::milliseconds; 42 timer.registerRecurrentEvent(milliseconds(1), 0xdead); in TEST() 43 std::this_thread::sleep_for(milliseconds(100)); in TEST() 65 timer.registerRecurrentEvent(milliseconds(1), 0xdead); in TEST() 66 timer.registerRecurrentEvent(milliseconds(5), 0xbeef); in TEST() 68 std::this_thread::sleep_for(milliseconds(100)); in TEST()
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/ |
D | RequestGroup.cc | 49 bool RequestGroup::GetExpireTime(std::chrono::milliseconds* expire_time) { in GetExpireTime() 51 *expire_time = std::chrono::milliseconds::max(); in GetExpireTime() 55 auto duration = std::chrono::duration_cast<std::chrono::milliseconds>( in GetExpireTime() 57 if (duration <= std::chrono::milliseconds::zero()) { in GetExpireTime() 73 std::chrono::duration_cast<std::chrono::milliseconds>(it->second - in DumpToFd()
|
D | FileNode.cc | 44 std::chrono::milliseconds FileNode::Update(bool log_error) { in Update() 46 std::chrono::milliseconds expire_time = std::chrono::milliseconds::max(); in Update() 72 expire_time = std::min(expire_time, std::chrono::milliseconds(500)); in Update()
|
D | PropertyNode.cc | 38 std::chrono::milliseconds PropertyNode::Update(bool) { in Update() 40 std::chrono::milliseconds expire_time = std::chrono::milliseconds::max(); in Update()
|
D | NodeLooperThread.cc | 50 if (a.timeout_ms != std::chrono::milliseconds::zero()) { in Request() 54 if (std::chrono::duration_cast<std::chrono::milliseconds>( in Request() 102 std::chrono::milliseconds timeout_ms = kMaxUpdatePeriod; in threadLoop()
|
/hardware/interfaces/sensors/2.0/vts/functional/ |
D | VtsHalSensorsV2_0TargetTest.cpp | 21 testStreamingOperation(SensorTypeVersion::ACCELEROMETER, std::chrono::milliseconds(200), in TEST_P() 27 testStreamingOperation(SensorTypeVersion::ACCELEROMETER, std::chrono::milliseconds(20), in TEST_P() 33 testStreamingOperation(SensorTypeVersion::ACCELEROMETER, std::chrono::milliseconds(5), in TEST_P() 39 testStreamingOperation(SensorTypeVersion::GYROSCOPE, std::chrono::milliseconds(200), in TEST_P() 45 testStreamingOperation(SensorTypeVersion::GYROSCOPE, std::chrono::milliseconds(20), in TEST_P() 51 testStreamingOperation(SensorTypeVersion::GYROSCOPE, std::chrono::milliseconds(5), in TEST_P() 57 testStreamingOperation(SensorTypeVersion::MAGNETIC_FIELD, std::chrono::milliseconds(200), in TEST_P() 63 testStreamingOperation(SensorTypeVersion::MAGNETIC_FIELD, std::chrono::milliseconds(20), in TEST_P() 69 testStreamingOperation(SensorTypeVersion::MAGNETIC_FIELD, std::chrono::milliseconds(5), in TEST_P()
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/ |
D | NodeLooperThread.h | 37 std::chrono::milliseconds timeout_ms) in NodeAction() 43 std::chrono::milliseconds timeout_ms; // 0ms for forever 87 static constexpr auto kMaxUpdatePeriod = std::chrono::milliseconds::max();
|
D | FileNode.h | 38 std::chrono::milliseconds Update(bool log_error) override; 49 const std::chrono::milliseconds warn_timeout_;
|
/hardware/google/pixel/perfstatsd/ |
D | perfstatsd.cpp | 53 auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(d); in getHistory() local 61 ret->append(std::to_string(milliseconds.count()) + "\n"); in getHistory()
|
/hardware/interfaces/bluetooth/1.0/default/ |
D | async_fd_watcher.h | 38 int ConfigureTimeout(const std::chrono::milliseconds timeout, 60 std::chrono::milliseconds timeout_ms_;
|
D | async_fd_watcher.cc | 55 const std::chrono::milliseconds timeout, in ConfigureTimeout() 143 if (timeout_ms_ > std::chrono::milliseconds(0)) { in ThreadRoutine() 162 if (timeout_ms_ > std::chrono::milliseconds(0)) saved_cb = timeout_cb_; in ThreadRoutine()
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | VtsHalSensorsV1_0TargetTest.cpp | 258 testStreamingOperation(SensorType::ACCELEROMETER, std::chrono::milliseconds(200), in TEST_P() 264 testStreamingOperation(SensorType::ACCELEROMETER, std::chrono::milliseconds(20), in TEST_P() 270 testStreamingOperation(SensorType::ACCELEROMETER, std::chrono::milliseconds(5), in TEST_P() 276 testStreamingOperation(SensorType::GYROSCOPE, std::chrono::milliseconds(200), in TEST_P() 282 testStreamingOperation(SensorType::GYROSCOPE, std::chrono::milliseconds(20), in TEST_P() 288 testStreamingOperation(SensorType::GYROSCOPE, std::chrono::milliseconds(5), in TEST_P() 294 testStreamingOperation(SensorType::MAGNETIC_FIELD, std::chrono::milliseconds(200), in TEST_P() 300 testStreamingOperation(SensorType::MAGNETIC_FIELD, std::chrono::milliseconds(20), in TEST_P() 306 testStreamingOperation(SensorType::MAGNETIC_FIELD, std::chrono::milliseconds(5), in TEST_P()
|
/hardware/interfaces/broadcastradio/common/utils/ |
D | WorkerThread.cpp | 21 using std::chrono::milliseconds; 45 void WorkerThread::schedule(function<void()> task, milliseconds delay) { in schedule()
|
/hardware/interfaces/audio/effect/4.0/ |
D | IAcousticEchoCancelerEffect.hal | 24 * Sets echo delay value in milliseconds. 29 * Gets echo delay value in milliseconds.
|
/hardware/interfaces/audio/effect/2.0/ |
D | IAcousticEchoCancelerEffect.hal | 24 * Sets echo delay value in milliseconds. 29 * Gets echo delay value in milliseconds.
|
/hardware/interfaces/audio/effect/5.0/ |
D | IAcousticEchoCancelerEffect.hal | 24 * Sets echo delay value in milliseconds. 29 * Gets echo delay value in milliseconds.
|
/hardware/interfaces/audio/effect/6.0/ |
D | IAcousticEchoCancelerEffect.hal | 24 * Sets echo delay value in milliseconds. 29 * Gets echo delay value in milliseconds.
|
/hardware/interfaces/sensors/common/vts/2_X/ |
D | VtsHalSensorsV2_XTargetTest.h | 54 using std::chrono::milliseconds; 92 int32_t numCallsToFlush, milliseconds timeout) { in waitForFlushEvents() 103 void waitForEvents(const std::vector<SensorInfoType>& sensorsToWaitFor, milliseconds timeout) { in waitForEvents() 450 callback.waitForEvents(sensors, milliseconds(1000) /* timeout */); in TEST_P() 597 callback.waitForFlushEvents(sensors, flushCalls, milliseconds(1000) /* timeout */); in runFlushTest() 722 constexpr milliseconds kFiveHundredMs(500); in TEST_P() 723 constexpr milliseconds kOneSecond(1000); in TEST_P() 731 milliseconds maxMinDelay(0); in TEST_P() 733 milliseconds minDelay = duration_cast<milliseconds>(microseconds(sensor.minDelay)); in TEST_P() 734 maxMinDelay = milliseconds(std::max(maxMinDelay.count(), minDelay.count())); in TEST_P() [all …]
|
/hardware/google/av/media/eco/tests/ |
D | EcoSessionTest.cpp | 250 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 287 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 322 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 333 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 358 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 369 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 393 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 535 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 543 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F() 574 std::this_thread::sleep_for(std::chrono::milliseconds(kServiceWaitTimeMs)); in TEST_F()
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | VerificationTokenTest.cpp | 54 int sleep_ms(uint32_t milliseconds) { in sleep_ms() argument 55 struct timespec sleep_time = {static_cast<time_t>(milliseconds / 1000), in sleep_ms() 56 static_cast<long>(milliseconds % 1000) * 1000000}; in sleep_ms()
|
/hardware/interfaces/broadcastradio/common/vts/utils/include/broadcastradio-vts-utils/ |
D | call-barrier.h | 46 bool waitForCall(std::chrono::milliseconds timeout);
|
/hardware/interfaces/camera/device/3.5/default/ |
D | ExternalCameraDeviceSession.cpp | 119 std::chrono::milliseconds timeout = std::chrono::milliseconds(kReqProcTimeoutMs); in waitForBufferRequestDone() 140 std::chrono::milliseconds timeout = std::chrono::milliseconds(kReqWaitTimeoutMs); in waitForNextRequest()
|