1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- Resources to configure experimental car service based on each OEM's preference. -->
18<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
19
20    <!-- The preferred driver awareness suppliers for dispatching the current driver awareness
21         level to DriverDistractionExperimentalFeatureService. Each component must be service that
22         extends DriverAwarenessSupplierService. The ordering of this list matters - items should
23         be ordered from lowest to highest priority. That is to say, the first index is the lowest
24         priority supplier and the index of items after that are higher. Data from higher priority
25         suppliers is always preferred unless that data is stale. -->
26    <string-array translatable="false" name="preferredDriverAwarenessSuppliers">
27        <item>
28            com.android.experimentalcar/.SampleExternalDriverAwarenessSupplier
29        </item>
30        <item>
31            com.android.experimentalcar/.GazeDriverAwarenessSupplier
32        </item>
33    </string-array>
34
35    <!-- The maximum, and default, number of permits a driver has. Each unthrottled tap will
36         decrement the current permit count, down to a minimum value of 0. Permits will meanwhile be
37         refreshed at a rate of 1 permit every
38         @integer/driverAwarenessTouchModelPermitRefreshIntervalMs milliseconds, up to this maximum
39         value. -->
40    <integer name="driverAwarenessTouchModelMaxPermits">6</integer>
41
42    <!-- Number of milliseconds for the interval that permits should be refreshed. -->
43    <integer name="driverAwarenessTouchModelPermitRefreshIntervalMs">2000</integer>
44
45    <!-- Number of milliseconds that taps should be ignored following a first tap. -->
46    <integer name="driverAwarenessTouchModelThrottleMs">600</integer>
47
48    <!-- Initial value for the gaze based attention buffer [0, 1]. -->
49    <item name="driverAwarenessGazeModelInitialValue" format="float" type="fraction">1</item>
50
51    <!-- Rate at which the attention buffer decreases when the driver is looking off-road, in attention units/second-->
52    <item name="driverAwarenessGazeModelDecayRate" format="float" type="fraction">0.167</item>
53
54     <!-- Rate at which the attention buffer increases when the driver is looking on-road, in attention units/second-->
55    <item name="driverAwarenessGazeModelGrowthRate" format="float" type="fraction">0.167</item>
56
57</resources>
58