<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2021, 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Indicate whether to allow the device to suspend when the screen is off
         due to the proximity sensor.  This resource should only be set to true
         if the sensor HAL correctly handles the proximity sensor as a wake-up source.
         Otherwise, the device may fail to wake out of suspend reliably.
         The default is false. -->
    <bool name="config_suspendWhenScreenOffDueToProximity">true</bool>

    <!-- Flag indicating whether the we should enable the automatic brightness in Settings.
         Software implementation will be used if config_hardware_auto_brightness_available is not set -->
    <bool name="config_automatic_brightness_available">true</bool>

    <!-- Minimum screen brightness allowed by the power manager. -->
    <integer name="config_screenBrightnessDim">6</integer>

     <!-- Default strength, in percentage, of bright color reduction when activated. -->
    <integer name="config_reduceBrightColorsStrengthDefault">35</integer>

    <!-- Minimum strength, in percentage, supported by bright color reduction. -->
    <integer name="config_reduceBrightColorsStrengthMin">25</integer>

    <!-- Maximum strength, in percentage, supported by bright color reduction. -->
    <integer name="config_reduceBrightColorsStrengthMax">50</integer>

    <!-- Minimum screen brightness setting allowed by power manager.
         The user is forbidden from setting the brightness below this level.  -->
    <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0</item>

    <!-- Maximum screen brightness allowed by the power manager.
         The user is forbidden from setting the brightness above this level. -->
    <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>

    <!-- Default screen brightness setting
         Must be in the range specified by minimum and maximum. -->
    <!-- 140 nits: (140-2)/(1250-2)*(0.61-0.0)+0.0 = 0.067451923 -->
    <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.067451923</item>

    <!-- The maximum range of gamma adjustment possible using the screen
         auto-brightness adjustment setting. -->
    <fraction name="config_autoBrightnessAdjustmentMaxGamma">105%</fraction>

    <!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set
         this value to 0 so it has no effect. -->
    <integer name="config_defaultRefreshRate">0</integer>

    <!-- The default peak refresh rate. -->
    <integer name="config_defaultPeakRefreshRate">120</integer>

    <!-- Stability requirements in milliseconds for accepting a new brightness level.  This is used
         for debouncing the light sensor.  Different constants are used to debounce the light sensor
         when adapting to brighter or darker environments.  This parameter controls how quickly
         brightness changes occur in response to an observed change in light level that exceeds the
         hysteresis threshold. -->
    <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
    <integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>

    <integer-array name="config_ambientThresholdLevels">
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
        <item>6</item>
        <item>7</item>
        <item>8</item>
        <item>9</item>
        <item>10</item>
        <item>20</item>
        <item>30</item>
        <item>40</item>
        <item>50</item>
        <item>60</item>
        <item>70</item>
        <item>80</item>
        <item>90</item>
        <item>100</item>
        <item>200</item>
        <item>300</item>
        <item>400</item>
        <item>500</item>
        <item>1000</item>
        <item>2000</item>
        <item>3000</item>
        <item>4000</item>
    </integer-array>

    <integer-array name="config_ambientBrighteningThresholds">
        <item>5186</item>
        <item>4333</item>
        <item>3666</item>
        <item>2999</item>
        <item>2759</item>
        <item>2519</item>
        <item>2279</item>
        <item>2039</item>
        <item>1799</item>
        <item>799</item>
        <item>527</item>
        <item>499</item>
        <item>470</item>
        <item>517</item>
        <item>565</item>
        <item>612</item>
        <item>660</item>
        <item>708</item>
        <item>742</item>
        <item>636</item>
        <item>582</item>
        <item>549</item>
        <item>369</item>
        <item>294</item>
        <item>269</item>
        <item>220</item>
        <item>220</item>
    </integer-array>

    <integer-array name="config_ambientDarkeningThresholds">
        <item>525</item>
        <item>683</item>
        <item>666</item>
        <item>650</item>
        <item>640</item>
        <item>630</item>
        <item>620</item>
        <item>610</item>
        <item>600</item>
        <item>500</item>
        <item>500</item>
        <item>440</item>
        <item>385</item>
        <item>382</item>
        <item>379</item>
        <item>376</item>
        <item>373</item>
        <item>371</item>
        <item>367</item>
        <item>387</item>
        <item>397</item>
        <item>403</item>
        <item>380</item>
        <item>345</item>
        <item>333</item>
        <item>283</item>
        <item>283</item>
    </integer-array>

    <!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
    <string name="config_dozeUdfpsLongPressSensorType" translatable="false">com.google.sensor.long_press</string>

    <!-- Type of the quick pickup sensor. Empty if quick pickup is not supported. -->
    <string name="config_quickPickupSensorType" translatable="false">com.google.sensor.quick_pickup</string>

    <!-- If AOD can show an ambient version of the wallpaper -->
    <bool name="config_dozeSupportsAodWallpaper">true</bool>

     <!-- The stable device width and height in pixels. If these aren't set to a positive number
          then the device will use the width and height of the default display the first time it's
          booted.  -->
    <integer name="config_stableDeviceDisplayWidth">1344</integer>
    <integer name="config_stableDeviceDisplayHeight">2992</integer>

    <!-- The max vibration strength allowed in audio haptic channels. -->
    <item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.335</item>

    <!-- Align to camera cutout's height. -->
    <dimen name="status_bar_height_portrait">66dp</dimen>
    <!-- Since @dimen/status_bar_height_portrait is modified in overlay, need to restore its value
         from original folder. This should be done even looks no effect on some apps because
         some other apps may reference to it. -->
    <dimen name="status_bar_height_landscape">24dp</dimen>

    <!-- Whether the display cutout region of the main built-in display should be forced to
        black in software (to avoid aliasing or emulate a cutout that is not physically existent).
    -->
    <bool name="config_fillMainBuiltInDisplayCutout">true</bool>
    <!-- Display cutout configuration -->
    <string translatable="false" name="config_mainBuiltInDisplayCutout">
	m 719,99.5 a 47,47 0 0 0 -94,0 47,47 0 0 0 94,0 z
        @left
    </string>

    <!-- This configuartion effects status bar's height actually. Set its height as double
         y position of @dimen/config_mainBuiltInDisplayCutout to make cutout center vertically -->
    <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
        m 614.53715,0 h 115 v 199 h -115 z
        @left
    </string>
    <!-- A string config in svg path format for the main display shape.
         (@see https://www.w3.org/TR/SVG/paths.html#PathData).

         This config must be set unless:
         1. {@link Configuration#isScreenRound} is true which means the display shape is circular
            and the system will auto-generate a circular shape.
         2. The display has no rounded corner and the system will auto-generate a rectangular shape.
         (@see DisplayShape#createDefaultDisplayShape)

         Note: If the display supports multiple resolutions, please define the path config based on
         the highest resolution so that it can be scaled correctly in each resolution. -->
    <string name="config_mainDisplayShape">M 0,223.8 V 199 187.5 174.1 l 1.915,-23 3.829,-17.2 3.829,-17.2 5.747,-17.22 5.74,-11.48 5.74,-9.56 5.75,-7.65 3.83,-5.75 11.48,-13.39 3.83,-3.82 11.49,-9.56 13.4,-9.58 9.57,-5.73 19.15,-9.57 17.2,-5.738 17.3,-3.825 21,-1.914 L 176.1,0 h 15.4 17.2 19.1 896.2 15 6 8 11 6 l 9,1.913 h 12 l 9,1.914 12,1.912 15,3.826 10,3.825 7,3.82 12,5.75 8,3.83 9,7.65 15,9.56 16,17.22 11,15.3 8,11.48 6,13.4 5,13.4 6,21 2,17.3 v 7.6 l 2,13.4 v 19.1 19.2 15.2 2540.4 6 4 9 8 12 13 l -2,15 v 10 l -6,26 -5,16 -6,13 -10,15 -7,11 -10,13 -11,11 -14,9 -23,14 -15,6 -23,7 -14,2 -30,4 h -23 -12 -7 -10 -888.2 -11.5 -9.5 -9.6 -5.7 -13.4 l -19.2,-2 -11.5,-2 h -7.6 l -17.3,-5 -15.3,-4 -19.13,-10 -15.32,-10 -19.14,-15 -13.4,-11 -9.58,-16 -11.48,-19 -7.66,-19 L 5.744,2858 3.829,2847 0,2827 v -24 -20 -18 z</string>

    <!-- Boolean indicating whether allow sending null to modem to clear the previous initial attach
         data profile -->
    <bool name="allow_clear_initial_attach_data_profile">true</bool>

    <!-- MMS user agent string -->
    <string name="config_mms_user_agent" translatable="false">ggx8b</string>
    <!-- MMS user agent profile url -->
    <string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/GGX8B.xml</string>

    <!-- Allow the GPS_PROVIDER to be replaced by the location provider app at run-time. -->
    <bool name="config_useGnssHardwareProvider" translatable="false">false</bool>
    <!-- Package name providing GNSS location support. Used only when
         config_useGnssHardwareProvider is false. -->
    <string name="config_gnssLocationProviderPackageName" translatable="false">com.google.android.gms</string>

    <!-- Whether to enable fp unlock when screen turns off on udfps devices -->
    <bool name="config_screen_off_udfps_enabled">true</bool>

    <!-- Default value for fp screen off unlock toggle, it only works for the devices that support
         fp screen off unlock-->
    <bool name="config_screen_off_udfps_default_on">false</bool>
</resources>
