page.title=configuration.h File Reference page.customHeadTag= @jd:body
Typedefs | Enumerations | Functions
configuration.h File Reference
#include <android/asset_manager.h>

Typedefs

typedef struct AConfiguration AConfiguration
 

Enumerations

enum  {
  ACONFIGURATION_ORIENTATION_ANY = 0x0000, ACONFIGURATION_ORIENTATION_PORT = 0x0001, ACONFIGURATION_ORIENTATION_LAND = 0x0002, ACONFIGURATION_ORIENTATION_SQUARE = 0x0003,
  ACONFIGURATION_TOUCHSCREEN_ANY = 0x0000, ACONFIGURATION_TOUCHSCREEN_NOTOUCH = 0x0001, ACONFIGURATION_TOUCHSCREEN_STYLUS = 0x0002, ACONFIGURATION_TOUCHSCREEN_FINGER = 0x0003,
  ACONFIGURATION_DENSITY_DEFAULT = 0, ACONFIGURATION_DENSITY_LOW = 120, ACONFIGURATION_DENSITY_MEDIUM = 160, ACONFIGURATION_DENSITY_TV = 213,
  ACONFIGURATION_DENSITY_HIGH = 240, ACONFIGURATION_DENSITY_XHIGH = 320, ACONFIGURATION_DENSITY_XXHIGH = 480, ACONFIGURATION_DENSITY_XXXHIGH = 640,
  ACONFIGURATION_DENSITY_ANY = 0xfffe, ACONFIGURATION_DENSITY_NONE = 0xffff, ACONFIGURATION_KEYBOARD_ANY = 0x0000, ACONFIGURATION_KEYBOARD_NOKEYS = 0x0001,
  ACONFIGURATION_KEYBOARD_QWERTY = 0x0002, ACONFIGURATION_KEYBOARD_12KEY = 0x0003, ACONFIGURATION_NAVIGATION_ANY = 0x0000, ACONFIGURATION_NAVIGATION_NONAV = 0x0001,
  ACONFIGURATION_NAVIGATION_DPAD = 0x0002, ACONFIGURATION_NAVIGATION_TRACKBALL = 0x0003, ACONFIGURATION_NAVIGATION_WHEEL = 0x0004, ACONFIGURATION_KEYSHIDDEN_ANY = 0x0000,
  ACONFIGURATION_KEYSHIDDEN_NO = 0x0001, ACONFIGURATION_KEYSHIDDEN_YES = 0x0002, ACONFIGURATION_KEYSHIDDEN_SOFT = 0x0003, ACONFIGURATION_NAVHIDDEN_ANY = 0x0000,
  ACONFIGURATION_NAVHIDDEN_NO = 0x0001, ACONFIGURATION_NAVHIDDEN_YES = 0x0002, ACONFIGURATION_SCREENSIZE_ANY = 0x00, ACONFIGURATION_SCREENSIZE_SMALL = 0x01,
  ACONFIGURATION_SCREENSIZE_NORMAL = 0x02, ACONFIGURATION_SCREENSIZE_LARGE = 0x03, ACONFIGURATION_SCREENSIZE_XLARGE = 0x04, ACONFIGURATION_SCREENLONG_ANY = 0x00,
  ACONFIGURATION_SCREENLONG_NO = 0x1, ACONFIGURATION_SCREENLONG_YES = 0x2, ACONFIGURATION_UI_MODE_TYPE_ANY = 0x00, ACONFIGURATION_UI_MODE_TYPE_NORMAL = 0x01,
  ACONFIGURATION_UI_MODE_TYPE_DESK = 0x02, ACONFIGURATION_UI_MODE_TYPE_CAR = 0x03, ACONFIGURATION_UI_MODE_TYPE_TELEVISION = 0x04, ACONFIGURATION_UI_MODE_TYPE_APPLIANCE = 0x05,
  ACONFIGURATION_UI_MODE_TYPE_WATCH = 0x06, ACONFIGURATION_UI_MODE_NIGHT_ANY = 0x00, ACONFIGURATION_UI_MODE_NIGHT_NO = 0x1, ACONFIGURATION_UI_MODE_NIGHT_YES = 0x2,
  ACONFIGURATION_SCREEN_WIDTH_DP_ANY = 0x0000, ACONFIGURATION_SCREEN_HEIGHT_DP_ANY = 0x0000, ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY = 0x0000, ACONFIGURATION_LAYOUTDIR_ANY = 0x00,
  ACONFIGURATION_LAYOUTDIR_LTR = 0x01, ACONFIGURATION_LAYOUTDIR_RTL = 0x02, ACONFIGURATION_MCC = 0x0001, ACONFIGURATION_MNC = 0x0002,
  ACONFIGURATION_LOCALE = 0x0004, ACONFIGURATION_TOUCHSCREEN = 0x0008, ACONFIGURATION_KEYBOARD = 0x0010, ACONFIGURATION_KEYBOARD_HIDDEN = 0x0020,
  ACONFIGURATION_NAVIGATION = 0x0040, ACONFIGURATION_ORIENTATION = 0x0080, ACONFIGURATION_DENSITY = 0x0100, ACONFIGURATION_SCREEN_SIZE = 0x0200,
  ACONFIGURATION_VERSION = 0x0400, ACONFIGURATION_SCREEN_LAYOUT = 0x0800, ACONFIGURATION_UI_MODE = 0x1000, ACONFIGURATION_SMALLEST_SCREEN_SIZE = 0x2000,
  ACONFIGURATION_LAYOUTDIR = 0x4000, ACONFIGURATION_MNC_ZERO = 0xffff
}
 

Functions

AConfigurationAConfiguration_new ()
 
void AConfiguration_delete (AConfiguration *config)
 
void AConfiguration_fromAssetManager (AConfiguration *out, AAssetManager *am)
 
void AConfiguration_copy (AConfiguration *dest, AConfiguration *src)
 
int32_t AConfiguration_getMcc (AConfiguration *config)
 
void AConfiguration_setMcc (AConfiguration *config, int32_t mcc)
 
int32_t AConfiguration_getMnc (AConfiguration *config)
 
void AConfiguration_setMnc (AConfiguration *config, int32_t mnc)
 
void AConfiguration_getLanguage (AConfiguration *config, char *outLanguage)
 
void AConfiguration_setLanguage (AConfiguration *config, const char *language)
 
void AConfiguration_getCountry (AConfiguration *config, char *outCountry)
 
void AConfiguration_setCountry (AConfiguration *config, const char *country)
 
int32_t AConfiguration_getOrientation (AConfiguration *config)
 
void AConfiguration_setOrientation (AConfiguration *config, int32_t orientation)
 
int32_t AConfiguration_getTouchscreen (AConfiguration *config)
 
void AConfiguration_setTouchscreen (AConfiguration *config, int32_t touchscreen)
 
int32_t AConfiguration_getDensity (AConfiguration *config)
 
void AConfiguration_setDensity (AConfiguration *config, int32_t density)
 
int32_t AConfiguration_getKeyboard (AConfiguration *config)
 
void AConfiguration_setKeyboard (AConfiguration *config, int32_t keyboard)
 
int32_t AConfiguration_getNavigation (AConfiguration *config)
 
void AConfiguration_setNavigation (AConfiguration *config, int32_t navigation)
 
int32_t AConfiguration_getKeysHidden (AConfiguration *config)
 
void AConfiguration_setKeysHidden (AConfiguration *config, int32_t keysHidden)
 
int32_t AConfiguration_getNavHidden (AConfiguration *config)
 
void AConfiguration_setNavHidden (AConfiguration *config, int32_t navHidden)
 
int32_t AConfiguration_getSdkVersion (AConfiguration *config)
 
void AConfiguration_setSdkVersion (AConfiguration *config, int32_t sdkVersion)
 
int32_t AConfiguration_getScreenSize (AConfiguration *config)
 
void AConfiguration_setScreenSize (AConfiguration *config, int32_t screenSize)
 
int32_t AConfiguration_getScreenLong (AConfiguration *config)
 
void AConfiguration_setScreenLong (AConfiguration *config, int32_t screenLong)
 
int32_t AConfiguration_getUiModeType (AConfiguration *config)
 
void AConfiguration_setUiModeType (AConfiguration *config, int32_t uiModeType)
 
int32_t AConfiguration_getUiModeNight (AConfiguration *config)
 
void AConfiguration_setUiModeNight (AConfiguration *config, int32_t uiModeNight)
 
int32_t AConfiguration_getScreenWidthDp (AConfiguration *config)
 
void AConfiguration_setScreenWidthDp (AConfiguration *config, int32_t value)
 
int32_t AConfiguration_getScreenHeightDp (AConfiguration *config)
 
void AConfiguration_setScreenHeightDp (AConfiguration *config, int32_t value)
 
int32_t AConfiguration_getSmallestScreenWidthDp (AConfiguration *config)
 
void AConfiguration_setSmallestScreenWidthDp (AConfiguration *config, int32_t value)
 
int32_t AConfiguration_getLayoutDirection (AConfiguration *config)
 
void AConfiguration_setLayoutDirection (AConfiguration *config, int32_t value)
 
int32_t AConfiguration_diff (AConfiguration *config1, AConfiguration *config2)
 
int32_t AConfiguration_match (AConfiguration *base, AConfiguration *requested)
 
int32_t AConfiguration_isBetterThan (AConfiguration *base, AConfiguration *test, AConfiguration *requested)