• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
2    xmlns:walt="http://schemas.android.com/apk/res/org.chromium.latency.walt">
3
4    <android.support.v7.preference.PreferenceScreen
5        android:key="pref_general_screen"
6        android:persistent="false"
7        android:title="General">
8
9        <SwitchPreference
10            android:key="@string/preference_systrace"
11            android:title="Enable systrace logging"
12            android:defaultValue="true" />
13
14        <PreferenceCategory android:title="Log Uploading">
15
16            <EditTextPreference
17                android:key="@string/preference_log_url"
18                android:title="URL to upload logs"
19                android:dialogTitle="Enter URL to upload logs"
20                android:defaultValue=""
21                android:inputType="textUri" />
22
23            <SwitchPreference
24                android:key="@string/preference_auto_upload_log"
25                android:title="Auto-upload logs"
26                android:summary="Will upload logs to URL after each test"
27                android:defaultValue="false" />
28
29        </PreferenceCategory>
30
31    </android.support.v7.preference.PreferenceScreen>
32
33    <android.support.v7.preference.PreferenceScreen
34        android:key="pref_tap_screen"
35        android:persistent="false"
36        android:title="Tap latency">
37
38        <SwitchPreference
39            android:key="@string/preference_show_tap_histogram"
40            android:title="Show live histogram for tap test"
41            android:defaultValue="true" />
42
43    </android.support.v7.preference.PreferenceScreen>
44
45    <android.support.v7.preference.PreferenceScreen
46        android:key="pref_screen_response_screen"
47        android:persistent="false"
48        android:title="Screen response">
49
50        <org.chromium.latency.walt.NumberPickerPreference
51            android:defaultValue="20"
52            android:dialogTitle="Number of blinks for screen latency measurement"
53            android:key="@string/preference_screen_blinks"
54            android:summary="%s blinks per test"
55            android:title="Blink latency test length"
56            walt:maxValue="1000"
57            walt:minValue="1" />
58
59        <SwitchPreference
60            android:key="@string/preference_auto_increase_brightness"
61            android:title="Automatically increase brightness for test"
62            android:defaultValue="true" />
63
64        <SwitchPreference
65            android:key="@string/preference_show_blink_histogram"
66            android:title="Show live histogram for blink latency test"
67            android:defaultValue="true" />
68
69        <SwitchPreference
70            android:key="@string/preference_screen_fullscreen"
71            android:title="Test in fullscreen mode"
72            android:defaultValue="true" />
73
74    </android.support.v7.preference.PreferenceScreen>
75
76    <android.support.v7.preference.PreferenceScreen
77        android:key="pref_audio_screen"
78        android:persistent="false"
79        android:title="Audio">
80
81        <org.chromium.latency.walt.NumberPickerPreference
82            android:defaultValue="5"
83            android:dialogTitle="Number of repetitions for audio input latency"
84            android:key="@string/preference_audio_in_reps"
85            android:summary="%s repetitions per test"
86            android:title="Audio input test length"
87            walt:maxValue="1000"
88            walt:minValue="1" />
89
90        <org.chromium.latency.walt.NumberPickerPreference
91            android:defaultValue="10"
92            android:dialogTitle="Number of repetitions for audio output latency"
93            android:key="@string/preference_audio_out_reps"
94            android:summary="%s repetitions per test"
95            android:title="Audio output test length"
96            walt:maxValue="1000"
97            walt:minValue="1" />
98
99        <org.chromium.latency.walt.NumberPickerPreference
100            android:defaultValue="5000"
101            android:dialogTitle="Threshold for audio recording test"
102            android:key="@string/preference_audio_in_threshold"
103            android:summary="%s"
104            android:title="Threshold for audio recording test"
105            walt:maxValue="100000"
106            walt:minValue="1" />
107
108    </android.support.v7.preference.PreferenceScreen>
109
110    <android.support.v7.preference.PreferenceScreen
111        android:key="pref_midi_screen"
112        android:persistent="false"
113        android:title="MIDI">
114
115        <org.chromium.latency.walt.NumberPickerPreference
116            android:defaultValue="100"
117            android:dialogTitle="Number of repetitions for MIDI input measurement"
118            android:key="@string/preference_midi_in_reps"
119            android:summary="%s repetitions per test"
120            android:title="MIDI input test length"
121            walt:maxValue="1000"
122            walt:minValue="1" />
123
124        <org.chromium.latency.walt.NumberPickerPreference
125            android:defaultValue="10"
126            android:dialogTitle="Number of repetitions for MIDI output measurement"
127            android:key="@string/preference_midi_out_reps"
128            android:summary="%s repetitions per test"
129            android:title="MIDI output test length"
130            walt:maxValue="1000"
131            walt:minValue="1" />
132
133    </android.support.v7.preference.PreferenceScreen>
134
135</android.support.v7.preference.PreferenceScreen>
136