Lines Matching refs:config

28     AConfiguration* config = new AConfiguration;  in AConfiguration_new()  local
29 memset(config, 0, sizeof(AConfiguration)); in AConfiguration_new()
30 return config; in AConfiguration_new()
33 void AConfiguration_delete(AConfiguration* config) { in AConfiguration_delete() argument
34 delete config; in AConfiguration_delete()
39 ResTable_config config = locked_mgr->GetConfiguration(); in AConfiguration_fromAssetManager() local
42 memcpy(out, &config, sizeof(config)); in AConfiguration_fromAssetManager()
49 int32_t AConfiguration_getMcc(AConfiguration* config) { in AConfiguration_getMcc() argument
50 return config->mcc; in AConfiguration_getMcc()
53 int32_t AConfiguration_getMnc(AConfiguration* config) { in AConfiguration_getMnc() argument
54 return config->mnc; in AConfiguration_getMnc()
57 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage) { in AConfiguration_getLanguage() argument
58 outLanguage[0] = config->language[0]; in AConfiguration_getLanguage()
59 outLanguage[1] = config->language[1]; in AConfiguration_getLanguage()
62 void AConfiguration_getCountry(AConfiguration* config, char* outCountry) { in AConfiguration_getCountry() argument
63 outCountry[0] = config->country[0]; in AConfiguration_getCountry()
64 outCountry[1] = config->country[1]; in AConfiguration_getCountry()
67 int32_t AConfiguration_getOrientation(AConfiguration* config) { in AConfiguration_getOrientation() argument
68 return config->orientation; in AConfiguration_getOrientation()
71 int32_t AConfiguration_getTouchscreen(AConfiguration* config) { in AConfiguration_getTouchscreen() argument
72 return config->touchscreen; in AConfiguration_getTouchscreen()
75 int32_t AConfiguration_getDensity(AConfiguration* config) { in AConfiguration_getDensity() argument
76 return config->density; in AConfiguration_getDensity()
79 int32_t AConfiguration_getKeyboard(AConfiguration* config) { in AConfiguration_getKeyboard() argument
80 return config->keyboard; in AConfiguration_getKeyboard()
83 int32_t AConfiguration_getNavigation(AConfiguration* config) { in AConfiguration_getNavigation() argument
84 return config->navigation; in AConfiguration_getNavigation()
87 int32_t AConfiguration_getKeysHidden(AConfiguration* config) { in AConfiguration_getKeysHidden() argument
88 return config->inputFlags&ResTable_config::MASK_KEYSHIDDEN; in AConfiguration_getKeysHidden()
91 int32_t AConfiguration_getNavHidden(AConfiguration* config) { in AConfiguration_getNavHidden() argument
92 return (config->inputFlags&ResTable_config::MASK_NAVHIDDEN) in AConfiguration_getNavHidden()
96 int32_t AConfiguration_getSdkVersion(AConfiguration* config) { in AConfiguration_getSdkVersion() argument
97 return config->sdkVersion; in AConfiguration_getSdkVersion()
100 int32_t AConfiguration_getScreenSize(AConfiguration* config) { in AConfiguration_getScreenSize() argument
101 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; in AConfiguration_getScreenSize()
104 int32_t AConfiguration_getScreenLong(AConfiguration* config) { in AConfiguration_getScreenLong() argument
105 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) in AConfiguration_getScreenLong()
109 int32_t AConfiguration_getScreenRound(AConfiguration* config) { in AConfiguration_getScreenRound() argument
110 return (config->screenLayout2&ResTable_config::MASK_SCREENROUND); in AConfiguration_getScreenRound()
113 int32_t AConfiguration_getUiModeType(AConfiguration* config) { in AConfiguration_getUiModeType() argument
114 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType()
117 int32_t AConfiguration_getUiModeNight(AConfiguration* config) { in AConfiguration_getUiModeNight() argument
118 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_getUiModeNight()
123 int32_t AConfiguration_getScreenWidthDp(AConfiguration* config) { in AConfiguration_getScreenWidthDp() argument
124 return config->screenWidthDp; in AConfiguration_getScreenWidthDp()
127 int32_t AConfiguration_getScreenHeightDp(AConfiguration* config) { in AConfiguration_getScreenHeightDp() argument
128 return config->screenHeightDp; in AConfiguration_getScreenHeightDp()
131 int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config) { in AConfiguration_getSmallestScreenWidthDp() argument
132 return config->smallestScreenWidthDp; in AConfiguration_getSmallestScreenWidthDp()
135 int32_t AConfiguration_getLayoutDirection(AConfiguration* config) { in AConfiguration_getLayoutDirection() argument
136 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR) in AConfiguration_getLayoutDirection()
142 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc) { in AConfiguration_setMcc() argument
143 config->mcc = mcc; in AConfiguration_setMcc()
146 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc) { in AConfiguration_setMnc() argument
147 config->mnc = mnc; in AConfiguration_setMnc()
150 void AConfiguration_setLanguage(AConfiguration* config, const char* language) { in AConfiguration_setLanguage() argument
151 config->language[0] = language[0]; in AConfiguration_setLanguage()
152 config->language[1] = language[1]; in AConfiguration_setLanguage()
155 void AConfiguration_setCountry(AConfiguration* config, const char* country) { in AConfiguration_setCountry() argument
156 config->country[0] = country[0]; in AConfiguration_setCountry()
157 config->country[1] = country[1]; in AConfiguration_setCountry()
160 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { in AConfiguration_setOrientation() argument
161 config->orientation = orientation; in AConfiguration_setOrientation()
164 void AConfiguration_setTouchscreen(AConfiguration* config, int32_t touchscreen) { in AConfiguration_setTouchscreen() argument
165 config->touchscreen = touchscreen; in AConfiguration_setTouchscreen()
168 void AConfiguration_setDensity(AConfiguration* config, int32_t density) { in AConfiguration_setDensity() argument
169 config->density = density; in AConfiguration_setDensity()
172 void AConfiguration_setKeyboard(AConfiguration* config, int32_t keyboard) { in AConfiguration_setKeyboard() argument
173 config->keyboard = keyboard; in AConfiguration_setKeyboard()
176 void AConfiguration_setNavigation(AConfiguration* config, int32_t navigation) { in AConfiguration_setNavigation() argument
177 config->navigation = navigation; in AConfiguration_setNavigation()
180 void AConfiguration_setKeysHidden(AConfiguration* config, int32_t keysHidden) { in AConfiguration_setKeysHidden() argument
181 config->inputFlags = (config->inputFlags&~ResTable_config::MASK_KEYSHIDDEN) in AConfiguration_setKeysHidden()
185 void AConfiguration_setNavHidden(AConfiguration* config, int32_t navHidden) { in AConfiguration_setNavHidden() argument
186 config->inputFlags = (config->inputFlags&~ResTable_config::MASK_NAVHIDDEN) in AConfiguration_setNavHidden()
190 void AConfiguration_setSdkVersion(AConfiguration* config, int32_t sdkVersion) { in AConfiguration_setSdkVersion() argument
191 config->sdkVersion = sdkVersion; in AConfiguration_setSdkVersion()
194 void AConfiguration_setScreenSize(AConfiguration* config, int32_t screenSize) { in AConfiguration_setScreenSize() argument
195 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENSIZE) in AConfiguration_setScreenSize()
199 void AConfiguration_setScreenLong(AConfiguration* config, int32_t screenLong) { in AConfiguration_setScreenLong() argument
200 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENLONG) in AConfiguration_setScreenLong()
204 void AConfiguration_setScreenRound(AConfiguration* config, int32_t screenRound) { in AConfiguration_setScreenRound() argument
205 config->screenLayout2 = (config->screenLayout2&~ResTable_config::MASK_SCREENROUND) in AConfiguration_setScreenRound()
209 void AConfiguration_setUiModeType(AConfiguration* config, int32_t uiModeType) { in AConfiguration_setUiModeType() argument
210 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in AConfiguration_setUiModeType()
214 void AConfiguration_setUiModeNight(AConfiguration* config, int32_t uiModeNight) { in AConfiguration_setUiModeNight() argument
215 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_setUiModeNight()
220 void AConfiguration_setScreenWidthDp(AConfiguration* config, int32_t value) { in AConfiguration_setScreenWidthDp() argument
221 config->screenWidthDp = value; in AConfiguration_setScreenWidthDp()
224 void AConfiguration_setScreenHeightDp(AConfiguration* config, int32_t value) { in AConfiguration_setScreenHeightDp() argument
225 config->screenHeightDp = value; in AConfiguration_setScreenHeightDp()
228 void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value) { in AConfiguration_setSmallestScreenWidthDp() argument
229 config->smallestScreenWidthDp = value; in AConfiguration_setSmallestScreenWidthDp()
232 void AConfiguration_setLayoutDirection(AConfiguration* config, int32_t value) { in AConfiguration_setLayoutDirection() argument
233 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in AConfiguration_setLayoutDirection()