blob: 5d0e845c42328593180d01b3c62eea446e1094b5 (
plain) (
blame)
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
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Debug Mirror layout: TextureView, the same top status bar as
production, plus a bottom-left stats overlay that screencap can
capture (target host, video/audio/texture-update counts, last
forwarded event). The TextureView path is used because emulators
don't composite SurfaceView's hardware layer into screencap. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000">
<TextureView
android:id="@+id/surface"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"/>
<LinearLayout
android:id="@+id/status_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:orientation="horizontal"
android:gravity="center_vertical"
android:padding="8dp"
android:background="#a0000000">
<TextView
android:id="@+id/status_text"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textColor="#ffffff"
android:textSize="14sp"
android:fontFamily="monospace"
android:singleLine="true"
android:ellipsize="end"
android:text="@string/connecting"/>
<Button
android:id="@+id/record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="@string/record"/>
<Button
android:id="@+id/reconnect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reconnect"
android:visibility="gone"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|start"
android:orientation="vertical"
android:padding="16dp"
android:background="#a0000000">
<TextView
android:id="@+id/overlay_target"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff"
android:textSize="16sp"
android:fontFamily="monospace"
android:text="target: ..."/>
<TextView
android:id="@+id/overlay_stats"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#aef0a0"
android:textSize="16sp"
android:fontFamily="monospace"
android:text="v=0 a=0"/>
<TextView
android:id="@+id/overlay_event"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#f0c060"
android:textSize="16sp"
android:fontFamily="monospace"
android:text="event: (idle)"/>
</LinearLayout>
</FrameLayout>
|