aboutsummaryrefslogtreecommitdiff
path: root/tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml
diff options
context:
space:
mode:
authorPavel Maltsev <pavelm@google.com>2018-06-22 15:45:09 -0700
committerPavel Maltsev <pavelm@google.com>2018-06-29 19:57:19 +0000
commit9b783b02980bfabdfa618045defb9033f901a8ae (patch)
treee89c560236b311fefb05f44b2a1e8f15fedbc69f /tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml
parentb1b7956934aaa87f40be27092e92f46d1e8fe214 (diff)
downloadCar-9b783b02980bfabdfa618045defb9033f901a8ae.tar.gz
Add connectivity test fragment to KitchenSink
Right now it displays a list of networks and can send request for OEM-paid and Eth1 networks. Bug: 74811930 Test: kitchen sink Change-Id: I5628d4ef745b4bbe1a7b4f33d0c3d2056c5884c1 Merged-In: I5628d4ef745b4bbe1a7b4f33d0c3d2056c5884c1
Diffstat (limited to 'tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml')
-rw-r--r--tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml b/tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml
new file mode 100644
index 0000000000..15422b1116
--- /dev/null
+++ b/tests/EmbeddedKitchenSinkApp/res/layout/connectivity_fragment.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ <ListView
+ android:id="@+id/networks"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+ </ListView>
+ </LinearLayout>
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="4dp">
+ <Button android:id="@+id/networksRefresh"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Refresh"/>
+ <Button android:id="@+id/networkRequestOemPaid"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Request OEM-paid"/>
+ <Button android:id="@+id/networkRequestEth1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Request eth1"/>
+ <Button android:id="@+id/networkReleaseNetwork"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Release Request"/>
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file