1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2020, The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17<resources>
18    <!-- Time interval (in milliseconds) used to decide whether we should accelerate the controller
19    rotation for a rotate event. If the interval between the current rotate event and the previous
20    rotate event is smaller than this value, we'll treat the rotation event as 3 rotations. -->
21    <integer name="rotation_acceleration_3x_ms">20</integer>
22
23    <!-- Time interval (in milliseconds) used to decide whether we should accelerate the controller
24    rotation for a rotate event. If the interval between the current rotate event and the previous
25    rotate event is smaller than this value, we'll treat the rotation event as 2 rotations. -->
26    <integer name="rotation_acceleration_2x_ms">40</integer>
27
28    <!-- How many milliseconds to ignore TYPE_VIEW_CLICKED events after performing ACTION_CLICK or
29    injecting KEYCODE_DPAD_CENTER. -->
30    <integer name="ignore_view_clicked_ms">200</integer>
31    <!-- How many milliseconds to wait for TYPE_VIEW_SCROLLED events after scrolling. -->
32    <integer name="after_scroll_timeout_ms">200</integer>
33
34    <!-- How many milliseconds to wait for TYPE_VIEW_FOCUSED events after performing ACTION_FOCUS or
35    another actions which changes the focus. When rotating quickly, Android may take a while to send
36    these events so this needs to be fairly long.
37    -->
38    <integer name="after_focus_timeout_ms">60000</integer>
39
40    <!-- How many milliseconds the center button must be held down to trigger a long-press. Zero
41    indicates the system default long-press timeout should be used. -->
42    <integer name="long_press_ms">0</integer>
43
44    <!-- Global actions to perform when the user nudges up, down, left, or right off the edge of the
45         screen. No global action is performed if the relevant element of this array is -1
46         (INVALID_GLOBAL_ACTION). -->
47    <integer-array name="off_screen_nudge_global_actions">
48        <item>-1</item>
49        <item>-1</item>
50        <item>-1</item>
51        <item>-1</item>
52    </integer-array>
53
54    <!-- Key codes of click events to inject when the user nudges up, down, left, or right off the
55         edge of the screen. No event is injected if the relevant element of this array is 0
56         (KEYCODE_UNKNOWN). -->
57    <integer-array name="off_screen_nudge_key_codes">
58        <item>0</item>
59        <item>0</item>
60        <item>0</item>
61        <item>0</item>
62    </integer-array>
63</resources>
64