Loading system/bta/include/bta_hearing_aid_api.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,8 @@ class HearingAidAudioReceiver { public: virtual ~HearingAidAudioReceiver() = default; virtual void OnAudioDataReady(const std::vector<uint8_t>& data) = 0; virtual void OnAudioSuspend(); virtual void OnAudioResume(); virtual void OnAudioSuspend() = 0; virtual void OnAudioResume() = 0; }; class HearingAid { Loading system/btif/BUILD.gn +3 −0 Original line number Diff line number Diff line Loading @@ -17,7 +17,9 @@ static_library("btif") { sources = [ "//audio_a2dp_hw/src/audio_a2dp_hw_utils.cc", "//audio_hearing_aid_hw/src/audio_hearing_aid_hw_utils.cc", "src/btif_a2dp.cc", "src/btif_a2dp_audio_interface_linux.cc", "src/btif_a2dp_control.cc", "src/btif_a2dp_sink.cc", "src/btif_a2dp_source.cc", Loading Loading @@ -79,6 +81,7 @@ static_library("btif") { "include", "//", "//audio_a2dp_hw/include", "//audio_hearing_aid_hw/include", "//bta/include", "//bta/sys", "//btcore/include", Loading system/btif/src/btif_a2dp_audio_interface_linux.cc 0 → 100644 +37 −0 Original line number Diff line number Diff line /****************************************************************************** * * Copyright (C) 2018 Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #include "btif_a2dp_audio_interface.h" #include <base/logging.h> void btif_a2dp_audio_on_started(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_on_stopped(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_on_suspended(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_interface_start_session(void) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_interface_end_session(void) { LOG(FATAL) << "Unimplemented yet"; } system/include/hardware/avrcp/avrcp.h +4 −3 Original line number Diff line number Diff line Loading @@ -72,10 +72,11 @@ struct ListItem { class MediaCallbacks { public: virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue); virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue) = 0; virtual void SendFolderUpdate(bool available_players, bool addressed_players, bool uids_changed); virtual void SendActiveDeviceChanged(const RawAddress& address); bool uids_changed) = 0; virtual void SendActiveDeviceChanged(const RawAddress& address) = 0; virtual ~MediaCallbacks() = default; }; Loading system/main/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ shared_library("bluetooth") { "//btcore", "//btif", "//device", "//embdrv/g722", "//embdrv/sbc", "//hci", "//osi", Loading Loading
system/bta/include/bta_hearing_aid_api.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,8 @@ class HearingAidAudioReceiver { public: virtual ~HearingAidAudioReceiver() = default; virtual void OnAudioDataReady(const std::vector<uint8_t>& data) = 0; virtual void OnAudioSuspend(); virtual void OnAudioResume(); virtual void OnAudioSuspend() = 0; virtual void OnAudioResume() = 0; }; class HearingAid { Loading
system/btif/BUILD.gn +3 −0 Original line number Diff line number Diff line Loading @@ -17,7 +17,9 @@ static_library("btif") { sources = [ "//audio_a2dp_hw/src/audio_a2dp_hw_utils.cc", "//audio_hearing_aid_hw/src/audio_hearing_aid_hw_utils.cc", "src/btif_a2dp.cc", "src/btif_a2dp_audio_interface_linux.cc", "src/btif_a2dp_control.cc", "src/btif_a2dp_sink.cc", "src/btif_a2dp_source.cc", Loading Loading @@ -79,6 +81,7 @@ static_library("btif") { "include", "//", "//audio_a2dp_hw/include", "//audio_hearing_aid_hw/include", "//bta/include", "//bta/sys", "//btcore/include", Loading
system/btif/src/btif_a2dp_audio_interface_linux.cc 0 → 100644 +37 −0 Original line number Diff line number Diff line /****************************************************************************** * * Copyright (C) 2018 Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #include "btif_a2dp_audio_interface.h" #include <base/logging.h> void btif_a2dp_audio_on_started(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_on_stopped(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_on_suspended(tBTA_AV_STATUS status) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_interface_start_session(void) { LOG(FATAL) << "Unimplemented yet"; } void btif_a2dp_audio_interface_end_session(void) { LOG(FATAL) << "Unimplemented yet"; }
system/include/hardware/avrcp/avrcp.h +4 −3 Original line number Diff line number Diff line Loading @@ -72,10 +72,11 @@ struct ListItem { class MediaCallbacks { public: virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue); virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue) = 0; virtual void SendFolderUpdate(bool available_players, bool addressed_players, bool uids_changed); virtual void SendActiveDeviceChanged(const RawAddress& address); bool uids_changed) = 0; virtual void SendActiveDeviceChanged(const RawAddress& address) = 0; virtual ~MediaCallbacks() = default; }; Loading
system/main/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ shared_library("bluetooth") { "//btcore", "//btif", "//device", "//embdrv/g722", "//embdrv/sbc", "//hci", "//osi", Loading