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 <RadioButton 59 android:id="@+id/useAcct3Button" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:background="@color/test_call_c_color" 63 android:text="3"/> 64 </RadioGroup> 65 <TextView 66 android:id="@+id/hasFocus" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" android:layout_weight="1" 69 android:text=" No Focus "/> 70 </LinearLayout> 71 72 <LinearLayout android:orientation="horizontal" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content"> 75 <TextView 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:text="Number:" /> 79 <EditText 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:id="@+id/phoneNumber" 83 android:text="tel:555-1212"/> 84 <CheckBox 85 android:id="@+id/holdable" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" android:layout_weight="1" 88 android:checked="true" android:text="Holdable"/> 89 <CheckBox 90 android:id="@+id/videoCall" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" android:layout_weight="1" 93 android:text="Video"/> 94 </LinearLayout> 95 96 <LinearLayout android:orientation="horizontal" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content"> 99 <Button 100 android:id="@+id/placeOutgoingCallButton" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:text="Outgoing"/> 104 <Button 105 android:id="@+id/placeIncomingCallButton" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:text="Incoming"/> 109 <Button 110 android:id="@+id/handoverFrom" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:text="Accept Handover"/> 114 <Button 115 android:id="@+id/requestCallScreeningRole" 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:text="Req CallScreen Role"/> 119 </LinearLayout> 120 121 <LinearLayout android:orientation="horizontal" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content"> 124 <Button 125 android:id="@+id/placeSelfManagedOutgoingCallButton" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:text="SelfManagedOutgoing"/> 129 <Button 130 android:id="@+id/placeSelfManagedIncomingCallButton" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:text="SelfManagedIncoming"/> 134 </LinearLayout> 135 136 <LinearLayout android:orientation="horizontal" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content"> 139 <Button 140 android:id="@+id/enableCarMode" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:text="Enable car mode"/> 144 <Button 145 android:id="@+id/disableCarMode" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:text="Disable car mode"/> 149 </LinearLayout> 150 <ListView 151 android:id="@+id/callList" 152 android:layout_width="match_parent" 153 android:layout_height="wrap_content" 154 android:listSelector="@null" 155 android:divider="@null" /> 156</LinearLayout>