blob: b789579e1a3b1ded2d5e472ea98e9f66d70f6933 [file] [log] [blame]
<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>