/* * Copyright (C) 2016 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. */ package android.car.settings; /** * System level car related settings. */ public class CarSettings { /** * Global car settings, containing preferences that always apply identically * to all defined users. Applications can read these but are not allowed to write; * like the "Secure" settings, these are for preferences that the user must * explicitly modify through the system UI or specialized APIs for those values. * * To read/write the global car settings, use {@link android.provider.Settings.Global} * with the keys defined here. */ public static final class Global { /** * Key for when to wake up to run garage mode. */ public static final String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME"; /** * Key for whether garage mode is enabled. */ public static final String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED"; /** * Key for garage mode maintenance window. */ public static final String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW"; } /** * Default garage mode wake up time 00:00 * * @hide */ public static final int[] DEFAULT_GARAGE_MODE_WAKE_UP_TIME = {0, 0}; /** * Default garage mode maintenance window 10 mins. * * @hide */ public static final int DEFAULT_GARAGE_MODE_MAINTENANCE_WINDOW = 10 * 60 * 1000; // 10 mins }