Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 1 | /* |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 2 | * Copyright (C) 2010 The Android Open Source Project. |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 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 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 17 | /** |
| 18 | * @addtogroup Configuration |
| 19 | * @{ |
| 20 | */ |
| 21 | |
| 22 | /** |
| 23 | * @file configuration.h |
| 24 | */ |
| 25 | |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 26 | #ifndef ANDROID_CONFIGURATION_H |
| 27 | #define ANDROID_CONFIGURATION_H |
| 28 | |
Biswapriyo Nath | 36880b3 | 2025-03-05 09:13:41 +0000 | [diff] [blame] | 29 | #include <stdint.h> |
Dan Albert | 494ed55 | 2016-09-23 15:57:45 -0700 | [diff] [blame] | 30 | #include <sys/cdefs.h> |
| 31 | |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 32 | #include <android/asset_manager.h> |
| 33 | |
Elliott Hughes | c2fcafc | 2018-06-18 12:28:46 -0700 | [diff] [blame] | 34 | #if !defined(__INTRODUCED_IN) |
| 35 | #define __INTRODUCED_IN(__api_level) /* nothing */ |
| 36 | #endif |
| 37 | |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 38 | #ifdef __cplusplus |
| 39 | extern "C" { |
| 40 | #endif |
| 41 | |
| 42 | struct AConfiguration; |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 43 | /** |
| 44 | * {@link AConfiguration} is an opaque type used to get and set |
| 45 | * various subsystem configurations. |
| 46 | * |
| 47 | * A {@link AConfiguration} pointer can be obtained using: |
| 48 | * - AConfiguration_new() |
| 49 | * - AConfiguration_fromAssetManager() |
| 50 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 51 | typedef struct AConfiguration AConfiguration; |
| 52 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 53 | |
| 54 | /** |
| 55 | * Define flags and constants for various subsystem configurations. |
| 56 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 57 | enum { |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 58 | /** Orientation: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 59 | ACONFIGURATION_ORIENTATION_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 60 | /** |
| 61 | * Orientation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 62 | * <a href="/guide/topics/resources/providing-resources.html#OrientationQualifier">port</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 63 | * resource qualifier. |
| 64 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 65 | ACONFIGURATION_ORIENTATION_PORT = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 66 | /** |
| 67 | * Orientation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 68 | * <a href="/guide/topics/resources/providing-resources.html#OrientationQualifier">land</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 69 | * resource qualifier. |
| 70 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 71 | ACONFIGURATION_ORIENTATION_LAND = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 72 | /** @deprecated Not currently supported or used. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 73 | ACONFIGURATION_ORIENTATION_SQUARE = 0x0003, |
| 74 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 75 | /** Touchscreen: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 76 | ACONFIGURATION_TOUCHSCREEN_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 77 | /** |
| 78 | * Touchscreen: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 79 | * <a href="/guide/topics/resources/providing-resources.html#TouchscreenQualifier">notouch</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 80 | * resource qualifier. |
| 81 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 82 | ACONFIGURATION_TOUCHSCREEN_NOTOUCH = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 83 | /** @deprecated Not currently supported or used. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 84 | ACONFIGURATION_TOUCHSCREEN_STYLUS = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 85 | /** |
| 86 | * Touchscreen: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 87 | * <a href="/guide/topics/resources/providing-resources.html#TouchscreenQualifier">finger</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 88 | * resource qualifier. |
| 89 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 90 | ACONFIGURATION_TOUCHSCREEN_FINGER = 0x0003, |
| 91 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 92 | /** Density: default density. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 93 | ACONFIGURATION_DENSITY_DEFAULT = 0, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 94 | /** |
| 95 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 96 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">ldpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 97 | * resource qualifier. |
| 98 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 99 | ACONFIGURATION_DENSITY_LOW = 120, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 100 | /** |
| 101 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 102 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">mdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 103 | * resource qualifier. |
| 104 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 105 | ACONFIGURATION_DENSITY_MEDIUM = 160, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 106 | /** |
| 107 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 108 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">tvdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 109 | * resource qualifier. |
| 110 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 111 | ACONFIGURATION_DENSITY_TV = 213, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 112 | /** |
| 113 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 114 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">hdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 115 | * resource qualifier. |
| 116 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 117 | ACONFIGURATION_DENSITY_HIGH = 240, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 118 | /** |
| 119 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 120 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">xhdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 121 | * resource qualifier. |
| 122 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 123 | ACONFIGURATION_DENSITY_XHIGH = 320, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 124 | /** |
| 125 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 126 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">xxhdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 127 | * resource qualifier. |
| 128 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 129 | ACONFIGURATION_DENSITY_XXHIGH = 480, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 130 | /** |
| 131 | * Density: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 132 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">xxxhdpi</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 133 | * resource qualifier. |
| 134 | */ |
Dianne Hackborn | 6303d06 | 2013-02-12 15:36:31 -0800 | [diff] [blame] | 135 | ACONFIGURATION_DENSITY_XXXHIGH = 640, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 136 | /** Density: any density. */ |
Adam Lesinski | 16d08a5 | 2014-08-22 22:23:08 -0700 | [diff] [blame] | 137 | ACONFIGURATION_DENSITY_ANY = 0xfffe, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 138 | /** Density: no density specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 139 | ACONFIGURATION_DENSITY_NONE = 0xffff, |
| 140 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 141 | /** Keyboard: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 142 | ACONFIGURATION_KEYBOARD_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 143 | /** |
| 144 | * Keyboard: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 145 | * <a href="/guide/topics/resources/providing-resources.html#ImeQualifier">nokeys</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 146 | * resource qualifier. |
| 147 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 148 | ACONFIGURATION_KEYBOARD_NOKEYS = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 149 | /** |
| 150 | * Keyboard: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 151 | * <a href="/guide/topics/resources/providing-resources.html#ImeQualifier">qwerty</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 152 | * resource qualifier. |
| 153 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 154 | ACONFIGURATION_KEYBOARD_QWERTY = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 155 | /** |
| 156 | * Keyboard: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 157 | * <a href="/guide/topics/resources/providing-resources.html#ImeQualifier">12key</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 158 | * resource qualifier. |
| 159 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 160 | ACONFIGURATION_KEYBOARD_12KEY = 0x0003, |
| 161 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 162 | /** Navigation: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 163 | ACONFIGURATION_NAVIGATION_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 164 | /** |
| 165 | * Navigation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 166 | * <a href="@/guide/topics/resources/providing-resources.html#NavigationQualifier">nonav</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 167 | * resource qualifier. |
| 168 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 169 | ACONFIGURATION_NAVIGATION_NONAV = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 170 | /** |
| 171 | * Navigation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 172 | * <a href="/guide/topics/resources/providing-resources.html#NavigationQualifier">dpad</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 173 | * resource qualifier. |
| 174 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 175 | ACONFIGURATION_NAVIGATION_DPAD = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 176 | /** |
| 177 | * Navigation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 178 | * <a href="/guide/topics/resources/providing-resources.html#NavigationQualifier">trackball</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 179 | * resource qualifier. |
| 180 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 181 | ACONFIGURATION_NAVIGATION_TRACKBALL = 0x0003, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 182 | /** |
| 183 | * Navigation: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 184 | * <a href="/guide/topics/resources/providing-resources.html#NavigationQualifier">wheel</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 185 | * resource qualifier. |
| 186 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 187 | ACONFIGURATION_NAVIGATION_WHEEL = 0x0004, |
| 188 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 189 | /** Keyboard availability: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 190 | ACONFIGURATION_KEYSHIDDEN_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 191 | /** |
| 192 | * Keyboard availability: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 193 | * <a href="/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keysexposed</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 194 | * resource qualifier. |
| 195 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 196 | ACONFIGURATION_KEYSHIDDEN_NO = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 197 | /** |
| 198 | * Keyboard availability: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 199 | * <a href="/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyshidden</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 200 | * resource qualifier. |
| 201 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 202 | ACONFIGURATION_KEYSHIDDEN_YES = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 203 | /** |
| 204 | * Keyboard availability: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 205 | * <a href="/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyssoft</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 206 | * resource qualifier. |
| 207 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 208 | ACONFIGURATION_KEYSHIDDEN_SOFT = 0x0003, |
| 209 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 210 | /** Navigation availability: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 211 | ACONFIGURATION_NAVHIDDEN_ANY = 0x0000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 212 | /** |
| 213 | * Navigation availability: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 214 | * <a href="/guide/topics/resources/providing-resources.html#NavAvailQualifier">navexposed</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 215 | * resource qualifier. |
| 216 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 217 | ACONFIGURATION_NAVHIDDEN_NO = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 218 | /** |
| 219 | * Navigation availability: value corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 220 | * <a href="/guide/topics/resources/providing-resources.html#NavAvailQualifier">navhidden</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 221 | * resource qualifier. |
| 222 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 223 | ACONFIGURATION_NAVHIDDEN_YES = 0x0002, |
| 224 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 225 | /** Screen size: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 226 | ACONFIGURATION_SCREENSIZE_ANY = 0x00, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 227 | /** |
| 228 | * Screen size: value indicating the screen is at least |
| 229 | * approximately 320x426 dp units, corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 230 | * <a href="/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">small</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 231 | * resource qualifier. |
| 232 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 233 | ACONFIGURATION_SCREENSIZE_SMALL = 0x01, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 234 | /** |
| 235 | * Screen size: value indicating the screen is at least |
| 236 | * approximately 320x470 dp units, corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 237 | * <a href="/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">normal</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 238 | * resource qualifier. |
| 239 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 240 | ACONFIGURATION_SCREENSIZE_NORMAL = 0x02, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 241 | /** |
| 242 | * Screen size: value indicating the screen is at least |
| 243 | * approximately 480x640 dp units, corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 244 | * <a href="/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">large</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 245 | * resource qualifier. |
| 246 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 247 | ACONFIGURATION_SCREENSIZE_LARGE = 0x03, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 248 | /** |
| 249 | * Screen size: value indicating the screen is at least |
| 250 | * approximately 720x960 dp units, corresponding to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 251 | * <a href="/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">xlarge</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 252 | * resource qualifier. |
| 253 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 254 | ACONFIGURATION_SCREENSIZE_XLARGE = 0x04, |
| 255 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 256 | /** Screen layout: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 257 | ACONFIGURATION_SCREENLONG_ANY = 0x00, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 258 | /** |
| 259 | * Screen layout: value that corresponds to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 260 | * <a href="/guide/topics/resources/providing-resources.html#ScreenAspectQualifier">notlong</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 261 | * resource qualifier. |
| 262 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 263 | ACONFIGURATION_SCREENLONG_NO = 0x1, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 264 | /** |
| 265 | * Screen layout: value that corresponds to the |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 266 | * <a href="/guide/topics/resources/providing-resources.html#ScreenAspectQualifier">long</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 267 | * resource qualifier. |
| 268 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 269 | ACONFIGURATION_SCREENLONG_YES = 0x2, |
| 270 | |
Adam Lesinski | 7eb1459 | 2015-05-14 14:28:32 -0700 | [diff] [blame] | 271 | ACONFIGURATION_SCREENROUND_ANY = 0x00, |
| 272 | ACONFIGURATION_SCREENROUND_NO = 0x1, |
| 273 | ACONFIGURATION_SCREENROUND_YES = 0x2, |
| 274 | |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 275 | /** Wide color gamut: not specified. */ |
| 276 | ACONFIGURATION_WIDE_COLOR_GAMUT_ANY = 0x00, |
| 277 | /** |
| 278 | * Wide color gamut: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 279 | * <a href="/guide/topics/resources/providing-resources.html#WideColorGamutQualifier">no |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 280 | * nowidecg</a> resource qualifier specified. |
| 281 | */ |
| 282 | ACONFIGURATION_WIDE_COLOR_GAMUT_NO = 0x1, |
| 283 | /** |
| 284 | * Wide color gamut: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 285 | * <a href="/guide/topics/resources/providing-resources.html#WideColorGamutQualifier"> |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 286 | * widecg</a> resource qualifier specified. |
| 287 | */ |
| 288 | ACONFIGURATION_WIDE_COLOR_GAMUT_YES = 0x2, |
| 289 | |
| 290 | /** HDR: not specified. */ |
| 291 | ACONFIGURATION_HDR_ANY = 0x00, |
| 292 | /** |
| 293 | * HDR: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 294 | * <a href="/guide/topics/resources/providing-resources.html#HDRQualifier"> |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 295 | * lowdr</a> resource qualifier specified. |
| 296 | */ |
| 297 | ACONFIGURATION_HDR_NO = 0x1, |
| 298 | /** |
| 299 | * HDR: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 300 | * <a href="/guide/topics/resources/providing-resources.html#HDRQualifier"> |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 301 | * highdr</a> resource qualifier specified. |
| 302 | */ |
| 303 | ACONFIGURATION_HDR_YES = 0x2, |
| 304 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 305 | /** UI mode: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 306 | ACONFIGURATION_UI_MODE_TYPE_ANY = 0x00, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 307 | /** |
| 308 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 309 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">no |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 310 | * UI mode type</a> resource qualifier specified. |
| 311 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 312 | ACONFIGURATION_UI_MODE_TYPE_NORMAL = 0x01, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 313 | /** |
| 314 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 315 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">desk</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 316 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 317 | ACONFIGURATION_UI_MODE_TYPE_DESK = 0x02, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 318 | /** |
| 319 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 320 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">car</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 321 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 322 | ACONFIGURATION_UI_MODE_TYPE_CAR = 0x03, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 323 | /** |
| 324 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 325 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">television</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 326 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 327 | ACONFIGURATION_UI_MODE_TYPE_TELEVISION = 0x04, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 328 | /** |
| 329 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 330 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">appliance</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 331 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 332 | ACONFIGURATION_UI_MODE_TYPE_APPLIANCE = 0x05, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 333 | /** |
| 334 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 335 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">watch</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 336 | */ |
John Spurlock | ad98ad0 | 2014-04-03 16:39:17 -0400 | [diff] [blame] | 337 | ACONFIGURATION_UI_MODE_TYPE_WATCH = 0x06, |
Zak Cohen | a62fb16 | 2016-12-09 15:06:02 -0800 | [diff] [blame] | 338 | /** |
| 339 | * UI mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 340 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">vr</a> resource qualifier specified. |
Zak Cohen | a62fb16 | 2016-12-09 15:06:02 -0800 | [diff] [blame] | 341 | */ |
| 342 | ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET = 0x07, |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 343 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 344 | /** UI night mode: not specified.*/ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 345 | ACONFIGURATION_UI_MODE_NIGHT_ANY = 0x00, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 346 | /** |
| 347 | * UI night mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 348 | * <a href="/guide/topics/resources/providing-resources.html#NightQualifier">notnight</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 349 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 350 | ACONFIGURATION_UI_MODE_NIGHT_NO = 0x1, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 351 | /** |
| 352 | * UI night mode: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 353 | * <a href="/guide/topics/resources/providing-resources.html#NightQualifier">night</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 354 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 355 | ACONFIGURATION_UI_MODE_NIGHT_YES = 0x2, |
| 356 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 357 | /** Screen width DPI: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 358 | ACONFIGURATION_SCREEN_WIDTH_DP_ANY = 0x0000, |
| 359 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 360 | /** Screen height DPI: not specified. */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 361 | ACONFIGURATION_SCREEN_HEIGHT_DP_ANY = 0x0000, |
| 362 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 363 | /** Smallest screen width DPI: not specified.*/ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 364 | ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY = 0x0000, |
| 365 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 366 | /** Layout direction: not specified. */ |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 367 | ACONFIGURATION_LAYOUTDIR_ANY = 0x00, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 368 | /** |
| 369 | * Layout direction: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 370 | * <a href="/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">ldltr</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 371 | */ |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 372 | ACONFIGURATION_LAYOUTDIR_LTR = 0x01, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 373 | /** |
| 374 | * Layout direction: value that corresponds to |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 375 | * <a href="/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">ldrtl</a> resource qualifier specified. |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 376 | */ |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 377 | ACONFIGURATION_LAYOUTDIR_RTL = 0x02, |
| 378 | |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 379 | /** |
| 380 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 381 | * <a href="/guide/topics/resources/providing-resources.html#MccQualifier">mcc</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 382 | * configuration. |
| 383 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 384 | ACONFIGURATION_MCC = 0x0001, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 385 | /** |
| 386 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 387 | * <a href="/guide/topics/resources/providing-resources.html#MccQualifier">mnc</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 388 | * configuration. |
| 389 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 390 | ACONFIGURATION_MNC = 0x0002, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 391 | /** |
| 392 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 393 | * <a href="/guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 394 | * configuration. |
| 395 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 396 | ACONFIGURATION_LOCALE = 0x0004, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 397 | /** |
| 398 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 399 | * <a href="/guide/topics/resources/providing-resources.html#TouchscreenQualifier">touchscreen</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 400 | * configuration. |
| 401 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 402 | ACONFIGURATION_TOUCHSCREEN = 0x0008, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 403 | /** |
| 404 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 405 | * <a href="/guide/topics/resources/providing-resources.html#ImeQualifier">keyboard</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 406 | * configuration. |
| 407 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 408 | ACONFIGURATION_KEYBOARD = 0x0010, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 409 | /** |
| 410 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 411 | * <a href="/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyboardHidden</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 412 | * configuration. |
| 413 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 414 | ACONFIGURATION_KEYBOARD_HIDDEN = 0x0020, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 415 | /** |
| 416 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 417 | * <a href="/guide/topics/resources/providing-resources.html#NavigationQualifier">navigation</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 418 | * configuration. |
| 419 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 420 | ACONFIGURATION_NAVIGATION = 0x0040, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 421 | /** |
| 422 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 423 | * <a href="/guide/topics/resources/providing-resources.html#OrientationQualifier">orientation</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 424 | * configuration. |
| 425 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 426 | ACONFIGURATION_ORIENTATION = 0x0080, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 427 | /** |
| 428 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 429 | * <a href="/guide/topics/resources/providing-resources.html#DensityQualifier">density</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 430 | * configuration. |
| 431 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 432 | ACONFIGURATION_DENSITY = 0x0100, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 433 | /** |
| 434 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 435 | * <a href="/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">screen size</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 436 | * configuration. |
| 437 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 438 | ACONFIGURATION_SCREEN_SIZE = 0x0200, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 439 | /** |
| 440 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 441 | * <a href="/guide/topics/resources/providing-resources.html#VersionQualifier">platform version</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 442 | * configuration. |
| 443 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 444 | ACONFIGURATION_VERSION = 0x0400, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 445 | /** |
| 446 | * Bit mask for screen layout configuration. |
| 447 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 448 | ACONFIGURATION_SCREEN_LAYOUT = 0x0800, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 449 | /** |
| 450 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 451 | * <a href="/guide/topics/resources/providing-resources.html#UiModeQualifier">ui mode</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 452 | * configuration. |
| 453 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 454 | ACONFIGURATION_UI_MODE = 0x1000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 455 | /** |
| 456 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 457 | * <a href="/guide/topics/resources/providing-resources.html#SmallestScreenWidthQualifier">smallest screen width</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 458 | * configuration. |
| 459 | */ |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 460 | ACONFIGURATION_SMALLEST_SCREEN_SIZE = 0x2000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 461 | /** |
| 462 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 463 | * <a href="/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">layout direction</a> |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 464 | * configuration. |
| 465 | */ |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 466 | ACONFIGURATION_LAYOUTDIR = 0x4000, |
Adam Lesinski | 7eb1459 | 2015-05-14 14:28:32 -0700 | [diff] [blame] | 467 | ACONFIGURATION_SCREEN_ROUND = 0x8000, |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 468 | /** |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 469 | * Bit mask for |
Nick Cook | 7a73212 | 2020-06-03 22:55:05 +0000 | [diff] [blame] | 470 | * <a href="/guide/topics/resources/providing-resources.html#WideColorGamutQualifier">wide color gamut</a> |
| 471 | * and <a href="/guide/topics/resources/providing-resources.html#HDRQualifier">HDR</a> configurations. |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 472 | */ |
Romain Guy | 3119ff0 | 2017-01-23 16:58:08 -0800 | [diff] [blame] | 473 | ACONFIGURATION_COLOR_MODE = 0x10000, |
Romain Guy | a2310b9 | 2017-01-18 16:36:21 -0800 | [diff] [blame] | 474 | /** |
Yurii Zubrytskyi | 0e4f177 | 2023-01-04 08:45:03 -0800 | [diff] [blame] | 475 | * Bit mask for |
| 476 | * <a href="/guide/topics/resources/providing-resources.html#GrammaticalInflectionQualifier">grammatical gender</a> |
| 477 | * configuration. |
| 478 | */ |
| 479 | ACONFIGURATION_GRAMMATICAL_GENDER = 0x20000, |
| 480 | /** |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 481 | * Constant used to to represent MNC (Mobile Network Code) zero. |
| 482 | * 0 cannot be used, since it is used to represent an undefined MNC. |
| 483 | */ |
Johan Redestig | 8df483c | 2013-05-30 08:30:42 +0200 | [diff] [blame] | 484 | ACONFIGURATION_MNC_ZERO = 0xffff, |
Yurii Zubrytskyi | 0e4f177 | 2023-01-04 08:45:03 -0800 | [diff] [blame] | 485 | |
| 486 | /** |
| 487 | * <a href="/guide/topics/resources/providing-resources.html#GrammaticalInflectionQualifier">Grammatical gender</a>: not specified. |
| 488 | */ |
| 489 | ACONFIGURATION_GRAMMATICAL_GENDER_ANY = 0, |
| 490 | |
| 491 | /** |
| 492 | * <a href="/guide/topics/resources/providing-resources.html#GrammaticalInflectionQualifier">Grammatical gender</a>: neuter. |
| 493 | */ |
| 494 | ACONFIGURATION_GRAMMATICAL_GENDER_NEUTER = 1, |
| 495 | |
| 496 | /** |
| 497 | * <a href="/guide/topics/resources/providing-resources.html#GrammaticalInflectionQualifier">Grammatical gender</a>: feminine. |
| 498 | */ |
| 499 | ACONFIGURATION_GRAMMATICAL_GENDER_FEMININE = 2, |
| 500 | |
| 501 | /** |
| 502 | * <a href="/guide/topics/resources/providing-resources.html#GrammaticalInflectionQualifier">Grammatical gender</a>: masculine. |
| 503 | */ |
| 504 | ACONFIGURATION_GRAMMATICAL_GENDER_MASCULINE = 3, |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 505 | }; |
| 506 | |
| 507 | /** |
| 508 | * Create a new AConfiguration, initialized with no values set. |
| 509 | */ |
| 510 | AConfiguration* AConfiguration_new(); |
| 511 | |
| 512 | /** |
| 513 | * Free an AConfiguration that was previously created with |
| 514 | * AConfiguration_new(). |
| 515 | */ |
| 516 | void AConfiguration_delete(AConfiguration* config); |
| 517 | |
| 518 | /** |
| 519 | * Create and return a new AConfiguration based on the current configuration in |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 520 | * use in the given {@link AAssetManager}. |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 521 | */ |
| 522 | void AConfiguration_fromAssetManager(AConfiguration* out, AAssetManager* am); |
| 523 | |
| 524 | /** |
| 525 | * Copy the contents of 'src' to 'dest'. |
| 526 | */ |
| 527 | void AConfiguration_copy(AConfiguration* dest, AConfiguration* src); |
| 528 | |
| 529 | /** |
| 530 | * Return the current MCC set in the configuration. 0 if not set. |
| 531 | */ |
| 532 | int32_t AConfiguration_getMcc(AConfiguration* config); |
| 533 | |
| 534 | /** |
| 535 | * Set the current MCC in the configuration. 0 to clear. |
| 536 | */ |
| 537 | void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); |
| 538 | |
| 539 | /** |
| 540 | * Return the current MNC set in the configuration. 0 if not set. |
| 541 | */ |
| 542 | int32_t AConfiguration_getMnc(AConfiguration* config); |
| 543 | |
| 544 | /** |
| 545 | * Set the current MNC in the configuration. 0 to clear. |
| 546 | */ |
| 547 | void AConfiguration_setMnc(AConfiguration* config, int32_t mnc); |
| 548 | |
| 549 | /** |
| 550 | * Return the current language code set in the configuration. The output will |
| 551 | * be filled with an array of two characters. They are not 0-terminated. If |
| 552 | * a language is not set, they will be 0. |
| 553 | */ |
| 554 | void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage); |
| 555 | |
| 556 | /** |
| 557 | * Set the current language code in the configuration, from the first two |
| 558 | * characters in the string. |
| 559 | */ |
| 560 | void AConfiguration_setLanguage(AConfiguration* config, const char* language); |
| 561 | |
| 562 | /** |
| 563 | * Return the current country code set in the configuration. The output will |
| 564 | * be filled with an array of two characters. They are not 0-terminated. If |
| 565 | * a country is not set, they will be 0. |
| 566 | */ |
| 567 | void AConfiguration_getCountry(AConfiguration* config, char* outCountry); |
| 568 | |
| 569 | /** |
| 570 | * Set the current country code in the configuration, from the first two |
| 571 | * characters in the string. |
| 572 | */ |
| 573 | void AConfiguration_setCountry(AConfiguration* config, const char* country); |
| 574 | |
| 575 | /** |
| 576 | * Return the current ACONFIGURATION_ORIENTATION_* set in the configuration. |
| 577 | */ |
| 578 | int32_t AConfiguration_getOrientation(AConfiguration* config); |
| 579 | |
| 580 | /** |
| 581 | * Set the current orientation in the configuration. |
| 582 | */ |
| 583 | void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation); |
| 584 | |
| 585 | /** |
| 586 | * Return the current ACONFIGURATION_TOUCHSCREEN_* set in the configuration. |
| 587 | */ |
| 588 | int32_t AConfiguration_getTouchscreen(AConfiguration* config); |
| 589 | |
| 590 | /** |
| 591 | * Set the current touchscreen in the configuration. |
| 592 | */ |
| 593 | void AConfiguration_setTouchscreen(AConfiguration* config, int32_t touchscreen); |
| 594 | |
| 595 | /** |
| 596 | * Return the current ACONFIGURATION_DENSITY_* set in the configuration. |
| 597 | */ |
| 598 | int32_t AConfiguration_getDensity(AConfiguration* config); |
| 599 | |
| 600 | /** |
| 601 | * Set the current density in the configuration. |
| 602 | */ |
| 603 | void AConfiguration_setDensity(AConfiguration* config, int32_t density); |
| 604 | |
| 605 | /** |
| 606 | * Return the current ACONFIGURATION_KEYBOARD_* set in the configuration. |
| 607 | */ |
| 608 | int32_t AConfiguration_getKeyboard(AConfiguration* config); |
| 609 | |
| 610 | /** |
| 611 | * Set the current keyboard in the configuration. |
| 612 | */ |
| 613 | void AConfiguration_setKeyboard(AConfiguration* config, int32_t keyboard); |
| 614 | |
| 615 | /** |
| 616 | * Return the current ACONFIGURATION_NAVIGATION_* set in the configuration. |
| 617 | */ |
| 618 | int32_t AConfiguration_getNavigation(AConfiguration* config); |
| 619 | |
| 620 | /** |
| 621 | * Set the current navigation in the configuration. |
| 622 | */ |
| 623 | void AConfiguration_setNavigation(AConfiguration* config, int32_t navigation); |
| 624 | |
| 625 | /** |
| 626 | * Return the current ACONFIGURATION_KEYSHIDDEN_* set in the configuration. |
| 627 | */ |
| 628 | int32_t AConfiguration_getKeysHidden(AConfiguration* config); |
| 629 | |
| 630 | /** |
| 631 | * Set the current keys hidden in the configuration. |
| 632 | */ |
| 633 | void AConfiguration_setKeysHidden(AConfiguration* config, int32_t keysHidden); |
| 634 | |
| 635 | /** |
| 636 | * Return the current ACONFIGURATION_NAVHIDDEN_* set in the configuration. |
| 637 | */ |
| 638 | int32_t AConfiguration_getNavHidden(AConfiguration* config); |
| 639 | |
| 640 | /** |
| 641 | * Set the current nav hidden in the configuration. |
| 642 | */ |
| 643 | void AConfiguration_setNavHidden(AConfiguration* config, int32_t navHidden); |
| 644 | |
| 645 | /** |
| 646 | * Return the current SDK (API) version set in the configuration. |
| 647 | */ |
| 648 | int32_t AConfiguration_getSdkVersion(AConfiguration* config); |
| 649 | |
| 650 | /** |
| 651 | * Set the current SDK version in the configuration. |
| 652 | */ |
| 653 | void AConfiguration_setSdkVersion(AConfiguration* config, int32_t sdkVersion); |
| 654 | |
| 655 | /** |
| 656 | * Return the current ACONFIGURATION_SCREENSIZE_* set in the configuration. |
| 657 | */ |
| 658 | int32_t AConfiguration_getScreenSize(AConfiguration* config); |
| 659 | |
| 660 | /** |
| 661 | * Set the current screen size in the configuration. |
| 662 | */ |
| 663 | void AConfiguration_setScreenSize(AConfiguration* config, int32_t screenSize); |
| 664 | |
| 665 | /** |
| 666 | * Return the current ACONFIGURATION_SCREENLONG_* set in the configuration. |
| 667 | */ |
| 668 | int32_t AConfiguration_getScreenLong(AConfiguration* config); |
| 669 | |
| 670 | /** |
| 671 | * Set the current screen long in the configuration. |
| 672 | */ |
| 673 | void AConfiguration_setScreenLong(AConfiguration* config, int32_t screenLong); |
| 674 | |
| 675 | /** |
Adam Lesinski | 7eb1459 | 2015-05-14 14:28:32 -0700 | [diff] [blame] | 676 | * Return the current ACONFIGURATION_SCREENROUND_* set in the configuration. |
Elliott Hughes | ba80a0f | 2019-12-18 15:13:40 -0800 | [diff] [blame] | 677 | * |
| 678 | * Available since API level 30. |
Adam Lesinski | 7eb1459 | 2015-05-14 14:28:32 -0700 | [diff] [blame] | 679 | */ |
Elliott Hughes | ba80a0f | 2019-12-18 15:13:40 -0800 | [diff] [blame] | 680 | int32_t AConfiguration_getScreenRound(AConfiguration* config) __INTRODUCED_IN(30); |
Adam Lesinski | 7eb1459 | 2015-05-14 14:28:32 -0700 | [diff] [blame] | 681 | |
| 682 | /** |
| 683 | * Set the current screen round in the configuration. |
| 684 | */ |
| 685 | void AConfiguration_setScreenRound(AConfiguration* config, int32_t screenRound); |
| 686 | |
| 687 | /** |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 688 | * Return the current ACONFIGURATION_UI_MODE_TYPE_* set in the configuration. |
| 689 | */ |
| 690 | int32_t AConfiguration_getUiModeType(AConfiguration* config); |
| 691 | |
| 692 | /** |
| 693 | * Set the current UI mode type in the configuration. |
| 694 | */ |
| 695 | void AConfiguration_setUiModeType(AConfiguration* config, int32_t uiModeType); |
| 696 | |
| 697 | /** |
| 698 | * Return the current ACONFIGURATION_UI_MODE_NIGHT_* set in the configuration. |
| 699 | */ |
| 700 | int32_t AConfiguration_getUiModeNight(AConfiguration* config); |
| 701 | |
| 702 | /** |
| 703 | * Set the current UI mode night in the configuration. |
| 704 | */ |
| 705 | void AConfiguration_setUiModeNight(AConfiguration* config, int32_t uiModeNight); |
| 706 | |
| 707 | /** |
| 708 | * Return the current configuration screen width in dp units, or |
| 709 | * ACONFIGURATION_SCREEN_WIDTH_DP_ANY if not set. |
| 710 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 711 | int32_t AConfiguration_getScreenWidthDp(AConfiguration* config); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 712 | |
| 713 | /** |
| 714 | * Set the configuration's current screen width in dp units. |
| 715 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 716 | void AConfiguration_setScreenWidthDp(AConfiguration* config, int32_t value); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 717 | |
| 718 | /** |
| 719 | * Return the current configuration screen height in dp units, or |
| 720 | * ACONFIGURATION_SCREEN_HEIGHT_DP_ANY if not set. |
| 721 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 722 | int32_t AConfiguration_getScreenHeightDp(AConfiguration* config); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 723 | |
| 724 | /** |
| 725 | * Set the configuration's current screen width in dp units. |
| 726 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 727 | void AConfiguration_setScreenHeightDp(AConfiguration* config, int32_t value); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 728 | |
| 729 | /** |
| 730 | * Return the configuration's smallest screen width in dp units, or |
| 731 | * ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY if not set. |
| 732 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 733 | int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 734 | |
| 735 | /** |
| 736 | * Set the configuration's smallest screen width in dp units. |
| 737 | */ |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 738 | void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value); |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 739 | |
| 740 | /** |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 741 | * Return the configuration's layout direction, or |
| 742 | * ACONFIGURATION_LAYOUTDIR_ANY if not set. |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 743 | * |
| 744 | * Available since API level 17. |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 745 | */ |
Elliott Hughes | c2fcafc | 2018-06-18 12:28:46 -0700 | [diff] [blame] | 746 | int32_t AConfiguration_getLayoutDirection(AConfiguration* config) __INTRODUCED_IN(17); |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 747 | |
| 748 | /** |
| 749 | * Set the configuration's layout direction. |
Elliott Hughes | 0556547 | 2019-10-29 08:59:39 -0700 | [diff] [blame] | 750 | * |
| 751 | * Available since API level 17. |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 752 | */ |
Elliott Hughes | c2fcafc | 2018-06-18 12:28:46 -0700 | [diff] [blame] | 753 | void AConfiguration_setLayoutDirection(AConfiguration* config, int32_t value) __INTRODUCED_IN(17); |
Fabrice Di Meglio | 8855e6f | 2012-06-20 15:47:21 -0700 | [diff] [blame] | 754 | |
| 755 | /** |
Yurii Zubrytskyi | 0e4f177 | 2023-01-04 08:45:03 -0800 | [diff] [blame] | 756 | * Return the configuration's grammatical gender, or ACONFIGURATION_GRAMMATICAL_GENDER_ANY if |
| 757 | * not set. |
| 758 | * |
| 759 | * Available since API level 34. |
| 760 | */ |
| 761 | int32_t AConfiguration_getGrammaticalGender(AConfiguration* config) |
| 762 | __INTRODUCED_IN(__ANDROID_API_U__); |
| 763 | |
| 764 | /** |
| 765 | * Set the configuration's grammatical gender to one of the |
| 766 | * ACONFIGURATION_GRAMMATICAL_GENDER_* constants. |
| 767 | * |
| 768 | * Available since API level 34. |
| 769 | */ |
| 770 | void AConfiguration_setGrammaticalGender(AConfiguration* config, int32_t value) |
| 771 | __INTRODUCED_IN(__ANDROID_API_U__); |
| 772 | |
| 773 | /** |
Mathias Agopian | e1c61d3 | 2012-03-23 14:19:36 -0700 | [diff] [blame] | 774 | * Perform a diff between two configurations. Returns a bit mask of |
| 775 | * ACONFIGURATION_* constants, each bit set meaning that configuration element |
| 776 | * is different between them. |
| 777 | */ |
| 778 | int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2); |
| 779 | |
| 780 | /** |
| 781 | * Determine whether 'base' is a valid configuration for use within the |
| 782 | * environment 'requested'. Returns 0 if there are any values in 'base' |
| 783 | * that conflict with 'requested'. Returns 1 if it does not conflict. |
| 784 | */ |
| 785 | int32_t AConfiguration_match(AConfiguration* base, AConfiguration* requested); |
| 786 | |
| 787 | /** |
| 788 | * Determine whether the configuration in 'test' is better than the existing |
| 789 | * configuration in 'base'. If 'requested' is non-NULL, this decision is based |
| 790 | * on the overall configuration given there. If it is NULL, this decision is |
| 791 | * simply based on which configuration is more specific. Returns non-0 if |
| 792 | * 'test' is better than 'base'. |
| 793 | * |
| 794 | * This assumes you have already filtered the configurations with |
| 795 | * AConfiguration_match(). |
| 796 | */ |
| 797 | int32_t AConfiguration_isBetterThan(AConfiguration* base, AConfiguration* test, |
| 798 | AConfiguration* requested); |
| 799 | |
| 800 | #ifdef __cplusplus |
| 801 | }; |
| 802 | #endif |
| 803 | |
| 804 | #endif // ANDROID_CONFIGURATION_H |
Johan Euphrosine | bf6d5e0 | 2015-03-27 17:15:43 -0700 | [diff] [blame] | 805 | |
| 806 | /** @} */ |