Snap for 12872597 from 5b45c67134
to mainline-tzdata6-release
Change-Id: Ifb18d0a6bec2bfd48aa0465b16b725dc1a0d9b4d
This commit is contained in:
commit
9b41c5a9ae
26 changed files with 797 additions and 316 deletions
|
@ -107,6 +107,212 @@
|
|||
</enablement>
|
||||
</spatialCapture>
|
||||
|
||||
<microphones>
|
||||
<microphone id="builtin_mic_1" location="MAINBODY" group="0" indexInTheGroup="0"
|
||||
directionality="OMNI">
|
||||
<device type="IN_MICROPHONE" address="bottom" />
|
||||
<sensitivity levelDbfs="37.0" maxSplDb="132.5" minSplDb="28.5" />
|
||||
<position x="0.0269" y="0.0058" z="0.0079" />
|
||||
<orientation x="0.0" y="0.0" z="1.0" />
|
||||
<frequencyResponse>
|
||||
<point frequencyHz="100.00" levelDb="-0.78" />
|
||||
<point frequencyHz="106.00" levelDb="-0.71" />
|
||||
<point frequencyHz="112.00" levelDb="-0.64" />
|
||||
<point frequencyHz="118.00" levelDb="-0.60" />
|
||||
<point frequencyHz="125.00" levelDb="-0.55" />
|
||||
<point frequencyHz="132.00" levelDb="-0.50" />
|
||||
<point frequencyHz="140.00" levelDb="-0.47" />
|
||||
<point frequencyHz="150.00" levelDb="-0.42" />
|
||||
<point frequencyHz="160.00" levelDb="-0.39" />
|
||||
<point frequencyHz="170.00" levelDb="-0.36" />
|
||||
<point frequencyHz="180.00" levelDb="-0.34" />
|
||||
<point frequencyHz="190.00" levelDb="-0.33" />
|
||||
<point frequencyHz="200.00" levelDb="-0.32" />
|
||||
<point frequencyHz="212.00" levelDb="-0.29" />
|
||||
<point frequencyHz="224.00" levelDb="-0.28" />
|
||||
<point frequencyHz="236.00" levelDb="-0.28" />
|
||||
<point frequencyHz="250.00" levelDb="-0.27" />
|
||||
<point frequencyHz="265.00" levelDb="-0.25" />
|
||||
<point frequencyHz="280.00" levelDb="-0.25" />
|
||||
<point frequencyHz="300.00" levelDb="-0.24" />
|
||||
<point frequencyHz="315.00" levelDb="-0.23" />
|
||||
<point frequencyHz="335.00" levelDb="-0.23" />
|
||||
<point frequencyHz="355.00" levelDb="-0.22" />
|
||||
<point frequencyHz="375.00" levelDb="-0.22" />
|
||||
<point frequencyHz="400.00" levelDb="-0.19" />
|
||||
<point frequencyHz="425.00" levelDb="-0.17" />
|
||||
<point frequencyHz="450.00" levelDb="-0.15" />
|
||||
<point frequencyHz="475.00" levelDb="-0.15" />
|
||||
<point frequencyHz="500.00" levelDb="-0.14" />
|
||||
<point frequencyHz="530.00" levelDb="-0.14" />
|
||||
<point frequencyHz="560.00" levelDb="-0.12" />
|
||||
<point frequencyHz="600.00" levelDb="-0.11" />
|
||||
<point frequencyHz="630.00" levelDb="-0.10" />
|
||||
<point frequencyHz="670.00" levelDb="-0.10" />
|
||||
<point frequencyHz="710.00" levelDb="-0.08" />
|
||||
<point frequencyHz="750.00" levelDb="-0.07" />
|
||||
<point frequencyHz="800.00" levelDb="-0.07" />
|
||||
<point frequencyHz="850.00" levelDb="-0.04" />
|
||||
<point frequencyHz="900.00" levelDb="-0.03" />
|
||||
<point frequencyHz="950.00" levelDb="-0.01" />
|
||||
<point frequencyHz="1000.00" levelDb="0.00" />
|
||||
<point frequencyHz="1060.00" levelDb="0.04" />
|
||||
<point frequencyHz="1120.00" levelDb="0.06" />
|
||||
<point frequencyHz="1180.00" levelDb="0.07" />
|
||||
<point frequencyHz="1250.00" levelDb="0.08" />
|
||||
<point frequencyHz="1320.00" levelDb="0.13" />
|
||||
<point frequencyHz="1400.00" levelDb="0.09" />
|
||||
<point frequencyHz="1500.00" levelDb="0.14" />
|
||||
<point frequencyHz="1600.00" levelDb="0.19" />
|
||||
<point frequencyHz="1700.00" levelDb="0.23" />
|
||||
<point frequencyHz="1800.00" levelDb="0.28" />
|
||||
<point frequencyHz="1900.00" levelDb="0.29" />
|
||||
<point frequencyHz="2000.00" levelDb="0.31" />
|
||||
<point frequencyHz="2120.00" levelDb="0.37" />
|
||||
<point frequencyHz="2240.00" levelDb="0.88" />
|
||||
<point frequencyHz="2360.00" levelDb="0.86" />
|
||||
<point frequencyHz="2500.00" levelDb="0.77" />
|
||||
<point frequencyHz="2650.00" levelDb="0.78" />
|
||||
<point frequencyHz="2800.00" levelDb="0.84" />
|
||||
<point frequencyHz="3000.00" levelDb="0.86" />
|
||||
<point frequencyHz="3150.00" levelDb="1.05" />
|
||||
<point frequencyHz="3350.00" levelDb="1.12" />
|
||||
<point frequencyHz="3550.00" levelDb="1.18" />
|
||||
<point frequencyHz="3750.00" levelDb="1.25" />
|
||||
<point frequencyHz="4000.00" levelDb="1.43" />
|
||||
<point frequencyHz="4250.00" levelDb="1.66" />
|
||||
<point frequencyHz="4500.00" levelDb="1.83" />
|
||||
<point frequencyHz="4750.00" levelDb="2.02" />
|
||||
<point frequencyHz="5000.00" levelDb="2.23" />
|
||||
<point frequencyHz="5300.00" levelDb="2.59" />
|
||||
<point frequencyHz="5600.00" levelDb="2.84" />
|
||||
<point frequencyHz="6000.00" levelDb="3.35" />
|
||||
<point frequencyHz="6300.00" levelDb="4.01" />
|
||||
<point frequencyHz="6700.00" levelDb="6.82" />
|
||||
<point frequencyHz="7100.00" levelDb="6.62" />
|
||||
<point frequencyHz="7500.00" levelDb="6.42" />
|
||||
<point frequencyHz="8000.00" levelDb="7.30" />
|
||||
<point frequencyHz="8500.00" levelDb="8.23" />
|
||||
<point frequencyHz="9000.00" levelDb="7.54" />
|
||||
<point frequencyHz="9500.00" levelDb="12.68" />
|
||||
<point frequencyHz="10000.00" levelDb="13.76" />
|
||||
<point frequencyHz="10600.00" levelDb="18.69" />
|
||||
<point frequencyHz="11200.00" levelDb="19.68" />
|
||||
<point frequencyHz="11800.00" levelDb="20.90" />
|
||||
<point frequencyHz="12500.00" levelDb="23.70" />
|
||||
<point frequencyHz="13200.00" levelDb="25.10" />
|
||||
<point frequencyHz="14000.00" levelDb="21.65" />
|
||||
<point frequencyHz="15000.00" levelDb="16.18" />
|
||||
<point frequencyHz="16000.00" levelDb="18.84" />
|
||||
<point frequencyHz="17000.00" levelDb="25.44" />
|
||||
<point frequencyHz="18000.00" levelDb="23.48" />
|
||||
<point frequencyHz="19000.00" levelDb="23.22" />
|
||||
<point frequencyHz="20000.00" levelDb="24.89" />
|
||||
</frequencyResponse>
|
||||
</microphone>
|
||||
<microphone id="builtin_mic_2" location="MAINBODY" group="0" indexInTheGroup="1"
|
||||
directionality="OMNI">
|
||||
<device type="IN_MICROPHONE_BACK" address="back" />
|
||||
<sensitivity levelDbfs="-37.0" maxSplDb="132.5" minSplDb="28.5" />
|
||||
<position x="0.0546" y="0.1456" z="0.00415" />
|
||||
<orientation x="0.0" y="1.0" z="0.0" />
|
||||
<frequencyResponse>
|
||||
<point frequencyHz="106.00" levelDb="-0.75" />
|
||||
<point frequencyHz="112.00" levelDb="-0.74" />
|
||||
<point frequencyHz="118.00" levelDb="-0.69" />
|
||||
<point frequencyHz="125.00" levelDb="-0.65" />
|
||||
<point frequencyHz="132.00" levelDb="-0.62" />
|
||||
<point frequencyHz="140.00" levelDb="-0.61" />
|
||||
<point frequencyHz="150.00" levelDb="-0.56" />
|
||||
<point frequencyHz="160.00" levelDb="-0.53" />
|
||||
<point frequencyHz="170.00" levelDb="-0.50" />
|
||||
<point frequencyHz="180.00" levelDb="-0.47" />
|
||||
<point frequencyHz="190.00" levelDb="-0.43" />
|
||||
<point frequencyHz="200.00" levelDb="-0.40" />
|
||||
<point frequencyHz="212.00" levelDb="-0.37" />
|
||||
<point frequencyHz="224.00" levelDb="-0.36" />
|
||||
<point frequencyHz="236.00" levelDb="-0.33" />
|
||||
<point frequencyHz="250.00" levelDb="-0.30" />
|
||||
<point frequencyHz="265.00" levelDb="-0.28" />
|
||||
<point frequencyHz="280.00" levelDb="-0.25" />
|
||||
<point frequencyHz="300.00" levelDb="-0.24" />
|
||||
<point frequencyHz="315.00" levelDb="-0.24" />
|
||||
<point frequencyHz="335.00" levelDb="-0.24" />
|
||||
<point frequencyHz="355.00" levelDb="-0.25" />
|
||||
<point frequencyHz="375.00" levelDb="-0.24" />
|
||||
<point frequencyHz="400.00" levelDb="-0.12" />
|
||||
<point frequencyHz="425.00" levelDb="-0.10" />
|
||||
<point frequencyHz="450.00" levelDb="-0.08" />
|
||||
<point frequencyHz="475.00" levelDb="-0.09" />
|
||||
<point frequencyHz="500.00" levelDb="-0.07" />
|
||||
<point frequencyHz="530.00" levelDb="-0.07" />
|
||||
<point frequencyHz="560.00" levelDb="-0.06" />
|
||||
<point frequencyHz="600.00" levelDb="-0.06" />
|
||||
<point frequencyHz="630.00" levelDb="-0.06" />
|
||||
<point frequencyHz="670.00" levelDb="-0.05" />
|
||||
<point frequencyHz="710.00" levelDb="-0.04" />
|
||||
<point frequencyHz="750.00" levelDb="-0.05" />
|
||||
<point frequencyHz="800.00" levelDb="-0.04" />
|
||||
<point frequencyHz="850.00" levelDb="-0.01" />
|
||||
<point frequencyHz="900.00" levelDb="0.02" />
|
||||
<point frequencyHz="950.00" levelDb="0.02" />
|
||||
<point frequencyHz="1000.00" levelDb="0.00" />
|
||||
<point frequencyHz="1060.00" levelDb="0.02" />
|
||||
<point frequencyHz="1120.00" levelDb="0.03" />
|
||||
<point frequencyHz="1180.00" levelDb="0.07" />
|
||||
<point frequencyHz="1250.00" levelDb="0.10" />
|
||||
<point frequencyHz="1320.00" levelDb="0.10" />
|
||||
<point frequencyHz="1400.00" levelDb="0.13" />
|
||||
<point frequencyHz="1500.00" levelDb="0.01" />
|
||||
<point frequencyHz="1600.00" levelDb="0.01" />
|
||||
<point frequencyHz="1700.00" levelDb="0.10" />
|
||||
<point frequencyHz="1800.00" levelDb="0.11" />
|
||||
<point frequencyHz="1900.00" levelDb="0.19" />
|
||||
<point frequencyHz="2000.00" levelDb="0.24" />
|
||||
<point frequencyHz="2120.00" levelDb="0.38" />
|
||||
<point frequencyHz="2240.00" levelDb="0.46" />
|
||||
<point frequencyHz="2360.00" levelDb="0.26" />
|
||||
<point frequencyHz="2500.00" levelDb="0.27" />
|
||||
<point frequencyHz="2650.00" levelDb="0.43" />
|
||||
<point frequencyHz="2800.00" levelDb="0.76" />
|
||||
<point frequencyHz="3000.00" levelDb="0.75" />
|
||||
<point frequencyHz="3150.00" levelDb="1.09" />
|
||||
<point frequencyHz="3350.00" levelDb="1.09" />
|
||||
<point frequencyHz="3550.00" levelDb="0.94" />
|
||||
<point frequencyHz="3750.00" levelDb="1.06" />
|
||||
<point frequencyHz="4000.00" levelDb="1.21" />
|
||||
<point frequencyHz="4250.00" levelDb="1.47" />
|
||||
<point frequencyHz="4500.00" levelDb="1.45" />
|
||||
<point frequencyHz="4750.00" levelDb="1.36" />
|
||||
<point frequencyHz="5000.00" levelDb="2.07" />
|
||||
<point frequencyHz="5300.00" levelDb="2.85" />
|
||||
<point frequencyHz="5600.00" levelDb="2.90" />
|
||||
<point frequencyHz="6000.00" levelDb="3.85" />
|
||||
<point frequencyHz="6300.00" levelDb="4.65" />
|
||||
<point frequencyHz="6700.00" levelDb="5.84" />
|
||||
<point frequencyHz="7100.00" levelDb="5.46" />
|
||||
<point frequencyHz="7500.00" levelDb="6.15" />
|
||||
<point frequencyHz="8000.00" levelDb="7.50" />
|
||||
<point frequencyHz="8500.00" levelDb="8.30" />
|
||||
<point frequencyHz="9000.00" levelDb="10.62" />
|
||||
<point frequencyHz="9500.00" levelDb="12.70" />
|
||||
<point frequencyHz="10000.00" levelDb="16.65" />
|
||||
<point frequencyHz="10600.00" levelDb="20.95" />
|
||||
<point frequencyHz="11200.00" levelDb="25.41" />
|
||||
<point frequencyHz="11800.00" levelDb="26.32" />
|
||||
<point frequencyHz="12500.00" levelDb="20.20" />
|
||||
<point frequencyHz="13200.00" levelDb="16.60" />
|
||||
<point frequencyHz="14000.00" levelDb="11.24" />
|
||||
<point frequencyHz="15000.00" levelDb="7.85" />
|
||||
<point frequencyHz="16000.00" levelDb="7.62" />
|
||||
<point frequencyHz="17000.00" levelDb="20.19" />
|
||||
<point frequencyHz="18000.00" levelDb="7.32" />
|
||||
<point frequencyHz="19000.00" levelDb="2.87" />
|
||||
<point frequencyHz="20000.00" levelDb="5.18" />
|
||||
</frequencyResponse>
|
||||
</microphone>
|
||||
</microphones>
|
||||
|
||||
<xi:include href="audio_policy_volumes.xml" />
|
||||
<xi:include href="default_volume_tables.xml" />
|
||||
</audioPlatformConfiguration>
|
||||
|
|
43
audio/husky/prebuilt/libspeechenhancer/Android.bp
Normal file
43
audio/husky/prebuilt/libspeechenhancer/Android.bp
Normal file
|
@ -0,0 +1,43 @@
|
|||
// Copyright (C) 2024 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.
|
||||
soong_namespace {
|
||||
}
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libspeechenhancer",
|
||||
vendor: true,
|
||||
owner: "google",
|
||||
proprietary: true,
|
||||
allow_undefined_symbols: true,
|
||||
arch: {
|
||||
arm64: {
|
||||
srcs: ["arm64/libspeechenhancer.so"],
|
||||
},
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libEGL",
|
||||
"libGLESv2",
|
||||
"libbinder_ndk",
|
||||
"liblog",
|
||||
"libsync",
|
||||
"libz",
|
||||
"libnativewindow",
|
||||
],
|
||||
}
|
Binary file not shown.
|
@ -107,6 +107,212 @@
|
|||
</enablement>
|
||||
</spatialCapture>
|
||||
|
||||
<microphones>
|
||||
<microphone id="builtin_mic_1" location="MAINBODY" group="0" indexInTheGroup="0"
|
||||
directionality="OMNI">
|
||||
<device type="IN_MICROPHONE" address="bottom" />
|
||||
<sensitivity levelDbfs="37.0" maxSplDb="132.5" minSplDb="28.5" />
|
||||
<position x="0.0269" y="0.0058" z="0.0079" />
|
||||
<orientation x="0.0" y="0.0" z="1.0" />
|
||||
<frequencyResponse>
|
||||
<point frequencyHz="100.00" levelDb="-0.78" />
|
||||
<point frequencyHz="106.00" levelDb="-0.71" />
|
||||
<point frequencyHz="112.00" levelDb="-0.64" />
|
||||
<point frequencyHz="118.00" levelDb="-0.60" />
|
||||
<point frequencyHz="125.00" levelDb="-0.55" />
|
||||
<point frequencyHz="132.00" levelDb="-0.50" />
|
||||
<point frequencyHz="140.00" levelDb="-0.47" />
|
||||
<point frequencyHz="150.00" levelDb="-0.42" />
|
||||
<point frequencyHz="160.00" levelDb="-0.39" />
|
||||
<point frequencyHz="170.00" levelDb="-0.36" />
|
||||
<point frequencyHz="180.00" levelDb="-0.34" />
|
||||
<point frequencyHz="190.00" levelDb="-0.33" />
|
||||
<point frequencyHz="200.00" levelDb="-0.32" />
|
||||
<point frequencyHz="212.00" levelDb="-0.29" />
|
||||
<point frequencyHz="224.00" levelDb="-0.28" />
|
||||
<point frequencyHz="236.00" levelDb="-0.28" />
|
||||
<point frequencyHz="250.00" levelDb="-0.27" />
|
||||
<point frequencyHz="265.00" levelDb="-0.25" />
|
||||
<point frequencyHz="280.00" levelDb="-0.25" />
|
||||
<point frequencyHz="300.00" levelDb="-0.24" />
|
||||
<point frequencyHz="315.00" levelDb="-0.23" />
|
||||
<point frequencyHz="335.00" levelDb="-0.23" />
|
||||
<point frequencyHz="355.00" levelDb="-0.22" />
|
||||
<point frequencyHz="375.00" levelDb="-0.22" />
|
||||
<point frequencyHz="400.00" levelDb="-0.19" />
|
||||
<point frequencyHz="425.00" levelDb="-0.17" />
|
||||
<point frequencyHz="450.00" levelDb="-0.15" />
|
||||
<point frequencyHz="475.00" levelDb="-0.15" />
|
||||
<point frequencyHz="500.00" levelDb="-0.14" />
|
||||
<point frequencyHz="530.00" levelDb="-0.14" />
|
||||
<point frequencyHz="560.00" levelDb="-0.12" />
|
||||
<point frequencyHz="600.00" levelDb="-0.11" />
|
||||
<point frequencyHz="630.00" levelDb="-0.10" />
|
||||
<point frequencyHz="670.00" levelDb="-0.10" />
|
||||
<point frequencyHz="710.00" levelDb="-0.08" />
|
||||
<point frequencyHz="750.00" levelDb="-0.07" />
|
||||
<point frequencyHz="800.00" levelDb="-0.07" />
|
||||
<point frequencyHz="850.00" levelDb="-0.04" />
|
||||
<point frequencyHz="900.00" levelDb="-0.03" />
|
||||
<point frequencyHz="950.00" levelDb="-0.01" />
|
||||
<point frequencyHz="1000.00" levelDb="0.00" />
|
||||
<point frequencyHz="1060.00" levelDb="0.04" />
|
||||
<point frequencyHz="1120.00" levelDb="0.06" />
|
||||
<point frequencyHz="1180.00" levelDb="0.07" />
|
||||
<point frequencyHz="1250.00" levelDb="0.08" />
|
||||
<point frequencyHz="1320.00" levelDb="0.13" />
|
||||
<point frequencyHz="1400.00" levelDb="0.09" />
|
||||
<point frequencyHz="1500.00" levelDb="0.14" />
|
||||
<point frequencyHz="1600.00" levelDb="0.19" />
|
||||
<point frequencyHz="1700.00" levelDb="0.23" />
|
||||
<point frequencyHz="1800.00" levelDb="0.28" />
|
||||
<point frequencyHz="1900.00" levelDb="0.29" />
|
||||
<point frequencyHz="2000.00" levelDb="0.31" />
|
||||
<point frequencyHz="2120.00" levelDb="0.37" />
|
||||
<point frequencyHz="2240.00" levelDb="0.88" />
|
||||
<point frequencyHz="2360.00" levelDb="0.86" />
|
||||
<point frequencyHz="2500.00" levelDb="0.77" />
|
||||
<point frequencyHz="2650.00" levelDb="0.78" />
|
||||
<point frequencyHz="2800.00" levelDb="0.84" />
|
||||
<point frequencyHz="3000.00" levelDb="0.86" />
|
||||
<point frequencyHz="3150.00" levelDb="1.05" />
|
||||
<point frequencyHz="3350.00" levelDb="1.12" />
|
||||
<point frequencyHz="3550.00" levelDb="1.18" />
|
||||
<point frequencyHz="3750.00" levelDb="1.25" />
|
||||
<point frequencyHz="4000.00" levelDb="1.43" />
|
||||
<point frequencyHz="4250.00" levelDb="1.66" />
|
||||
<point frequencyHz="4500.00" levelDb="1.83" />
|
||||
<point frequencyHz="4750.00" levelDb="2.02" />
|
||||
<point frequencyHz="5000.00" levelDb="2.23" />
|
||||
<point frequencyHz="5300.00" levelDb="2.59" />
|
||||
<point frequencyHz="5600.00" levelDb="2.84" />
|
||||
<point frequencyHz="6000.00" levelDb="3.35" />
|
||||
<point frequencyHz="6300.00" levelDb="4.01" />
|
||||
<point frequencyHz="6700.00" levelDb="6.82" />
|
||||
<point frequencyHz="7100.00" levelDb="6.62" />
|
||||
<point frequencyHz="7500.00" levelDb="6.42" />
|
||||
<point frequencyHz="8000.00" levelDb="7.30" />
|
||||
<point frequencyHz="8500.00" levelDb="8.23" />
|
||||
<point frequencyHz="9000.00" levelDb="7.54" />
|
||||
<point frequencyHz="9500.00" levelDb="12.68" />
|
||||
<point frequencyHz="10000.00" levelDb="13.76" />
|
||||
<point frequencyHz="10600.00" levelDb="18.69" />
|
||||
<point frequencyHz="11200.00" levelDb="19.68" />
|
||||
<point frequencyHz="11800.00" levelDb="20.90" />
|
||||
<point frequencyHz="12500.00" levelDb="23.70" />
|
||||
<point frequencyHz="13200.00" levelDb="25.10" />
|
||||
<point frequencyHz="14000.00" levelDb="21.65" />
|
||||
<point frequencyHz="15000.00" levelDb="16.18" />
|
||||
<point frequencyHz="16000.00" levelDb="18.84" />
|
||||
<point frequencyHz="17000.00" levelDb="25.44" />
|
||||
<point frequencyHz="18000.00" levelDb="23.48" />
|
||||
<point frequencyHz="19000.00" levelDb="23.22" />
|
||||
<point frequencyHz="20000.00" levelDb="24.89" />
|
||||
</frequencyResponse>
|
||||
</microphone>
|
||||
<microphone id="builtin_mic_2" location="MAINBODY" group="0" indexInTheGroup="1"
|
||||
directionality="OMNI">
|
||||
<device type="IN_MICROPHONE_BACK" address="back" />
|
||||
<sensitivity levelDbfs="-37.0" maxSplDb="132.5" minSplDb="28.5" />
|
||||
<position x="0.0546" y="0.1456" z="0.00415" />
|
||||
<orientation x="0.0" y="1.0" z="0.0" />
|
||||
<frequencyResponse>
|
||||
<point frequencyHz="106.00" levelDb="-0.75" />
|
||||
<point frequencyHz="112.00" levelDb="-0.74" />
|
||||
<point frequencyHz="118.00" levelDb="-0.69" />
|
||||
<point frequencyHz="125.00" levelDb="-0.65" />
|
||||
<point frequencyHz="132.00" levelDb="-0.62" />
|
||||
<point frequencyHz="140.00" levelDb="-0.61" />
|
||||
<point frequencyHz="150.00" levelDb="-0.56" />
|
||||
<point frequencyHz="160.00" levelDb="-0.53" />
|
||||
<point frequencyHz="170.00" levelDb="-0.50" />
|
||||
<point frequencyHz="180.00" levelDb="-0.47" />
|
||||
<point frequencyHz="190.00" levelDb="-0.43" />
|
||||
<point frequencyHz="200.00" levelDb="-0.40" />
|
||||
<point frequencyHz="212.00" levelDb="-0.37" />
|
||||
<point frequencyHz="224.00" levelDb="-0.36" />
|
||||
<point frequencyHz="236.00" levelDb="-0.33" />
|
||||
<point frequencyHz="250.00" levelDb="-0.30" />
|
||||
<point frequencyHz="265.00" levelDb="-0.28" />
|
||||
<point frequencyHz="280.00" levelDb="-0.25" />
|
||||
<point frequencyHz="300.00" levelDb="-0.24" />
|
||||
<point frequencyHz="315.00" levelDb="-0.24" />
|
||||
<point frequencyHz="335.00" levelDb="-0.24" />
|
||||
<point frequencyHz="355.00" levelDb="-0.25" />
|
||||
<point frequencyHz="375.00" levelDb="-0.24" />
|
||||
<point frequencyHz="400.00" levelDb="-0.12" />
|
||||
<point frequencyHz="425.00" levelDb="-0.10" />
|
||||
<point frequencyHz="450.00" levelDb="-0.08" />
|
||||
<point frequencyHz="475.00" levelDb="-0.09" />
|
||||
<point frequencyHz="500.00" levelDb="-0.07" />
|
||||
<point frequencyHz="530.00" levelDb="-0.07" />
|
||||
<point frequencyHz="560.00" levelDb="-0.06" />
|
||||
<point frequencyHz="600.00" levelDb="-0.06" />
|
||||
<point frequencyHz="630.00" levelDb="-0.06" />
|
||||
<point frequencyHz="670.00" levelDb="-0.05" />
|
||||
<point frequencyHz="710.00" levelDb="-0.04" />
|
||||
<point frequencyHz="750.00" levelDb="-0.05" />
|
||||
<point frequencyHz="800.00" levelDb="-0.04" />
|
||||
<point frequencyHz="850.00" levelDb="-0.01" />
|
||||
<point frequencyHz="900.00" levelDb="0.02" />
|
||||
<point frequencyHz="950.00" levelDb="0.02" />
|
||||
<point frequencyHz="1000.00" levelDb="0.00" />
|
||||
<point frequencyHz="1060.00" levelDb="0.02" />
|
||||
<point frequencyHz="1120.00" levelDb="0.03" />
|
||||
<point frequencyHz="1180.00" levelDb="0.07" />
|
||||
<point frequencyHz="1250.00" levelDb="0.10" />
|
||||
<point frequencyHz="1320.00" levelDb="0.10" />
|
||||
<point frequencyHz="1400.00" levelDb="0.13" />
|
||||
<point frequencyHz="1500.00" levelDb="0.01" />
|
||||
<point frequencyHz="1600.00" levelDb="0.01" />
|
||||
<point frequencyHz="1700.00" levelDb="0.10" />
|
||||
<point frequencyHz="1800.00" levelDb="0.11" />
|
||||
<point frequencyHz="1900.00" levelDb="0.19" />
|
||||
<point frequencyHz="2000.00" levelDb="0.24" />
|
||||
<point frequencyHz="2120.00" levelDb="0.38" />
|
||||
<point frequencyHz="2240.00" levelDb="0.46" />
|
||||
<point frequencyHz="2360.00" levelDb="0.26" />
|
||||
<point frequencyHz="2500.00" levelDb="0.27" />
|
||||
<point frequencyHz="2650.00" levelDb="0.43" />
|
||||
<point frequencyHz="2800.00" levelDb="0.76" />
|
||||
<point frequencyHz="3000.00" levelDb="0.75" />
|
||||
<point frequencyHz="3150.00" levelDb="1.09" />
|
||||
<point frequencyHz="3350.00" levelDb="1.09" />
|
||||
<point frequencyHz="3550.00" levelDb="0.94" />
|
||||
<point frequencyHz="3750.00" levelDb="1.06" />
|
||||
<point frequencyHz="4000.00" levelDb="1.21" />
|
||||
<point frequencyHz="4250.00" levelDb="1.47" />
|
||||
<point frequencyHz="4500.00" levelDb="1.45" />
|
||||
<point frequencyHz="4750.00" levelDb="1.36" />
|
||||
<point frequencyHz="5000.00" levelDb="2.07" />
|
||||
<point frequencyHz="5300.00" levelDb="2.85" />
|
||||
<point frequencyHz="5600.00" levelDb="2.90" />
|
||||
<point frequencyHz="6000.00" levelDb="3.85" />
|
||||
<point frequencyHz="6300.00" levelDb="4.65" />
|
||||
<point frequencyHz="6700.00" levelDb="5.84" />
|
||||
<point frequencyHz="7100.00" levelDb="5.46" />
|
||||
<point frequencyHz="7500.00" levelDb="6.15" />
|
||||
<point frequencyHz="8000.00" levelDb="7.50" />
|
||||
<point frequencyHz="8500.00" levelDb="8.30" />
|
||||
<point frequencyHz="9000.00" levelDb="10.62" />
|
||||
<point frequencyHz="9500.00" levelDb="12.70" />
|
||||
<point frequencyHz="10000.00" levelDb="16.65" />
|
||||
<point frequencyHz="10600.00" levelDb="20.95" />
|
||||
<point frequencyHz="11200.00" levelDb="25.41" />
|
||||
<point frequencyHz="11800.00" levelDb="26.32" />
|
||||
<point frequencyHz="12500.00" levelDb="20.20" />
|
||||
<point frequencyHz="13200.00" levelDb="16.60" />
|
||||
<point frequencyHz="14000.00" levelDb="11.24" />
|
||||
<point frequencyHz="15000.00" levelDb="7.85" />
|
||||
<point frequencyHz="16000.00" levelDb="7.62" />
|
||||
<point frequencyHz="17000.00" levelDb="20.19" />
|
||||
<point frequencyHz="18000.00" levelDb="7.32" />
|
||||
<point frequencyHz="19000.00" levelDb="2.87" />
|
||||
<point frequencyHz="20000.00" levelDb="5.18" />
|
||||
</frequencyResponse>
|
||||
</microphone>
|
||||
</microphones>
|
||||
|
||||
<xi:include href="audio_policy_volumes.xml" />
|
||||
<xi:include href="default_volume_tables.xml" />
|
||||
</audioPlatformConfiguration>
|
||||
|
|
|
@ -51,8 +51,14 @@ volume index from 0 to 100.
|
|||
<point>66,-2200</point>
|
||||
<point>100,-1800</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-4500</point>
|
||||
<point>29,-3400</point>
|
||||
<point>57,-2250</point>
|
||||
<point>71,-1900</point>
|
||||
<point>86,-1530</point>
|
||||
<point>100,-1100</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
|
@ -62,9 +68,12 @@ volume index from 0 to 100.
|
|||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>1,-4000</point>
|
||||
<point>29,-2950</point>
|
||||
<point>43,-2350</point>
|
||||
<point>57,-1850</point>
|
||||
<point>71,-1400</point>
|
||||
<point>86,-700</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
|
@ -76,31 +85,31 @@ volume index from 0 to 100.
|
|||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-6438</point>
|
||||
<point>4,-6438</point>
|
||||
<point>8,-5961</point>
|
||||
<point>12,-5543</point>
|
||||
<point>16,-5167</point>
|
||||
<point>20,-4743</point>
|
||||
<point>24,-4391</point>
|
||||
<point>28,-4061</point>
|
||||
<point>32,-3871</point>
|
||||
<point>36,-3673</point>
|
||||
<point>40,-3471</point>
|
||||
<point>44,-3273</point>
|
||||
<point>48,-3065</point>
|
||||
<point>52,-2850</point>
|
||||
<point>56,-2618</point>
|
||||
<point>60,-2355</point>
|
||||
<point>64,-2060</point>
|
||||
<point>68,-1773</point>
|
||||
<point>72,-1482</point>
|
||||
<point>76,-1205</point>
|
||||
<point>80,-989</point>
|
||||
<point>84,-791</point>
|
||||
<point>88,-578</point>
|
||||
<point>92,-374</point>
|
||||
<point>96,-137</point>
|
||||
<point>1,-5927</point>
|
||||
<point>4,-5927</point>
|
||||
<point>8,-5574</point>
|
||||
<point>12,-5281</point>
|
||||
<point>16,-4952</point>
|
||||
<point>20,-4562</point>
|
||||
<point>24,-4213</point>
|
||||
<point>28,-3838</point>
|
||||
<point>32,-3600</point>
|
||||
<point>36,-3385</point>
|
||||
<point>40,-3116</point>
|
||||
<point>44,-2927</point>
|
||||
<point>48,-2665</point>
|
||||
<point>52,-2436</point>
|
||||
<point>56,-2181</point>
|
||||
<point>60,-1985</point>
|
||||
<point>64,-1743</point>
|
||||
<point>68,-1553</point>
|
||||
<point>72,-1427</point>
|
||||
<point>76,-1166</point>
|
||||
<point>80,-1045</point>
|
||||
<point>84,-895</point>
|
||||
<point>88,-644</point>
|
||||
<point>92,-486</point>
|
||||
<point>96,-209</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
|
@ -112,9 +121,11 @@ volume index from 0 to 100.
|
|||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>0,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>0,-5600</point>
|
||||
<point>29,-3520</point>
|
||||
<point>57,-1500</point>
|
||||
<point>71,-1150</point>
|
||||
<point>86,-500</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
|
@ -126,10 +137,11 @@ volume index from 0 to 100.
|
|||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>100,0</point>
|
||||
<point>1,-4500</point>
|
||||
<point>29,-3800</point>
|
||||
<point>71,-1850</point>
|
||||
<point>86,-1000</point>
|
||||
<point>100,-500</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
|
||||
|
@ -165,8 +177,14 @@ volume index from 0 to 100.
|
|||
<point>66,-2200</point>
|
||||
<point>100,-1800</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-4500</point>
|
||||
<point>29,-3400</point>
|
||||
<point>57,-2250</point>
|
||||
<point>71,-1900</point>
|
||||
<point>86,-1530</point>
|
||||
<point>100,-1100</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
|
@ -179,8 +197,14 @@ volume index from 0 to 100.
|
|||
<point>66,-2200</point>
|
||||
<point>100,-1800</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-5700</point>
|
||||
<point>29,-4230</point>
|
||||
<point>43,-3300</point>
|
||||
<point>57,-3100</point>
|
||||
<point>71,-2500</point>
|
||||
<point>100,-1400</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
|
|
|
@ -1480,7 +1480,7 @@
|
|||
<path name="adapted-voice-speaker">
|
||||
<ctl name="R Boost Peak Current Limit" value="3.50A" />
|
||||
<ctl name="Boost Peak Current Limit" value="3.50A" />
|
||||
<ctl name="Digital PCM Volume" value="800" />
|
||||
<ctl name="Digital PCM Volume" value="817" />
|
||||
<ctl name="R Digital PCM Volume" value="817" />
|
||||
</path>
|
||||
<path name="adapted-voice-speaker-battery-throttled">
|
||||
|
|
43
audio/shiba/prebuilt/libspeechenhancer/Android.bp
Normal file
43
audio/shiba/prebuilt/libspeechenhancer/Android.bp
Normal file
|
@ -0,0 +1,43 @@
|
|||
// Copyright (C) 2024 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.
|
||||
soong_namespace {
|
||||
}
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libspeechenhancer",
|
||||
vendor: true,
|
||||
owner: "google",
|
||||
proprietary: true,
|
||||
allow_undefined_symbols: true,
|
||||
arch: {
|
||||
arm64: {
|
||||
srcs: ["arm64/libspeechenhancer.so"],
|
||||
},
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libEGL",
|
||||
"libGLESv2",
|
||||
"libbinder_ndk",
|
||||
"liblog",
|
||||
"libsync",
|
||||
"libz",
|
||||
"libnativewindow",
|
||||
],
|
||||
}
|
Binary file not shown.
|
@ -40,3 +40,5 @@ BqrEventMaskValueUpdate = 295006
|
|||
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
|
||||
|
||||
BtOpusEnabled = true
|
||||
|
||||
BtHalRecoveryByRestart = true
|
||||
|
|
|
@ -41,6 +41,7 @@ on post-fs-data
|
|||
# Bluetooth
|
||||
on post-fs-data
|
||||
chown bluetooth system /proc/bluetooth/timesync
|
||||
chown bluetooth system /proc/bluetooth/sleep/wakelock_ctrl
|
||||
|
||||
# Start the twoshay touch service
|
||||
on property:vendor.device.modules.ready=1
|
||||
|
@ -67,6 +68,7 @@ on property:vendor.all.modules.ready=1
|
|||
chown system system /sys/bus/i2c/devices/0-0043/default/vibe_state
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/num_waves
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/f0_offset
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/owt_lib_compat
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/owt_free_space
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/braking_time_bank
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/braking_time_index
|
||||
|
|
|
@ -37,6 +37,7 @@ on post-fs-data
|
|||
# Bluetooth
|
||||
on post-fs-data
|
||||
chown bluetooth system /proc/bluetooth/timesync
|
||||
chown bluetooth system /proc/bluetooth/sleep/wakelock_ctrl
|
||||
|
||||
# Start the twoshay touch service
|
||||
on property:vendor.device.modules.ready=1
|
||||
|
@ -67,6 +68,7 @@ on property:vendor.all.modules.ready=1
|
|||
chown system system /sys/bus/i2c/devices/0-0043/default/braking_time_ms
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/f0_offset
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/owt_free_space
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/owt_lib_compat
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/f0_comp_enable
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/redc_comp_enable
|
||||
chown system system /sys/bus/i2c/devices/0-0043/default/delay_before_stop_playback_us
|
||||
|
|
|
@ -162,6 +162,13 @@ endif
|
|||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.audio.spatializer_enabled=true
|
||||
|
||||
# HdMic Audio
|
||||
PRODUCT_SOONG_NAMESPACES += device/google/shusky/audio/husky/prebuilt/libspeechenhancer
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.app.audio.gsenet.version=1
|
||||
PRODUCT_PACKAGES += \
|
||||
libspeechenhancer
|
||||
|
||||
# Audio CCA property
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.audio.cca.enabled=false
|
||||
|
@ -227,8 +234,8 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
|||
|
||||
# Bluetooth LE Audio Broadcast
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.profile.bap.broadcast.assist.enabled=true \
|
||||
bluetooth.profile.bap.broadcast.source.enabled=true
|
||||
bluetooth.profile.bap.broadcast.assist.enabled?=true \
|
||||
bluetooth.profile.bap.broadcast.source.enabled?=true
|
||||
|
||||
# Bluetooth LE Audio enable hardware offloading
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
|
@ -241,7 +248,7 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# LE Audio Unicast Allowlist
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
persist.bluetooth.leaudio.allow_list=SM-R510,WF-1000XM5
|
||||
persist.bluetooth.leaudio.allow_list=SM-R510,WF-1000XM5,SM-R630
|
||||
|
||||
# Bluetooth LE Audio CIS handover to SCO
|
||||
# Set the property only for the controller couldn't support CIS/SCO simultaneously. More detailed in b/242908683.
|
||||
|
@ -252,6 +259,10 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
|||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.leaudio.dual_bidirection_swb.supported=true
|
||||
|
||||
# Disable Bluetooth HAP by default
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.profile.hap.enabled_by_default=false
|
||||
|
||||
# Support LE & Classic concurrent encryption (b/330704060)
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.ble.allow_enc_with_bredr=true
|
||||
|
@ -409,14 +420,7 @@ PRODUCT_VENDOR_PROPERTIES += \
|
|||
persist.vendor.vibrator.hal.context.scale=60 \
|
||||
persist.vendor.vibrator.hal.context.fade=true \
|
||||
persist.vendor.vibrator.hal.context.cooldowntime=1600 \
|
||||
persist.vendor.vibrator.hal.context.settlingtime=5000 \
|
||||
ro.vendor.vibrator.hal.dbc.enable=true \
|
||||
ro.vendor.vibrator.hal.dbc.envrelcoef=8353728 \
|
||||
ro.vendor.vibrator.hal.dbc.riseheadroom=1909602 \
|
||||
ro.vendor.vibrator.hal.dbc.fallheadroom=1909602 \
|
||||
ro.vendor.vibrator.hal.dbc.txlvlthreshfs=2516583 \
|
||||
ro.vendor.vibrator.hal.dbc.txlvlholdoffms=0 \
|
||||
ro.vendor.vibrator.hal.pm.activetimeout=5
|
||||
persist.vendor.vibrator.hal.context.settlingtime=5000
|
||||
|
||||
# Override Output Distortion Gain
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
|
@ -542,3 +546,8 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/shusky/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json
|
||||
|
||||
# Enable APF by default
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
vendor.powerhal.apf_disabled=false \
|
||||
vendor.powerhal.apf_enabled=true
|
||||
|
|
|
@ -279,3 +279,8 @@ PRODUCT_VENDOR_PROPERTIES += \
|
|||
# PKVM Memory Reclaim
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
hypervisor.memory_reclaim.supported=1
|
||||
|
||||
# Enable APF by default
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
vendor.powerhal.apf_disabled=false \
|
||||
vendor.powerhal.apf_enabled=true
|
||||
|
|
|
@ -150,6 +150,13 @@ endif
|
|||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.audio.spatializer_enabled=true
|
||||
|
||||
# HdMic Audio
|
||||
PRODUCT_SOONG_NAMESPACES += device/google/shusky/audio/shiba/prebuilt/libspeechenhancer
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.app.audio.gsenet.version=1
|
||||
PRODUCT_PACKAGES += \
|
||||
libspeechenhancer
|
||||
|
||||
# Audio CCA property
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.audio.cca.enabled=false
|
||||
|
@ -215,8 +222,8 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
|||
|
||||
# Bluetooth LE Audio Broadcast
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.profile.bap.broadcast.assist.enabled=true \
|
||||
bluetooth.profile.bap.broadcast.source.enabled=true
|
||||
bluetooth.profile.bap.broadcast.assist.enabled?=true \
|
||||
bluetooth.profile.bap.broadcast.source.enabled?=true
|
||||
|
||||
# Bluetooth LE Audio enable hardware offloading
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
|
@ -229,7 +236,7 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# LE Audio Unicast Allowlist
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
persist.bluetooth.leaudio.allow_list=SM-R510,WF-1000XM5
|
||||
persist.bluetooth.leaudio.allow_list=SM-R510,WF-1000XM5,SM-R630
|
||||
|
||||
# Bluetooth LE Audio CIS handover to SCO
|
||||
# Set the property only for the controller couldn't support CIS/SCO simultaneously. More detailed in b/242908683.
|
||||
|
@ -240,6 +247,10 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
|||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.leaudio.dual_bidirection_swb.supported=true
|
||||
|
||||
# Disable Bluetooth HAP by default
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.profile.hap.enabled_by_default=false
|
||||
|
||||
# Support LE & Classic concurrent encryption (b/330704060)
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.ble.allow_enc_with_bredr=true
|
||||
|
@ -386,14 +397,7 @@ PRODUCT_VENDOR_PROPERTIES += \
|
|||
persist.vendor.vibrator.hal.context.scale=60 \
|
||||
persist.vendor.vibrator.hal.context.fade=true \
|
||||
persist.vendor.vibrator.hal.context.cooldowntime=1600 \
|
||||
persist.vendor.vibrator.hal.context.settlingtime=5000 \
|
||||
ro.vendor.vibrator.hal.dbc.enable=true \
|
||||
ro.vendor.vibrator.hal.dbc.envrelcoef=8353728 \
|
||||
ro.vendor.vibrator.hal.dbc.riseheadroom=1909602 \
|
||||
ro.vendor.vibrator.hal.dbc.fallheadroom=1909602 \
|
||||
ro.vendor.vibrator.hal.dbc.txlvlthreshfs=2516583 \
|
||||
ro.vendor.vibrator.hal.dbc.txlvlholdoffms=0 \
|
||||
ro.vendor.vibrator.hal.pm.activetimeout=5
|
||||
persist.vendor.vibrator.hal.context.settlingtime=5000
|
||||
|
||||
# Override Output Distortion Gain
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
|
@ -511,3 +515,8 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/caimito/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json
|
||||
|
||||
# Enable APF by default
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
vendor.powerhal.apf_disabled=false \
|
||||
vendor.powerhal.apf_enabled=true
|
||||
|
|
|
@ -156,7 +156,7 @@ STNFC_REMOTE_FIELD_TIMER=0x01
|
|||
###############################################################################
|
||||
# Configure the ACTIVE_RW timer
|
||||
# Default 0x00, set 0x01 to enable it
|
||||
# STNFC_ACTIVERW_TIMER=0x01
|
||||
STNFC_ACTIVERW_TIMER=0x01
|
||||
|
||||
###############################################################################
|
||||
# Core configuration settings
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
"Values": [
|
||||
"9999999",
|
||||
"1548000",
|
||||
"1425000",
|
||||
"1197000",
|
||||
"0"
|
||||
],
|
||||
|
@ -136,6 +137,7 @@
|
|||
"9999999",
|
||||
"2245000",
|
||||
"2130000",
|
||||
"1572000",
|
||||
"1836000",
|
||||
"0"
|
||||
],
|
||||
|
@ -177,6 +179,7 @@
|
|||
"2687000",
|
||||
"2363000",
|
||||
"2147000",
|
||||
"1745000",
|
||||
"1885000",
|
||||
"0"
|
||||
],
|
||||
|
@ -914,6 +917,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "0x1ff"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAPreferredIdleMaskMid",
|
||||
"Duration": 5000,
|
||||
"Value": "0x1ff",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "ReducePreferIdle",
|
||||
|
@ -973,6 +983,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "615"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUClampBoost",
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "FGUClampBoost",
|
||||
|
@ -1047,37 +1064,43 @@
|
|||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAAutoPreferFit",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceEnable",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighValue",
|
||||
"Duration": 5000,
|
||||
"Value": "765"
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "110"
|
||||
"Value": "110",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidValue",
|
||||
"Duration": 5000,
|
||||
"Value": "570"
|
||||
"Duration": 5000,
|
||||
"Value": "570",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "139"
|
||||
"Value": "139",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
|
@ -2624,37 +2647,37 @@
|
|||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1745000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1745000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUMidClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1572000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUMidClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1572000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1425000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1425000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LOW_POWER_LITTLE_CLUSTER_50",
|
||||
|
@ -2893,7 +2916,7 @@
|
|||
"PowerHint": "GAME",
|
||||
"Node": "AutoPreferIdle",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
|
|
|
@ -945,6 +945,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "0x1ff"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAPreferredIdleMaskMid",
|
||||
"Duration": 5000,
|
||||
"Value": "0x1ff",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "ReducePreferIdle",
|
||||
|
@ -1004,6 +1011,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "615"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUClampBoost",
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "FGUClampBoost",
|
||||
|
@ -1078,37 +1092,43 @@
|
|||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAAutoPreferFit",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceEnable",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighValue",
|
||||
"Duration": 5000,
|
||||
"Value": "765"
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "110"
|
||||
"Value": "110",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidValue",
|
||||
"Duration": 5000,
|
||||
"Value": "570"
|
||||
"Duration": 5000,
|
||||
"Value": "570",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "139"
|
||||
"Value": "139",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
"Values": [
|
||||
"9999999",
|
||||
"1548000",
|
||||
"1425000",
|
||||
"1197000",
|
||||
"0"
|
||||
],
|
||||
|
@ -132,6 +133,7 @@
|
|||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1572000",
|
||||
"1836000",
|
||||
"0"
|
||||
],
|
||||
|
@ -168,6 +170,7 @@
|
|||
"Path": "/sys/devices/system/cpu/cpu8/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1745000",
|
||||
"1885000",
|
||||
"0"
|
||||
],
|
||||
|
@ -915,6 +918,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "0x1ff"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAPreferredIdleMaskMid",
|
||||
"Duration": 5000,
|
||||
"Value": "0x1ff",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "ReducePreferIdle",
|
||||
|
@ -974,6 +984,13 @@
|
|||
"Duration": 5000,
|
||||
"Value": "615"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUClampBoost",
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_disabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "FGUClampBoost",
|
||||
|
@ -1048,37 +1065,43 @@
|
|||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAAutoPreferFit",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceEnable",
|
||||
"Duration": 5000,
|
||||
"Value": "1"
|
||||
"Value": "1",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighValue",
|
||||
"Duration": 5000,
|
||||
"Value": "765"
|
||||
"Duration": 5000,
|
||||
"Value": "765",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceHighPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "110"
|
||||
"Value": "110",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidValue",
|
||||
"Duration": 5000,
|
||||
"Value": "570"
|
||||
"Duration": 5000,
|
||||
"Value": "570",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUclampMinOnNiceMidPrio",
|
||||
"Duration": 5000,
|
||||
"Value": "139"
|
||||
"Value": "139",
|
||||
"EnableProperty": "vendor.powerhal.apf_enabled"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
|
@ -2157,7 +2180,7 @@
|
|||
"Duration": 0,
|
||||
"Value": "cam1"
|
||||
},
|
||||
{
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_STANDARD",
|
||||
"Node": "CPUUtilThreshold",
|
||||
"Duration": 0,
|
||||
|
@ -2529,37 +2552,37 @@
|
|||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1745000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1745000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUMidClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1572000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPUMidClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1572000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1425000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "FIXED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
"Value": "1425000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LOW_POWER_LITTLE_CLUSTER_50",
|
||||
|
@ -2786,7 +2809,7 @@
|
|||
"PowerHint": "GAME",
|
||||
"Node": "AutoPreferIdle",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
|
|
|
@ -187,4 +187,6 @@
|
|||
false: firmware roaming will not be affected. -->
|
||||
<bool translatable="false" name ="config_wifiDisableFirmwareRoamingInIdleMode">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether to trigger bugreport for WiFi subsystem restart issue -->
|
||||
<bool translatable="false" name ="config_wifi_subsystem_restart_bugreport_enabled">false</bool>
|
||||
</resources>
|
||||
|
|
|
@ -1,61 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 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.
|
||||
*/
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "thermal-config-cpp",
|
||||
proto: {
|
||||
type: "lite",
|
||||
export_proto_headers: true,
|
||||
include_dirs: [
|
||||
"external/protobuf/src",
|
||||
"device/google/gs-common/thermal/thermal_hal/thermal_config_schemas"
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
cc_test_host {
|
||||
name: "shusky-thermal-config-test",
|
||||
srcs: [
|
||||
"thermal_config_test.cpp",
|
||||
],
|
||||
static_libs: [
|
||||
"libbase",
|
||||
"libgmock",
|
||||
"liblog",
|
||||
"libjsoncpp",
|
||||
"libjsonpbverify",
|
||||
"libjsonpbparse",
|
||||
"thermal_HAL_info_config_proto",
|
||||
],
|
||||
shared_libs: [
|
||||
"libprotobuf-cpp-full",
|
||||
],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
data: [
|
||||
"*.json"
|
||||
],
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
],
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 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 <android-base/file.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <jsonpb/json_schema_test.h>
|
||||
|
||||
#include "thermal_info_config_test.h"
|
||||
|
||||
using namespace ::android::jsonpb;
|
||||
using ::android::base::GetExecutableDirectory;
|
||||
|
||||
namespace devices {
|
||||
namespace shusky {
|
||||
|
||||
template <typename T>
|
||||
JsonSchemaTestConfigFactory MakeTestParam(const std::string &path) {
|
||||
return android::jsonpb::MakeTestParam<T>(GetExecutableDirectory() + path);
|
||||
}
|
||||
|
||||
// Make test suite for thermal info config schema.
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
ThermalSuite, ThermalInfoConfigTest,
|
||||
::testing::Values(
|
||||
MakeTestParam<ThermalConfig>("/thermal_info_config_husky.json"),
|
||||
MakeTestParam<ThermalConfig>("/thermal_info_config_shiba.json"),
|
||||
MakeTestParam<ThermalConfig>("/thermal_info_config_charge_husky.json"),
|
||||
MakeTestParam<ThermalConfig>("/thermal_info_config_charge_shiba.json"),
|
||||
MakeTestParam<ThermalConfig>("/thermal_info_config_ripcurrent.json"),
|
||||
MakeTestParam<ThermalConfig>(
|
||||
"/thermal_info_config_charge_ripcurrent.json")));
|
||||
|
||||
// Ignores a formatting check (b/c 0.0 != 0 textually)
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(JsonSchemaTest);
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
} // namespace shusky
|
||||
} // namespace devices
|
|
@ -54,11 +54,7 @@
|
|||
{
|
||||
"Name":"neutral_therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":["NaN", 44.1, "NaN", "NaN", "NaN", "NaN", "NaN"],
|
||||
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
|
||||
"Multiplier":0.001,
|
||||
"PollingDelay":60000,
|
||||
"PassiveDelay":7000
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"quiet_therm",
|
||||
|
@ -127,13 +123,23 @@
|
|||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"IS_WLC",
|
||||
"Name":"WLC_CHECK",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["thb_hda"],
|
||||
"Coefficient":[1],
|
||||
"Combination":["thb_hda", "thb_hda"],
|
||||
"Coefficient":[1, -51],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"NO_WLC",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["WLC_CHECK"],
|
||||
"Coefficient":[-2],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
|
@ -153,8 +159,9 @@
|
|||
"VirtualSensor":true,
|
||||
"TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "quiet_therm", "usb_pwr_therm"],
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE", "IS_WLC"],
|
||||
"Coefficient":[1.0, -1000000],
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE"],
|
||||
"Coefficient":["NO_WLC"],
|
||||
"CoefficientType": ["SENSOR"],
|
||||
"HotThreshold":["NaN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
|
||||
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
|
@ -329,8 +336,8 @@
|
|||
"Name":"PARTIAL_SYSTEM_POWER",
|
||||
"VirtualRails":true,
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "L22M_DISP", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":5
|
||||
}
|
||||
|
|
|
@ -160,13 +160,23 @@
|
|||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"IS_WLC",
|
||||
"Name":"WLC_CHECK",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["thb_hda"],
|
||||
"Coefficient":[1],
|
||||
"Combination":["thb_hda", "thb_hda"],
|
||||
"Coefficient":[1, -51],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"NO_WLC",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["WLC_CHECK"],
|
||||
"Coefficient":[-2],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
|
@ -186,8 +196,9 @@
|
|||
"VirtualSensor":true,
|
||||
"TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "neutral_therm", "quiet_therm", "usb_pwr_therm"],
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE", "IS_WLC"],
|
||||
"Coefficient":[1.0, -1000000],
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE"],
|
||||
"Coefficient":["NO_WLC"],
|
||||
"CoefficientType": ["SENSOR"],
|
||||
"HotThreshold":["NaN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
|
||||
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
|
@ -362,8 +373,8 @@
|
|||
"Name":"PARTIAL_SYSTEM_POWER",
|
||||
"VirtualRails":true,
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "L22M_DISP", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":5
|
||||
}
|
||||
|
|
|
@ -54,11 +54,7 @@
|
|||
{
|
||||
"Name":"neutral_therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":["NaN", 44.1, "NaN", "NaN", "NaN", "NaN", "NaN"],
|
||||
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
|
||||
"Multiplier":0.001,
|
||||
"PollingDelay":60000,
|
||||
"PassiveDelay":7000
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"quiet_therm",
|
||||
|
@ -717,13 +713,23 @@
|
|||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"IS_WLC",
|
||||
"Name":"WLC_CHECK",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["thb_hda"],
|
||||
"Coefficient":[1],
|
||||
"Combination":["thb_hda", "thb_hda"],
|
||||
"Coefficient":[1, -51],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"NO_WLC",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["WLC_CHECK"],
|
||||
"Coefficient":[-2],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
|
@ -743,8 +749,9 @@
|
|||
"VirtualSensor":true,
|
||||
"TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "quiet_therm", "usb_pwr_therm"],
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE", "IS_WLC"],
|
||||
"Coefficient":[1.0, -1000000],
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE"],
|
||||
"Coefficient":["NO_WLC"],
|
||||
"CoefficientType": ["SENSOR"],
|
||||
"HotThreshold":["NaN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
|
||||
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
|
@ -1051,8 +1058,8 @@
|
|||
"Name":"PARTIAL_SYSTEM_POWER",
|
||||
"VirtualRails":true,
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "L22M_DISP", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":5
|
||||
}
|
||||
|
|
|
@ -729,13 +729,23 @@
|
|||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"IS_WLC",
|
||||
"Name":"WLC_CHECK",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["thb_hda"],
|
||||
"Coefficient":[1],
|
||||
"Combination":["thb_hda", "thb_hda"],
|
||||
"Coefficient":[1, -51],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
"Name":"NO_WLC",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"Combination":["WLC_CHECK"],
|
||||
"Coefficient":[-2],
|
||||
"Multiplier":1
|
||||
},
|
||||
{
|
||||
|
@ -755,8 +765,9 @@
|
|||
"VirtualSensor":true,
|
||||
"TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "neutral_therm", "quiet_therm", "usb_pwr_therm"],
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE", "IS_WLC"],
|
||||
"Coefficient":[1.0, -1000000],
|
||||
"Combination":["VIRTUAL-SKIN-CHARGE"],
|
||||
"Coefficient":["NO_WLC"],
|
||||
"CoefficientType": ["SENSOR"],
|
||||
"HotThreshold":["NaN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
|
||||
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
|
@ -1084,8 +1095,8 @@
|
|||
"Name":"PARTIAL_SYSTEM_POWER",
|
||||
"VirtualRails":true,
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "L22M_DISP", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE"],
|
||||
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":5
|
||||
}
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
#include <jsonpb/json_schema_test.h>
|
||||
|
||||
#include "thermal_info_config.pb.h"
|
||||
|
||||
namespace devices {
|
||||
namespace shusky {
|
||||
|
||||
// JSON schema test wrapper.
|
||||
class ThermalInfoConfigTest : public android::jsonpb::JsonSchemaTest {
|
||||
public:
|
||||
void SetUp() override {
|
||||
JsonSchemaTest::SetUp();
|
||||
thermalInfoConfig_ = static_cast<ThermalConfig *>(message());
|
||||
}
|
||||
ThermalConfig *thermalInfoConfig_ = nullptr;
|
||||
};
|
||||
|
||||
// Individual test checking for sensor name and type as required fields.
|
||||
TEST_P(ThermalInfoConfigTest, ThermalConfigRequiredFields) {
|
||||
std::string error;
|
||||
|
||||
// Checks that no unknown fields are introduced.
|
||||
EXPECT_TRUE(android::jsonpb::AllFieldsAreKnown(*object_, json_, &error))
|
||||
<< "File: " << file_path_ << ": " << error;
|
||||
|
||||
// Check all Sensors have a Name and Type.
|
||||
for (int i = 0; i < thermalInfoConfig_->sensors_size(); ++i) {
|
||||
auto &&sensor = thermalInfoConfig_->sensors(i);
|
||||
EXPECT_FALSE(sensor.name().empty())
|
||||
<< "No name for sensor #" << i << " in " << file_path_;
|
||||
EXPECT_FALSE(sensor.type().empty())
|
||||
<< "No type for sensor " << sensor.name() << " in " << file_path_;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace shusky
|
||||
} // namespace devices
|
Loading…
Add table
Add a link
Reference in a new issue