• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:title="@string/battery_saver"
21    android:key="battery_saver_page">
22
23    <Preference
24        android:key="battery_saver_schedule"
25        android:fragment="com.android.car.developeroptions.fuelgauge.batterysaver.BatterySaverScheduleSettings"
26        android:title="@string/battery_saver_schedule_settings_title"
27        settings:controller="com.android.car.developeroptions.fuelgauge.batterysaver.BatterySaverSchedulePreferenceController"/>
28
29    <SwitchPreference
30        android:key="battery_saver_sticky"
31        android:title="@string/battery_saver_sticky_title_new"
32        android:summary="@string/summary_placeholder"
33        settings:keywords="@string/keywords_battery_saver_sticky"
34        settings:controller="com.android.car.developeroptions.fuelgauge.batterysaver.BatterySaverStickyPreferenceController"/>
35
36    <com.android.car.developeroptions.widget.TwoStateButtonPreference
37        android:key="battery_saver"
38        android:title="@string/battery_saver"
39        android:selectable="false"
40        settings:textOn="@string/battery_saver_button_turn_on"
41        settings:textOff="@string/battery_saver_button_turn_off"
42        settings:platform_slice="true"
43        settings:controller="com.android.car.developeroptions.fuelgauge.batterysaver.BatterySaverButtonPreferenceController" />
44
45    <PreferenceCategory
46        android:key="battery_saver_footer">
47        <com.android.settingslib.widget.FooterPreference
48            android:key="battery_saver_footer_preference"
49            android:title="@*android:string/battery_saver_description"
50            android:selectable="false" />
51    </PreferenceCategory>
52
53</PreferenceScreen>
54