1package { 2 default_applicable_licenses: [ 3 "frameworks_av_media_codecs_amrwb_dec_license", 4 ], 5} 6 7// Added automatically by a large-scale-change that took the approach of 8// 'apply every license found to every target'. While this makes sure we respect 9// every license restriction, it may not be entirely correct. 10// 11// e.g. GPL in an MIT project might only apply to the contrib/ directory. 12// 13// Please consider splitting the single license below into multiple licenses, 14// taking care not to lose any license_kind information, and overriding the 15// default license using the 'licenses: [...]' property on targets as needed. 16// 17// For unused files, consider creating a 'fileGroup' with "//visibility:private" 18// to attach the license to, and including a comment whether the files may be 19// used in the current project. 20// See: http://go/android-license-faq 21license { 22 name: "frameworks_av_media_codecs_amrwb_dec_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-Apache-2.0", 26 "SPDX-license-identifier-BSD", 27 ], 28 license_text: [ 29 "NOTICE", 30 ], 31} 32 33cc_library_static { 34 name: "libstagefright_amrwbdec", 35 vendor_available: true, 36 host_supported: true, 37 min_sdk_version: "29", 38 apex_available: [ 39 "//apex_available:platform", 40 "com.android.media.swcodec", 41 ], 42 43 srcs: [ 44 "src/agc2_amr_wb.cpp", 45 "src/band_pass_6k_7k.cpp", 46 "src/dec_acelp_2p_in_64.cpp", 47 "src/dec_acelp_4p_in_64.cpp", 48 "src/dec_alg_codebook.cpp", 49 "src/dec_gain2_amr_wb.cpp", 50 "src/deemphasis_32.cpp", 51 "src/dtx_decoder_amr_wb.cpp", 52 "src/get_amr_wb_bits.cpp", 53 "src/highpass_400hz_at_12k8.cpp", 54 "src/highpass_50hz_at_12k8.cpp", 55 "src/homing_amr_wb_dec.cpp", 56 "src/interpolate_isp.cpp", 57 "src/isf_extrapolation.cpp", 58 "src/isp_az.cpp", 59 "src/isp_isf.cpp", 60 "src/lagconceal.cpp", 61 "src/low_pass_filt_7k.cpp", 62 "src/median5.cpp", 63 "src/mime_io.cpp", 64 "src/noise_gen_amrwb.cpp", 65 "src/normalize_amr_wb.cpp", 66 "src/oversamp_12k8_to_16k.cpp", 67 "src/phase_dispersion.cpp", 68 "src/pit_shrp.cpp", 69 "src/pred_lt4.cpp", 70 "src/preemph_amrwb_dec.cpp", 71 "src/pvamrwb_math_op.cpp", 72 "src/pvamrwbdecoder.cpp", 73 "src/q_gain2_tab.cpp", 74 "src/qisf_ns.cpp", 75 "src/qisf_ns_tab.cpp", 76 "src/qpisf_2s.cpp", 77 "src/qpisf_2s_tab.cpp", 78 "src/scale_signal.cpp", 79 "src/synthesis_amr_wb.cpp", 80 "src/voice_factor.cpp", 81 "src/wb_syn_filt.cpp", 82 "src/weight_amrwb_lpc.cpp", 83 ], 84 85 export_include_dirs: [ 86 "src", 87 "include", 88 ], 89 90 cflags: [ 91 "-DOSCL_UNUSED_ARG(x)=(void)(x)", 92 "-DOSCL_IMPORT_REF=", 93 94 "-Werror", 95 ], 96 97 sanitize: { 98 misc_undefined: [ 99 "signed-integer-overflow", 100 ], 101 }, 102 103 target: { 104 darwin: { 105 enabled: false, 106 }, 107 }, 108} 109 110//############################################################################### 111cc_test { 112 name: "libstagefright_amrwbdec_test", 113 gtest: false, 114 host_supported: true, 115 116 srcs: ["test/amrwbdec_test.cpp"], 117 118 cflags: ["-Wall", "-Werror"], 119 120 static_libs: [ 121 "libstagefright_amrwbdec", 122 "libsndfile", 123 ], 124 125 local_include_dirs: ["src"], 126 127 shared_libs: ["libaudioutils"], 128 129 sanitize: { 130 misc_undefined: [ 131 "signed-integer-overflow", 132 ], 133 }, 134 135 target: { 136 darwin: { 137 enabled: false, 138 }, 139 }, 140} 141