1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="fill_parent"
21    android:layout_height="fill_parent">
22    <CheckBox
23        android:id="@+id/checkIfPermittedBeforeCalling"
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:text="@string/checkIfPermittedBeforeCallingButton" />
27
28    <TextView
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:text="This app provides two sample implementations of the self-managed ConnectionService API.  Use this UI to add simulated self-managed calls:" />
32
33    <LinearLayout
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:orientation="horizontal">
37        <TextView
38            android:id="@+id/textView"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content" android:layout_weight="1"
41            android:text="Acct:"/>
42        <RadioGroup
43            android:layout_width="match_parent"
44            android:layout_height="match_parent"
45            android:layout_weight="1" android:orientation="horizontal">
46            <RadioButton
47                android:id="@+id/useAcct1Button"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:background="@color/test_call_a_color"
51                android:checked="true" android:text="1"/>
52            <RadioButton
53                android:id="@+id/useAcct2Button"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:background="@color/test_call_b_color"
57                android:text="2"/>
58        </RadioGroup>
59        <TextView
60            android:id="@+id/hasFocus"
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content" android:layout_weight="1"
63            android:text="�� No Focus ��"/>
64    </LinearLayout>
65
66    <LinearLayout android:orientation="horizontal"
67                  android:layout_width="wrap_content"
68                  android:layout_height="wrap_content">
69        <TextView
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            android:text="Number:" />
73        <EditText
74            android:layout_width="wrap_content"
75            android:layout_height="wrap_content"
76            android:id="@+id/phoneNumber"
77            android:text="tel:555-1212"/>
78        <CheckBox
79            android:id="@+id/holdable"
80            android:layout_width="wrap_content"
81            android:layout_height="wrap_content" android:layout_weight="1"
82            android:checked="true" android:text="Holdable"/>
83        <CheckBox
84            android:id="@+id/videoCall"
85            android:layout_width="wrap_content"
86            android:layout_height="wrap_content" android:layout_weight="1"
87            android:text="Video"/>
88    </LinearLayout>
89
90    <LinearLayout android:orientation="horizontal"
91        android:layout_width="wrap_content"
92        android:layout_height="wrap_content">
93        <Button
94            android:id="@+id/placeOutgoingCallButton"
95            android:layout_width="wrap_content"
96            android:layout_height="wrap_content"
97            android:text="Outgoing"/>
98        <Button
99            android:id="@+id/placeIncomingCallButton"
100            android:layout_width="wrap_content"
101            android:layout_height="wrap_content"
102            android:text="Incoming"/>
103        <Button
104            android:id="@+id/handoverFrom"
105            android:layout_width="wrap_content"
106            android:layout_height="wrap_content"
107            android:text="Accept Handover"/>
108        <Button
109            android:id="@+id/requestCallScreeningRole"
110            android:layout_width="wrap_content"
111            android:layout_height="wrap_content"
112            android:text="Req CallScreen Role"/>
113    </LinearLayout>
114
115    <LinearLayout android:orientation="horizontal"
116                  android:layout_width="wrap_content"
117                  android:layout_height="wrap_content">
118        <Button
119            android:id="@+id/placeSelfManagedOutgoingCallButton"
120            android:layout_width="wrap_content"
121            android:layout_height="wrap_content"
122            android:text="SelfManagedOutgoing"/>
123        <Button
124            android:id="@+id/placeSelfManagedIncomingCallButton"
125            android:layout_width="wrap_content"
126            android:layout_height="wrap_content"
127            android:text="SelfManagedIncoming"/>
128    </LinearLayout>
129
130    <LinearLayout android:orientation="horizontal"
131                  android:layout_width="wrap_content"
132                  android:layout_height="wrap_content">
133        <Button
134            android:id="@+id/enableCarMode"
135            android:layout_width="wrap_content"
136            android:layout_height="wrap_content"
137            android:text="Enable car mode"/>
138        <Button
139            android:id="@+id/disableCarMode"
140            android:layout_width="wrap_content"
141            android:layout_height="wrap_content"
142            android:text="Disable car mode"/>
143    </LinearLayout>
144    <ListView
145        android:id="@+id/callList"
146        android:layout_width="match_parent"
147        android:layout_height="wrap_content"
148        android:listSelector="@null"
149        android:divider="@null" />
150</LinearLayout>