Lines Matching refs:name

35 static bool parseMcc(const char* name, ResTable_config* out) {  in parseMcc()  argument
36 if (strcmp(name, kWildcardName) == 0) { in parseMcc()
40 const char* c = name; in parseMcc()
65 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() argument
66 if (strcmp(name, kWildcardName) == 0) { in parseMnc()
70 const char* c = name; in parseMnc()
96 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() argument
97 if (strcmp(name, kWildcardName) == 0) { in parseLayoutDirection()
103 } else if (strcmp(name, "ldltr") == 0) { in parseLayoutDirection()
109 } else if (strcmp(name, "ldrtl") == 0) { in parseLayoutDirection()
120 static bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize() argument
121 if (strcmp(name, kWildcardName) == 0) { in parseScreenLayoutSize()
127 } else if (strcmp(name, "small") == 0) { in parseScreenLayoutSize()
133 } else if (strcmp(name, "normal") == 0) { in parseScreenLayoutSize()
139 } else if (strcmp(name, "large") == 0) { in parseScreenLayoutSize()
145 } else if (strcmp(name, "xlarge") == 0) { in parseScreenLayoutSize()
156 static bool parseScreenLayoutLong(const char* name, ResTable_config* out) { in parseScreenLayoutLong() argument
157 if (strcmp(name, kWildcardName) == 0) { in parseScreenLayoutLong()
163 } else if (strcmp(name, "long") == 0) { in parseScreenLayoutLong()
169 } else if (strcmp(name, "notlong") == 0) { in parseScreenLayoutLong()
180 static bool parseScreenRound(const char* name, ResTable_config* out) { in parseScreenRound() argument
181 if (strcmp(name, kWildcardName) == 0) { in parseScreenRound()
187 } else if (strcmp(name, "round") == 0) { in parseScreenRound()
193 } else if (strcmp(name, "notround") == 0) { in parseScreenRound()
203 static bool parseWideColorGamut(const char* name, ResTable_config* out) { in parseWideColorGamut() argument
204 if (strcmp(name, kWildcardName) == 0) { in parseWideColorGamut()
210 } else if (strcmp(name, "widecg") == 0) { in parseWideColorGamut()
216 } else if (strcmp(name, "nowidecg") == 0) { in parseWideColorGamut()
226 static bool parseHdr(const char* name, ResTable_config* out) { in parseHdr() argument
227 if (strcmp(name, kWildcardName) == 0) { in parseHdr()
233 } else if (strcmp(name, "highdr") == 0) { in parseHdr()
239 } else if (strcmp(name, "lowdr") == 0) { in parseHdr()
249 static bool parseOrientation(const char* name, ResTable_config* out) { in parseOrientation() argument
250 if (strcmp(name, kWildcardName) == 0) { in parseOrientation()
253 } else if (strcmp(name, "port") == 0) { in parseOrientation()
256 } else if (strcmp(name, "land") == 0) { in parseOrientation()
259 } else if (strcmp(name, "square") == 0) { in parseOrientation()
267 static bool parseUiModeType(const char* name, ResTable_config* out) { in parseUiModeType() argument
268 if (strcmp(name, kWildcardName) == 0) { in parseUiModeType()
273 } else if (strcmp(name, "desk") == 0) { in parseUiModeType()
278 } else if (strcmp(name, "car") == 0) { in parseUiModeType()
283 } else if (strcmp(name, "television") == 0) { in parseUiModeType()
288 } else if (strcmp(name, "appliance") == 0) { in parseUiModeType()
293 } else if (strcmp(name, "watch") == 0) { in parseUiModeType()
298 } else if (strcmp(name, "vrheadset") == 0) { in parseUiModeType()
308 static bool parseUiModeNight(const char* name, ResTable_config* out) { in parseUiModeNight() argument
309 if (strcmp(name, kWildcardName) == 0) { in parseUiModeNight()
314 } else if (strcmp(name, "night") == 0) { in parseUiModeNight()
319 } else if (strcmp(name, "notnight") == 0) { in parseUiModeNight()
329 static bool parseDensity(const char* name, ResTable_config* out) { in parseDensity() argument
330 if (strcmp(name, kWildcardName) == 0) { in parseDensity()
335 if (strcmp(name, "anydpi") == 0) { in parseDensity()
340 if (strcmp(name, "nodpi") == 0) { in parseDensity()
345 if (strcmp(name, "ldpi") == 0) { in parseDensity()
350 if (strcmp(name, "mdpi") == 0) { in parseDensity()
355 if (strcmp(name, "tvdpi") == 0) { in parseDensity()
360 if (strcmp(name, "hdpi") == 0) { in parseDensity()
365 if (strcmp(name, "xhdpi") == 0) { in parseDensity()
370 if (strcmp(name, "xxhdpi") == 0) { in parseDensity()
375 if (strcmp(name, "xxxhdpi") == 0) { in parseDensity()
380 char* c = (char*)name; in parseDensity()
396 int d = atoi(name); in parseDensity()
407 static bool parseTouchscreen(const char* name, ResTable_config* out) { in parseTouchscreen() argument
408 if (strcmp(name, kWildcardName) == 0) { in parseTouchscreen()
411 } else if (strcmp(name, "notouch") == 0) { in parseTouchscreen()
414 } else if (strcmp(name, "stylus") == 0) { in parseTouchscreen()
417 } else if (strcmp(name, "finger") == 0) { in parseTouchscreen()
425 static bool parseKeysHidden(const char* name, ResTable_config* out) { in parseKeysHidden() argument
428 if (strcmp(name, kWildcardName) == 0) { in parseKeysHidden()
431 } else if (strcmp(name, "keysexposed") == 0) { in parseKeysHidden()
434 } else if (strcmp(name, "keyshidden") == 0) { in parseKeysHidden()
437 } else if (strcmp(name, "keyssoft") == 0) { in parseKeysHidden()
450 static bool parseKeyboard(const char* name, ResTable_config* out) { in parseKeyboard() argument
451 if (strcmp(name, kWildcardName) == 0) { in parseKeyboard()
454 } else if (strcmp(name, "nokeys") == 0) { in parseKeyboard()
457 } else if (strcmp(name, "qwerty") == 0) { in parseKeyboard()
460 } else if (strcmp(name, "12key") == 0) { in parseKeyboard()
468 static bool parseNavHidden(const char* name, ResTable_config* out) { in parseNavHidden() argument
471 if (strcmp(name, kWildcardName) == 0) { in parseNavHidden()
474 } else if (strcmp(name, "navexposed") == 0) { in parseNavHidden()
477 } else if (strcmp(name, "navhidden") == 0) { in parseNavHidden()
490 static bool parseNavigation(const char* name, ResTable_config* out) { in parseNavigation() argument
491 if (strcmp(name, kWildcardName) == 0) { in parseNavigation()
494 } else if (strcmp(name, "nonav") == 0) { in parseNavigation()
497 } else if (strcmp(name, "dpad") == 0) { in parseNavigation()
500 } else if (strcmp(name, "trackball") == 0) { in parseNavigation()
503 } else if (strcmp(name, "wheel") == 0) { in parseNavigation()
511 static bool parseScreenSize(const char* name, ResTable_config* out) { in parseScreenSize() argument
512 if (strcmp(name, kWildcardName) == 0) { in parseScreenSize()
520 const char* x = name; in parseScreenSize()
522 if (x == name || *x != 'x') return false; in parseScreenSize()
523 std::string xName(name, x - name); in parseScreenSize()
528 if (y == name || *y != 0) return false; in parseScreenSize()
545 static bool parseSmallestScreenWidthDp(const char* name, ResTable_config* out) { in parseSmallestScreenWidthDp() argument
546 if (strcmp(name, kWildcardName) == 0) { in parseSmallestScreenWidthDp()
553 if (*name != 's') return false; in parseSmallestScreenWidthDp()
554 name++; in parseSmallestScreenWidthDp()
555 if (*name != 'w') return false; in parseSmallestScreenWidthDp()
556 name++; in parseSmallestScreenWidthDp()
557 const char* x = name; in parseSmallestScreenWidthDp()
559 if (x == name || x[0] != 'd' || x[1] != 'p' || x[2] != 0) return false; in parseSmallestScreenWidthDp()
560 std::string xName(name, x - name); in parseSmallestScreenWidthDp()
569 static bool parseScreenWidthDp(const char* name, ResTable_config* out) { in parseScreenWidthDp() argument
570 if (strcmp(name, kWildcardName) == 0) { in parseScreenWidthDp()
577 if (*name != 'w') return false; in parseScreenWidthDp()
578 name++; in parseScreenWidthDp()
579 const char* x = name; in parseScreenWidthDp()
581 if (x == name || x[0] != 'd' || x[1] != 'p' || x[2] != 0) return false; in parseScreenWidthDp()
582 std::string xName(name, x - name); in parseScreenWidthDp()
591 static bool parseScreenHeightDp(const char* name, ResTable_config* out) { in parseScreenHeightDp() argument
592 if (strcmp(name, kWildcardName) == 0) { in parseScreenHeightDp()
599 if (*name != 'h') return false; in parseScreenHeightDp()
600 name++; in parseScreenHeightDp()
601 const char* x = name; in parseScreenHeightDp()
603 if (x == name || x[0] != 'd' || x[1] != 'p' || x[2] != 0) return false; in parseScreenHeightDp()
604 std::string xName(name, x - name); in parseScreenHeightDp()
613 static bool parseVersion(const char* name, ResTable_config* out) { in parseVersion() argument
614 if (strcmp(name, kWildcardName) == 0) { in parseVersion()
622 if (*name != 'v') { in parseVersion()
626 name++; in parseVersion()
627 const char* s = name; in parseVersion()
629 if (s == name || *s != 0) return false; in parseVersion()
630 std::string sdkName(name, s - name); in parseVersion()