enable host_supported for libbluetooth_audio_session_aidl

Test: manual

Change-Id: Iae06114020e5bc4e41fa5caa5df5de8a186dc2ff
Signed-off-by: Yung Ti Su <andysu@google.com>
This commit is contained in:
Yung Ti Su 2023-08-22 09:29:06 +00:00
parent eb10186f70
commit fefceb14d0
3 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,7 @@ package {
aidl_interface { aidl_interface {
name: "android.hardware.bluetooth.audio", name: "android.hardware.bluetooth.audio",
vendor_available: true, vendor_available: true,
host_supported: true,
srcs: ["android/hardware/bluetooth/audio/*.aidl"], srcs: ["android/hardware/bluetooth/audio/*.aidl"],
stability: "vintf", stability: "vintf",
imports: [ imports: [

View file

@ -36,6 +36,7 @@ cc_library_shared {
cc_library_shared { cc_library_shared {
name: "libbluetooth_audio_session_aidl", name: "libbluetooth_audio_session_aidl",
vendor: true, vendor: true,
host_supported: true,
srcs: [ srcs: [
"aidl_session/BluetoothAudioCodecs.cpp", "aidl_session/BluetoothAudioCodecs.cpp",
"aidl_session/BluetoothAudioSession.cpp", "aidl_session/BluetoothAudioSession.cpp",

View file

@ -583,7 +583,7 @@ bool HidlToAidlMiddleware_2_0::GetPresentationPosition(
*total_bytes_readed = presentation_position.transmittedOctets; *total_bytes_readed = presentation_position.transmittedOctets;
if (data_position) if (data_position)
*data_position = { *data_position = {
.tv_sec = static_cast<__kernel_old_time_t>( .tv_sec = static_cast<long>(
presentation_position.transmittedOctetsTimestamp.tvSec), presentation_position.transmittedOctetsTimestamp.tvSec),
.tv_nsec = static_cast<long>( .tv_nsec = static_cast<long>(
presentation_position.transmittedOctetsTimestamp.tvNSec)}; presentation_position.transmittedOctetsTimestamp.tvNSec)};