Files
hardware_interfaces/audio/aidl/common/Android.bp
Mikhail Naganov a2c714129e audio: Add StreamDescriptor.frameSizeBytes
This field indicates the frame size and is filled by
the HAL module, so that the client does not have
to calculate it.

As a side effect, in the VTS code, a StreamContext can
now be created solely from a StreamDescriptor.

Added unit tests for the functions from Utils.

Bug: 205884982
Test: atest libaudioaidlcommon_test
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Ief836b8b2d35bacb1f9778e2462d540554149d7f
Change-Id: Ief836b8b2d35bacb1f9778e2462d540554149d7f
(cherry picked from commit 5862c1e3bc)
2022-08-30 03:54:07 +00:00

69 lines
1.8 KiB
Plaintext

/*
* Copyright (C) 2022 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.
*/
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_library {
name: "libaudioaidlcommon",
host_supported: true,
vendor_available: true,
export_include_dirs: ["include"],
header_libs: [
"libbase_headers",
"libsystem_headers",
],
export_header_lib_headers: [
"libbase_headers",
"libsystem_headers",
],
srcs: [
"StreamWorker.cpp",
],
}
cc_test {
name: "libaudioaidlcommon_test",
host_supported: true,
vendor_available: true,
static_libs: [
"android.media.audio.common.types-V1-ndk",
"libaudioaidlcommon",
],
shared_libs: [
"liblog",
],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-Wthread-safety",
],
srcs: [
"tests/streamworker_tests.cpp",
"tests/utils_tests.cpp",
],
test_suites: [
"general-tests",
],
}