/system/extras/libperfmgr/tests/ |
D | NodeLooperThreadTest.cc | 32 constexpr auto kSLEEP_TOLERANCE_MS = 50ms; 82 std::vector<NodeAction> actions{{0, 0, 200ms}, {1, 1, 400ms}}; in TEST_F() 87 std::this_thread::sleep_for(200ms); in TEST_F() 90 std::this_thread::sleep_for(200ms); in TEST_F() 104 std::vector<NodeAction> actions{{0, 0, 200ms}, {1, 1, 500ms}}; in TEST_F() 112 actions = std::vector<NodeAction>{{0, 0, 300ms}, {1, 1, 100ms}}; in TEST_F() 114 std::this_thread::sleep_for(200ms); in TEST_F() 117 std::this_thread::sleep_for(150ms); in TEST_F() 121 std::this_thread::sleep_for(150ms); in TEST_F() 135 std::vector<NodeAction> actions{{0, 0, 0ms}, {1, 1, 0ms}}; in TEST_F() [all …]
|
D | RequestGroupTest.cc | 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() 121 auto duration_launch = 5000ms; in TEST() [all …]
|
D | FileNodeTest.cc | 33 constexpr auto kSLEEP_TOLERANCE_MS = 2ms; 113 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 200ms)); in TEST() 119 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 2000ms)); in TEST() 131 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 138 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 161 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 168 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 193 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 200 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 206 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 100ms)); in TEST() [all …]
|
D | PropertyNodeTest.cc | 34 constexpr auto kSLEEP_TOLERANCE_MS = 2ms; 121 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 128 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 151 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 158 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 181 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST() 188 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST() 194 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 100ms)); in TEST() 200 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 300ms)); in TEST()
|
D | HintManagerTest.cc | 35 constexpr auto kSLEEP_TOLERANCE_MS = 50ms; 158 {"INTERACTION", {{0, 1, 800ms}, {1, 1, 0ms}, {2, 1, 800ms}}}, in SetUp() 159 {"LAUNCH", {{0, 0, 0ms}, {1, 0, 400ms}, {2, 0, 400ms}}}}; in SetUp() 234 EXPECT_TRUE(hm.DoHint("INTERACTION", 200ms)); in TEST_F() 241 EXPECT_TRUE(hm.DoHint("LAUNCH", 500ms)); in TEST_F() 243 std::this_thread::sleep_for(400ms); in TEST_F() 248 std::this_thread::sleep_for(100ms + kSLEEP_TOLERANCE_MS); in TEST_F() 258 std::this_thread::sleep_for(200ms); in TEST_F() 509 std::this_thread::sleep_for(500ms); in TEST_F() 520 std::this_thread::sleep_for(300ms); in TEST_F()
|
/system/bt/test/ |
D | README.md | 49 [ OK ] BluetoothTest.AdapterEnableDisable (2538 ms) 51 [ OK ] BluetoothTest.AdapterRepeatedEnableDisable (11384 ms) 53 [ OK ] BluetoothTest.AdapterSetGetName (2378 ms) 55 [ OK ] BluetoothTest.AdapterStartDiscovery (2397 ms) 57 [ OK ] BluetoothTest.AdapterCancelDiscovery (2401 ms) 59 [ OK ] BluetoothTest.AdapterDisableDuringBonding (11689 ms) 60 [----------] 6 tests from BluetoothTest (32789 ms total) 64 [ OK ] GattTest.GattClientRegister (2370 ms) 66 [ OK ] GattTest.GattClientScanRemoteDevice (2273 ms) 68 [ OK ] GattTest.GattClientAdvertise (2236 ms) [all …]
|
/system/media/audio_route/ |
D | audio_route.c | 808 struct mixer_state * ms = &ar->mixer_state[ctl_index]; in audio_route_update_path() local 810 type = mixer_ctl_get_type(ms->ctl); in audio_route_update_path() 815 if (reverse && ms->active_count > 0) { in audio_route_update_path() 816 ms->active_count--; in audio_route_update_path() 818 ms->active_count++; in audio_route_update_path() 823 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path() 825 if (ms->old_value.bytes[j] != ms->new_value.bytes[j]) { in audio_route_update_path() 826 if (reverse && ms->active_count > 0) { in audio_route_update_path() 829 mixer_ctl_get_name(ms->ctl), name); in audio_route_update_path() 830 memcpy(ms->new_value.bytes, ms->old_value.bytes, in audio_route_update_path() [all …]
|
/system/core/libmemunreachable/tests/ |
D | DisableMalloc_test.cpp | 43 alarm(100ms); in TEST_F() 63 alarm(100ms); in TEST_F() 83 alarm(100ms); in TEST_F() 99 alarm(250ms); in TEST_F() 113 alarm(100ms); in TEST_F() 124 alarm(100ms); in TEST_F()
|
/system/core/base/ |
D | properties_test.cpp | 134 std::this_thread::sleep_for(100ms); in TEST() 153 200ms)); in TEST() 156 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST() 158 ASSERT_LT(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 600ms); in TEST() 170 std::this_thread::sleep_for(500ms); in TEST() 190 std::this_thread::sleep_for(500ms); in TEST() 197 ASSERT_FALSE(android::base::WaitForProperty("debug.libbase.WaitForProperty_test", "b", -100ms)); in TEST() 207 std::this_thread::sleep_for(100ms); in TEST() 223 "debug.libbase.WaitForPropertyCreation_timeout_test", 200ms)); in TEST() 226 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST() [all …]
|
D | chrono_utils_test.cpp | 59 std::this_thread::sleep_for(50ms); in TEST() 69 std::this_thread::sleep_for(50ms); in TEST()
|
/system/core/libpixelflinger/codeflinger/ |
D | blending.cpp | 481 int ms = vs+fs; in mul_factor() local 500 ms -= 16; in mul_factor() 505 ms -= fshift; in mul_factor() 510 ms -= 16; in mul_factor() 513 ms -= 32; in mul_factor() 518 ms -= 16 + fshift; in mul_factor() 525 ms -= vshift; in mul_factor() 530 ms -= 16 + vshift; in mul_factor() 535 ms -= 16 + fshift; in mul_factor() 541 ALOGE_IF(ms>=32, "mul_factor overflow vs=%d, fs=%d", vs, fs); in mul_factor() [all …]
|
/system/extras/tests/workloads/ |
D | feedly-chrome.sh | 47 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/bt/btif/src/ |
D | btif_debug_conn.cc | 40 const uint64_t ms = ts / 1000; in format_ts() local 41 const time_t secs = ms / 1000; in format_ts() 46 snprintf(buffer, len, "%s.%03u", tempbuff, (uint16_t)(ms % 1000)); in format_ts()
|
/system/core/libmemunreachable/ |
D | Semaphore.h | 32 void Wait(std::chrono::milliseconds ms) { in Wait() argument 34 cv_.wait_for(lk, ms, [&] { in Wait()
|
/system/core/llkd/ |
D | libllkd.cpp | 315 count(0ms), in proc() 317 count_stack(0ms), in proc() 380 count_stack = 0ms; in reset() 399 if (llkTimeoutMs == 0ms) { in llkValidate() 403 if (llkCheckMs == 0ms) { in llkValidate() 409 if (llkStateTimeoutMs[state] == 0ms) { in llkValidate() 418 if (llkCycle == 0ms) { in llkValidate() 600 std::string llkFormat(milliseconds ms) { in llkFormat() argument 601 auto sec = duration_cast<seconds>(ms); in llkFormat() 606 s << std::right << (ms - sec).count(); in llkFormat() [all …]
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | util_test.cpp | 168 EXPECT_FALSE(WaitForFile(wait_path.value(), 200ms)); in TEST() 179 auto wait_file = std::async(WaitForFile, wait_path.value(), 500ms, FileWaitMode::Exists); in TEST() 182 std::this_thread::sleep_for(100ms); in TEST() 200 auto wait_file = std::async(WaitForFile, wait_path.value(), 50ms, FileWaitMode::Exists); in TEST() 203 std::this_thread::sleep_for(100ms); in TEST()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Stopwatch.h | 56 using ms = std::chrono::duration<float, std::ratio<1, 1000>>; in getElapsed() local 57 return (std::chrono::duration_cast<ms>(now - mStart)).count(); in getElapsed()
|
/system/bt/service/ |
D | low_energy_advertiser.cc | 48 int ms; in GetAdvertisingIntervalUnit() local 52 ms = kAdvertisingIntervalMediumMs; in GetAdvertisingIntervalUnit() 55 ms = kAdvertisingIntervalLowMs; in GetAdvertisingIntervalUnit() 60 ms = kAdvertisingIntervalHighMs; in GetAdvertisingIntervalUnit() 65 return (ms * 1000) / 625; in GetAdvertisingIntervalUnit()
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | device.h | 61 void SetAdvertisementInterval(std::chrono::milliseconds ms) { in SetAdvertisementInterval() argument 62 advertising_interval_ms_ = ms; in SetAdvertisementInterval()
|
/system/core/init/ |
D | reboot.cpp | 239 if (!entry.Umount(timeout == 0ms)) unmount_done = false; in UmountPartitions() 247 std::this_thread::sleep_for(100ms); in UmountPartitions() 277 UmountStat st = UmountPartitions(0ms); in TryUmountAndFsck() 359 auto shutdown_timeout = 0ms; in DoReboot() 432 if (shutdown_timeout > 0ms) { in DoReboot() 464 std::this_thread::sleep_for(50ms); in DoReboot() 508 if (!is_thermal_shutdown) std::this_thread::sleep_for(100ms); in DoReboot()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 191 using ms = std::chrono::duration<float, std::ratio<1, 1000>>; in TEST_F() typedef 211 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F() 220 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F() 244 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F() 254 std::chrono::duration_cast<ms>(std::chrono::steady_clock::now() - start).count()); in TEST_F()
|
/system/core/libprocinfo/ |
D | process_test.cpp | 103 std::this_thread::sleep_for(100ms); in TEST() 112 std::this_thread::sleep_for(100ms); in TEST()
|
/system/core/healthd/ |
D | charger_test.cpp | 47 bool waitFor(long ms, const T& expectVal) { in waitFor() argument 49 return mChanged.wait_for(lock, std::chrono::milliseconds(ms), in waitFor()
|
/system/core/libprocessgroup/ |
D | processgroup.cpp | 352 std::this_thread::sleep_for(5ms); in KillProcessGroup() 366 auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count(); in KillProcessGroup() local 377 << " in " << static_cast<int>(ms) << "ms"; in KillProcessGroup() 383 << " in " << static_cast<int>(ms) << "ms, " << processes in KillProcessGroup()
|
/system/core/adb/ |
D | fdevent_test.h | 31 std::this_thread::sleep_for(100ms); in WaitForFdeventLoop()
|