• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.robolectric.res.android;
2 
3 // transliterated from https://android.googlesource.com/platform/frameworks/native/+/android-9.0.0_r12/include/android/configuration.h
4 public class AConfiguration {
5 /** Orientation: not specified. */
6   public static final int ACONFIGURATION_ORIENTATION_ANY  = 0x0000;
7   /**
8    * Orientation: value corresponding to the
9    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#OrientationQualifier">port</a>
10    * resource qualifier.
11    */
12   public static final int ACONFIGURATION_ORIENTATION_PORT = 0x0001;
13   /**
14    * Orientation: value corresponding to the
15    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#OrientationQualifier">land</a>
16    * resource qualifier.
17    */
18   public static final int ACONFIGURATION_ORIENTATION_LAND = 0x0002;
19   /** @deprecated Not currently supported or used. */
20   @Deprecated
21   public static final int ACONFIGURATION_ORIENTATION_SQUARE = 0x0003;
22   /** Touchscreen: not specified. */
23   public static final int ACONFIGURATION_TOUCHSCREEN_ANY  = 0x0000;
24   /**
25    * Touchscreen: value corresponding to the
26    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#TouchscreenQualifier">notouch</a>
27    * resource qualifier.
28    */
29   public static final int ACONFIGURATION_TOUCHSCREEN_NOTOUCH  = 0x0001;
30   /** @deprecated Not currently supported or used. */
31   @Deprecated
32   public static final int ACONFIGURATION_TOUCHSCREEN_STYLUS  = 0x0002;
33   /**
34    * Touchscreen: value corresponding to the
35    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#TouchscreenQualifier">finger</a>
36    * resource qualifier.
37    */
38   public static final int ACONFIGURATION_TOUCHSCREEN_FINGER  = 0x0003;
39   /** Density: default density. */
40   public static final int ACONFIGURATION_DENSITY_DEFAULT = 0;
41   /**
42    * Density: value corresponding to the
43    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">ldpi</a>
44    * resource qualifier.
45    */
46   public static final int ACONFIGURATION_DENSITY_LOW = 120;
47   /**
48    * Density: value corresponding to the
49    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">mdpi</a>
50    * resource qualifier.
51    */
52   public static final int ACONFIGURATION_DENSITY_MEDIUM = 160;
53   /**
54    * Density: value corresponding to the
55    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">tvdpi</a>
56    * resource qualifier.
57    */
58   public static final int ACONFIGURATION_DENSITY_TV = 213;
59   /**
60    * Density: value corresponding to the
61    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">hdpi</a>
62    * resource qualifier.
63    */
64   public static final int ACONFIGURATION_DENSITY_HIGH = 240;
65   /**
66    * Density: value corresponding to the
67    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">xhdpi</a>
68    * resource qualifier.
69    */
70   public static final int ACONFIGURATION_DENSITY_XHIGH = 320;
71   /**
72    * Density: value corresponding to the
73    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">xxhdpi</a>
74    * resource qualifier.
75    */
76   public static final int ACONFIGURATION_DENSITY_XXHIGH = 480;
77   /**
78    * Density: value corresponding to the
79    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">xxxhdpi</a>
80    * resource qualifier.
81    */
82   public static final int ACONFIGURATION_DENSITY_XXXHIGH = 640;
83   /** Density: any density. */
84   public static final int ACONFIGURATION_DENSITY_ANY = 0xfffe;
85   /** Density: no density specified. */
86   public static final int ACONFIGURATION_DENSITY_NONE = 0xffff;
87   /** Keyboard: not specified. */
88   public static final int ACONFIGURATION_KEYBOARD_ANY  = 0x0000;
89   /**
90    * Keyboard: value corresponding to the
91    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ImeQualifier">nokeys</a>
92    * resource qualifier.
93    */
94   public static final int ACONFIGURATION_KEYBOARD_NOKEYS  = 0x0001;
95   /**
96    * Keyboard: value corresponding to the
97    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ImeQualifier">qwerty</a>
98    * resource qualifier.
99    */
100   public static final int ACONFIGURATION_KEYBOARD_QWERTY  = 0x0002;
101   /**
102    * Keyboard: value corresponding to the
103    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ImeQualifier">12key</a>
104    * resource qualifier.
105    */
106   public static final int ACONFIGURATION_KEYBOARD_12KEY  = 0x0003;
107   /** Navigation: not specified. */
108   public static final int ACONFIGURATION_NAVIGATION_ANY  = 0x0000;
109   /**
110    * Navigation: value corresponding to the
111    * <a href="@@dacRoot/guide/topics/resources/providing-resources.html#NavigationQualifier">nonav</a>
112    * resource qualifier.
113    */
114   public static final int ACONFIGURATION_NAVIGATION_NONAV  = 0x0001;
115   /**
116    * Navigation: value corresponding to the
117    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavigationQualifier">dpad</a>
118    * resource qualifier.
119    */
120   public static final int ACONFIGURATION_NAVIGATION_DPAD  = 0x0002;
121   /**
122    * Navigation: value corresponding to the
123    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavigationQualifier">trackball</a>
124    * resource qualifier.
125    */
126   public static final int ACONFIGURATION_NAVIGATION_TRACKBALL  = 0x0003;
127   /**
128    * Navigation: value corresponding to the
129    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavigationQualifier">wheel</a>
130    * resource qualifier.
131    */
132   public static final int ACONFIGURATION_NAVIGATION_WHEEL  = 0x0004;
133   /** Keyboard availability: not specified. */
134   public static final int ACONFIGURATION_KEYSHIDDEN_ANY = 0x0000;
135   /**
136    * Keyboard availability: value corresponding to the
137    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keysexposed</a>
138    * resource qualifier.
139    */
140   public static final int ACONFIGURATION_KEYSHIDDEN_NO = 0x0001;
141   /**
142    * Keyboard availability: value corresponding to the
143    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyshidden</a>
144    * resource qualifier.
145    */
146   public static final int ACONFIGURATION_KEYSHIDDEN_YES = 0x0002;
147   /**
148    * Keyboard availability: value corresponding to the
149    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyssoft</a>
150    * resource qualifier.
151    */
152   public static final int ACONFIGURATION_KEYSHIDDEN_SOFT = 0x0003;
153   /** Navigation availability: not specified. */
154   public static final int ACONFIGURATION_NAVHIDDEN_ANY = 0x0000;
155   /**
156    * Navigation availability: value corresponding to the
157    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavAvailQualifier">navexposed</a>
158    * resource qualifier.
159    */
160   public static final int ACONFIGURATION_NAVHIDDEN_NO = 0x0001;
161   /**
162    * Navigation availability: value corresponding to the
163    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavAvailQualifier">navhidden</a>
164    * resource qualifier.
165    */
166   public static final int ACONFIGURATION_NAVHIDDEN_YES = 0x0002;
167   /** Screen size: not specified. */
168   public static final int ACONFIGURATION_SCREENSIZE_ANY  = 0x00;
169   /**
170    * Screen size: value indicating the screen is at least
171    * approximately 320x426 dp units, corresponding to the
172    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">small</a>
173    * resource qualifier.
174    */
175   public static final int ACONFIGURATION_SCREENSIZE_SMALL = 0x01;
176   /**
177    * Screen size: value indicating the screen is at least
178    * approximately 320x470 dp units, corresponding to the
179    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">normal</a>
180    * resource qualifier.
181    */
182   public static final int ACONFIGURATION_SCREENSIZE_NORMAL = 0x02;
183   /**
184    * Screen size: value indicating the screen is at least
185    * approximately 480x640 dp units, corresponding to the
186    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">large</a>
187    * resource qualifier.
188    */
189   public static final int ACONFIGURATION_SCREENSIZE_LARGE = 0x03;
190   /**
191    * Screen size: value indicating the screen is at least
192    * approximately 720x960 dp units, corresponding to the
193    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">xlarge</a>
194    * resource qualifier.
195    */
196   public static final int ACONFIGURATION_SCREENSIZE_XLARGE = 0x04;
197   /** Screen layout: not specified. */
198   public static final int ACONFIGURATION_SCREENLONG_ANY = 0x00;
199   /**
200    * Screen layout: value that corresponds to the
201    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenAspectQualifier">notlong</a>
202    * resource qualifier.
203    */
204   public static final int ACONFIGURATION_SCREENLONG_NO = 0x1;
205   /**
206    * Screen layout: value that corresponds to the
207    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenAspectQualifier">long</a>
208    * resource qualifier.
209    */
210   public static final int ACONFIGURATION_SCREENLONG_YES = 0x2;
211   public static final int ACONFIGURATION_SCREENROUND_ANY = 0x00;
212   public static final int ACONFIGURATION_SCREENROUND_NO = 0x1;
213   public static final int ACONFIGURATION_SCREENROUND_YES = 0x2;
214 
215   /** Wide color gamut: not specified. */
216   public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_ANY = 0x00;
217   /**
218    * Wide color gamut: value that corresponds to
219    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#WideColorGamutQualifier">no
220    * nowidecg</a> resource qualifier specified.
221    */
222   public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_NO = 0x1;
223   /**
224    * Wide color gamut: value that corresponds to
225    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#WideColorGamutQualifier">
226    * widecg</a> resource qualifier specified.
227    */
228   public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_YES = 0x2;
229 
230   /** HDR: not specified. */
231   public static final int ACONFIGURATION_HDR_ANY = 0x00;
232   /**
233    * HDR: value that corresponds to
234    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#HDRQualifier">
235    * lowdr</a> resource qualifier specified.
236    */
237   public static final int ACONFIGURATION_HDR_NO = 0x1;
238   /**
239    * HDR: value that corresponds to
240    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#HDRQualifier">
241    * highdr</a> resource qualifier specified.
242    */
243   public static final int ACONFIGURATION_HDR_YES = 0x2;
244 
245   /** UI mode: not specified. */
246   public static final int ACONFIGURATION_UI_MODE_TYPE_ANY = 0x00;
247   /**
248    * UI mode: value that corresponds to
249    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">no
250    * UI mode type</a> resource qualifier specified.
251    */
252   public static final int ACONFIGURATION_UI_MODE_TYPE_NORMAL = 0x01;
253   /**
254    * UI mode: value that corresponds to
255    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">desk</a> resource qualifier specified.
256    */
257   public static final int ACONFIGURATION_UI_MODE_TYPE_DESK = 0x02;
258   /**
259    * UI mode: value that corresponds to
260    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">car</a> resource qualifier specified.
261    */
262   public static final int ACONFIGURATION_UI_MODE_TYPE_CAR = 0x03;
263   /**
264    * UI mode: value that corresponds to
265    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">television</a> resource qualifier specified.
266    */
267   public static final int ACONFIGURATION_UI_MODE_TYPE_TELEVISION = 0x04;
268   /**
269    * UI mode: value that corresponds to
270    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">appliance</a> resource qualifier specified.
271    */
272   public static final int ACONFIGURATION_UI_MODE_TYPE_APPLIANCE = 0x05;
273   /**
274    * UI mode: value that corresponds to
275    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">watch</a> resource qualifier specified.
276    */
277   public static final int ACONFIGURATION_UI_MODE_TYPE_WATCH = 0x06;
278    /**
279   * UI mode: value that corresponds to
280   * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">vr</a> resource qualifier specified.
281   */
282   public static final int ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET = 0x07;
283   /** UI night mode: not specified.*/
284   public static final int ACONFIGURATION_UI_MODE_NIGHT_ANY = 0x00;
285   /**
286    * UI night mode: value that corresponds to
287    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NightQualifier">notnight</a> resource qualifier specified.
288    */
289   public static final int ACONFIGURATION_UI_MODE_NIGHT_NO = 0x1;
290   /**
291    * UI night mode: value that corresponds to
292    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NightQualifier">night</a> resource qualifier specified.
293    */
294   public static final int ACONFIGURATION_UI_MODE_NIGHT_YES = 0x2;
295   /** Screen width DPI: not specified. */
296   public static final int ACONFIGURATION_SCREEN_WIDTH_DP_ANY = 0x0000;
297   /** Screen height DPI: not specified. */
298   public static final int ACONFIGURATION_SCREEN_HEIGHT_DP_ANY = 0x0000;
299   /** Smallest screen width DPI: not specified.*/
300   public static final int ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY = 0x0000;
301   /** Layout direction: not specified. */
302   public static final int ACONFIGURATION_LAYOUTDIR_ANY  = 0x00;
303   /**
304    * Layout direction: value that corresponds to
305    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">ldltr</a> resource qualifier specified.
306    */
307   public static final int ACONFIGURATION_LAYOUTDIR_LTR  = 0x01;
308   /**
309    * Layout direction: value that corresponds to
310    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">ldrtl</a> resource qualifier specified.
311    */
312   public static final int ACONFIGURATION_LAYOUTDIR_RTL  = 0x02;
313   /**
314    * Bit mask for
315    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#MccQualifier">mcc</a>
316    * configuration.
317    */
318   public static final int ACONFIGURATION_MCC = 0x0001;
319   /**
320    * Bit mask for
321    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#MccQualifier">mnc</a>
322    * configuration.
323    */
324   public static final int ACONFIGURATION_MNC = 0x0002;
325   /**
326    * Bit mask for
327    * <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a>
328    * configuration.
329    */
330   public static final int ACONFIGURATION_LOCALE = 0x0004;
331   /**
332    * Bit mask for
333    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#TouchscreenQualifier">touchscreen</a>
334    * configuration.
335    */
336   public static final int ACONFIGURATION_TOUCHSCREEN = 0x0008;
337   /**
338    * Bit mask for
339    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ImeQualifier">keyboard</a>
340    * configuration.
341    */
342   public static final int ACONFIGURATION_KEYBOARD = 0x0010;
343   /**
344    * Bit mask for
345    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#KeyboardAvailQualifier">keyboardHidden</a>
346    * configuration.
347    */
348   public static final int ACONFIGURATION_KEYBOARD_HIDDEN = 0x0020;
349   /**
350    * Bit mask for
351    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#NavigationQualifier">navigation</a>
352    * configuration.
353    */
354   public static final int ACONFIGURATION_NAVIGATION = 0x0040;
355   /**
356    * Bit mask for
357    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#OrientationQualifier">orientation</a>
358    * configuration.
359    */
360   public static final int ACONFIGURATION_ORIENTATION = 0x0080;
361   /**
362    * Bit mask for
363    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">density</a>
364    * configuration.
365    */
366   public static final int ACONFIGURATION_DENSITY = 0x0100;
367   /**
368    * Bit mask for
369    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#ScreenSizeQualifier">screen size</a>
370    * configuration.
371    */
372   public static final int ACONFIGURATION_SCREEN_SIZE = 0x0200;
373   /**
374    * Bit mask for
375    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#VersionQualifier">platform version</a>
376    * configuration.
377    */
378   public static final int ACONFIGURATION_VERSION = 0x0400;
379   /**
380    * Bit mask for screen layout configuration.
381    */
382   public static final int ACONFIGURATION_SCREEN_LAYOUT = 0x0800;
383   /**
384    * Bit mask for
385    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#UiModeQualifier">ui mode</a>
386    * configuration.
387    */
388   public static final int ACONFIGURATION_UI_MODE = 0x1000;
389   /**
390    * Bit mask for
391    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#SmallestScreenWidthQualifier">smallest screen width</a>
392    * configuration.
393    */
394   public static final int ACONFIGURATION_SMALLEST_SCREEN_SIZE = 0x2000;
395   /**
396    * Bit mask for
397    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#LayoutDirectionQualifier">layout direction</a>
398    * configuration.
399    */
400   public static final int ACONFIGURATION_LAYOUTDIR = 0x4000;
401   public static final int ACONFIGURATION_SCREEN_ROUND = 0x8000;
402   /**
403    * Bit mask for
404    * <a href="@dacRoot/guide/topics/resources/providing-resources.html#WideColorGamutQualifier">wide color gamut</a>
405    * and <a href="@dacRoot/guide/topics/resources/providing-resources.html#HDRQualifier">HDR</a> configurations.
406    */
407   public static final int ACONFIGURATION_COLOR_MODE = 0x10000;
408   /**
409    * Constant used to to represent MNC (Mobile Network Code) zero.
410    * 0 cannot be used, since it is used to represent an undefined MNC.
411    */
412   public static final int ACONFIGURATION_MNC_ZERO = 0xffff;
413 }
414