Loading system/bta/av/bta_av_main.cc +8 −0 Original line number Diff line number Diff line Loading @@ -134,7 +134,11 @@ static void bta_av_api_enable(tBTA_AV_DATA* p_data) { tBTA_AV_API_ENABLE* p_buf = (tBTA_AV_API_ENABLE*)osi_malloc(sizeof(tBTA_AV_API_ENABLE)); memcpy(p_buf, &p_data->api_enable, sizeof(tBTA_AV_API_ENABLE)); #if BASE_VER < 931007 bta_sys_sendmsg_delayed(p_buf, base::TimeDelta::FromMilliseconds( #else bta_sys_sendmsg_delayed(p_buf, base::Milliseconds( #endif kEnablingAttemptsIntervalMs)); return; } Loading Loading @@ -407,7 +411,11 @@ static void bta_av_api_register(tBTA_AV_DATA* p_data) { (tBTA_AV_API_REG*)osi_malloc(sizeof(tBTA_AV_API_REG)); memcpy(p_buf, &p_data->api_reg, sizeof(tBTA_AV_API_REG)); bta_sys_sendmsg_delayed( #if BASE_VER < 931007 p_buf, base::TimeDelta::FromMilliseconds(kEnablingAttemptsIntervalMs)); #else p_buf, base::Milliseconds(kEnablingAttemptsIntervalMs)); #endif return; } Loading system/bta/hearing_aid/hearing_aid_audio_source.cc +4 −0 Original line number Diff line number Diff line Loading @@ -128,7 +128,11 @@ void start_audio_ticks() { wakelock_acquire(); audio_timer.SchedulePeriodic( get_main_thread()->GetWeakPtr(), FROM_HERE, base::Bind(&send_audio_data), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(data_interval_ms)); #else base::Milliseconds(data_interval_ms)); #endif LOG(INFO) << __func__ << ": running with data interval: " << data_interval_ms; } Loading system/bta/le_audio/client_audio.cc +4 −0 Original line number Diff line number Diff line Loading @@ -106,7 +106,11 @@ void start_audio_ticks() { wakelock_acquire(); audio_timer.SchedulePeriodic( worker_thread.GetWeakPtr(), FROM_HERE, base::Bind(&send_audio_data), #if BASE_VER < 931007 base::TimeDelta::FromMicroseconds(source_codec_config.data_interval_us)); #else base::Microseconds(source_codec_config.data_interval_us)); #endif } void stop_audio_ticks() { Loading system/btif/src/btif_a2dp_source.cc +4 −0 Original line number Diff line number Diff line Loading @@ -810,7 +810,11 @@ static void btif_a2dp_source_audio_tx_start_event(void) { btif_a2dp_source_cb.media_alarm.SchedulePeriodic( btif_a2dp_source_thread.GetWeakPtr(), FROM_HERE, base::Bind(&btif_a2dp_source_audio_handle_timer), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds( #else base::Milliseconds( #endif btif_a2dp_source_cb.encoder_interface->get_encoder_interval_ms())); btif_a2dp_source_cb.stats.Reset(); Loading system/common/benchmark/timer_performance_benchmark.cc +8 −0 Original line number Diff line number Diff line Loading @@ -133,7 +133,11 @@ BENCHMARK_DEFINE_F(BM_AlarmTaskTimer, timer_performance_ms)(State& state) { auto start_time_point = time_get_os_boottime_us(); once_timer_->Schedule(message_loop_thread_->GetWeakPtr(), FROM_HERE, base::BindOnce(&TimerFire, nullptr), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(milliseconds)); #else base::Milliseconds(milliseconds)); #endif g_promise->get_future().get(); once_timer_->Cancel(); auto end_time_point = time_get_os_boottime_us(); Loading Loading @@ -246,7 +250,11 @@ BENCHMARK_DEFINE_F(BM_AlarmTaskPeriodicTimer, periodic_accuracy) repeating_timer_->SchedulePeriodic( message_loop_thread_->GetWeakPtr(), FROM_HERE, base::BindRepeating(&AlarmSleepAndCountDelayedTime, nullptr), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(g_task_interval)); #else base::Milliseconds(g_task_interval)); #endif g_promise->get_future().get(); repeating_timer_->Cancel(); } Loading Loading
system/bta/av/bta_av_main.cc +8 −0 Original line number Diff line number Diff line Loading @@ -134,7 +134,11 @@ static void bta_av_api_enable(tBTA_AV_DATA* p_data) { tBTA_AV_API_ENABLE* p_buf = (tBTA_AV_API_ENABLE*)osi_malloc(sizeof(tBTA_AV_API_ENABLE)); memcpy(p_buf, &p_data->api_enable, sizeof(tBTA_AV_API_ENABLE)); #if BASE_VER < 931007 bta_sys_sendmsg_delayed(p_buf, base::TimeDelta::FromMilliseconds( #else bta_sys_sendmsg_delayed(p_buf, base::Milliseconds( #endif kEnablingAttemptsIntervalMs)); return; } Loading Loading @@ -407,7 +411,11 @@ static void bta_av_api_register(tBTA_AV_DATA* p_data) { (tBTA_AV_API_REG*)osi_malloc(sizeof(tBTA_AV_API_REG)); memcpy(p_buf, &p_data->api_reg, sizeof(tBTA_AV_API_REG)); bta_sys_sendmsg_delayed( #if BASE_VER < 931007 p_buf, base::TimeDelta::FromMilliseconds(kEnablingAttemptsIntervalMs)); #else p_buf, base::Milliseconds(kEnablingAttemptsIntervalMs)); #endif return; } Loading
system/bta/hearing_aid/hearing_aid_audio_source.cc +4 −0 Original line number Diff line number Diff line Loading @@ -128,7 +128,11 @@ void start_audio_ticks() { wakelock_acquire(); audio_timer.SchedulePeriodic( get_main_thread()->GetWeakPtr(), FROM_HERE, base::Bind(&send_audio_data), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(data_interval_ms)); #else base::Milliseconds(data_interval_ms)); #endif LOG(INFO) << __func__ << ": running with data interval: " << data_interval_ms; } Loading
system/bta/le_audio/client_audio.cc +4 −0 Original line number Diff line number Diff line Loading @@ -106,7 +106,11 @@ void start_audio_ticks() { wakelock_acquire(); audio_timer.SchedulePeriodic( worker_thread.GetWeakPtr(), FROM_HERE, base::Bind(&send_audio_data), #if BASE_VER < 931007 base::TimeDelta::FromMicroseconds(source_codec_config.data_interval_us)); #else base::Microseconds(source_codec_config.data_interval_us)); #endif } void stop_audio_ticks() { Loading
system/btif/src/btif_a2dp_source.cc +4 −0 Original line number Diff line number Diff line Loading @@ -810,7 +810,11 @@ static void btif_a2dp_source_audio_tx_start_event(void) { btif_a2dp_source_cb.media_alarm.SchedulePeriodic( btif_a2dp_source_thread.GetWeakPtr(), FROM_HERE, base::Bind(&btif_a2dp_source_audio_handle_timer), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds( #else base::Milliseconds( #endif btif_a2dp_source_cb.encoder_interface->get_encoder_interval_ms())); btif_a2dp_source_cb.stats.Reset(); Loading
system/common/benchmark/timer_performance_benchmark.cc +8 −0 Original line number Diff line number Diff line Loading @@ -133,7 +133,11 @@ BENCHMARK_DEFINE_F(BM_AlarmTaskTimer, timer_performance_ms)(State& state) { auto start_time_point = time_get_os_boottime_us(); once_timer_->Schedule(message_loop_thread_->GetWeakPtr(), FROM_HERE, base::BindOnce(&TimerFire, nullptr), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(milliseconds)); #else base::Milliseconds(milliseconds)); #endif g_promise->get_future().get(); once_timer_->Cancel(); auto end_time_point = time_get_os_boottime_us(); Loading Loading @@ -246,7 +250,11 @@ BENCHMARK_DEFINE_F(BM_AlarmTaskPeriodicTimer, periodic_accuracy) repeating_timer_->SchedulePeriodic( message_loop_thread_->GetWeakPtr(), FROM_HERE, base::BindRepeating(&AlarmSleepAndCountDelayedTime, nullptr), #if BASE_VER < 931007 base::TimeDelta::FromMilliseconds(g_task_interval)); #else base::Milliseconds(g_task_interval)); #endif g_promise->get_future().get(); repeating_timer_->Cancel(); } Loading