191 lines
8.0 KiB
XML
191 lines
8.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 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.
|
|
-->
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical" >
|
|
|
|
<!-- Current user info -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="Current User"/>
|
|
<com.google.android.car.kitchensink.users.UserInfoView
|
|
android:id="@+id/current_user"
|
|
android:layout_width="wrap_content" android:layout_height="wrap_content"/>
|
|
|
|
<!-- Existing users... -->
|
|
<com.google.android.car.kitchensink.users.ExistingUsersView
|
|
android:layout_marginTop="80dp"
|
|
android:id="@+id/current_users"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<!-- ...and actions on them -->
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<Button
|
|
android:id="@+id/remove_user"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Remove"/>
|
|
<Button
|
|
android:id="@+id/start_user_in_background"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Start In Background"/>
|
|
<Button
|
|
android:id="@+id/stop_user"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Stop"/>
|
|
</LinearLayout>
|
|
|
|
<!-- New user section -->
|
|
<TextView
|
|
android:layout_marginTop="80dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="New User"/>
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="Name: "/>
|
|
<EditText
|
|
android:id="@+id/new_user_name"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:maxLength="25"
|
|
android:text=""/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="Is admin? "/>
|
|
<CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content"
|
|
android:id="@+id/new_user_is_admin"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="Is guest? "/>
|
|
<CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content"
|
|
android:id="@+id/new_user_is_guest"/>
|
|
</LinearLayout>
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<Button
|
|
android:id="@+id/create_user"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:text="Create"/>
|
|
</LinearLayout>
|
|
|
|
<!-- Non user-related actions -->
|
|
<TextView
|
|
android:layout_marginTop="80dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Other actions"/>
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Password"/>
|
|
<EditText
|
|
android:id="@+id/password"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:maxLength="10"
|
|
android:text=""/>
|
|
<Button
|
|
android:id="@+id/reset_password"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Reset"/>
|
|
<Button
|
|
android:id="@+id/lock_now"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Lock Now"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Wipe data"/>
|
|
<EditText
|
|
android:id="@+id/wipe_data_flags"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:maxLength="10"
|
|
android:text=""/>
|
|
<Button
|
|
android:id="@+id/wipe_data"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Do it"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Lock tasks"/>
|
|
<Button
|
|
android:id="@+id/check_lock_tasks"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Check"/>
|
|
<Button
|
|
android:id="@+id/start_lock_tasks"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Start"/>
|
|
<Button
|
|
android:id="@+id/stop_lock_tasks"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Stop"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Add admin"/>
|
|
<Spinner
|
|
android:id="@+id/device_admin_apps"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
<Button
|
|
android:id="@+id/set_device_admin_app"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Set"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|