Lines Matching refs:out

36 static bool parseMcc(const char* name, ResTable_config* out) {  in parseMcc()  argument
38 if (out) out->mcc = 0; in parseMcc()
59 if (out) out->mcc = d; in parseMcc()
66 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() argument
68 if (out) out->mnc = 0; in parseMnc()
87 if (out) { in parseMnc()
88 out->mnc = atoi(val); in parseMnc()
89 if (out->mnc == 0) { in parseMnc()
90 out->mnc = ACONFIGURATION_MNC_ZERO; in parseMnc()
97 static bool parseGrammaticalInflection(const std::string& name, ResTable_config* out) { in parseGrammaticalInflection() argument
100 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_FEMININE; in parseGrammaticalInflection()
104 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_MASCULINE; in parseGrammaticalInflection()
108 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_NEUTER; in parseGrammaticalInflection()
114 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() argument
116 if (out) in parseLayoutDirection()
117 out->screenLayout = in parseLayoutDirection()
118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
122 if (out) in parseLayoutDirection()
123 out->screenLayout = in parseLayoutDirection()
124 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
128 if (out) in parseLayoutDirection()
129 out->screenLayout = in parseLayoutDirection()
130 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
138 static bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize() argument
140 if (out) in parseScreenLayoutSize()
141 out->screenLayout = in parseScreenLayoutSize()
142 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
146 if (out) in parseScreenLayoutSize()
147 out->screenLayout = in parseScreenLayoutSize()
148 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
152 if (out) in parseScreenLayoutSize()
153 out->screenLayout = in parseScreenLayoutSize()
154 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
158 if (out) in parseScreenLayoutSize()
159 out->screenLayout = in parseScreenLayoutSize()
160 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
164 if (out) in parseScreenLayoutSize()
165 out->screenLayout = in parseScreenLayoutSize()
166 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
174 static bool parseScreenLayoutLong(const char* name, ResTable_config* out) { in parseScreenLayoutLong() argument
176 if (out) in parseScreenLayoutLong()
177 out->screenLayout = in parseScreenLayoutLong()
178 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
182 if (out) in parseScreenLayoutLong()
183 out->screenLayout = in parseScreenLayoutLong()
184 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
188 if (out) in parseScreenLayoutLong()
189 out->screenLayout = in parseScreenLayoutLong()
190 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
198 static bool parseScreenRound(const char* name, ResTable_config* out) { in parseScreenRound() argument
200 if (out) in parseScreenRound()
201 out->screenLayout2 = in parseScreenRound()
202 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
206 if (out) in parseScreenRound()
207 out->screenLayout2 = in parseScreenRound()
208 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
212 if (out) in parseScreenRound()
213 out->screenLayout2 = in parseScreenRound()
214 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
221 static bool parseWideColorGamut(const char* name, ResTable_config* out) { in parseWideColorGamut() argument
223 if (out) in parseWideColorGamut()
224 out->colorMode = in parseWideColorGamut()
225 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
229 if (out) in parseWideColorGamut()
230 out->colorMode = in parseWideColorGamut()
231 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
235 if (out) in parseWideColorGamut()
236 out->colorMode = in parseWideColorGamut()
237 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
244 static bool parseHdr(const char* name, ResTable_config* out) { in parseHdr() argument
246 if (out) in parseHdr()
247 out->colorMode = in parseHdr()
248 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
252 if (out) in parseHdr()
253 out->colorMode = in parseHdr()
254 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
258 if (out) in parseHdr()
259 out->colorMode = in parseHdr()
260 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
267 static bool parseOrientation(const char* name, ResTable_config* out) { in parseOrientation() argument
269 if (out) out->orientation = out->ORIENTATION_ANY; in parseOrientation()
272 if (out) out->orientation = out->ORIENTATION_PORT; in parseOrientation()
275 if (out) out->orientation = out->ORIENTATION_LAND; in parseOrientation()
278 if (out) out->orientation = out->ORIENTATION_SQUARE; in parseOrientation()
285 static bool parseUiModeType(const char* name, ResTable_config* out) { in parseUiModeType() argument
287 if (out) in parseUiModeType()
288 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
292 if (out) in parseUiModeType()
293 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
297 if (out) in parseUiModeType()
298 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
302 if (out) in parseUiModeType()
303 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
307 if (out) in parseUiModeType()
308 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
312 if (out) in parseUiModeType()
313 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
317 if (out) in parseUiModeType()
318 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
326 static bool parseUiModeNight(const char* name, ResTable_config* out) { in parseUiModeNight() argument
328 if (out) in parseUiModeNight()
329 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
333 if (out) in parseUiModeNight()
334 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
338 if (out) in parseUiModeNight()
339 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
347 static bool parseDensity(const char* name, ResTable_config* out) { in parseDensity() argument
349 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity()
354 if (out) out->density = ResTable_config::DENSITY_ANY; in parseDensity()
359 if (out) out->density = ResTable_config::DENSITY_NONE; in parseDensity()
364 if (out) out->density = ResTable_config::DENSITY_LOW; in parseDensity()
369 if (out) out->density = ResTable_config::DENSITY_MEDIUM; in parseDensity()
374 if (out) out->density = ResTable_config::DENSITY_TV; in parseDensity()
379 if (out) out->density = ResTable_config::DENSITY_HIGH; in parseDensity()
384 if (out) out->density = ResTable_config::DENSITY_XHIGH; in parseDensity()
389 if (out) out->density = ResTable_config::DENSITY_XXHIGH; in parseDensity()
394 if (out) out->density = ResTable_config::DENSITY_XXXHIGH; in parseDensity()
418 if (out) out->density = d; in parseDensity()
425 static bool parseTouchscreen(const char* name, ResTable_config* out) { in parseTouchscreen() argument
427 if (out) out->touchscreen = out->TOUCHSCREEN_ANY; in parseTouchscreen()
430 if (out) out->touchscreen = out->TOUCHSCREEN_NOTOUCH; in parseTouchscreen()
433 if (out) out->touchscreen = out->TOUCHSCREEN_STYLUS; in parseTouchscreen()
436 if (out) out->touchscreen = out->TOUCHSCREEN_FINGER; in parseTouchscreen()
443 static bool parseKeysHidden(const char* name, ResTable_config* out) { in parseKeysHidden() argument
461 if (out) out->inputFlags = (out->inputFlags & ~mask) | value; in parseKeysHidden()
468 static bool parseKeyboard(const char* name, ResTable_config* out) { in parseKeyboard() argument
470 if (out) out->keyboard = out->KEYBOARD_ANY; in parseKeyboard()
473 if (out) out->keyboard = out->KEYBOARD_NOKEYS; in parseKeyboard()
476 if (out) out->keyboard = out->KEYBOARD_QWERTY; in parseKeyboard()
479 if (out) out->keyboard = out->KEYBOARD_12KEY; in parseKeyboard()
486 static bool parseNavHidden(const char* name, ResTable_config* out) { in parseNavHidden() argument
501 if (out) out->inputFlags = (out->inputFlags & ~mask) | value; in parseNavHidden()
508 static bool parseNavigation(const char* name, ResTable_config* out) { in parseNavigation() argument
510 if (out) out->navigation = out->NAVIGATION_ANY; in parseNavigation()
513 if (out) out->navigation = out->NAVIGATION_NONAV; in parseNavigation()
516 if (out) out->navigation = out->NAVIGATION_DPAD; in parseNavigation()
519 if (out) out->navigation = out->NAVIGATION_TRACKBALL; in parseNavigation()
522 if (out) out->navigation = out->NAVIGATION_WHEEL; in parseNavigation()
529 static bool parseScreenSize(const char* name, ResTable_config* out) { in parseScreenSize() argument
531 if (out) { in parseScreenSize()
532 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
533 out->screenHeight = out->SCREENHEIGHT_ANY; in parseScreenSize()
555 if (out) { in parseScreenSize()
556 out->screenWidth = w; in parseScreenSize()
557 out->screenHeight = h; in parseScreenSize()
563 static bool parseSmallestScreenWidthDp(const char* name, ResTable_config* out) { in parseSmallestScreenWidthDp() argument
565 if (out) { in parseSmallestScreenWidthDp()
566 out->smallestScreenWidthDp = out->SCREENWIDTH_ANY; in parseSmallestScreenWidthDp()
580 if (out) { in parseSmallestScreenWidthDp()
581 out->smallestScreenWidthDp = (uint16_t)atoi(xName.c_str()); in parseSmallestScreenWidthDp()
587 static bool parseScreenWidthDp(const char* name, ResTable_config* out) { in parseScreenWidthDp() argument
589 if (out) { in parseScreenWidthDp()
590 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp()
602 if (out) { in parseScreenWidthDp()
603 out->screenWidthDp = (uint16_t)atoi(xName.c_str()); in parseScreenWidthDp()
609 static bool parseScreenHeightDp(const char* name, ResTable_config* out) { in parseScreenHeightDp() argument
611 if (out) { in parseScreenHeightDp()
612 out->screenHeightDp = out->SCREENWIDTH_ANY; in parseScreenHeightDp()
624 if (out) { in parseScreenHeightDp()
625 out->screenHeightDp = (uint16_t)atoi(xName.c_str()); in parseScreenHeightDp()
631 static bool parseVersion(const char* name, ResTable_config* out) { in parseVersion() argument
633 if (out) { in parseVersion()
634 out->sdkVersion = out->SDKVERSION_ANY; in parseVersion()
635 out->minorVersion = out->MINORVERSION_ANY; in parseVersion()
650 if (out) { in parseVersion()
651 out->sdkVersion = (uint16_t)atoi(sdkName.c_str()); in parseVersion()
652 out->minorVersion = 0; in parseVersion()
658 bool ConfigDescription::Parse(StringPiece str, ConfigDescription* out) { in Parse() argument
850 if (out != NULL) { in Parse()
852 *out = config; in Parse()