summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-04 00:16:57 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-04 00:16:57 +0000
commitbb5e3f8a35031627716bdaa79102bebe320e887d (patch)
treed6d81e2d9c0a35a69be32560b88ac6b3c9b9dfd0
parentb2e8b99d4bc31fb28e59bb1542c97a8330d4ebc7 (diff)
parentdd4bc38a8228e28c33af0514edb52d5ea31021da (diff)
downloadgoldfish-android13-mainline-ipsec-release.tar.gz
Snap for 9254005 from dd4bc38a8228e28c33af0514edb52d5ea31021da to mainline-ipsec-releaseaml_ips_331910010aml_ips_331312000aml_ips_331310000android13-mainline-ipsec-release
Change-Id: I8017fdd04f31d30c93390db243d543134f1c0f28
-rw-r--r--64bitonly/product/vendor.mk7
-rw-r--r--bluetooth.prop35
-rw-r--r--camera/media_codecs_google_video_default.xml18
-rw-r--r--camera/media_codecs_performance_c2.xml4
-rw-r--r--vendor.mk5
5 files changed, 54 insertions, 15 deletions
diff --git a/64bitonly/product/vendor.mk b/64bitonly/product/vendor.mk
index b148f405..edd50199 100644
--- a/64bitonly/product/vendor.mk
+++ b/64bitonly/product/vendor.mk
@@ -90,12 +90,16 @@ PRODUCT_PACKAGES += \
libGLESv2_angle
endif
+#
# Enable bluetooth
PRODUCT_PACKAGES += \
bt_vhci_forwarder \
android.hardware.bluetooth@1.1-service.btlinux \
android.hardware.bluetooth.audio@2.1-impl
- #
+
+# Bluetooth hardware properties.
+TARGET_PRODUCT_PROP := $(LOCAL_PATH)/../../bluetooth.prop
+
# Bluetooth se policies
BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
@@ -311,7 +315,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
- frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
diff --git a/bluetooth.prop b/bluetooth.prop
new file mode 100644
index 00000000..0b2ef7a9
--- /dev/null
+++ b/bluetooth.prop
@@ -0,0 +1,35 @@
+# Set the Bluetooth Class of Device
+# Service Field: 0x5A -> 90
+# Bit 17: Networking
+# Bit 19: Capturing
+# Bit 20: Object Transfer
+# Bit 22: Telephony
+# MAJOR_CLASS: 0x02 -> 2 (Phone)
+# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
+bluetooth.device.class_of_device=90,2,12
+
+# Set supported Bluetooth profiles to enabled
+
+# Disable asha profile as it will disable
+# the cts-verifier multi advertising tests (b/249536741)
+# bluetooth.profile.asha.central.enabled=true
+
+bluetooth.profile.a2dp.source.enabled=true
+bluetooth.profile.avrcp.target.enabled=true
+bluetooth.profile.bap.broadcast.assist.enabled=true
+bluetooth.profile.bap.unicast.client.enabled=true
+bluetooth.profile.bas.client.enabled=true
+bluetooth.profile.ccp.server.enabled=true
+bluetooth.profile.csip.set_coordinator.enabled=true
+bluetooth.profile.gatt.enabled=true
+bluetooth.profile.hap.client.enabled=true
+bluetooth.profile.hfp.ag.enabled=true
+bluetooth.profile.hid.device.enabled=true
+bluetooth.profile.hid.host.enabled=true
+bluetooth.profile.map.server.enabled=true
+bluetooth.profile.mcp.server.enabled=true
+bluetooth.profile.opp.enabled=true
+bluetooth.profile.pan.nap.enabled=true
+bluetooth.profile.pan.panu.enabled=true
+bluetooth.profile.pbap.server.enabled=true
+bluetooth.profile.vcp.controller.enabled=true
diff --git a/camera/media_codecs_google_video_default.xml b/camera/media_codecs_google_video_default.xml
index 8d984f5d..2bbe437f 100644
--- a/camera/media_codecs_google_video_default.xml
+++ b/camera/media_codecs_google_video_default.xml
@@ -58,8 +58,8 @@
<Limit name="bitrate" range="1-120000000" />
<Limit name="frame-rate" range="1-480" />
<Limit name="performance-point-3840x2160" value="30" />
- <Limit name="measured-frame-rate-320x240" range="257-266" />
- <Limit name="measured-frame-rate-720x480" range="262-264" />
+ <Limit name="measured-frame-rate-320x240" range="600-720" />
+ <Limit name="measured-frame-rate-720x480" range="400-500" />
<Limit name="measured-frame-rate-1280x720" range="227-251" />
<Limit name="measured-frame-rate-1920x1080" range="235-247" />
<Limit name="measured-frame-rate-3840x2160" range="100-120" />
@@ -73,11 +73,11 @@
<Limit name="bitrate" range="1-120000000" />
<Limit name="frame-rate" range="1-480" />
<Limit name="performance-point-3840x2160" value="30" />
- <Limit name="measured-frame-rate-320x240" range="257-266" />
- <Limit name="measured-frame-rate-720x480" range="262-264" />
+ <Limit name="measured-frame-rate-320x240" range="600-720" />
+ <Limit name="measured-frame-rate-720x480" range="400-500" />
<Limit name="measured-frame-rate-1280x720" range="227-251" />
<Limit name="measured-frame-rate-1920x1080" range="235-247" />
- <Limit name="measured-frame-rate-3840x2160" range="235-247" />
+ <Limit name="measured-frame-rate-3840x2160" range="100-120" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="OMX.google.h264.decoder" type="video/avc">
@@ -144,8 +144,8 @@
<Limit name="bitrate" range="1-120000000" />
<Limit name="frame-rate" range="1-480" />
<Limit name="performance-point-1920x1080" value="30" />
- <Limit name="measured-frame-rate-320x180" range="743-817" />
- <Limit name="measured-frame-rate-640x360" range="237-258" />
+ <Limit name="measured-frame-rate-320x180" range="400-500" />
+ <Limit name="measured-frame-rate-640x360" range="300-400" />
<Limit name="measured-frame-rate-1280x720" range="60-160" />
<Limit name="measured-frame-rate-1920x1080" range="30-160" />
<Feature name="adaptive-playback" />
@@ -158,8 +158,8 @@
<Limit name="bitrate" range="1-120000000" />
<Limit name="frame-rate" range="1-480" />
<Limit name="performance-point-3840x2160" value="30" />
- <Limit name="measured-frame-rate-320x180" range="950-970" />
- <Limit name="measured-frame-rate-640x360" range="237-258" />
+ <Limit name="measured-frame-rate-320x180" range="400-500" />
+ <Limit name="measured-frame-rate-640x360" range="300-400" />
<Limit name="measured-frame-rate-1280x720" range="237-258" />
<Limit name="measured-frame-rate-1920x1080" range="100-120" />
<Limit name="measured-frame-rate-3840x2160" range="30-90" />
diff --git a/camera/media_codecs_performance_c2.xml b/camera/media_codecs_performance_c2.xml
index 32b583a3..4d9130d1 100644
--- a/camera/media_codecs_performance_c2.xml
+++ b/camera/media_codecs_performance_c2.xml
@@ -81,8 +81,8 @@
<Limit name="measured-frame-rate-176x144" range="1400-1560" /> <!-- SHOULDN'T HAVE TWEAKED N=220 v90%=4.0 -->
</MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
- <Limit name="measured-frame-rate-320x180" range="178-245" /> <!-- Manual N=20 -->
- <Limit name="measured-frame-rate-640x360" range="100-126" /> <!-- Manual N=20 -->
+ <Limit name="measured-frame-rate-320x180" range="300-400" /> <!-- Manual N=20 -->
+ <Limit name="measured-frame-rate-640x360" range="200-300" /> <!-- Manual N=20 -->
<Limit name="measured-frame-rate-1280x720" range="35-37" /> <!-- Manual N=20 -->
<Limit name="measured-frame-rate-1920x1080" range="24-31" /> <!-- Manual N=20 -->
</MediaCodec>
diff --git a/vendor.mk b/vendor.mk
index f977a20e..984a7ce3 100644
--- a/vendor.mk
+++ b/vendor.mk
@@ -93,7 +93,9 @@ PRODUCT_PACKAGES += \
bt_vhci_forwarder \
android.hardware.bluetooth@1.1-service.btlinux \
android.hardware.bluetooth.audio@2.1-impl
- #
+
+TARGET_PRODUCT_PROP := $(LOCAL_PATH)/bluetooth.prop
+
# Bluetooth se policies
BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
@@ -310,7 +312,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
- frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \