blob: a5e36c6e468d1304252d7e89529faba3fe69f56d (
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
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
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"
app:srcCompat="@drawable/ic_refresh_black_24dp"
android:contentDescription="@string/restart" />
<ImageButton
android:id="@+id/button_start_drag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="@color/button_tint"
app:srcCompat="@drawable/ic_play_arrow_black_24dp"
android:contentDescription="@string/start" />
<ImageButton
android:id="@+id/button_finish_drag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="@color/button_tint"
app:srcCompat="@drawable/ic_check_black_24dp"
android:contentDescription="@string/finish" />
</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="end"
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_alignEnd="@id/latency_chart"
android:layout_alignTop="@id/latency_chart"
android:tint="@color/button_tint"
android:layout_margin="5dp"
android:text="@string/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>
|