Loading system/gd/stack_manager.cc +3 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,9 @@ std::chrono::milliseconds StackManager::get_gd_stack_timeout_ms(bool is_start) { auto gd_timeout = os::GetSystemPropertyUint32( is_start ? "bluetooth.gd.start_timeout" : "bluetooth.gd.stop_timeout", /* default_value = */ is_start ? 3000 : 5000); return std::chrono::milliseconds(gd_timeout); return std::chrono::milliseconds( gd_timeout * os::GetSystemPropertyUint32("ro.hw_timeout_multiplier", /* default_value = */ 1)); } } // namespace bluetooth Loading
system/gd/stack_manager.cc +3 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,9 @@ std::chrono::milliseconds StackManager::get_gd_stack_timeout_ms(bool is_start) { auto gd_timeout = os::GetSystemPropertyUint32( is_start ? "bluetooth.gd.start_timeout" : "bluetooth.gd.stop_timeout", /* default_value = */ is_start ? 3000 : 5000); return std::chrono::milliseconds(gd_timeout); return std::chrono::milliseconds( gd_timeout * os::GetSystemPropertyUint32("ro.hw_timeout_multiplier", /* default_value = */ 1)); } } // namespace bluetooth