1 /* 2 * Copyright (C) 2025 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 package com.android.settings.contract 18 19 // NOTES: 20 // - Once a key is added, never modify the literal string. 21 // - Remove a key might cause backward compatibility issues. 22 // - Avoid importing other class to reduce dependency whenever possible. 23 24 /** 25 * Contract key for the "Airplane Mode" setting, identical to 26 * [android.provider.SettingsSlicesContract.KEY_AIRPLANE_MODE]. 27 */ 28 const val KEY_AIRPLANE_MODE = "airplane_mode" 29 30 /** 31 * Contract key for the "Battery Saver" setting, identical to 32 * [android.provider.SettingsSlicesContract.KEY_BATTERY_SAVER]. 33 */ 34 const val KEY_BATTERY_SAVER = "battery_saver" 35 36 /** 37 * Contract key for the "Bluetooth" setting, identical to 38 * [android.provider.SettingsSlicesContract.KEY_BLUETOOTH]. 39 */ 40 const val KEY_BLUETOOTH = "bluetooth" 41 42 /** 43 * Contract key for the "Location" setting, identical to 44 * [android.provider.SettingsSlicesContract.KEY_LOCATION]. 45 */ 46 const val KEY_LOCATION = "location" 47 48 /** 49 * Contract key for the "Wi-fi" setting, identical to 50 * [android.provider.SettingsSlicesContract.KEY_WIFI]. 51 */ 52 const val KEY_WIFI = "wifi" 53 54 /** Contract key for the "Use Wi-Fi calling" setting. */ 55 const val KEY_WIFI_CALLING = "wifi_calling" 56 57 /** Contract key for the "Use Data Saver" setting. */ 58 const val KEY_DATA_SAVER = "data_saver" 59 60 /** Contract key for the "Mobile data" setting. */ 61 const val KEY_MOBILE_DATA = "mobile_data" 62 63 /** Contract key for the "Adaptive brightness" setting. */ 64 const val KEY_ADAPTIVE_BRIGHTNESS = "auto_brightness" 65 66 /** Contract key for the "Screen attention" setting. */ 67 const val KEY_SCREEN_ATTENTION = "screen_attention" 68 69 /** Contract key for the "Use adaptive connectivity" setting. */ 70 const val KEY_ADAPTIVE_CONNECTIVITY = "adaptive_connectivity" 71 72 /** Contract key for the "Auto-switch Wi-Fi to Cellular" setting. */ 73 const val KEY_ADAPTIVE_WIFI_SCORER = "adaptive_wifi_scorer" 74 75 /** Contract key for the " Auto-switch mobile network for battery life" setting. */ 76 const val KEY_ADAPTIVE_MOBILE_NETWORK = "adaptive_mobile_network" 77 78 /** Contract key for the "WiFi hotspot" setting. */ 79 const val KEY_WIFI_HOTSPOT = "enable_wifi_ap" 80 81 /** Contract key for the "Battery Gauge Slider" setting. */ 82 const val KEY_BATTERY_LEVEL = "battery_level" 83 84 /** Contract key for the "Battery Percentage" setting. */ 85 const val KEY_BATTERY_PERCENTAGE = "battery_percentage" 86 87 /** Contract key for the "Brightness level" setting. */ 88 const val KEY_BRIGHTNESS_LEVEL = "brightness_level" 89 90 /** Contract key for the "Smooth display" setting. */ 91 const val KEY_SMOOTH_DISPLAY = "smooth_display" 92 93 /** Contract key for the "Dark theme" setting. */ 94 const val KEY_DARK_THEME = "dark_theme" 95 96 /** Contract key for the "Always show time and info" setting. */ 97 const val KEY_AMBIENT_DISPLAY_ALWAYS_ON = "ambient_display_always_on" 98 99 /** Contract key for the "Use vibration & haptics" setting. */ 100 const val KEY_VIBRATION_HAPTICS = "vibration_haptics" 101 102 /** Contract key for the "Media volume" setting. */ 103 const val KEY_MEDIA_VOLUME = "media_volume" 104 105 /** Contract key for the "Call volume" setting. */ 106 const val KEY_CALL_VOLUME = "call_volume" 107 108 /** Contract key for the "Ring volume" setting. */ 109 const val KEY_RING_VOLUME = "separate_ring_volume" 110 111 /** Contract key for the "Remove animation" setting. */ 112 const val KEY_REMOVE_ANIMATION = "remove_animation" 113 114 /** Contract key for the "Pin media player. */ 115 const val KEY_PIN_MEDIA_PLAYER = "pin_media_player" 116 117 /** Contract key for the "Show media on lock screen. */ 118 const val KEY_SHOW_MEDIA_ON_LOCK_SCREEN = "show_media_on_lock_screen" 119