oriole: Add HbmSVManager RRO overlay
* Based on redfin
* raven doesn't have it on stock
Change-Id: I54d885c233151498372e1b510284d6a297ac3e94
diff --git a/device-oriole.mk b/device-oriole.mk
index 7de385a..41b081f 100644
--- a/device-oriole.mk
+++ b/device-oriole.mk
@@ -306,3 +306,7 @@
# Disable AVF Remote Attestation
PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true
+
+# HBM
+PRODUCT_PACKAGES += \
+ HbmSVManagerOverlay
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/Android.bp b/oriole/rro_overlays/HbmSVManagerOverlay/Android.bp
new file mode 100644
index 0000000..5ca5189
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/Android.bp
@@ -0,0 +1,8 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+runtime_resource_overlay {
+ name: "HbmSVManagerOverlay",
+ vendor: true
+}
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml b/oriole/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..b8e8d1f
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.hbmsvmanager.overlay">
+
+ <overlay
+ android:isStatic="true"
+ android:priority="0"
+ android:targetPackage="com.android.hbmsvmanager" />
+</manifest>
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png
new file mode 100644
index 0000000..8e5bc72
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png
new file mode 100644
index 0000000..1348949
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png
new file mode 100644
index 0000000..6c4da6a
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png
new file mode 100644
index 0000000..a1df501
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png
new file mode 100644
index 0000000..809e71c
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png
new file mode 100644
index 0000000..bd4ec05
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_6_cal0.png b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_6_cal0.png
new file mode 100644
index 0000000..3a2779f
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_6_cal0.png
Binary files differ
diff --git a/oriole/rro_overlays/HbmSVManagerOverlay/res/values/config.xml b/oriole/rro_overlays/HbmSVManagerOverlay/res/values/config.xml
new file mode 100644
index 0000000..e850ae7
--- /dev/null
+++ b/oriole/rro_overlays/HbmSVManagerOverlay/res/values/config.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2020, 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.
+*/
+-->
+
+<resources>
+ <string-array name="config_calibrated_compensation_images">
+ <item>SCI_0_cal0.png</item>
+ <item>SCI_1_cal0.png</item>
+ <item>SCI_2_cal0.png</item>
+ <item>SCI_3_cal0.png</item>
+ <item>SCI_4_cal0.png</item>
+ <item>SCI_5_cal0.png</item>
+ <item>SCI_6_cal0.png</item>
+ </string-array>
+ <array name="config_compensation_images">
+ <item>@drawable/SCI_0_cal0</item>
+ <item>@drawable/SCI_1_cal0</item>
+ <item>@drawable/SCI_2_cal0</item>
+ <item>@drawable/SCI_3_cal0</item>
+ <item>@drawable/SCI_4_cal0</item>
+ <item>@drawable/SCI_5_cal0</item>
+ <item>@drawable/SCI_6_cal0</item>
+ </array>
+ <integer name="config_compensation_filter_horizon">1500</integer>
+ <dimen name="config_compensation_filter_intercept">10.0</dimen>
+ <array name="config_compensation_thresholds">
+ <item>15000.0</item>
+ <item>30000.0</item>
+ <item>45000.0</item>
+ <item>60000.0</item>
+ <item>70000.0</item>
+ <item>80000.0</item>
+ <item>100000.0</item>
+ </array>
+</resources>