Loading system/bta/BUILD.gn +1 −2 Original line number Diff line number Diff line Loading @@ -133,8 +133,6 @@ executable("net_test_bta") { "test/gatt/database_builder_test.cc", "test/gatt/database_builder_sample_device_test.cc", "test/gatt/database_test.cc", "gatt/database.cc", "gatt/database_builder.cc", ] include_dirs = [ Loading @@ -148,6 +146,7 @@ executable("net_test_bta") { ] deps = [ "//bta", "//types", "//third_party/googletest:gmock_main", "//third_party/libchrome:base", Loading system/btif/BUILD.gn +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ static_library("btif") { #TODO(jpawlowski): heavily depends on Android, # "src/btif_avrcp_audio_track.cc", "src/btif_avrcp_audio_track_linux.cc", "src/btif_ble_advertiser.cc", "src/btif_ble_scanner.cc", "src/btif_config.cc", Loading Loading @@ -103,6 +104,7 @@ static_library("btif") { ] deps = [ "//common", "//third_party/libchrome:base", "//profile/avrcp:profile_avrcp" ] Loading system/btif/src/btif_avrcp_audio_track_linux.cc 0 → 100644 +37 −0 Original line number Diff line number Diff line /* * Copyright 2018 The 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_avrcp_audio_track.h" void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample, int channelType) { return nullptr; } void BtifAvrcpAudioTrackStart(void* handle) {} void BtifAvrcpAudioTrackStop(void* handle) {} void BtifAvrcpAudioTrackDelete(void* handle) {} void BtifAvrcpAudioTrackPause(void* handle) {} void BtifAvrcpSetAudioTrackGain(void* handle, float gain) {} int BtifAvrcpAudioTrackWriteData(void* handle, void* audioBuffer, int bufferlen) { return 0; } system/build/BUILD.gn +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,8 @@ config("linux") { # current build is done by GN or via Android.mk. This is a temporary # workaround until we can remove all Android-specific dependencies. "OS_GENERIC", "FALLTHROUGH_INTENDED", ] } Loading system/build/secondary/third_party/libchrome/BUILD.gn +0 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,6 @@ source_set("base_sources") { "base/metrics/sparse_histogram.cc", "base/metrics/statistics_recorder.cc", "base/native_library.cc", "base/native_library_posix.cc", "base/observer_list_threadsafe.cc", "base/path_service.cc", "base/pending_task.cc", Loading Loading
system/bta/BUILD.gn +1 −2 Original line number Diff line number Diff line Loading @@ -133,8 +133,6 @@ executable("net_test_bta") { "test/gatt/database_builder_test.cc", "test/gatt/database_builder_sample_device_test.cc", "test/gatt/database_test.cc", "gatt/database.cc", "gatt/database_builder.cc", ] include_dirs = [ Loading @@ -148,6 +146,7 @@ executable("net_test_bta") { ] deps = [ "//bta", "//types", "//third_party/googletest:gmock_main", "//third_party/libchrome:base", Loading
system/btif/BUILD.gn +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ static_library("btif") { #TODO(jpawlowski): heavily depends on Android, # "src/btif_avrcp_audio_track.cc", "src/btif_avrcp_audio_track_linux.cc", "src/btif_ble_advertiser.cc", "src/btif_ble_scanner.cc", "src/btif_config.cc", Loading Loading @@ -103,6 +104,7 @@ static_library("btif") { ] deps = [ "//common", "//third_party/libchrome:base", "//profile/avrcp:profile_avrcp" ] Loading
system/btif/src/btif_avrcp_audio_track_linux.cc 0 → 100644 +37 −0 Original line number Diff line number Diff line /* * Copyright 2018 The 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_avrcp_audio_track.h" void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample, int channelType) { return nullptr; } void BtifAvrcpAudioTrackStart(void* handle) {} void BtifAvrcpAudioTrackStop(void* handle) {} void BtifAvrcpAudioTrackDelete(void* handle) {} void BtifAvrcpAudioTrackPause(void* handle) {} void BtifAvrcpSetAudioTrackGain(void* handle, float gain) {} int BtifAvrcpAudioTrackWriteData(void* handle, void* audioBuffer, int bufferlen) { return 0; }
system/build/BUILD.gn +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,8 @@ config("linux") { # current build is done by GN or via Android.mk. This is a temporary # workaround until we can remove all Android-specific dependencies. "OS_GENERIC", "FALLTHROUGH_INTENDED", ] } Loading
system/build/secondary/third_party/libchrome/BUILD.gn +0 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,6 @@ source_set("base_sources") { "base/metrics/sparse_histogram.cc", "base/metrics/statistics_recorder.cc", "base/native_library.cc", "base/native_library_posix.cc", "base/observer_list_threadsafe.cc", "base/path_service.cc", "base/pending_task.cc", Loading