SdkConstants.cpp revision 6f6ceb7e1456698b1f33e04536bfb3227f9fcfcb
1/* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17#include <string> 18#include <unordered_map> 19 20namespace aapt { 21 22static const std::unordered_map<std::u16string, size_t> sAttrMap = { 23 { u"marqueeRepeatLimit", 2 }, 24 { u"windowNoDisplay", 3 }, 25 { u"backgroundDimEnabled", 3 }, 26 { u"inputType", 3 }, 27 { u"isDefault", 3 }, 28 { u"windowDisablePreview", 3 }, 29 { u"privateImeOptions", 3 }, 30 { u"editorExtras", 3 }, 31 { u"settingsActivity", 3 }, 32 { u"fastScrollEnabled", 3 }, 33 { u"reqTouchScreen", 3 }, 34 { u"reqKeyboardType", 3 }, 35 { u"reqHardKeyboard", 3 }, 36 { u"reqNavigation", 3 }, 37 { u"windowSoftInputMode", 3 }, 38 { u"imeFullscreenBackground", 3 }, 39 { u"noHistory", 3 }, 40 { u"headerDividersEnabled", 3 }, 41 { u"footerDividersEnabled", 3 }, 42 { u"candidatesTextStyleSpans", 3 }, 43 { u"smoothScrollbar", 3 }, 44 { u"reqFiveWayNav", 3 }, 45 { u"keyBackground", 3 }, 46 { u"keyTextSize", 3 }, 47 { u"labelTextSize", 3 }, 48 { u"keyTextColor", 3 }, 49 { u"keyPreviewLayout", 3 }, 50 { u"keyPreviewOffset", 3 }, 51 { u"keyPreviewHeight", 3 }, 52 { u"verticalCorrection", 3 }, 53 { u"popupLayout", 3 }, 54 { u"state_long_pressable", 3 }, 55 { u"keyWidth", 3 }, 56 { u"keyHeight", 3 }, 57 { u"horizontalGap", 3 }, 58 { u"verticalGap", 3 }, 59 { u"rowEdgeFlags", 3 }, 60 { u"codes", 3 }, 61 { u"popupKeyboard", 3 }, 62 { u"popupCharacters", 3 }, 63 { u"keyEdgeFlags", 3 }, 64 { u"isModifier", 3 }, 65 { u"isSticky", 3 }, 66 { u"isRepeatable", 3 }, 67 { u"iconPreview", 3 }, 68 { u"keyOutputText", 3 }, 69 { u"keyLabel", 3 }, 70 { u"keyIcon", 3 }, 71 { u"keyboardMode", 3 }, 72 { u"isScrollContainer", 3 }, 73 { u"fillEnabled", 3 }, 74 { u"updatePeriodMillis", 3 }, 75 { u"initialLayout", 3 }, 76 { u"voiceSearchMode", 3 }, 77 { u"voiceLanguageModel", 3 }, 78 { u"voicePromptText", 3 }, 79 { u"voiceLanguage", 3 }, 80 { u"voiceMaxResults", 3 }, 81 { u"bottomOffset", 3 }, 82 { u"topOffset", 3 }, 83 { u"allowSingleTap", 3 }, 84 { u"handle", 3 }, 85 { u"content", 3 }, 86 { u"animateOnClick", 3 }, 87 { u"configure", 3 }, 88 { u"hapticFeedbackEnabled", 3 }, 89 { u"innerRadius", 3 }, 90 { u"thickness", 3 }, 91 { u"sharedUserLabel", 3 }, 92 { u"dropDownWidth", 3 }, 93 { u"dropDownAnchor", 3 }, 94 { u"imeOptions", 3 }, 95 { u"imeActionLabel", 3 }, 96 { u"imeActionId", 3 }, 97 { u"imeExtractEnterAnimation", 3 }, 98 { u"imeExtractExitAnimation", 3 }, 99 { u"tension", 4 }, 100 { u"extraTension", 4 }, 101 { u"anyDensity", 4 }, 102 { u"searchSuggestThreshold", 4 }, 103 { u"includeInGlobalSearch", 4 }, 104 { u"onClick", 4 }, 105 { u"targetSdkVersion", 4 }, 106 { u"maxSdkVersion", 4 }, 107 { u"testOnly", 4 }, 108 { u"contentDescription", 4 }, 109 { u"gestureStrokeWidth", 4 }, 110 { u"gestureColor", 4 }, 111 { u"uncertainGestureColor", 4 }, 112 { u"fadeOffset", 4 }, 113 { u"fadeDuration", 4 }, 114 { u"gestureStrokeType", 4 }, 115 { u"gestureStrokeLengthThreshold", 4 }, 116 { u"gestureStrokeSquarenessThreshold", 4 }, 117 { u"gestureStrokeAngleThreshold", 4 }, 118 { u"eventsInterceptionEnabled", 4 }, 119 { u"fadeEnabled", 4 }, 120 { u"backupAgent", 4 }, 121 { u"allowBackup", 4 }, 122 { u"glEsVersion", 4 }, 123 { u"queryAfterZeroResults", 4 }, 124 { u"dropDownHeight", 4 }, 125 { u"smallScreens", 4 }, 126 { u"normalScreens", 4 }, 127 { u"largeScreens", 4 }, 128 { u"progressBarStyleInverse", 4 }, 129 { u"progressBarStyleSmallInverse", 4 }, 130 { u"progressBarStyleLargeInverse", 4 }, 131 { u"searchSettingsDescription", 4 }, 132 { u"textColorPrimaryInverseDisableOnly", 4 }, 133 { u"autoUrlDetect", 4 }, 134 { u"resizeable", 4 }, 135 { u"required", 5 }, 136 { u"accountType", 5 }, 137 { u"contentAuthority", 5 }, 138 { u"userVisible", 5 }, 139 { u"windowShowWallpaper", 5 }, 140 { u"wallpaperOpenEnterAnimation", 5 }, 141 { u"wallpaperOpenExitAnimation", 5 }, 142 { u"wallpaperCloseEnterAnimation", 5 }, 143 { u"wallpaperCloseExitAnimation", 5 }, 144 { u"wallpaperIntraOpenEnterAnimation", 5 }, 145 { u"wallpaperIntraOpenExitAnimation", 5 }, 146 { u"wallpaperIntraCloseEnterAnimation", 5 }, 147 { u"wallpaperIntraCloseExitAnimation", 5 }, 148 { u"supportsUploading", 5 }, 149 { u"killAfterRestore", 5 }, 150 { u"restoreNeedsApplication", 5 }, 151 { u"smallIcon", 5 }, 152 { u"accountPreferences", 5 }, 153 { u"textAppearanceSearchResultSubtitle", 5 }, 154 { u"textAppearanceSearchResultTitle", 5 }, 155 { u"summaryColumn", 5 }, 156 { u"detailColumn", 5 }, 157 { u"detailSocialSummary", 5 }, 158 { u"thumbnail", 5 }, 159 { u"detachWallpaper", 5 }, 160 { u"finishOnCloseSystemDialogs", 5 }, 161 { u"scrollbarFadeDuration", 5 }, 162 { u"scrollbarDefaultDelayBeforeFade", 5 }, 163 { u"fadeScrollbars", 5 }, 164 { u"colorBackgroundCacheHint", 5 }, 165 { u"dropDownHorizontalOffset", 5 }, 166 { u"dropDownVerticalOffset", 5 }, 167 { u"quickContactBadgeStyleWindowSmall", 6 }, 168 { u"quickContactBadgeStyleWindowMedium", 6 }, 169 { u"quickContactBadgeStyleWindowLarge", 6 }, 170 { u"quickContactBadgeStyleSmallWindowSmall", 6 }, 171 { u"quickContactBadgeStyleSmallWindowMedium", 6 }, 172 { u"quickContactBadgeStyleSmallWindowLarge", 6 }, 173 { u"author", 7 }, 174 { u"autoStart", 7 }, 175 { u"expandableListViewWhiteStyle", 8 }, 176 { u"installLocation", 8 }, 177 { u"vmSafeMode", 8 }, 178 { u"webTextViewStyle", 8 }, 179 { u"restoreAnyVersion", 8 }, 180 { u"tabStripLeft", 8 }, 181 { u"tabStripRight", 8 }, 182 { u"tabStripEnabled", 8 }, 183 { u"logo", 9 }, 184 { u"xlargeScreens", 9 }, 185 { u"immersive", 9 }, 186 { u"overScrollMode", 9 }, 187 { u"overScrollHeader", 9 }, 188 { u"overScrollFooter", 9 }, 189 { u"filterTouchesWhenObscured", 9 }, 190 { u"textSelectHandleLeft", 9 }, 191 { u"textSelectHandleRight", 9 }, 192 { u"textSelectHandle", 9 }, 193 { u"textSelectHandleWindowStyle", 9 }, 194 { u"popupAnimationStyle", 9 }, 195 { u"screenSize", 9 }, 196 { u"screenDensity", 9 }, 197 { u"allContactsName", 11 }, 198 { u"windowActionBar", 11 }, 199 { u"actionBarStyle", 11 }, 200 { u"navigationMode", 11 }, 201 { u"displayOptions", 11 }, 202 { u"subtitle", 11 }, 203 { u"customNavigationLayout", 11 }, 204 { u"hardwareAccelerated", 11 }, 205 { u"measureWithLargestChild", 11 }, 206 { u"animateFirstView", 11 }, 207 { u"dropDownSpinnerStyle", 11 }, 208 { u"actionDropDownStyle", 11 }, 209 { u"actionButtonStyle", 11 }, 210 { u"showAsAction", 11 }, 211 { u"previewImage", 11 }, 212 { u"actionModeBackground", 11 }, 213 { u"actionModeCloseDrawable", 11 }, 214 { u"windowActionModeOverlay", 11 }, 215 { u"valueFrom", 11 }, 216 { u"valueTo", 11 }, 217 { u"valueType", 11 }, 218 { u"propertyName", 11 }, 219 { u"ordering", 11 }, 220 { u"fragment", 11 }, 221 { u"windowActionBarOverlay", 11 }, 222 { u"fragmentOpenEnterAnimation", 11 }, 223 { u"fragmentOpenExitAnimation", 11 }, 224 { u"fragmentCloseEnterAnimation", 11 }, 225 { u"fragmentCloseExitAnimation", 11 }, 226 { u"fragmentFadeEnterAnimation", 11 }, 227 { u"fragmentFadeExitAnimation", 11 }, 228 { u"actionBarSize", 11 }, 229 { u"imeSubtypeLocale", 11 }, 230 { u"imeSubtypeMode", 11 }, 231 { u"imeSubtypeExtraValue", 11 }, 232 { u"splitMotionEvents", 11 }, 233 { u"listChoiceBackgroundIndicator", 11 }, 234 { u"spinnerMode", 11 }, 235 { u"animateLayoutChanges", 11 }, 236 { u"actionBarTabStyle", 11 }, 237 { u"actionBarTabBarStyle", 11 }, 238 { u"actionBarTabTextStyle", 11 }, 239 { u"actionOverflowButtonStyle", 11 }, 240 { u"actionModeCloseButtonStyle", 11 }, 241 { u"titleTextStyle", 11 }, 242 { u"subtitleTextStyle", 11 }, 243 { u"iconifiedByDefault", 11 }, 244 { u"actionLayout", 11 }, 245 { u"actionViewClass", 11 }, 246 { u"activatedBackgroundIndicator", 11 }, 247 { u"state_activated", 11 }, 248 { u"listPopupWindowStyle", 11 }, 249 { u"popupMenuStyle", 11 }, 250 { u"textAppearanceLargePopupMenu", 11 }, 251 { u"textAppearanceSmallPopupMenu", 11 }, 252 { u"breadCrumbTitle", 11 }, 253 { u"breadCrumbShortTitle", 11 }, 254 { u"listDividerAlertDialog", 11 }, 255 { u"textColorAlertDialogListItem", 11 }, 256 { u"loopViews", 11 }, 257 { u"dialogTheme", 11 }, 258 { u"alertDialogTheme", 11 }, 259 { u"dividerVertical", 11 }, 260 { u"homeAsUpIndicator", 11 }, 261 { u"enterFadeDuration", 11 }, 262 { u"exitFadeDuration", 11 }, 263 { u"selectableItemBackground", 11 }, 264 { u"autoAdvanceViewId", 11 }, 265 { u"useIntrinsicSizeAsMinimum", 11 }, 266 { u"actionModeCutDrawable", 11 }, 267 { u"actionModeCopyDrawable", 11 }, 268 { u"actionModePasteDrawable", 11 }, 269 { u"textEditPasteWindowLayout", 11 }, 270 { u"textEditNoPasteWindowLayout", 11 }, 271 { u"textIsSelectable", 11 }, 272 { u"windowEnableSplitTouch", 11 }, 273 { u"indeterminateProgressStyle", 11 }, 274 { u"progressBarPadding", 11 }, 275 { u"animationResolution", 11 }, 276 { u"state_accelerated", 11 }, 277 { u"baseline", 11 }, 278 { u"homeLayout", 11 }, 279 { u"opacity", 11 }, 280 { u"alpha", 11 }, 281 { u"transformPivotX", 11 }, 282 { u"transformPivotY", 11 }, 283 { u"translationX", 11 }, 284 { u"translationY", 11 }, 285 { u"scaleX", 11 }, 286 { u"scaleY", 11 }, 287 { u"rotation", 11 }, 288 { u"rotationX", 11 }, 289 { u"rotationY", 11 }, 290 { u"showDividers", 11 }, 291 { u"dividerPadding", 11 }, 292 { u"borderlessButtonStyle", 11 }, 293 { u"dividerHorizontal", 11 }, 294 { u"itemPadding", 11 }, 295 { u"buttonBarStyle", 11 }, 296 { u"buttonBarButtonStyle", 11 }, 297 { u"segmentedButtonStyle", 11 }, 298 { u"staticWallpaperPreview", 11 }, 299 { u"allowParallelSyncs", 11 }, 300 { u"isAlwaysSyncable", 11 }, 301 { u"verticalScrollbarPosition", 11 }, 302 { u"fastScrollAlwaysVisible", 11 }, 303 { u"fastScrollThumbDrawable", 11 }, 304 { u"fastScrollPreviewBackgroundLeft", 11 }, 305 { u"fastScrollPreviewBackgroundRight", 11 }, 306 { u"fastScrollTrackDrawable", 11 }, 307 { u"fastScrollOverlayPosition", 11 }, 308 { u"customTokens", 11 }, 309 { u"nextFocusForward", 11 }, 310 { u"firstDayOfWeek", 11 }, 311 { u"showWeekNumber", 11 }, 312 { u"minDate", 11 }, 313 { u"maxDate", 11 }, 314 { u"shownWeekCount", 11 }, 315 { u"selectedWeekBackgroundColor", 11 }, 316 { u"focusedMonthDateColor", 11 }, 317 { u"unfocusedMonthDateColor", 11 }, 318 { u"weekNumberColor", 11 }, 319 { u"weekSeparatorLineColor", 11 }, 320 { u"selectedDateVerticalBar", 11 }, 321 { u"weekDayTextAppearance", 11 }, 322 { u"dateTextAppearance", 11 }, 323 { u"solidColor", 11 }, 324 { u"spinnersShown", 11 }, 325 { u"calendarViewShown", 11 }, 326 { u"state_multiline", 11 }, 327 { u"detailsElementBackground", 11 }, 328 { u"textColorHighlightInverse", 11 }, 329 { u"textColorLinkInverse", 11 }, 330 { u"editTextColor", 11 }, 331 { u"editTextBackground", 11 }, 332 { u"horizontalScrollViewStyle", 11 }, 333 { u"layerType", 11 }, 334 { u"alertDialogIcon", 11 }, 335 { u"windowMinWidthMajor", 11 }, 336 { u"windowMinWidthMinor", 11 }, 337 { u"queryHint", 11 }, 338 { u"fastScrollTextColor", 11 }, 339 { u"largeHeap", 11 }, 340 { u"windowCloseOnTouchOutside", 11 }, 341 { u"datePickerStyle", 11 }, 342 { u"calendarViewStyle", 11 }, 343 { u"textEditSidePasteWindowLayout", 11 }, 344 { u"textEditSideNoPasteWindowLayout", 11 }, 345 { u"actionMenuTextAppearance", 11 }, 346 { u"actionMenuTextColor", 11 }, 347 { u"textCursorDrawable", 12 }, 348 { u"resizeMode", 12 }, 349 { u"requiresSmallestWidthDp", 12 }, 350 { u"compatibleWidthLimitDp", 12 }, 351 { u"largestWidthLimitDp", 12 }, 352 { u"state_hovered", 13 }, 353 { u"state_drag_can_accept", 13 }, 354 { u"state_drag_hovered", 13 }, 355 { u"stopWithTask", 13 }, 356 { u"switchTextOn", 13 }, 357 { u"switchTextOff", 13 }, 358 { u"switchPreferenceStyle", 13 }, 359 { u"switchTextAppearance", 13 }, 360 { u"track", 13 }, 361 { u"switchMinWidth", 13 }, 362 { u"switchPadding", 13 }, 363 { u"thumbTextPadding", 13 }, 364 { u"textSuggestionsWindowStyle", 13 }, 365 { u"textEditSuggestionItemLayout", 13 }, 366 { u"rowCount", 13 }, 367 { u"rowOrderPreserved", 13 }, 368 { u"columnCount", 13 }, 369 { u"columnOrderPreserved", 13 }, 370 { u"useDefaultMargins", 13 }, 371 { u"alignmentMode", 13 }, 372 { u"layout_row", 13 }, 373 { u"layout_rowSpan", 13 }, 374 { u"layout_columnSpan", 13 }, 375 { u"actionModeSelectAllDrawable", 13 }, 376 { u"isAuxiliary", 13 }, 377 { u"accessibilityEventTypes", 13 }, 378 { u"packageNames", 13 }, 379 { u"accessibilityFeedbackType", 13 }, 380 { u"notificationTimeout", 13 }, 381 { u"accessibilityFlags", 13 }, 382 { u"canRetrieveWindowContent", 13 }, 383 { u"listPreferredItemHeightLarge", 13 }, 384 { u"listPreferredItemHeightSmall", 13 }, 385 { u"actionBarSplitStyle", 13 }, 386 { u"actionProviderClass", 13 }, 387 { u"backgroundStacked", 13 }, 388 { u"backgroundSplit", 13 }, 389 { u"textAllCaps", 13 }, 390 { u"colorPressedHighlight", 13 }, 391 { u"colorLongPressedHighlight", 13 }, 392 { u"colorFocusedHighlight", 13 }, 393 { u"colorActivatedHighlight", 13 }, 394 { u"colorMultiSelectHighlight", 13 }, 395 { u"drawableStart", 13 }, 396 { u"drawableEnd", 13 }, 397 { u"actionModeStyle", 13 }, 398 { u"minResizeWidth", 13 }, 399 { u"minResizeHeight", 13 }, 400 { u"actionBarWidgetTheme", 13 }, 401 { u"uiOptions", 13 }, 402 { u"subtypeLocale", 13 }, 403 { u"subtypeExtraValue", 13 }, 404 { u"actionBarDivider", 13 }, 405 { u"actionBarItemBackground", 13 }, 406 { u"actionModeSplitBackground", 13 }, 407 { u"textAppearanceListItem", 13 }, 408 { u"textAppearanceListItemSmall", 13 }, 409 { u"targetDescriptions", 13 }, 410 { u"directionDescriptions", 13 }, 411 { u"overridesImplicitlyEnabledSubtype", 13 }, 412 { u"listPreferredItemPaddingLeft", 13 }, 413 { u"listPreferredItemPaddingRight", 13 }, 414 { u"requiresFadingEdge", 13 }, 415 { u"publicKey", 13 }, 416 { u"parentActivityName", 16 }, 417 { u"isolatedProcess", 16 }, 418 { u"importantForAccessibility", 16 }, 419 { u"keyboardLayout", 16 }, 420 { u"fontFamily", 16 }, 421 { u"mediaRouteButtonStyle", 16 }, 422 { u"mediaRouteTypes", 16 }, 423 { u"supportsRtl", 17 }, 424 { u"textDirection", 17 }, 425 { u"textAlignment", 17 }, 426 { u"layoutDirection", 17 }, 427 { u"paddingStart", 17 }, 428 { u"paddingEnd", 17 }, 429 { u"layout_marginStart", 17 }, 430 { u"layout_marginEnd", 17 }, 431 { u"layout_toStartOf", 17 }, 432 { u"layout_toEndOf", 17 }, 433 { u"layout_alignStart", 17 }, 434 { u"layout_alignEnd", 17 }, 435 { u"layout_alignParentStart", 17 }, 436 { u"layout_alignParentEnd", 17 }, 437 { u"listPreferredItemPaddingStart", 17 }, 438 { u"listPreferredItemPaddingEnd", 17 }, 439 { u"singleUser", 17 }, 440 { u"presentationTheme", 17 }, 441 { u"subtypeId", 17 }, 442 { u"initialKeyguardLayout", 17 }, 443 { u"widgetCategory", 17 }, 444 { u"permissionGroupFlags", 17 }, 445 { u"labelFor", 17 }, 446 { u"permissionFlags", 17 }, 447 { u"checkedTextViewStyle", 17 }, 448 { u"showOnLockScreen", 17 }, 449 { u"format12Hour", 17 }, 450 { u"format24Hour", 17 }, 451 { u"timeZone", 17 }, 452 { u"mipMap", 18 }, 453 { u"mirrorForRtl", 18 }, 454 { u"windowOverscan", 18 }, 455 { u"requiredForAllUsers", 18 }, 456 { u"indicatorStart", 18 }, 457 { u"indicatorEnd", 18 }, 458 { u"childIndicatorStart", 18 }, 459 { u"childIndicatorEnd", 18 }, 460 { u"restrictedAccountType", 18 }, 461 { u"requiredAccountType", 18 }, 462 { u"canRequestTouchExplorationMode", 18 }, 463 { u"canRequestEnhancedWebAccessibility", 18 }, 464 { u"canRequestFilterKeyEvents", 18 }, 465 { u"layoutMode", 18 }, 466 { u"keySet", 19 }, 467 { u"targetId", 19 }, 468 { u"fromScene", 19 }, 469 { u"toScene", 19 }, 470 { u"transition", 19 }, 471 { u"transitionOrdering", 19 }, 472 { u"fadingMode", 19 }, 473 { u"startDelay", 19 }, 474 { u"ssp", 19 }, 475 { u"sspPrefix", 19 }, 476 { u"sspPattern", 19 }, 477 { u"addPrintersActivity", 19 }, 478 { u"vendor", 19 }, 479 { u"category", 19 }, 480 { u"isAsciiCapable", 19 }, 481 { u"autoMirrored", 19 }, 482 { u"supportsSwitchingToNextInputMethod", 19 }, 483 { u"requireDeviceUnlock", 19 }, 484 { u"apduServiceBanner", 19 }, 485 { u"accessibilityLiveRegion", 19 }, 486 { u"windowTranslucentStatus", 19 }, 487 { u"windowTranslucentNavigation", 19 }, 488 { u"advancedPrintOptionsActivity", 19 }, 489 { u"banner", 20 }, 490 { u"windowSwipeToDismiss", 20 }, 491 { u"isGame", 20 }, 492 { u"allowEmbedded", 20 }, 493 { u"setupActivity", 20 }, 494 { u"fastScrollStyle", 21 }, 495 { u"windowContentTransitions", 21 }, 496 { u"windowContentTransitionManager", 21 }, 497 { u"translationZ", 21 }, 498 { u"tintMode", 21 }, 499 { u"controlX1", 21 }, 500 { u"controlY1", 21 }, 501 { u"controlX2", 21 }, 502 { u"controlY2", 21 }, 503 { u"transitionName", 21 }, 504 { u"transitionGroup", 21 }, 505 { u"viewportWidth", 21 }, 506 { u"viewportHeight", 21 }, 507 { u"fillColor", 21 }, 508 { u"pathData", 21 }, 509 { u"strokeColor", 21 }, 510 { u"strokeWidth", 21 }, 511 { u"trimPathStart", 21 }, 512 { u"trimPathEnd", 21 }, 513 { u"trimPathOffset", 21 }, 514 { u"strokeLineCap", 21 }, 515 { u"strokeLineJoin", 21 }, 516 { u"strokeMiterLimit", 21 }, 517 { u"colorControlNormal", 21 }, 518 { u"colorControlActivated", 21 }, 519 { u"colorButtonNormal", 21 }, 520 { u"colorControlHighlight", 21 }, 521 { u"persistableMode", 21 }, 522 { u"titleTextAppearance", 21 }, 523 { u"subtitleTextAppearance", 21 }, 524 { u"slideEdge", 21 }, 525 { u"actionBarTheme", 21 }, 526 { u"textAppearanceListItemSecondary", 21 }, 527 { u"colorPrimary", 21 }, 528 { u"colorPrimaryDark", 21 }, 529 { u"colorAccent", 21 }, 530 { u"nestedScrollingEnabled", 21 }, 531 { u"windowEnterTransition", 21 }, 532 { u"windowExitTransition", 21 }, 533 { u"windowSharedElementEnterTransition", 21 }, 534 { u"windowSharedElementExitTransition", 21 }, 535 { u"windowAllowReturnTransitionOverlap", 21 }, 536 { u"windowAllowEnterTransitionOverlap", 21 }, 537 { u"sessionService", 21 }, 538 { u"stackViewStyle", 21 }, 539 { u"switchStyle", 21 }, 540 { u"elevation", 21 }, 541 { u"excludeId", 21 }, 542 { u"excludeClass", 21 }, 543 { u"hideOnContentScroll", 21 }, 544 { u"actionOverflowMenuStyle", 21 }, 545 { u"documentLaunchMode", 21 }, 546 { u"maxRecents", 21 }, 547 { u"autoRemoveFromRecents", 21 }, 548 { u"stateListAnimator", 21 }, 549 { u"toId", 21 }, 550 { u"fromId", 21 }, 551 { u"reversible", 21 }, 552 { u"splitTrack", 21 }, 553 { u"targetName", 21 }, 554 { u"excludeName", 21 }, 555 { u"matchOrder", 21 }, 556 { u"windowDrawsSystemBarBackgrounds", 21 }, 557 { u"statusBarColor", 21 }, 558 { u"navigationBarColor", 21 }, 559 { u"contentInsetStart", 21 }, 560 { u"contentInsetEnd", 21 }, 561 { u"contentInsetLeft", 21 }, 562 { u"contentInsetRight", 21 }, 563 { u"paddingMode", 21 }, 564 { u"layout_rowWeight", 21 }, 565 { u"layout_columnWeight", 21 }, 566 { u"translateX", 21 }, 567 { u"translateY", 21 }, 568 { u"selectableItemBackgroundBorderless", 21 }, 569 { u"elegantTextHeight", 21 }, 570 { u"searchKeyphraseId", 21 }, 571 { u"searchKeyphrase", 21 }, 572 { u"searchKeyphraseSupportedLocales", 21 }, 573 { u"windowTransitionBackgroundFadeDuration", 21 }, 574 { u"overlapAnchor", 21 }, 575 { u"progressTint", 21 }, 576 { u"progressTintMode", 21 }, 577 { u"progressBackgroundTint", 21 }, 578 { u"progressBackgroundTintMode", 21 }, 579 { u"secondaryProgressTint", 21 }, 580 { u"secondaryProgressTintMode", 21 }, 581 { u"indeterminateTint", 21 }, 582 { u"indeterminateTintMode", 21 }, 583 { u"backgroundTint", 21 }, 584 { u"backgroundTintMode", 21 }, 585 { u"foregroundTint", 21 }, 586 { u"foregroundTintMode", 21 }, 587 { u"buttonTint", 21 }, 588 { u"buttonTintMode", 21 }, 589 { u"thumbTint", 21 }, 590 { u"thumbTintMode", 21 }, 591 { u"fullBackupOnly", 21 }, 592 { u"propertyXName", 21 }, 593 { u"propertyYName", 21 }, 594 { u"relinquishTaskIdentity", 21 }, 595 { u"tileModeX", 21 }, 596 { u"tileModeY", 21 }, 597 { u"actionModeShareDrawable", 21 }, 598 { u"actionModeFindDrawable", 21 }, 599 { u"actionModeWebSearchDrawable", 21 }, 600 { u"transitionVisibilityMode", 21 }, 601 { u"minimumHorizontalAngle", 21 }, 602 { u"minimumVerticalAngle", 21 }, 603 { u"maximumAngle", 21 }, 604 { u"searchViewStyle", 21 }, 605 { u"closeIcon", 21 }, 606 { u"goIcon", 21 }, 607 { u"searchIcon", 21 }, 608 { u"voiceIcon", 21 }, 609 { u"commitIcon", 21 }, 610 { u"suggestionRowLayout", 21 }, 611 { u"queryBackground", 21 }, 612 { u"submitBackground", 21 }, 613 { u"buttonBarPositiveButtonStyle", 21 }, 614 { u"buttonBarNeutralButtonStyle", 21 }, 615 { u"buttonBarNegativeButtonStyle", 21 }, 616 { u"popupElevation", 21 }, 617 { u"actionBarPopupTheme", 21 }, 618 { u"multiArch", 21 }, 619 { u"touchscreenBlocksFocus", 21 }, 620 { u"windowElevation", 21 }, 621 { u"launchTaskBehindTargetAnimation", 21 }, 622 { u"launchTaskBehindSourceAnimation", 21 }, 623 { u"restrictionType", 21 }, 624 { u"dayOfWeekBackground", 21 }, 625 { u"dayOfWeekTextAppearance", 21 }, 626 { u"headerMonthTextAppearance", 21 }, 627 { u"headerDayOfMonthTextAppearance", 21 }, 628 { u"headerYearTextAppearance", 21 }, 629 { u"yearListItemTextAppearance", 21 }, 630 { u"yearListSelectorColor", 21 }, 631 { u"calendarTextColor", 21 }, 632 { u"recognitionService", 21 }, 633 { u"timePickerStyle", 21 }, 634 { u"timePickerDialogTheme", 21 }, 635 { u"headerTimeTextAppearance", 21 }, 636 { u"headerAmPmTextAppearance", 21 }, 637 { u"numbersTextColor", 21 }, 638 { u"numbersBackgroundColor", 21 }, 639 { u"numbersSelectorColor", 21 }, 640 { u"amPmTextColor", 21 }, 641 { u"amPmBackgroundColor", 21 }, 642 { u"searchKeyphraseRecognitionFlags", 21 }, 643 { u"checkMarkTint", 21 }, 644 { u"checkMarkTintMode", 21 }, 645 { u"popupTheme", 21 }, 646 { u"toolbarStyle", 21 }, 647 { u"windowClipToOutline", 21 }, 648 { u"datePickerDialogTheme", 21 }, 649 { u"showText", 21 }, 650 { u"windowReturnTransition", 21 }, 651 { u"windowReenterTransition", 21 }, 652 { u"windowSharedElementReturnTransition", 21 }, 653 { u"windowSharedElementReenterTransition", 21 }, 654 { u"resumeWhilePausing", 21 }, 655 { u"datePickerMode", 21 }, 656 { u"timePickerMode", 21 }, 657 { u"inset", 21 }, 658 { u"letterSpacing", 21 }, 659 { u"fontFeatureSettings", 21 }, 660 { u"outlineProvider", 21 }, 661 { u"contentAgeHint", 21 }, 662 { u"country", 21 }, 663 { u"windowSharedElementsUseOverlay", 21 }, 664 { u"reparent", 21 }, 665 { u"reparentWithOverlay", 21 }, 666 { u"ambientShadowAlpha", 21 }, 667 { u"spotShadowAlpha", 21 }, 668 { u"navigationIcon", 21 }, 669 { u"navigationContentDescription", 21 }, 670 { u"fragmentExitTransition", 21 }, 671 { u"fragmentEnterTransition", 21 }, 672 { u"fragmentSharedElementEnterTransition", 21 }, 673 { u"fragmentReturnTransition", 21 }, 674 { u"fragmentSharedElementReturnTransition", 21 }, 675 { u"fragmentReenterTransition", 21 }, 676 { u"fragmentAllowEnterTransitionOverlap", 21 }, 677 { u"fragmentAllowReturnTransitionOverlap", 21 }, 678 { u"patternPathData", 21 }, 679 { u"strokeAlpha", 21 }, 680 { u"fillAlpha", 21 }, 681 { u"windowActivityTransitions", 21 }, 682 { u"colorEdgeEffect", 21 } 683}; 684 685size_t findAttributeSdkLevel(const std::u16string& name) { 686 auto iter = sAttrMap.find(name); 687 if (iter != sAttrMap.end()) { 688 return iter->second; 689 } 690 return 0; 691} 692 693} // namespace aapt 694