CarSettings.java revision 94d4766e55c34790e9a0be3009f05205cd730776
1/*
2 * Copyright (C) 2016 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
17package android.car.settings;
18
19/**
20 * System level car related settings.
21 */
22public class CarSettings {
23
24    /**
25     * Global car settings, containing preferences that always apply identically
26     * to all defined users.  Applications can read these but are not allowed to write;
27     * like the "Secure" settings, these are for preferences that the user must
28     * explicitly modify through the system UI or specialized APIs for those values.
29     *
30     * To read/write the global car settings, use {@link android.provider.Settings.Global}
31     * with the keys defined here.
32     */
33    public static final class Global {
34        /**
35         * Key for when to wake up to run garage mode.
36         */
37        public static final String KEY_GARAGE_MODE_WAKE_UP_TIME =
38                "android.car.GARAGE_MODE_WAKE_UP_TIME";
39        /**
40         * Key for whether garage mode is enabled.
41         */
42        public static final String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED";
43        /**
44         * Key for garage mode maintenance window.
45         */
46        public static final String KEY_GARAGE_MODE_MAINTENANCE_WINDOW =
47                "android.car.GARAGE_MODE_MAINTENANCE_WINDOW";
48    }
49
50    /**
51     * Default garage mode wake up time 00:00
52     *
53     * @hide
54     */
55    public static final int[] DEFAULT_GARAGE_MODE_WAKE_UP_TIME = {0, 0};
56
57    /**
58     * Default garage mode maintenance window 10 mins.
59     *
60     * @hide
61     */
62    public static final int DEFAULT_GARAGE_MODE_MAINTENANCE_WINDOW = 10 * 60 * 1000; // 10 mins
63}
64