• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2021 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<PreferenceScreen
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:title="@string/accelerometer_title" >
22
23    <SwitchPreference
24        android:key="auto_rotate_switch"
25        android:title="@string/auto_rotate_settings_primary_switch_title"
26        settings:controller="com.android.settings.display.AutoRotatePreferenceController"/>
27
28    <com.android.settingslib.widget.BannerMessagePreference
29        android:key="face_rotate_permission"
30        android:title="@string/adaptive_sleep_title_no_permission"
31        android:summary="@string/auto_rotate_summary_no_permission"
32        settings:controller="com.android.settings.display.SmartAutoRotatePermissionController" />
33
34    <com.android.settingslib.widget.BannerMessagePreference
35        android:key="camera_lock_state"
36        android:title="@string/auto_rotate_camera_lock_title"
37        android:summary="@string/auto_rotate_camera_lock_summary"
38        settings:controller="com.android.settings.display.SmartAutoRotateCameraStateController" />
39
40    <com.android.settingslib.widget.BannerMessagePreference
41        android:key="camera_battery_saver_state"
42        android:title="@string/ambient_camera_summary_battery_saver_on"
43        settings:controller="com.android.settings.display.SmartAutoRotateBatterySaverController" />
44
45    <SwitchPreference
46        android:key="face_based_rotate"
47        android:title="@string/auto_rotate_switch_face_based"
48        settings:controller="com.android.settings.display.SmartAutoRotateController" />
49
50    <com.android.settingslib.widget.FooterPreference
51        android:icon="@drawable/ic_privacy_shield_24dp"
52        android:selectable="false"
53        settings:searchable="false" />
54
55</PreferenceScreen>
56