aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/layout
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/layout
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/layout')
-rw-r--r--android/WALT/app/src/main/res/layout/activity_crash_log.xml11
-rw-r--r--android/WALT/app/src/main/res/layout/activity_main.xml27
-rw-r--r--android/WALT/app/src/main/res/layout/dialog_upload.xml22
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_about.xml57
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_audio.xml68
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_auto_run.xml15
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_diagnostics.xml206
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_drag_latency.xml123
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_front_page.xml248
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_log.xml17
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_midi.xml54
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_screen_response.xml76
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_tap_latency.xml99
-rw-r--r--android/WALT/app/src/main/res/layout/histogram.xml23
-rw-r--r--android/WALT/app/src/main/res/layout/line_chart.xml23
-rw-r--r--android/WALT/app/src/main/res/layout/numberpicker_dialog.xml19
-rw-r--r--android/WALT/app/src/main/res/layout/toolbar.xml8
17 files changed, 1096 insertions, 0 deletions
diff --git a/android/WALT/app/src/main/res/layout/activity_crash_log.xml b/android/WALT/app/src/main/res/layout/activity_crash_log.xml
new file mode 100644
index 0000000..0f34aa5
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/activity_crash_log.xml
@@ -0,0 +1,11 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scrollbars="vertical"
+ android:id="@+id/txt_crash_log"/>
+
+</RelativeLayout>
diff --git a/android/WALT/app/src/main/res/layout/activity_main.xml b/android/WALT/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..57e7679
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,27 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+
+ <include
+ android:id="@+id/toolbar_main"
+ layout="@layout/toolbar" />
+
+ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+
+ </FrameLayout>
+
+ </LinearLayout>
+
+</RelativeLayout>
diff --git a/android/WALT/app/src/main/res/layout/dialog_upload.xml b/android/WALT/app/src/main/res/layout/dialog_upload.xml
new file mode 100644
index 0000000..be990a2
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/dialog_upload.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp">
+
+ <EditText
+ android:id="@+id/edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="Enter URL"
+ android:inputType="textUri" />
+
+ <ProgressBar
+ android:id="@+id/progress_bar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone"
+ android:layout_centerInParent="true" />
+
+</RelativeLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_about.xml b/android/WALT/app/src/main/res/layout/fragment_about.xml
new file mode 100644
index 0000000..8baa80e
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_about.xml
@@ -0,0 +1,57 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context="org.chromium.latency.walt.AboutFragment">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:autoLink="all"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="32dp"
+ android:scrollbars="vertical"
+ android:text="@string/disclaimer"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:scrollbars="vertical"
+ android:text="@string/about_description" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:autoLink="web"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:scrollbars="vertical"
+ android:text="@string/more_info" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:autoLink="web"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:scrollbars="vertical"
+ android:text="@string/privacy_policy" />
+
+ <TextView
+ android:id="@+id/txt_build_info"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:scrollbars="vertical" />
+
+</LinearLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_audio.xml b/android/WALT/app/src/main/res/layout/fragment_audio.xml
new file mode 100644
index 0000000..e11f157
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_audio.xml
@@ -0,0 +1,68 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:walt="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/button_stop_audio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_stop_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_start_audio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_play_arrow_black_24dp" />
+
+ <Spinner
+ android:id="@+id/spinner_audio_mode"
+ android:layout_height="45dp"
+ android:layout_width="fill_parent"
+ android:layout_toRightOf="@id/button_stop_audio"
+ android:layout_toLeftOf="@id/button_start_audio"
+ android:prompt="@string/audio_mode"/>
+
+ </RelativeLayout>
+
+ <include
+ android:id="@+id/chart_layout"
+ layout="@layout/line_chart" />
+
+ <org.chromium.latency.walt.HistogramChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="gone"
+ walt:description="Latency [ms]"
+ walt:binWidth="0.1" />
+
+ <!-- For now the results are just listed in this textView -->
+ <TextView
+ android:id="@+id/txt_box_audio"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:background="#aaaaaa"
+ android:gravity="bottom"
+ android:scrollbars="vertical" />
+
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_auto_run.xml b/android/WALT/app/src/main/res/layout/fragment_auto_run.xml
new file mode 100644
index 0000000..7e8ca4a
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_auto_run.xml
@@ -0,0 +1,15 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.AutoRunFragment"
+ android:id="@+id/fragment_auto_run">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/txt_log_auto_run"
+ android:scrollbars = "vertical"
+ android:gravity="bottom" />
+
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_diagnostics.xml b/android/WALT/app/src/main/res/layout/fragment_diagnostics.xml
new file mode 100644
index 0000000..82a3cae
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_diagnostics.xml
@@ -0,0 +1,206 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context="org.chromium.latency.walt.DiagnosticsFragment">
+
+ <!-- The whole list of options -->
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="3">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:orientation="vertical">
+
+ <!-- Reconnect -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickReconnect">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_usb_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Reconnect" />
+
+ <TextView
+ android:visibility="gone"
+ style="@style/MenuTextBottom"
+ android:text="TBD: Conn status" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Reconnect -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Ping -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickPing">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_swap_horiz_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Ping" />
+
+ <TextView
+ style="@style/MenuTextBottom"
+ android:text="Ping over USB with 1 byte" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Ping -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- ReSync -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickSync">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_schedule_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Re-sync clocks" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of ReSync -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- CheckDrift -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickCheckDrift">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_timelapse_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Check clock drift" />
+
+ <TextView
+ style="@style/MenuTextBottom"
+ android:text="Check how much clocks diverged" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of CheckDrift -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Program -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickProgram">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_system_update_alt_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Update WALT Firmware" />
+
+ <TextView
+ style="@style/MenuTextBottom"
+ android:text="Please press the button on the Teensy first" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- Program -->
+
+ <!--<View style="@style/MenuDivider" />-->
+
+ <!-- Send T TODO: replace with send any char, it says nothing on the log, broadcast? -->
+ <!--
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickSendT">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_swap_horiz_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Send 'T'" />
+
+ <TextView
+ style="@style/MenuTextBottom"
+ android:text="..." />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ -->
+ <!-- End of Send T -->
+ </LinearLayout>
+ </ScrollView>
+
+ <TextView
+ android:id="@+id/txt_log_diag"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:background="#BBBBBB"
+ android:gravity="bottom"
+ android:scrollbars="vertical" />
+
+</LinearLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_drag_latency.xml b/android/WALT/app/src/main/res/layout/fragment_drag_latency.xml
new file mode 100644
index 0000000..f9b65d0
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_drag_latency.xml
@@ -0,0 +1,123 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/button_restart_drag"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_refresh_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_start_drag"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_play_arrow_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_finish_drag"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_check_black_24dp" />
+ </LinearLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:gravity="right"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/txt_cross_counts"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:padding="4dp"
+ android:text=""
+
+ android:textColor="#00ff00" />
+
+ <TextView
+ android:id="@+id/txt_drag_counts"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:padding="4dp"
+ android:text=""
+
+ android:textColor="#ff0000" />
+ </LinearLayout>
+
+ <RelativeLayout
+ android:id="@+id/latency_chart_layout"
+ android:layout_width="match_parent"
+ android:visibility="gone"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:layout_margin="5dp"
+ android:background="@drawable/border">
+
+ <com.github.mikephil.charting.charts.ScatterChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="5dp" />
+
+ <Button
+ android:id="@+id/button_close_chart"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:tint="@color/button_tint"
+ android:layout_margin="5dp"
+ android:text="Close" />
+ </RelativeLayout>
+
+ <TextView
+ android:id="@+id/txt_log_drag_latency"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:background="#000000"
+ android:gravity="bottom"
+ android:textColor="#ffffff"
+ android:scrollbars="vertical" />
+
+ </LinearLayout>
+
+ <!-- Overlay semi-transparent view that catches the touch events -->
+ <org.chromium.latency.walt.TouchCatcherView
+ android:id="@+id/tap_catcher"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#01000000" />
+
+ </FrameLayout>
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_front_page.xml b/android/WALT/app/src/main/res/layout/fragment_front_page.xml
new file mode 100644
index 0000000..ec3a95a
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_front_page.xml
@@ -0,0 +1,248 @@
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ tools:context="org.chromium.latency.walt.FrontPageFragment">
+ <!-- The whole list of options -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <!-- Diagnostics -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickClockSync">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_search_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Diagnostics" />
+
+ <TextView
+ style="@style/MenuTextBottom"
+ android:text="TBD: Connection/sync status"
+ android:visibility="gone" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Diagnostics -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Tap latency -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickTapLatency">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_radio_button_checked_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Tap latency" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Tap latency -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Drag latency -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickDragLatency">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_swap_vert_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Drag latency" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End drag latency -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Screen response -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickScreenResponse">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_brightness_medium_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Screen response" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Screen response -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Audio -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickAudio">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_volume_up_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Audio latency" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Audio -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- MIDI -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickMIDI" >
+
+ <ImageView
+ android:id="@+id/midi_image"
+ style="@style/MenuIconStyle"
+ android:tint="@color/ColorDisabled"
+ android:src="@drawable/ic_music_note_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/midi_text"
+ style="@style/MenuTextTop"
+ android:textColor="@color/ColorDisabled"
+ android:text="MIDI latency" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of MIDI -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Log -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickOpenLog">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_receipt_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="View log" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Log -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- Settings -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickOpenSettings">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_settings_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="Settings" />
+
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of Settings -->
+
+ <View style="@style/MenuDivider" />
+
+ <!-- About / Help -->
+ <LinearLayout
+ style="@style/MenuItemStyle"
+ android:onClick="onClickOpenAbout">
+
+ <ImageView
+ style="@style/MenuIconStyle"
+ android:src="@drawable/ic_help_outline_black_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ style="@style/MenuTextTop"
+ android:text="About" />
+
+ </LinearLayout>
+ </LinearLayout>
+ <!-- End of About -->
+
+
+ </LinearLayout>
+</ScrollView>
diff --git a/android/WALT/app/src/main/res/layout/fragment_log.xml b/android/WALT/app/src/main/res/layout/fragment_log.xml
new file mode 100644
index 0000000..0d953d9
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_log.xml
@@ -0,0 +1,17 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.LogFragment">
+
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/txt_log"
+ android:scrollbars = "vertical"
+ android:gravity="bottom"
+
+ />
+
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_midi.xml b/android/WALT/app/src/main/res/layout/fragment_midi.xml
new file mode 100644
index 0000000..70f9be5
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_midi.xml
@@ -0,0 +1,54 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:walt="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/button_start_midi_in"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentStart="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_input_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_start_midi_out"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_output_black_24dp" />
+ </RelativeLayout>
+
+ <org.chromium.latency.walt.HistogramChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="gone"
+ walt:binWidth="0.5" />
+
+ <!-- For now the results are just listed in this textView -->
+ <TextView
+ android:id="@+id/txt_box_midi"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:background="#aaaaaa"
+ android:gravity="bottom"
+ android:scrollbars="vertical" />
+
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_screen_response.xml b/android/WALT/app/src/main/res/layout/fragment_screen_response.xml
new file mode 100644
index 0000000..b789579
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_screen_response.xml
@@ -0,0 +1,76 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:walt="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:id="@+id/button_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/button_stop_screen_response"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_stop_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_start_screen_response"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_play_arrow_black_24dp" />
+
+ <Spinner
+ android:id="@+id/spinner_screen_response"
+ android:layout_height="45dp"
+ android:layout_width="fill_parent"
+ android:layout_toRightOf="@id/button_stop_screen_response"
+ android:layout_toLeftOf="@id/button_start_screen_response"
+ android:prompt="@string/screen_response_mode"/>
+ </RelativeLayout>
+
+ <include
+ android:id="@+id/brightness_chart_layout"
+ layout="@layout/line_chart" />
+
+ <org.chromium.latency.walt.HistogramChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="gone"
+ walt:description="Blink Latency [ms]"
+ walt:numDataSets="2"
+ walt:binWidth="5" />
+
+ <!-- The big box that flickers between black and white -->
+ <TextView
+ android:id="@+id/txt_black_box_screen"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:background="#aaaaaa"
+ android:gravity="bottom"
+ android:scrollbars="vertical" />
+
+ <org.chromium.latency.walt.FastPathSurfaceView
+ android:id="@+id/fast_path_surface"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:visibility="gone" />
+
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/fragment_tap_latency.xml b/android/WALT/app/src/main/res/layout/fragment_tap_latency.xml
new file mode 100644
index 0000000..2c701d2
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_tap_latency.xml
@@ -0,0 +1,99 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:walt="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ImageButton
+ android:id="@+id/button_finish_tap"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_check_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_restart_tap"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_play_arrow_black_24dp" />
+ </RelativeLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:gravity="right"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/txt_tap_counts"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:padding="4dp"
+ android:text=""
+ android:textColor="#00ff00" />
+
+ <TextView
+ android:id="@+id/txt_move_count"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#000000"
+ android:padding="4dp"
+ android:text=""
+ android:textColor="#ff0000" />
+ </LinearLayout>
+
+ <org.chromium.latency.walt.HistogramChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="gone"
+ walt:description="Tap Latency [ms]"
+ walt:binWidth="5"
+ walt:numDataSets="2" />
+
+ <TextView
+ android:id="@+id/txt_log_tap_latency"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:background="#000000"
+ android:gravity="bottom"
+ android:textColor="#ffffff"
+ android:scrollbars="vertical" />
+ </LinearLayout>
+
+ <!-- Overlay semi-transparent view that catches the touch events -->
+ <TextView
+ android:id="@+id/tap_catcher"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#01000000" />
+
+ </FrameLayout>
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/WALT/app/src/main/res/layout/histogram.xml b/android/WALT/app/src/main/res/layout/histogram.xml
new file mode 100644
index 0000000..ca6dc1e
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/histogram.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/latency_chart_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="5dp"
+ android:background="@drawable/border">
+ <com.github.mikephil.charting.charts.BarChart
+ android:id="@+id/bar_chart"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="10dp"
+ android:gravity="bottom" />
+ <Button
+ android:id="@+id/button_close_bar_chart"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:tint="@color/button_tint"
+ android:layout_margin="5dp"
+ android:text="Close" />
+</RelativeLayout>
diff --git a/android/WALT/app/src/main/res/layout/line_chart.xml b/android/WALT/app/src/main/res/layout/line_chart.xml
new file mode 100644
index 0000000..7de4cfb
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/line_chart.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="5dp"
+ android:background="@drawable/border"
+ android:visibility="gone">
+ <com.github.mikephil.charting.charts.LineChart
+ android:id="@+id/chart"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="10dp"
+ android:gravity="bottom" />
+ <Button
+ android:id="@+id/button_close_chart"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:tint="@color/button_tint"
+ android:layout_margin="5dp"
+ android:text="Close" />
+</RelativeLayout>
diff --git a/android/WALT/app/src/main/res/layout/numberpicker_dialog.xml b/android/WALT/app/src/main/res/layout/numberpicker_dialog.xml
new file mode 100644
index 0000000..05c9e99
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/numberpicker_dialog.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="4dp"
+ android:paddingStart="6dp"
+ android:paddingEnd="6dp" >
+ <TextView
+ android:id="@android:id/message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
+ <org.chromium.latency.walt.CustomNumberPicker
+ android:id="@+id/numpicker_pref"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"/>
+</LinearLayout>
diff --git a/android/WALT/app/src/main/res/layout/toolbar.xml b/android/WALT/app/src/main/res/layout/toolbar.xml
new file mode 100644
index 0000000..d02028d
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/toolbar.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/ColorPrimary"
+ android:elevation="4dp">
+
+</android.support.v7.widget.Toolbar> \ No newline at end of file