aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/xml/preferences.xml
diff options
context:
space:
mode:
authorAndrew Lehmer <alehmer@google.com>2017-04-26 14:58:59 -0700
committerAndrew Lehmer <alehmer@google.com>2017-04-26 14:58:59 -0700
commite76dcf96b0c451e46cddfa695de8feeb92533937 (patch)
treeed9a45d409f988f517e6c3f3a685cbf81ac45a5a /android/WALT/app/src/main/res/xml/preferences.xml
parentbcf013dda8ffac9fd76937be6441b44bb9f3586f (diff)
downloadwalt-e76dcf96b0c451e46cddfa695de8feeb92533937.tar.gz
Import google/walt
Cloned from https://github.com/google/walt.git without modification. Bug: 36896528 Test: N/A
Diffstat (limited to 'android/WALT/app/src/main/res/xml/preferences.xml')
-rw-r--r--android/WALT/app/src/main/res/xml/preferences.xml135
1 files changed, 135 insertions, 0 deletions
diff --git a/android/WALT/app/src/main/res/xml/preferences.xml b/android/WALT/app/src/main/res/xml/preferences.xml
new file mode 100644
index 0000000..6482571
--- /dev/null
+++ b/android/WALT/app/src/main/res/xml/preferences.xml
@@ -0,0 +1,135 @@
+<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:walt="http://schemas.android.com/apk/res/org.chromium.latency.walt">
+
+ <android.support.v7.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>
+
+ </android.support.v7.preference.PreferenceScreen>
+
+ <android.support.v7.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" />
+
+ </android.support.v7.preference.PreferenceScreen>
+
+ <android.support.v7.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" />
+
+ </android.support.v7.preference.PreferenceScreen>
+
+ <android.support.v7.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" />
+
+ </android.support.v7.preference.PreferenceScreen>
+
+ <android.support.v7.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" />
+
+ </android.support.v7.preference.PreferenceScreen>
+
+</android.support.v7.preference.PreferenceScreen>