All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.res.android.AConfiguration Maven / Gradle / Ivy

There is a newer version: 4.14.1
Show newest version
package org.robolectric.res.android;

// transliterated from https://android.googlesource.com/platform/frameworks/native/+/android-9.0.0_r12/include/android/configuration.h
public class AConfiguration {
/** Orientation: not specified. */
  public static final int ACONFIGURATION_ORIENTATION_ANY  = 0x0000;
  /**
   * Orientation: value corresponding to the
   * port
   * resource qualifier.
   */
  public static final int ACONFIGURATION_ORIENTATION_PORT = 0x0001;
  /**
   * Orientation: value corresponding to the
   * land
   * resource qualifier.
   */
  public static final int ACONFIGURATION_ORIENTATION_LAND = 0x0002;
  /** @deprecated Not currently supported or used. */
  @Deprecated
  public static final int ACONFIGURATION_ORIENTATION_SQUARE = 0x0003;
  /** Touchscreen: not specified. */
  public static final int ACONFIGURATION_TOUCHSCREEN_ANY  = 0x0000;
  /**
   * Touchscreen: value corresponding to the
   * notouch
   * resource qualifier.
   */
  public static final int ACONFIGURATION_TOUCHSCREEN_NOTOUCH  = 0x0001;
  /** @deprecated Not currently supported or used. */
  @Deprecated
  public static final int ACONFIGURATION_TOUCHSCREEN_STYLUS  = 0x0002;
  /**
   * Touchscreen: value corresponding to the
   * finger
   * resource qualifier.
   */
  public static final int ACONFIGURATION_TOUCHSCREEN_FINGER  = 0x0003;
  /** Density: default density. */
  public static final int ACONFIGURATION_DENSITY_DEFAULT = 0;
  /**
   * Density: value corresponding to the
   * ldpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_LOW = 120;
  /**
   * Density: value corresponding to the
   * mdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_MEDIUM = 160;
  /**
   * Density: value corresponding to the
   * tvdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_TV = 213;
  /**
   * Density: value corresponding to the
   * hdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_HIGH = 240;
  /**
   * Density: value corresponding to the
   * xhdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_XHIGH = 320;
  /**
   * Density: value corresponding to the
   * xxhdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_XXHIGH = 480;
  /**
   * Density: value corresponding to the
   * xxxhdpi
   * resource qualifier.
   */
  public static final int ACONFIGURATION_DENSITY_XXXHIGH = 640;
  /** Density: any density. */
  public static final int ACONFIGURATION_DENSITY_ANY = 0xfffe;
  /** Density: no density specified. */
  public static final int ACONFIGURATION_DENSITY_NONE = 0xffff;
  /** Keyboard: not specified. */
  public static final int ACONFIGURATION_KEYBOARD_ANY  = 0x0000;
  /**
   * Keyboard: value corresponding to the
   * nokeys
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYBOARD_NOKEYS  = 0x0001;
  /**
   * Keyboard: value corresponding to the
   * qwerty
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYBOARD_QWERTY  = 0x0002;
  /**
   * Keyboard: value corresponding to the
   * 12key
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYBOARD_12KEY  = 0x0003;
  /** Navigation: not specified. */
  public static final int ACONFIGURATION_NAVIGATION_ANY  = 0x0000;
  /**
   * Navigation: value corresponding to the
   * nonav
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVIGATION_NONAV  = 0x0001;
  /**
   * Navigation: value corresponding to the
   * dpad
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVIGATION_DPAD  = 0x0002;
  /**
   * Navigation: value corresponding to the
   * trackball
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVIGATION_TRACKBALL  = 0x0003;
  /**
   * Navigation: value corresponding to the
   * wheel
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVIGATION_WHEEL  = 0x0004;
  /** Keyboard availability: not specified. */
  public static final int ACONFIGURATION_KEYSHIDDEN_ANY = 0x0000;
  /**
   * Keyboard availability: value corresponding to the
   * keysexposed
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYSHIDDEN_NO = 0x0001;
  /**
   * Keyboard availability: value corresponding to the
   * keyshidden
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYSHIDDEN_YES = 0x0002;
  /**
   * Keyboard availability: value corresponding to the
   * keyssoft
   * resource qualifier.
   */
  public static final int ACONFIGURATION_KEYSHIDDEN_SOFT = 0x0003;
  /** Navigation availability: not specified. */
  public static final int ACONFIGURATION_NAVHIDDEN_ANY = 0x0000;
  /**
   * Navigation availability: value corresponding to the
   * navexposed
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVHIDDEN_NO = 0x0001;
  /**
   * Navigation availability: value corresponding to the
   * navhidden
   * resource qualifier.
   */
  public static final int ACONFIGURATION_NAVHIDDEN_YES = 0x0002;
  /** Screen size: not specified. */
  public static final int ACONFIGURATION_SCREENSIZE_ANY  = 0x00;
  /**
   * Screen size: value indicating the screen is at least
   * approximately 320x426 dp units, corresponding to the
   * small
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENSIZE_SMALL = 0x01;
  /**
   * Screen size: value indicating the screen is at least
   * approximately 320x470 dp units, corresponding to the
   * normal
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENSIZE_NORMAL = 0x02;
  /**
   * Screen size: value indicating the screen is at least
   * approximately 480x640 dp units, corresponding to the
   * large
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENSIZE_LARGE = 0x03;
  /**
   * Screen size: value indicating the screen is at least
   * approximately 720x960 dp units, corresponding to the
   * xlarge
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENSIZE_XLARGE = 0x04;
  /** Screen layout: not specified. */
  public static final int ACONFIGURATION_SCREENLONG_ANY = 0x00;
  /**
   * Screen layout: value that corresponds to the
   * notlong
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENLONG_NO = 0x1;
  /**
   * Screen layout: value that corresponds to the
   * long
   * resource qualifier.
   */
  public static final int ACONFIGURATION_SCREENLONG_YES = 0x2;
  public static final int ACONFIGURATION_SCREENROUND_ANY = 0x00;
  public static final int ACONFIGURATION_SCREENROUND_NO = 0x1;
  public static final int ACONFIGURATION_SCREENROUND_YES = 0x2;

  /** Wide color gamut: not specified. */
  public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_ANY = 0x00;
  /**
   * Wide color gamut: value that corresponds to
   * no
   * nowidecg resource qualifier specified.
   */
  public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_NO = 0x1;
  /**
   * Wide color gamut: value that corresponds to
   * 
   * widecg resource qualifier specified.
   */
  public static final int ACONFIGURATION_WIDE_COLOR_GAMUT_YES = 0x2;

  /** HDR: not specified. */
  public static final int ACONFIGURATION_HDR_ANY = 0x00;
  /**
   * HDR: value that corresponds to
   * 
   * lowdr resource qualifier specified.
   */
  public static final int ACONFIGURATION_HDR_NO = 0x1;
  /**
   * HDR: value that corresponds to
   * 
   * highdr resource qualifier specified.
   */
  public static final int ACONFIGURATION_HDR_YES = 0x2;

  /** UI mode: not specified. */
  public static final int ACONFIGURATION_UI_MODE_TYPE_ANY = 0x00;
  /**
   * UI mode: value that corresponds to
   * no
   * UI mode type resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_NORMAL = 0x01;
  /**
   * UI mode: value that corresponds to
   * desk resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_DESK = 0x02;
  /**
   * UI mode: value that corresponds to
   * car resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_CAR = 0x03;
  /**
   * UI mode: value that corresponds to
   * television resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_TELEVISION = 0x04;
  /**
   * UI mode: value that corresponds to
   * appliance resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_APPLIANCE = 0x05;
  /**
   * UI mode: value that corresponds to
   * watch resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_TYPE_WATCH = 0x06;
   /**
  * UI mode: value that corresponds to
  * vr resource qualifier specified.
  */
  public static final int ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET = 0x07;
  /** UI night mode: not specified.*/
  public static final int ACONFIGURATION_UI_MODE_NIGHT_ANY = 0x00;
  /**
   * UI night mode: value that corresponds to
   * notnight resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_NIGHT_NO = 0x1;
  /**
   * UI night mode: value that corresponds to
   * night resource qualifier specified.
   */
  public static final int ACONFIGURATION_UI_MODE_NIGHT_YES = 0x2;
  /** Screen width DPI: not specified. */
  public static final int ACONFIGURATION_SCREEN_WIDTH_DP_ANY = 0x0000;
  /** Screen height DPI: not specified. */
  public static final int ACONFIGURATION_SCREEN_HEIGHT_DP_ANY = 0x0000;
  /** Smallest screen width DPI: not specified.*/
  public static final int ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY = 0x0000;
  /** Layout direction: not specified. */
  public static final int ACONFIGURATION_LAYOUTDIR_ANY  = 0x00;
  /**
   * Layout direction: value that corresponds to
   * ldltr resource qualifier specified.
   */
  public static final int ACONFIGURATION_LAYOUTDIR_LTR  = 0x01;
  /**
   * Layout direction: value that corresponds to
   * ldrtl resource qualifier specified.
   */
  public static final int ACONFIGURATION_LAYOUTDIR_RTL  = 0x02;
  /**
   * Bit mask for
   * mcc
   * configuration.
   */
  public static final int ACONFIGURATION_MCC = 0x0001;
  /**
   * Bit mask for
   * mnc
   * configuration.
   */
  public static final int ACONFIGURATION_MNC = 0x0002;
  /**
   * Bit mask for
   * locale
   * configuration.
   */
  public static final int ACONFIGURATION_LOCALE = 0x0004;
  /**
   * Bit mask for
   * touchscreen
   * configuration.
   */
  public static final int ACONFIGURATION_TOUCHSCREEN = 0x0008;
  /**
   * Bit mask for
   * keyboard
   * configuration.
   */
  public static final int ACONFIGURATION_KEYBOARD = 0x0010;
  /**
   * Bit mask for
   * keyboardHidden
   * configuration.
   */
  public static final int ACONFIGURATION_KEYBOARD_HIDDEN = 0x0020;
  /**
   * Bit mask for
   * navigation
   * configuration.
   */
  public static final int ACONFIGURATION_NAVIGATION = 0x0040;
  /**
   * Bit mask for
   * orientation
   * configuration.
   */
  public static final int ACONFIGURATION_ORIENTATION = 0x0080;
  /**
   * Bit mask for
   * density
   * configuration.
   */
  public static final int ACONFIGURATION_DENSITY = 0x0100;
  /**
   * Bit mask for
   * screen size
   * configuration.
   */
  public static final int ACONFIGURATION_SCREEN_SIZE = 0x0200;
  /**
   * Bit mask for
   * platform version
   * configuration.
   */
  public static final int ACONFIGURATION_VERSION = 0x0400;
  /**
   * Bit mask for screen layout configuration.
   */
  public static final int ACONFIGURATION_SCREEN_LAYOUT = 0x0800;
  /**
   * Bit mask for
   * ui mode
   * configuration.
   */
  public static final int ACONFIGURATION_UI_MODE = 0x1000;
  /**
   * Bit mask for
   * smallest screen width
   * configuration.
   */
  public static final int ACONFIGURATION_SMALLEST_SCREEN_SIZE = 0x2000;
  /**
   * Bit mask for
   * layout direction
   * configuration.
   */
  public static final int ACONFIGURATION_LAYOUTDIR = 0x4000;
  public static final int ACONFIGURATION_SCREEN_ROUND = 0x8000;
  /**
   * Bit mask for
   * wide color gamut
   * and HDR configurations.
   */
  public static final int ACONFIGURATION_COLOR_MODE = 0x10000;
  /**
   * Constant used to to represent MNC (Mobile Network Code) zero.
   * 0 cannot be used, since it is used to represent an undefined MNC.
   */
  public static final int ACONFIGURATION_MNC_ZERO = 0xffff;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy