"ag/bta_ag_api.cc",
"ag/bta_ag_at.cc",
"ag/bta_ag_cfg.cc",
- "ag/bta_ag_ci.cc",
"ag/bta_ag_cmd.cc",
"ag/bta_ag_main.cc",
"ag/bta_ag_rfc.cc",
"gatt/bta_gatts_api.cc",
"gatt/bta_gatts_main.cc",
"gatt/bta_gatts_utils.cc",
+ "hearing_aid/hearing_aid.cc",
+ "hearing_aid/hearing_aid_audio_source.cc",
"hf_client/bta_hf_client_act.cc",
"hf_client/bta_hf_client_api.cc",
"hf_client/bta_hf_client_at.cc",
"include",
"sys",
"//",
+ "//internal_include",
"//btcore/include",
"//hci/include",
"//internal_include",
"//udrv/include",
"//utils/include",
"//vnd/include",
+ "//btif/include",
+ "//btif/avrcp",
+ "//include/hardware/avrcp",
+ "//profile/avrcp",
+ "//packet/avrcp",
+ "//packet/base",
]
deps = [
"src/btif_a2dp_sink.cc",
"src/btif_a2dp_source.cc",
"src/btif_av.cc",
+ "avrcp/avrcp_service.cc",
#TODO(jpawlowski): heavily depends on Android,
# "src/btif_avrcp_audio_track.cc",
# BTIF callouts
sources += [
- "co/bta_ag_co.cc",
"co/bta_dm_co.cc",
"co/bta_av_co.cc",
"co/bta_hh_co.cc",
"//hci/include",
"//stack/a2dp",
"//stack/btm",
+ "//stack/l2cap",
"//stack/include",
"//third_party/tinyxml2",
"//internal_include",
"//udrv/include",
"//utils/include",
"//vnd/include",
+ "//profile/avrcp",
]
deps = [
- "//third_party/libchrome:base"
+ "//third_party/libchrome:base",
+ "//profile/avrcp:profile_avrcp"
]
}
#include <map>
#include <memory>
-#include "avrcp.h"
-#include "connection_handler.h"
+#include "hardware/avrcp/avrcp.h"
#include "osi/include/properties.h"
+#include "profile/avrcp/connection_handler.h"
#include "raw_address.h"
namespace bluetooth {
#include <hardware/bt_sdp.h>
#include <hardware/bt_sock.h>
-#include "avrcp_service.h"
#include "bt_utils.h"
#include "bta/include/bta_hearing_aid_api.h"
#include "bta/include/bta_hf_client_api.h"
+#include "btif/avrcp/avrcp_service.h"
#include "btif_a2dp.h"
#include "btif_api.h"
#include "btif_av.h"
public HearingAidCallbacks {
~HearingAidInterfaceImpl() = default;
- void Init(HearingAidCallbacks* callbacks) {
+ void Init(HearingAidCallbacks* callbacks) override {
DVLOG(2) << __func__;
this->callbacks = callbacks;
do_in_bta_thread(
Bind(&btif_storage_remove_hearing_aid, address));
}
- void Cleanup(void) {
+ void Cleanup(void) override {
DVLOG(2) << __func__;
do_in_bta_thread(FROM_HERE, Bind(&HearingAid::CleanUp));
}
"base/callback_internal.cc",
"base/command_line.cc",
"base/cpu.cc",
+ "base/debug/activity_tracker.cc",
"base/debug/alias.cc",
+ "base/debug/dump_without_crashing.cc",
"base/debug/debugger.cc",
"base/debug/debugger_posix.cc",
"base/debug/stack_trace.cc",
"base/debug/task_annotator.cc",
"base/environment.cc",
"base/files/file.cc",
+ "base/files/file_descriptor_watcher_posix.cc",
"base/files/file_enumerator.cc",
"base/files/file_enumerator_posix.cc",
"base/files/file_path.cc",
"base/process/launch_posix.cc",
"base/process/process_handle_linux.cc",
"base/process/process_handle_posix.cc",
+ "base/process/process_info_linux.cc",
"base/process/process_iterator.cc",
"base/process/process_iterator_linux.cc",
"base/process/process_metrics.cc",
"base/run_loop.cc",
"base/sequence_checker_impl.cc",
"base/sequenced_task_runner.cc",
- "base/sha1_portable.cc",
+ "base/sequence_token.cc",
+ "base/sha1.cc",
"base/strings/pattern.cc",
"base/strings/safe_sprintf.cc",
"base/strings/string16.cc",
"base/strings/sys_string_conversions_posix.cc",
"base/strings/utf_string_conversions.cc",
"base/strings/utf_string_conversion_utils.cc",
- "base/synchronization/cancellation_flag.cc",
"base/synchronization/condition_variable_posix.cc",
"base/synchronization/lock.cc",
"base/synchronization/lock_impl_posix.cc",
"base/threading/thread_checker_impl.cc",
"base/threading/thread_collision_warner.cc",
"base/threading/thread_id_name_manager.cc",
- "base/threading/thread_local_posix.cc",
"base/threading/thread_local_storage.cc",
"base/threading/thread_local_storage_posix.cc",
"base/threading/thread_restrictions.cc",
"base/time/tick_clock.cc",
"base/time/time.cc",
"base/time/time_posix.cc",
+ "base/trace_event/category_registry.cc",
+ "base/trace_event/event_name_filter.cc",
"base/trace_event/heap_profiler_allocation_context.cc",
"base/trace_event/heap_profiler_allocation_context_tracker.cc",
+ "base/trace_event/heap_profiler_event_filter.cc",
"base/trace_event/heap_profiler_stack_frame_deduplicator.cc",
"base/trace_event/heap_profiler_type_name_deduplicator.cc",
"base/trace_event/malloc_dump_provider.cc",
"base/trace_event/memory_allocator_dump.cc",
"base/trace_event/memory_allocator_dump_guid.cc",
"base/trace_event/memory_dump_manager.cc",
+ "base/trace_event/memory_dump_request_args.cc",
+ "base/trace_event/memory_dump_provider_info.cc",
+ "base/trace_event/memory_dump_scheduler.cc",
"base/trace_event/memory_dump_session_state.cc",
"base/trace_event/memory_infra_background_whitelist.cc",
"base/trace_event/process_memory_dump.cc",
"base/trace_event/process_memory_totals.cc",
"base/trace_event/trace_buffer.cc",
"base/trace_event/trace_config.cc",
+ "base/trace_event/trace_config_category_filter.cc",
"base/trace_event/trace_event_argument.cc",
+ "base/trace_event/trace_event_filter.cc",
"base/trace_event/trace_event_impl.cc",
"base/trace_event/trace_event_memory_overhead.cc",
"base/trace_event/trace_event_synthetic_delay.cc",
"base/trace_event/trace_log.cc",
"base/trace_event/trace_log_constants.cc",
- "base/trace_event/trace_sampling_thread.cc",
"base/tracked_objects.cc",
"base/tracking_info.cc",
"base/values.cc",
"dbus/bus.cc",
"dbus/dbus_statistics.cc",
"dbus/exported_object.cc",
- "dbus/file_descriptor.cc",
"dbus/message.cc",
"dbus/object_manager.cc",
"dbus/object_path.cc",
--- /dev/null
+#
+# Copyright 2018 Google, Inc.
+#
+# 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.
+#
+
+static_library("g722") {
+ sources = [
+ "g722_decode.cc",
+ "g722_encode.cc",
+ ]
+}
#include <set>
#include <string>
-#include <base/bind.h>
+#include <base/callback_forward.h>
#include "avrcp_common.h"
#include "raw_address.h"
"//embdrv/sbc",
"//hci",
"//osi",
+ "//packet",
"//stack",
"//third_party/libchrome:base",
"//third_party/tinyxml2",
include_dirs = [
"//",
+ "//internal_include",
"//utils/include",
"//stack/include",
]
// TODO(siyuanh): Implement for linux
}
-void BluetoothMetricsLogger::WriteString(std::string* serialized, bool clear) {
+void BluetoothMetricsLogger::WriteString(std::string* serialized) {
// TODO(siyuanh): Implement for linux
}
-void BluetoothMetricsLogger::WriteBase64String(std::string* serialized,
- bool clear) {
+void BluetoothMetricsLogger::WriteBase64String(std::string* serialized) {
// TODO(siyuanh): Implement for linux
}
-void BluetoothMetricsLogger::WriteBase64(int fd, bool clear) {
+void BluetoothMetricsLogger::WriteBase64(int fd) {
// TODO(siyuanh): Implement for linux
}
defaults: ["fluoride_defaults"],
host_supported: true,
local_include_dirs: ["tests"],
+ include_dirs: [
+ "system/bt/",
+ "system/bt/include",
+ ],
srcs: [
"tests/avrcp/avrcp_browse_packet_test.cc",
"tests/avrcp/avrcp_packet_test.cc",
--- /dev/null
+#
+# Copyright 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.
+#
+
+static_library("packet") {
+ sources = [
+ "avrcp/get_folder_items.cc",
+ "avrcp/register_notification_packet.cc",
+ "avrcp/change_path.cc",
+ "avrcp/get_total_number_of_items.cc",
+ "avrcp/capabilities_packet.cc",
+ "avrcp/pass_through_packet.cc",
+ "avrcp/set_browsed_player.cc",
+ "avrcp/avrcp_reject_packet.cc",
+ "avrcp/set_absolute_volume.cc",
+ "avrcp/avrcp_packet.cc",
+ "avrcp/get_element_attributes_packet.cc",
+ "avrcp/get_play_status_packet.cc",
+ "avrcp/general_reject_packet.cc",
+ "avrcp/avrcp_browse_packet.cc",
+ "avrcp/get_item_attributes.cc",
+ "avrcp/play_item.cc",
+ "avrcp/vendor_packet.cc",
+ "avrcp/set_addressed_player.cc",
+ "base/iterator.cc",
+ "base/packet.cc",
+ "base/packet_builder.cc",
+ ]
+
+ include_dirs = [
+ "//",
+ "//internal_include",
+ "//stack/include",
+ "//profile/avrcp",
+ ]
+
+ deps = [
+ "//third_party/libchrome:base"
+ ]
+}
export_header_lib_headers: ["avrcp_headers"],
export_include_dirs: ["."],
host_supported: true,
+ include_dirs: [
+ "system/bt/",
+ "system/bt/include",
+ ],
srcs: [
"avrcp_browse_packet.cc",
"avrcp_packet.cc",
#include <base/macros.h>
#include <iostream>
-#include "avrcp_common.h"
-#include "avrcp_logging_helper.h"
-#include "iterator.h"
-#include "packet.h"
-#include "packet_builder.h"
+#include "hardware/avrcp/avrcp_common.h"
+#include "hardware/avrcp/avrcp_logging_helper.h"
+#include "packet/base/iterator.h"
+#include "packet/base/packet.h"
+#include "packet/base/packet_builder.h"
namespace bluetooth {
namespace avrcp {
using ::bluetooth::Packet::Packet;
private:
- virtual std::pair<size_t, size_t> GetPayloadIndecies() const;
+ virtual std::pair<size_t, size_t> GetPayloadIndecies() const override;
DISALLOW_COPY_AND_ASSIGN(BrowsePacket);
};
#include <base/macros.h>
#include <iostream>
-#include "avrcp_common.h"
-#include "avrcp_logging_helper.h"
-#include "iterator.h"
-#include "packet.h"
-#include "packet_builder.h"
+#include "hardware/avrcp/avrcp_common.h"
+#include "hardware/avrcp/avrcp_logging_helper.h"
+#include "packet/base/iterator.h"
+#include "packet/base/packet.h"
+#include "packet/base/packet_builder.h"
namespace bluetooth {
namespace avrcp {
Opcode GetOpcode() const;
// Overloaded Functions
- virtual bool IsValid() const;
+ virtual bool IsValid() const override;
virtual std::string ToString() const override;
protected:
}
private:
- virtual std::pair<size_t, size_t> GetPayloadIndecies() const;
+ virtual std::pair<size_t, size_t> GetPayloadIndecies() const override;
DISALLOW_COPY_AND_ASSIGN(Packet);
};
std::vector<Attribute> GetAttributesRequested() const;
// Overloaded Functions
- virtual bool IsValid() const;
+ virtual bool IsValid() const override;
virtual std::string ToString() const override;
protected:
--- /dev/null
+#
+# Copyright 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.
+#
+
+static_library("profile_avrcp") {
+ sources = [
+ "connection_handler.cc",
+ "device.cc",
+ ]
+
+ include_dirs = [
+ "//",
+ "//internal_include",
+ "//stack/include",
+ "//profile/avrcp",
+ ]
+
+ deps = [
+ "//third_party/libchrome:base"
+ ]
+}
#include <iostream>
#include <vector>
-#include "avrcp_packet.h"
+#include "packet/avrcp/avrcp_packet.h"
// These classes are temporary placeholders to easily switch between BT_HDR and
// packets.
#include "avrc_defs.h"
#include "avrcp_message_converter.h"
-#include "avrcp_packet.h"
#include "bt_types.h"
#include "btu.h"
+#include "packet/avrcp/avrcp_packet.h"
// TODO (apanicke): Remove dependency on this header once we cleanup feature
// handling.
#include "bta/include/bta_av_api.h"
#include <memory>
#include "avrcp_internal.h"
-#include "avrcp_packet.h"
-#include "device.h"
-#include "packet.h"
+#include "packet/avrcp/avrcp_packet.h"
+#include "packet/base/packet.h"
+#include "profile/avrcp/device.h"
#include "raw_address.h"
namespace bluetooth {
#include "connection_handler.h"
#include "device.h"
+#include "packet/avrcp/avrcp_reject_packet.h"
+#include "packet/avrcp/general_reject_packet.h"
+#include "packet/avrcp/get_play_status_packet.h"
+#include "packet/avrcp/pass_through_packet.h"
+#include "packet/avrcp/set_absolute_volume.h"
+#include "packet/avrcp/set_addressed_player.h"
+
namespace bluetooth {
namespace avrcp {
#include <base/bind.h>
#include <base/cancelable_callback.h>
-#include "avrcp.h"
#include "avrcp_internal.h"
-#include "avrcp_packet.h"
-#include "media_id_map.h"
+#include "hardware/avrcp/avrcp.h"
+#include "packet/avrcp/avrcp_browse_packet.h"
+#include "packet/avrcp/avrcp_packet.h"
+#include "packet/avrcp/capabilities_packet.h"
+#include "packet/avrcp/change_path.h"
+#include "packet/avrcp/get_element_attributes_packet.h"
+#include "packet/avrcp/get_folder_items.h"
+#include "packet/avrcp/get_item_attributes.h"
+#include "packet/avrcp/get_total_number_of_items.h"
+#include "packet/avrcp/play_item.h"
+#include "packet/avrcp/register_notification_packet.h"
+#include "packet/avrcp/set_browsed_player.h"
+#include "packet/avrcp/vendor_packet.h"
+#include "profile/avrcp/media_id_map.h"
#include "raw_address.h"
namespace bluetooth {
deps = [
"//types",
+ "//osi",
"//third_party/libchrome:base",
]
}
"sdp",
"smp",
"srvc",
+ "//internal_include",
"//btcore/include",
"//vnd/include",
"//vnd/ble",
"//btcore",
"//device",
"//embdrv/sbc",
+ "//embdrv/g722",
"//hci",
"//types",
"//main:bluetooth",
}
}
- void Suspend() {
+ void Suspend() override {
std::vector<SetEnableData> sets;
for (AdvertisingInstance& inst : adv_inst) {
"//internal_include",
"//stack/include",
"//utils/include",
+ "//third_party/libchrome",
]
}
"include",
"//",
"//stack/include",
+ "//third_party/libchrome",
]
}