Loading system/btif/Android.bp +4 −1 Original line number Diff line number Diff line Loading @@ -386,6 +386,7 @@ cc_test { "mts_defaults", ], test_suites: ["general-tests"], host_supported: true, include_dirs: btifCommonIncludes + [ "frameworks/av/media/libaaudio/include", ], Loading @@ -406,11 +407,13 @@ cc_test { "libchrome", "libosi", ], shared_libs: [ "liblog", ], cflags: [ "-DBUILDCFG", "-Wno-unused-parameter", ], shared_libs: ["liblog"], } // btif rc unit tests for target Loading system/btif/src/btif_avrcp_audio_track.cc +6 −2 Original line number Diff line number Diff line Loading @@ -19,15 +19,19 @@ #include "btif_avrcp_audio_track.h" #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif #include <aaudio/AAudio.h> #include <base/logging.h> #include <utils/StrongPointer.h> #include <algorithm> #include <thread> #include "bt_target.h" #include "osi/include/log.h" #include <thread> #include "os/log.h" using namespace android; Loading system/btif/test/btif_avrcp_audio_track_test.cc +20 −0 Original line number Diff line number Diff line /* * Copyright 2023 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/include/btif_avrcp_audio_track.h" #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif #include <aaudio/AAudio.h> #include <aaudio/AAudioTesting.h> #include <gtest/gtest.h> Loading system/test/mock/mock_frameworks_libaudio.cc +2 −1 Original line number Diff line number Diff line Loading @@ -21,8 +21,9 @@ #include "test/common/mock_functions.h" #undef __INTRODUCED_IN #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif // __INTRODUCED_IN #include <aaudio/AAudio.h> #include <aaudio/AAudioTesting.h> Loading Loading
system/btif/Android.bp +4 −1 Original line number Diff line number Diff line Loading @@ -386,6 +386,7 @@ cc_test { "mts_defaults", ], test_suites: ["general-tests"], host_supported: true, include_dirs: btifCommonIncludes + [ "frameworks/av/media/libaaudio/include", ], Loading @@ -406,11 +407,13 @@ cc_test { "libchrome", "libosi", ], shared_libs: [ "liblog", ], cflags: [ "-DBUILDCFG", "-Wno-unused-parameter", ], shared_libs: ["liblog"], } // btif rc unit tests for target Loading
system/btif/src/btif_avrcp_audio_track.cc +6 −2 Original line number Diff line number Diff line Loading @@ -19,15 +19,19 @@ #include "btif_avrcp_audio_track.h" #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif #include <aaudio/AAudio.h> #include <base/logging.h> #include <utils/StrongPointer.h> #include <algorithm> #include <thread> #include "bt_target.h" #include "osi/include/log.h" #include <thread> #include "os/log.h" using namespace android; Loading
system/btif/test/btif_avrcp_audio_track_test.cc +20 −0 Original line number Diff line number Diff line /* * Copyright 2023 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/include/btif_avrcp_audio_track.h" #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif #include <aaudio/AAudio.h> #include <aaudio/AAudioTesting.h> #include <gtest/gtest.h> Loading
system/test/mock/mock_frameworks_libaudio.cc +2 −1 Original line number Diff line number Diff line Loading @@ -21,8 +21,9 @@ #include "test/common/mock_functions.h" #undef __INTRODUCED_IN #ifndef __INTRODUCED_IN #define __INTRODUCED_IN(x) #endif // __INTRODUCED_IN #include <aaudio/AAudio.h> #include <aaudio/AAudioTesting.h> Loading