Settings: Add laser sensor preference
Add a switch for enabling/disabling the laser sensor within
developer options.
Test: Manual using setting app, RunSettingsRoboTests
Bug: 64423712
Change-Id: I89a32dfa062fc62c4be096d2e026a32ce9b784ca
diff --git a/res/values/config.xml b/res/values/config.xml
index 92c11f6..f964d5e 100755
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -44,6 +44,9 @@
<!-- Whether to show Camera HAL HDR+ switch in Developer Options -->
<bool name="config_show_camera_hal_hdrplus">false</bool>
+ <!-- Whether to show Camera laser sensor switch in Developer Options -->
+ <bool name="config_show_camera_laser_sensor">false</bool>
+
<!-- Fully-qualified class name for the implementation of the FeatureFactory to be instantiated. -->
<string name="config_featureFactory" translatable="false">com.android.settings.overlay.FeatureFactoryImpl</string>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b53dbde..c778b68 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -8236,6 +8236,9 @@
<!-- Toast message letting the user know how to enable Camera HAL HDR+ -->
<string name="camera_hal_hdrplus_toast">To apply Camera HAL HDR+ change, reboot device</string>
+ <!-- Title for Camera laser sensor switch [CHAR LIMIT=NONE] -->
+ <string name="camera_laser_sensor_switch">Camera Laser Sensor</string>
+
<!-- Name of the setting to disable the automatic update -->
<string name="ota_disable_automatic_update">Automatic system updates</string>
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml
index 1846a8c..147c5bc 100644
--- a/res/xml/development_prefs.xml
+++ b/res/xml/development_prefs.xml
@@ -164,6 +164,10 @@
android:summary="@string/telephony_monitor_switch_summary"/>
<SwitchPreference
+ android:key="camera_laser_sensor_switch"
+ android:title="@string/camera_laser_sensor_switch" />
+
+ <SwitchPreference
android:key="camera_hal_hdrplus_switch"
android:title="@string/camera_hal_hdrplus_switch" />