<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2023, 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">
    <!-- The max vibration strength allowed in audio haptic channels. -->
    <item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.335</item>

    <!-- 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. -->
    <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.087114228</item>

    <!-- The default refresh rate. We manage this using the peak refresh rate setting. 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>

    <!-- Whether to show Fold lock behavior setting feature in Settings App -->
    <bool name="config_fold_lock_behavior">true</bool>

    <!-- The device states (supplied by DeviceStateManager) that should be treated as folded by the
         display fold controller. -->
    <integer-array name="config_foldedDeviceStates" translatable="false">
      <item>0</item> <!-- CLOSED -->
    </integer-array>

    <!-- Indicates whether to enable an animation when unfolding a device or not -->
    <bool name="config_unfoldTransitionEnabled">true</bool>

    <!-- Indicates whether to enable hinge angle sensor when using unfold animation -->
    <bool name="config_unfoldTransitionHingeAngle">true</bool>

    <bool name="config_supportsConcurrentInternalDisplays">false</bool>

    <string-array name="config_displayUniqueIdArray" translatable="false">
        <item>"local:4619827677550801152"</item>
        <item>"local:4619827677550801153"</item>
    </string-array>

    <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>

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

    <!-- Align to both camera at inner/outer 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>

    <!-- 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>

    <!-- Type of the ambient tap sensor per device posture (defined by WM Jetpack posture).
         Unspecified values use config_dozeTapSensor -->
    <string-array name="config_dozeTapSensorPostureMapping" translatable="false">
        <item></item> <!-- UNKNOWN, don't register for touch if we don't know -->
        <item>com.google.sensor.single_touch</item> <!-- CLOSED -->
        <item>com.google.sensor.touch_gesture</item> <!-- HALF_OPENED -->
        <item>com.google.sensor.touch_gesture</item> <!-- OPENED -->
      </string-array>

    <!-- 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>
    <!-- Whether the display cutout region of the secondary 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_fillSecondaryBuiltInDisplayCutout">true</bool>
    <!-- Display cutout configuration -->
    <string translatable="false" name="config_mainBuiltInDisplayCutout">
	m 2027,80 a 39.5,39.5 0 0 0 -79,0 39.5,39.5 0 0 0 79,0 z
        @left
    </string>

    <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
        m 0,0
        V 136
        h -136
        V 0
        z
        @right
    </string>

    <integer-array name="config_mainBuiltInDisplayCutoutSideOverride" translatable="false">
        <item>1</item> <!-- Top -->
        <item>1</item> <!-- Top -->
        <item>3</item> <!-- Bottom -->
        <item>3</item> <!-- Bottom -->
    </integer-array>

    <string translatable="false" name="config_secondaryBuiltInDisplayCutout">
      m 581.5,86 a 41.5,41.5 0 0 0 -83,0 41.5,41.5 0 0 0 83,0 z
      @left
    </string>

    <string translatable="false" name="config_secondaryBuiltInDisplayCutoutRectApproximation">
        m 484,0 h 112 v 152 h -112 z
        @left
    </string>

    <!-- Decouple status bar and cutout from configuration to avoid letterbox. -->
    <bool name="config_decoupleStatusBarAndDisplayCutoutFromScreenSize">true</bool>

    <!-- Radius of the software rounded corners. -->
    <dimen name="rounded_corner_radius">25px</dimen>

    <!-- Adjustment for software rounded corners since corners aren't perfectly round. -->
    <dimen name="rounded_corner_radius_adjustment">5px</dimen>

    <!-- Radius of the software rounded corners at the top of primary display in its natural
        orientation. If zero, the value of rounded_corner_radius is used. -->
    <dimen name="rounded_corner_radius_top">85px</dimen>
    <!-- For secondary display -->
    <dimen name="secondary_rounded_corner_radius_top">115px</dimen>

    <!-- Radius of the software rounded corners at the bottom of primary display in its natural
        orientation. If zero, the value of rounded_corner_radius is used. -->
    <dimen name="rounded_corner_radius_bottom">85px</dimen>
    <!-- For secondary display -->
    <dimen name="secondary_rounded_corner_radius_bottom">115px</dimen>

    <!-- 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_secondaryDisplayShape">m 1079.946,2228.66 c 0,0 0.18,21.63 -0.12,32.44 -0.27,9.87 -0.39,19.77 -1.53,29.57 -1.13,9.74 -2.58,19.5 -5.23,28.95 -2.71,9.67 -6.21,19.2 -10.829,28.12 -4.72,9.13 -10.449,17.83 -17.099,25.68 -6.69,7.9 -14.379,15.04 -22.689,21.24 -7.73,5.77 -16.209,10.61 -24.989,14.62 -8.57,3.91 -17.619,6.81 -26.769,9.05 -8.96,2.2 -18.159,3.37 -27.339,4.29 -9.29,0.93 -18.649,1.01 -27.979,1.23 -10.229,0.24 -30.698,0.1 -30.698,0.1 H 195.323 c 0,0 -21.629,0.17 -32.438,-0.12 -9.869,-0.27 -19.769,-0.39 -29.568,-1.53 -9.739,-1.13 -19.499,-2.59 -28.938,-5.23 -9.669,-2.71 -19.199,-6.21 -28.119,-10.83 -9.14,-4.73 -17.829,-10.46 -25.669,-17.1 -7.91,-6.7 -15.039,-14.39 -21.229,-22.69 -5.77,-7.74 -10.619,-16.21 -14.619,-24.99 -3.91,-8.57 -6.81,-17.62 -9.05,-26.77 -2.2,-8.96 -3.37,-18.16 -4.29,-27.34 -0.93,-9.29 -1.01,-18.65 -1.24,-27.98 -0.24,-10.23 -0.1,-30.7 -0.1,-30.7 L 0.054,195.334 c 0,0 -0.18,-21.63 0.12,-32.44 C 0.444,153.024 0.564,143.124 1.703,133.324 2.833,123.584 4.283,113.824 6.933,104.374 9.643,94.704 13.143,85.174 17.763,76.254 22.482,67.124 28.212,58.424 34.862,50.584 41.551,42.684 49.241,35.544 57.551,29.344 65.28,23.574 73.76,18.734 82.539,14.724 91.109,10.824 100.158,7.924 109.308,5.674 c 8.96,-2.2 18.159,-3.37 27.339,-4.29 9.29,-0.93 18.649,-1.01 27.979,-1.23 10.229,-0.24 30.698,-0.1 30.698,-0.1 h 689.314 c 0,0 21.629,-0.18 32.438,0.12 9.869,0.27 19.769,0.39 29.568,1.53 9.739,1.13 19.499,2.59 28.938,5.23 9.669,2.71 19.199,6.21 28.119,10.83 9.14,4.73 17.829,10.46 25.669,17.1 7.91,6.7 15.039,14.39 21.229,22.69 5.77,7.74 10.619,16.21 14.619,24.99 3.91,8.57 6.81,17.62 9.05,26.77 2.2,8.96 3.37,18.16 4.29,27.34 0.93,9.29 1.01,18.65 1.24,27.98 0.24,10.23 0.1,30.7 0.1,30.7 z</string>

    <!-- A string config in svg path format for the secondary 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.041,2004.805 V 146.519 c 0,0 -0.176,-14.867 0.198,-22.287 C 0.663,115.839 1.046,107.394 2.553,99.126 4.225,89.962 6.479,80.819 9.977,72.185 13.68,63.046 18.377,54.207 24.187,46.24 30.028,38.231 36.947,30.898 44.657,24.668 51.905,18.813 60.025,13.937 68.523,10.118 76.345,6.602 84.716,4.282 93.122,2.583 100.634,1.064 108.342,0.675 115.994,0.248 122.769,-0.13 136.349,0.049 136.349,0.049 H 1939.018 c 0,0 14.16,-0.202 21.223,0.211 7.749,0.454 15.557,0.888 23.152,2.487 8.585,1.807 17.13,4.272 25.081,7.979 8.624,4.02 16.811,9.173 24.117,15.269 7.652,6.384 14.512,13.844 20.258,21.986 5.571,7.893 10.035,16.628 13.505,25.645 3.267,8.49 5.266,17.468 6.753,26.443 1.343,8.107 1.427,16.375 1.929,24.577 0.446,7.284 0.965,21.872 0.965,21.872 V 2004.805 c 0,0 -0.51,15.21 -0.965,22.805 -0.497,8.303 -0.455,16.692 -1.929,24.878 -1.656,9.197 -4.254,18.272 -7.717,26.951 -3.61,9.047 -7.794,18.024 -13.505,25.915 -5.942,8.209 -13.336,15.404 -21.223,21.768 -7.088,5.72 -14.838,10.792 -23.152,14.512 -7.944,3.555 -16.527,5.651 -25.081,7.256 -7.615,1.429 -15.423,1.53 -23.152,2.073 -6.745,0.474 -20.258,1.037 -20.258,1.037 H 136.349 c 0,0 -13.835,-0.558 -20.74,-1.037 -7.797,-0.541 -15.701,-0.49 -23.355,-2.073 -8.623,-1.783 -17.078,-4.62 -25.081,-8.293 -8.535,-3.917 -16.934,-8.498 -24.146,-14.512 -7.778,-6.486 -14.272,-14.505 -20.075,-22.805 -5.41,-7.738 -10.07,-16.098 -13.541,-24.878 -3.413,-8.633 -5.434,-17.803 -7.012,-26.951 -1.415,-8.203 -1.775,-16.563 -2.173,-24.878 -0.347,-7.248 -0.185,-21.768 -0.185,-21.768 z</string>

    <!-- MMS user agent string -->
    <string name="config_mms_user_agent" translatable="false">ggh2x</string>
    <!-- MMS user agent profile url -->
    <string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/GGH2X.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>

    <!-- Corners radius for activity presented the letterbox mode. Values < 0 enable rounded
         corners with radius equal to min between device bottom corner radii. Default 0 value turns
         off rounded corners logic in LetterboxUiController. Values are in pixel. -->
    <integer name="config_letterboxActivityCornersRadius">64</integer>

    <!-- Whether we should persist the brightness value in nits for the default display even if
         the underlying display device changes. -->
    <bool name="config_persistBrightnessNitsForDefaultDisplay">true</bool>

    <!-- The width in dp to use to detect vertical thin letterboxing.
         If W is the available width and w is the letterbox width, an app
         is thin letterboxed if the value here is < (W - w) / 2
         If the value is < 0 the thin letterboxing policy is disabled -->
    <dimen name="config_letterboxThinLetterboxWidthDp">62dp</dimen>

    <!-- The height in dp to use to detect horizontal thin letterboxing
         If H is the available height and h is the letterbox height, an app
         is thin letterboxed if the value here is < (H - h) / 2
         If the value is < 0 the thin letterboxing policy is disabled -->
    <dimen name="config_letterboxThinLetterboxHeightDp">-1dp</dimen>
</resources>
