unplugged-system/packages/services/Car/tests/CarTestDpc/res/layout/activity_main.xml

120 lines
4.6 KiB
XML

<!--
~ Copyright (C) 2022 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:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<LinearLayout
android:layout_marginTop="40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/current_user_title"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/current_user_title" />
<TextView
android:layout_marginStart="20dp"
android:id="@+id/this_user"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/this_user" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<Button
android:id="@+id/reboot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reboot" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/add_user_restriction_title"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/add_user_restriction" />
<EditText
android:id="@+id/edit_user_id"
android:layout_height="wrap_content"
android:layout_width="300dp"
android:inputType="text"
android:hint="@string/user_id"
android:autofillHints="@string/user_id" />
<EditText
android:id="@+id/edit_key"
android:layout_height="wrap_content"
android:layout_width="600dp"
android:inputType="text"
android:hint="@string/key"
android:autofillHints="@string/key" />
<Button
android:id="@+id/add_user_restriction_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/submit" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/get_user_restriction_title"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/get_user_restrictions" />
<Button
android:id="@+id/get_user_restriction_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/submit" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/display_user_restriction_title"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/display_user_restrictions" />
</LinearLayout>
</LinearLayout>