aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/xml/preferences.xml
blob: 58a64f618af9168178f2294fa1d2e3f2c50e9a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:walt="http://schemas.android.com/apk/res-auto">

    <androidx.preference.PreferenceScreen
        android:key="pref_general_screen"
        android:persistent="false"
        android:title="General">

        <SwitchPreference
            android:key="@string/preference_systrace"
            android:title="Enable systrace logging"
            android:defaultValue="true" />

        <PreferenceCategory android:title="Log Uploading">

            <EditTextPreference
                android:key="@string/preference_log_url"
                android:title="URL to upload logs"
                android:dialogTitle="Enter URL to upload logs"
                android:defaultValue=""
                android:inputType="textUri" />

            <SwitchPreference
                android:key="@string/preference_auto_upload_log"
                android:title="Auto-upload logs"
                android:summary="Will upload logs to URL after each test"
                android:defaultValue="false" />

        </PreferenceCategory>

    </androidx.preference.PreferenceScreen>

    <androidx.preference.PreferenceScreen
        android:key="pref_tap_screen"
        android:persistent="false"
        android:title="Tap latency">

        <SwitchPreference
            android:key="@string/preference_show_tap_histogram"
            android:title="Show live histogram for tap test"
            android:defaultValue="true" />

    </androidx.preference.PreferenceScreen>

    <androidx.preference.PreferenceScreen
        android:key="pref_screen_response_screen"
        android:persistent="false"
        android:title="Screen response">

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="20"
            android:dialogTitle="Number of blinks for screen latency measurement"
            android:key="@string/preference_screen_blinks"
            android:summary="%s blinks per test"
            android:title="Blink latency test length"
            walt:maxValue="1000"
            walt:minValue="1" />

        <SwitchPreference
            android:key="@string/preference_auto_increase_brightness"
            android:title="Automatically increase brightness for test"
            android:defaultValue="true" />

        <SwitchPreference
            android:key="@string/preference_show_blink_histogram"
            android:title="Show live histogram for blink latency test"
            android:defaultValue="true" />

        <SwitchPreference
            android:key="@string/preference_screen_fullscreen"
            android:title="Test in fullscreen mode"
            android:defaultValue="true" />

    </androidx.preference.PreferenceScreen>

    <androidx.preference.PreferenceScreen
        android:key="pref_audio_screen"
        android:persistent="false"
        android:title="Audio">

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="5"
            android:dialogTitle="Number of repetitions for audio input latency"
            android:key="@string/preference_audio_in_reps"
            android:summary="%s repetitions per test"
            android:title="Audio input test length"
            walt:maxValue="1000"
            walt:minValue="1" />

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="10"
            android:dialogTitle="Number of repetitions for audio output latency"
            android:key="@string/preference_audio_out_reps"
            android:summary="%s repetitions per test"
            android:title="Audio output test length"
            walt:maxValue="1000"
            walt:minValue="1" />

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="5000"
            android:dialogTitle="Threshold for audio recording test"
            android:key="@string/preference_audio_in_threshold"
            android:summary="%s"
            android:title="Threshold for audio recording test"
            walt:maxValue="100000"
            walt:minValue="1" />

    </androidx.preference.PreferenceScreen>

    <androidx.preference.PreferenceScreen
        android:key="pref_midi_screen"
        android:persistent="false"
        android:title="MIDI">

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="100"
            android:dialogTitle="Number of repetitions for MIDI input measurement"
            android:key="@string/preference_midi_in_reps"
            android:summary="%s repetitions per test"
            android:title="MIDI input test length"
            walt:maxValue="1000"
            walt:minValue="1" />

        <org.chromium.latency.walt.NumberPickerPreference
            android:defaultValue="10"
            android:dialogTitle="Number of repetitions for MIDI output measurement"
            android:key="@string/preference_midi_out_reps"
            android:summary="%s repetitions per test"
            android:title="MIDI output test length"
            walt:maxValue="1000"
            walt:minValue="1" />

    </androidx.preference.PreferenceScreen>

</androidx.preference.PreferenceScreen>