blob: 2a8db9bee1cce038bd5b9af92c78a907a8a0b643 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 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 to configure experimental car service based on each OEM's preference. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- The preferred driver awareness suppliers for dispatching the current driver awareness
level to DriverDistractionExperimentalFeatureService. Each component must be service that
extends DriverAwarenessSupplierService. The ordering of this list matters - items should
be ordered from lowest to highest priority. That is to say, the first index is the lowest
priority supplier and the index of items after that are higher. Data from higher priority
suppliers is always preferred unless that data is stale. -->
<string-array translatable="false" name="preferredDriverAwarenessSuppliers">
<item>
com.android.experimentalcar/.SampleExternalDriverAwarenessSupplier
</item>
<item>
com.android.experimentalcar/.GazeDriverAwarenessSupplier
</item>
</string-array>
<!-- The maximum, and default, number of permits a driver has. Each unthrottled tap will
decrement the current permit count, down to a minimum value of 0. Permits will meanwhile be
refreshed at a rate of 1 permit every
@integer/driverAwarenessTouchModelPermitRefreshIntervalMs milliseconds, up to this maximum
value. -->
<integer name="driverAwarenessTouchModelMaxPermits">6</integer>
<!-- Number of milliseconds for the interval that permits should be refreshed. -->
<integer name="driverAwarenessTouchModelPermitRefreshIntervalMs">2000</integer>
<!-- Number of milliseconds that taps should be ignored following a first tap. -->
<integer name="driverAwarenessTouchModelThrottleMs">600</integer>
<!-- Initial value for the gaze based attention buffer [0, 1]. -->
<item name="driverAwarenessGazeModelInitialValue" format="float" type="fraction">1</item>
<!-- Rate at which the attention buffer decreases when the driver is looking off-road, in attention units/second-->
<item name="driverAwarenessGazeModelDecayRate" format="float" type="fraction">0.167</item>
<!-- Rate at which the attention buffer increases when the driver is looking on-road, in attention units/second-->
<item name="driverAwarenessGazeModelGrowthRate" format="float" type="fraction">0.167</item>
</resources>