Home | History | Annotate | Download | only in android

Lines Matching defs:config

27     AConfiguration* config = new AConfiguration;
28 memset(config, 0, sizeof(AConfiguration));
29 return config;
32 void AConfiguration_delete(AConfiguration* config) {
33 delete config;
44 int32_t AConfiguration_getMcc(AConfiguration* config) {
45 return config->mcc;
48 int32_t AConfiguration_getMnc(AConfiguration* config) {
49 return config->mnc;
52 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage) {
53 outLanguage[0] = config->language[0];
54 outLanguage[1] = config->language[1];
57 void AConfiguration_getCountry(AConfiguration* config, char* outCountry) {
58 outCountry[0] = config->country[0];
59 outCountry[1] = config->country[1];
62 int32_t AConfiguration_getOrientation(AConfiguration* config) {
63 return config->orientation;
66 int32_t AConfiguration_getTouchscreen(AConfiguration* config) {
67 return config->touchscreen;
70 int32_t AConfiguration_getDensity(AConfiguration* config) {
71 return config->density;
74 int32_t AConfiguration_getKeyboard(AConfiguration* config) {
75 return config->keyboard;
78 int32_t AConfiguration_getNavigation(AConfiguration* config) {
79 return config->navigation;
82 int32_t AConfiguration_getKeysHidden(AConfiguration* config) {
83 return config->inputFlags&ResTable_config::MASK_KEYSHIDDEN;
86 int32_t AConfiguration_getNavHidden(AConfiguration* config) {
87 return (config->inputFlags&ResTable_config::MASK_NAVHIDDEN)
91 int32_t AConfiguration_getSdkVersion(AConfiguration* config) {
92 return config->sdkVersion;
95 int32_t AConfiguration_getScreenSize(AConfiguration* config) {
96 return config->screenLayout&ResTable_config::MASK_SCREENSIZE;
99 int32_t AConfiguration_getScreenLong(AConfiguration* config) {
100 return (config->screenLayout&ResTable_config::MASK_SCREENLONG)
104 int32_t AConfiguration_getScreenRound(AConfiguration* config) {
105 return (config->screenLayout2&ResTable_config::MASK_SCREENROUND);
108 int32_t AConfiguration_getUiModeType(AConfiguration* config) {
109 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE;
112 int32_t AConfiguration_getUiModeNight(AConfiguration* config) {
113 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT)
118 int32_t AConfiguration_getScreenWidthDp(AConfiguration* config) {
119 return config->screenWidthDp;
122 int32_t AConfiguration_getScreenHeightDp(AConfiguration* config) {
123 return config->screenHeightDp;
126 int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config) {
127 return config->smallestScreenWidthDp;
130 int32_t AConfiguration_getLayoutDirection(AConfiguration* config) {
131 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR)
137 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc) {
138 config->mcc = mcc;
141 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc) {
142 config->mnc = mnc;
145 void AConfiguration_setLanguage(AConfiguration* config, const char* language) {
146 config->language[0] = language[0];
147 config->language[1] = language[1];
150 void AConfiguration_setCountry(AConfiguration* config, const char* country) {
151 config->country[0] = country[0];
152 config->country[1] = country[1];
155 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) {
156 config->orientation = orientation;
159 void AConfiguration_setTouchscreen(AConfiguration* config, int32_t touchscreen) {
160 config->touchscreen = touchscreen;
163 void AConfiguration_setDensity(AConfiguration* config, int32_t density) {
164 config->density = density;
167 void AConfiguration_setKeyboard(AConfiguration* config, int32_t keyboard) {
168 config->keyboard = keyboard;
171 void AConfiguration_setNavigation(AConfiguration* config, int32_t navigation) {
172 config->navigation = navigation;
175 void AConfiguration_setKeysHidden(AConfiguration* config, int32_t keysHidden) {
176 config->inputFlags = (config->inputFlags&~ResTable_config::MASK_KEYSHIDDEN)
180 void AConfiguration_setNavHidden(AConfiguration* config, int32_t navHidden) {
181 config->inputFlags = (config->inputFlags&~ResTable_config::MASK_NAVHIDDEN)
185 void AConfiguration_setSdkVersion(AConfiguration* config, int32_t sdkVersion) {
186 config->sdkVersion = sdkVersion;
189 void AConfiguration_setScreenSize(AConfiguration* config, int32_t screenSize) {
190 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENSIZE)
194 void AConfiguration_setScreenLong(AConfiguration* config, int32_t screenLong) {
195 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENLONG)
199 void AConfiguration_setScreenRound(AConfiguration* config, int32_t screenRound) {
200 config->screenLayout2 = (config->screenLayout2&~ResTable_config::MASK_SCREENROUND)
204 void AConfiguration_setUiModeType(AConfiguration* config, int32_t uiModeType) {
205 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
209 void AConfiguration_setUiModeNight(AConfiguration* config, int32_t uiModeNight) {
210 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT)
215 void AConfiguration_setScreenWidthDp(AConfiguration* config, int32_t value) {
216 config->screenWidthDp = value;
219 void AConfiguration_setScreenHeightDp(AConfiguration* config, int32_t value) {
220 config->screenHeightDp = value;
223 void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value) {
224 config->smallestScreenWidthDp = value;
227 void AConfiguration_setLayoutDirection(AConfiguration* config, int32_t value) {
228 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_LAYOUTDIR)