Home
last modified time | relevance | path

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

1234

/system/media/audio_route/
Daudio_route.c878 struct mixer_state * ms = &ar->mixer_state[ctl_index]; in audio_route_update_path() local
880 type = mixer_ctl_get_type(ms->ctl); in audio_route_update_path()
885 if (reverse && ms->active_count > 0) { in audio_route_update_path()
887 ms->active_count = 0; in audio_route_update_path()
889 ms->active_count--; in audio_route_update_path()
891 ms->active_count++; in audio_route_update_path()
896 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path()
898 if (ms->old_value.bytes[j] != ms->new_value.bytes[j]) { in audio_route_update_path()
899 if (reverse && ms->active_count > 0) { in audio_route_update_path()
902 mixer_ctl_get_name(ms->ctl), name); in audio_route_update_path()
[all …]
/system/memory/libmemunreachable/tests/
DDisableMalloc_test.cpp50 alarm(100ms); in TEST_F()
70 alarm(100ms); in TEST_F()
90 alarm(100ms); in TEST_F()
106 alarm(250ms); in TEST_F()
120 alarm(100ms); in TEST_F()
131 alarm(100ms); in TEST_F()
DAtomicState_test.cpp91 ASSERT_FALSE(state_.wait_for_either_of(B, C, 10ms)); in TEST_F()
129 ASSERT_FALSE(state_.wait_for_either_of(A, B, 100ms)); in TEST_F()
/system/core/fs_mgr/tests/
Dfile_wait_test.cpp46 ASSERT_TRUE(WaitForFile(test_file_, 500ms)); in TEST_F()
47 ASSERT_FALSE(WaitForFileDeleted(test_file_, 500ms)); in TEST_F()
51 ASSERT_FALSE(WaitForFile(test_file_, 500ms)); in TEST_F()
52 ASSERT_TRUE(WaitForFileDeleted(test_file_, 500ms)); in TEST_F()
89 ASSERT_FALSE(WaitForFile("/this/path/does/not/exist", 5ms)); in TEST_F()
/system/libbase/
Dproperties_test.cpp161 std::this_thread::sleep_for(100ms); in TEST()
180 200ms)); in TEST()
183 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST()
185 ASSERT_LT(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 600ms); in TEST()
197 std::this_thread::sleep_for(500ms); in TEST()
217 std::this_thread::sleep_for(500ms); in TEST()
224 ASSERT_FALSE(android::base::WaitForProperty("debug.libbase.WaitForProperty_test", "b", -100ms)); in TEST()
234 std::this_thread::sleep_for(100ms); in TEST()
250 "debug.libbase.WaitForPropertyCreation_timeout_test", 200ms)); in TEST()
253 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST()
[all …]
Dchrono_utils_test.cpp59 std::this_thread::sleep_for(50ms); in TEST()
69 std::this_thread::sleep_for(50ms); in TEST()
/system/extras/tests/workloads/
Dfeedly-chrome.sh47 echo Feedly start time = ${t}ms
52 echo Chrome start time = ${t}ms
72 echo feedly started in ${t}ms
109 echo Avg start times: feedly: ${feedlyAve}ms
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_stats.h32 virtual void set_boot_complete_time_ms(uint32_t ms) = 0;
33 virtual void set_boot_complete_to_merge_start_time_ms(uint32_t ms) = 0;
74 void set_boot_complete_time_ms(uint32_t ms) override;
76 void set_boot_complete_to_merge_start_time_ms(uint32_t ms) override;
/system/chre/host/hal_generic/aidl/
Devent_logger.cc34 std::string formatLocalTime(int64_t ms) { in formatLocalTime() argument
35 const std::chrono::milliseconds duration(ms); in formatLocalTime()
41 return std::string(buffer) + std::to_string(1000 + ms % 1000).substr(1); in formatLocalTime()
150 for (const int64_t &ms : mContextHubRestarts) { in dump() local
151 if (snprintf(buffer, kBufferSize, " %s\n", formatLocalTime(ms).c_str()) > in dump()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_stats.cpp103 void SnapshotMergeStats::set_boot_complete_time_ms(uint32_t ms) { in set_boot_complete_time_ms() argument
104 report_.set_boot_complete_time_ms(ms); in set_boot_complete_time_ms()
111 void SnapshotMergeStats::set_boot_complete_to_merge_start_time_ms(uint32_t ms) { in set_boot_complete_to_merge_start_time_ms() argument
112 report_.set_boot_complete_to_merge_start_time_ms(ms); in set_boot_complete_to_merge_start_time_ms()
/system/chre/chpp/platform/linux/include/chpp/platform/
Dplatform_log.h43 uint64_t ms = chppGetCurrentTimeNs() / 1000000; \
45 printf("\e[" color "m[%" PRIu64 "] %s %s:%d\t (%s) " fmt "\e[0m\n", ms, \
/system/chre/chpp/test/
Dfake_link.h28 using ::std::literals::chrono_literals::operator""ms;
45 static constexpr auto kDefaultTimeout = 10 * (kTransportTimeout + 5ms);
/system/core/llkd/
Dlibllkd.cpp319 count(0ms), in proc()
321 count_stack(0ms), in proc()
387 count_stack = 0ms; in reset()
406 if (llkTimeoutMs == 0ms) { in llkValidate()
410 if (llkCheckMs == 0ms) { in llkValidate()
416 if (llkStateTimeoutMs[state] == 0ms) { in llkValidate()
425 if (llkCycle == 0ms) { in llkValidate()
608 std::string llkFormat(milliseconds ms) { in llkFormat() argument
609 auto sec = duration_cast<seconds>(ms); in llkFormat()
614 s << std::right << (ms - sec).count(); in llkFormat()
[all …]
/system/memory/libmemunreachable/
DAtomicState.h81 bool wait_for_either_of(T state1, T state2, std::chrono::milliseconds ms) { in wait_for_either_of() argument
83 bool success = cv_.wait_for(lock, ms, [&] { return state_ == state1 || state_ == state2; }); in wait_for_either_of()
/system/netd/tests/
Dsock_diag_test.cpp192 using ms = std::chrono::duration<float, std::ratio<1, 1000>>; in TEST_F() typedef
212 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F()
221 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F()
245 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F()
255 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F()
/system/libprocinfo/
Dprocess_test.cpp110 std::this_thread::sleep_for(100ms); in TEST()
119 std::this_thread::sleep_for(100ms); in TEST()
140 std::this_thread::sleep_for(1000ms); in TEST()
152 std::this_thread::sleep_for(1000ms); in TEST()
/system/core/fs_mgr/libfs_avb/tests/
Dutil_test.cpp171 EXPECT_FALSE(WaitForFile(wait_path.value(), 200ms)); in TEST()
182 auto wait_file = std::async(WaitForFile, wait_path.value(), 500ms, FileWaitMode::Exists); in TEST()
185 std::this_thread::sleep_for(100ms); in TEST()
203 auto wait_file = std::async(WaitForFile, wait_path.value(), 50ms, FileWaitMode::Exists); in TEST()
206 std::this_thread::sleep_for(100ms); in TEST()
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp202 std::this_thread::sleep_for(100ms); in TearDown()
218 std::this_thread::sleep_for(100ms); in isSystemSuspendBlocked()
286 .baseSleepTime = 100ms,
287 .maxSleepTime = 400ms,
290 .shortSuspendThreshold = 100ms,
508 suspendFor(10000ms, 1); in TEST_F()
514 suspendFor(10000ms, 1); in TEST_F()
520 suspendFor(10ms, kSleepTimeConfig.backoffThreshold); in TEST_F()
522 suspendFor(10ms, 1); in TEST_F()
526 suspendFor(10000ms, 1); in TEST_F()
[all …]
/system/core/init/
Dreboot.cpp306 if (!entry.Umount(timeout == 0ms)) unmount_done = false; in UmountPartitions()
314 std::this_thread::sleep_for(100ms); in UmountPartitions()
453 UmountStat st = UmountPartitions(0ms); in TryUmountAndFsck()
565 if (timeout > 0ms) { in StopServices()
620 auto shutdown_timeout = 0ms; in DoReboot()
734 if (shutdown_timeout > 0ms) { in DoReboot()
738 StopServicesAndLogViolations(stop_first, 0ms, false /* SIGKILL */); in DoReboot()
755 StopServices(kDebuggingServices, 0ms, false /* SIGKILL */); in DoReboot()
780 if (!is_thermal_shutdown) std::this_thread::sleep_for(100ms); in DoReboot()
/system/chre/host/test/hal_generic/aidl/
Devent_logger_test.cc33 void setNowMs(int64_t ms) { in setNowMs() argument
34 mNowMs = ms; in setNowMs()
/system/libsysprop/srcs/android/sysprop/
DCarProperties.sysprop63 # Timeout (in ms) waiting for Vehicle HAL responses for user management requests.
72 # Timeout (in ms) waiting for Device Policy Manager responses for user management requests.
/system/core/healthd/
Dcharger_test.cpp56 bool waitFor(long ms, const T& expectVal) { in waitFor() argument
58 return mChanged.wait_for(lock, std::chrono::milliseconds(ms), in waitFor()
/system/netd/server/
DSockDiagTest.cpp471 using ms = std::chrono::duration<float, std::ratio<1, 1000>>; in TEST_P() typedef
493 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_P()
498 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_P()
507 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count(), in TEST_P()
519 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_P()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_test.cpp700 std::this_thread::sleep_for(500ms); in SimulateDaemonRestart()
739 std::this_thread::sleep_for(250ms); in MergeInterrupt()
743 std::this_thread::sleep_for(250ms); in MergeInterrupt()
747 std::this_thread::sleep_for(150ms); in MergeInterrupt()
751 std::this_thread::sleep_for(100ms); in MergeInterrupt()
755 std::this_thread::sleep_for(800ms); in MergeInterrupt()
759 std::this_thread::sleep_for(600ms); in MergeInterrupt()
/system/core/fs_mgr/libdm/
Dutility.cpp37 std::this_thread::sleep_for(20ms); in WaitForCondition()

1234