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

<!-- These resources are around just to allow their values to be customized
     for different hardware and product builds.  Do not translate.

     NOTE: The naming convention is "config_camelCaseValue". -->

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

    <!-- Whether to reset Battery Stats on unplug when the battery level is high. -->
    <bool name="config_batteryStatsResetOnUnplugHighBatteryLevel">true</bool>
    <!-- Whether to reset Battery Stats on unplug if the battery was significantly charged -->
    <bool name="config_batteryStatsResetOnUnplugAfterSignificantCharge">true</bool>

    <!-- Power stats collection throttle periods in milliseconds.  Since power stats collection
    is a relatively expensive operation, these throttle period may need to be adjusted for low-power
    devices.

    The syntax of this config string is as follows:
    <pre>
       power-component-name1:throttle-period-millis1 power-component-name2:throttle-period-ms2 ...
    </pre>
    Use "*" for the power-component-name to represent the default for all power components
    not mentioned by name.
    -->
    <string name="config_powerStatsThrottlePeriods">cpu:60000 *:300000</string>

    <!-- PowerStats aggregation period in milliseconds. This is the interval at which the power
    stats aggregation procedure is performed and the results stored in PowerStatsStore. -->
    <integer name="config_powerStatsAggregationPeriod">14400000</integer>

    <!-- PowerStats aggregation span duration in milliseconds. This is the length of battery
    history time for every aggregated power stats span that is stored in PowerStatsStore.
    It should not be larger than config_powerStatsAggregationPeriod (but it can be the same) -->
    <integer name="config_aggregatedPowerStatsSpanDuration">3600000</integer>

    <!-- BatteryUsageStats accumulation period as determined by the size of accumulated
    battery history, in bytes. -->
    <integer name="config_accumulatedBatteryUsageStatsSpanSize">32768</integer>

    <!-- Size of storage allocated to battery history, in bytes -->
    <integer name="config_batteryHistoryStorageSize">4194304</integer>
</resources>
