Home
last modified time | relevance | path

Searched refs:milliseconds (Results 1 – 25 of 128) sorted by relevance

123456

/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DFileNodeTest.cc31 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 …]
DPropertyNodeTest.cc32 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 …]
DRequestGroupTest.cc29 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/
DRecurrentTimer_test.cpp26 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/
DRequestGroup.cc49 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()
DFileNode.cc44 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()
DPropertyNode.cc38 std::chrono::milliseconds PropertyNode::Update(bool) { in Update()
40 std::chrono::milliseconds expire_time = std::chrono::milliseconds::max(); in Update()
DNodeLooperThread.cc50 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/
DVtsHalSensorsV2_0TargetTest.cpp21 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/
DNodeLooperThread.h37 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();
DFileNode.h38 std::chrono::milliseconds Update(bool log_error) override;
49 const std::chrono::milliseconds warn_timeout_;
/hardware/google/pixel/perfstatsd/
Dperfstatsd.cpp53 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/
Dasync_fd_watcher.h38 int ConfigureTimeout(const std::chrono::milliseconds timeout,
60 std::chrono::milliseconds timeout_ms_;
Dasync_fd_watcher.cc55 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/
DVtsHalSensorsV1_0TargetTest.cpp258 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/
DWorkerThread.cpp21 using std::chrono::milliseconds;
45 void WorkerThread::schedule(function<void()> task, milliseconds delay) { in schedule()
/hardware/interfaces/audio/effect/4.0/
DIAcousticEchoCancelerEffect.hal24 * Sets echo delay value in milliseconds.
29 * Gets echo delay value in milliseconds.
/hardware/interfaces/audio/effect/2.0/
DIAcousticEchoCancelerEffect.hal24 * Sets echo delay value in milliseconds.
29 * Gets echo delay value in milliseconds.
/hardware/interfaces/audio/effect/5.0/
DIAcousticEchoCancelerEffect.hal24 * Sets echo delay value in milliseconds.
29 * Gets echo delay value in milliseconds.
/hardware/interfaces/audio/effect/6.0/
DIAcousticEchoCancelerEffect.hal24 * Sets echo delay value in milliseconds.
29 * Gets echo delay value in milliseconds.
/hardware/interfaces/sensors/common/vts/2_X/
DVtsHalSensorsV2_XTargetTest.h54 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/
DEcoSessionTest.cpp250 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/
DVerificationTokenTest.cpp54 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/
Dcall-barrier.h46 bool waitForCall(std::chrono::milliseconds timeout);
/hardware/interfaces/camera/device/3.5/default/
DExternalCameraDeviceSession.cpp119 std::chrono::milliseconds timeout = std::chrono::milliseconds(kReqProcTimeoutMs); in waitForBufferRequestDone()
140 std::chrono::milliseconds timeout = std::chrono::milliseconds(kReqWaitTimeoutMs); in waitForNextRequest()

123456