From 574369e474bc01bbd303edd257cc397631af68e0 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Mon, 20 Mar 2023 18:57:47 -0700 Subject: [PATCH] sepolicy: Add spatial audio tuning properties. audio.spatializer.pose_predictor_type audio.spatializer.prediction_duration_ms Ignore-AOSP-First: will land in AOSP later. Test: compiles Test: adb shell setprop with invalid enum fails. Bug: 274849680 Change-Id: Ie7e656acbdd3fe101ecbd2cc9dfb6c8a440a6a8b --- prebuilts/api/33.0/private/property_contexts | 2 ++ private/property_contexts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/prebuilts/api/33.0/private/property_contexts b/prebuilts/api/33.0/private/property_contexts index 4d85b9e49..158693878 100644 --- a/prebuilts/api/33.0/private/property_contexts +++ b/prebuilts/api/33.0/private/property_contexts @@ -354,6 +354,8 @@ audio.offload.min.duration.secs u:object_r:audio_config_prop:s0 exact int audio.spatializer.priority u:object_r:audio_config_prop:s0 exact int audio.spatializer.effect.affinity u:object_r:audio_config_prop:s0 exact int audio.spatializer.effect.util_clamp_min u:object_r:audio_config_prop:s0 exact int +audio.spatializer.pose_predictor_type u:object_r:audio_config_prop:s0 exact enum 0 1 2 3 +audio.spatializer.prediction_duration_ms u:object_r:audio_config_prop:s0 exact int ro.audio.ignore_effects u:object_r:audio_config_prop:s0 exact bool ro.audio.monitorRotation u:object_r:audio_config_prop:s0 exact bool diff --git a/private/property_contexts b/private/property_contexts index 4d85b9e49..158693878 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -354,6 +354,8 @@ audio.offload.min.duration.secs u:object_r:audio_config_prop:s0 exact int audio.spatializer.priority u:object_r:audio_config_prop:s0 exact int audio.spatializer.effect.affinity u:object_r:audio_config_prop:s0 exact int audio.spatializer.effect.util_clamp_min u:object_r:audio_config_prop:s0 exact int +audio.spatializer.pose_predictor_type u:object_r:audio_config_prop:s0 exact enum 0 1 2 3 +audio.spatializer.prediction_duration_ms u:object_r:audio_config_prop:s0 exact int ro.audio.ignore_effects u:object_r:audio_config_prop:s0 exact bool ro.audio.monitorRotation u:object_r:audio_config_prop:s0 exact bool