/frameworks/base/tools/aapt2/ |
D | Resource.cpp | 47 StringPiece to_string(ResourceType type) { in to_string() 49 case ResourceType::kAnim: in to_string() 51 case ResourceType::kAnimator: in to_string() 53 case ResourceType::kArray: in to_string() 55 case ResourceType::kAttr: in to_string() 57 case ResourceType::kAttrPrivate: in to_string() 59 case ResourceType::kBool: in to_string() 61 case ResourceType::kColor: in to_string() 63 case ResourceType::kConfigVarying: in to_string() 65 case ResourceType::kDimen: in to_string() [all …]
|
D | Resource_test.cpp | 27 const ResourceType* type = ParseResourceType("anim"); in TEST() 29 EXPECT_EQ(*type, ResourceType::kAnim); in TEST() 33 EXPECT_EQ(*type, ResourceType::kAnimator); in TEST() 37 EXPECT_EQ(*type, ResourceType::kArray); in TEST() 41 EXPECT_EQ(*type, ResourceType::kAttr); in TEST() 45 EXPECT_EQ(*type, ResourceType::kAttrPrivate); in TEST() 49 EXPECT_EQ(*type, ResourceType::kBool); in TEST() 53 EXPECT_EQ(*type, ResourceType::kColor); in TEST() 57 EXPECT_EQ(*type, ResourceType::kConfigVarying); in TEST() 61 EXPECT_EQ(*type, ResourceType::kDimen); in TEST() [all …]
|
D | Resource.h | 38 enum class ResourceType { enum 72 android::StringPiece to_string(ResourceType type); 77 const ResourceType* ParseResourceType(android::StringPiece str); 87 ResourceType type = ResourceType::kRaw; 90 ResourceNamedType(android::StringPiece n, ResourceType t); 105 ResourceType type = ResourceType::kRaw; 111 ResourceNamedTypeRef(android::StringPiece n, ResourceType t); 121 ResourceNamedTypeRef ResourceNamedTypeWithDefaultName(ResourceType t); 136 ResourceName(android::StringPiece p, ResourceType t, android::StringPiece e); 160 ResourceNameRef(android::StringPiece p, ResourceType t, android::StringPiece e); [all …]
|
D | ResourceUtils_test.cpp | 48 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST() 52 EXPECT_THAT(actual, Eq(ResourceNameRef({}, ResourceType::kColor, "foo"))); in TEST() 56 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST() 67 EXPECT_THAT(actual, Eq(ResourceNameRef({}, ResourceType::kColor, "foo"))); in TEST() 77 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST() 87 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST() 97 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kId, "foo"))); in TEST() 107 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kId, "foo"))); in TEST() 116 std::unique_ptr<Item> item = ResourceUtils::ParseBinaryResValue(ResourceType::kId, in TEST() 154 const ResourceName kAndroidStyleFooName("android", ResourceType::kStyle, "foo"); in TEST() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfig.java | 23 PartnerConfigKey.KEY_IMMERSIVE_MODE, ResourceType.STRING), 26 PartnerConfigKey.KEY_TOOLBAR_BG_COLOR, ResourceType.COLOR), 29 PartnerConfigKey.KEY_TOOLBAR_BUTTON_ICON_BACK, ResourceType.DRAWABLE), 32 PartnerConfigKey.KEY_TOOLBAR_BUTTON_ICON_CLOSE, ResourceType.DRAWABLE), 35 PartnerConfigKey.KEY_TOOLBAR_NAV_BUTTON_MIRRORING_IN_RTL, ResourceType.BOOLEAN), 38 PartnerConfigKey.KEY_TOOLBAR_BUTTON_FONT_FAMILY, ResourceType.STRING), 41 PartnerConfigKey.KEY_TOOLBAR_BUTTON_PADDING_HORIZONTAL, ResourceType.DIMENSION), 44 PartnerConfigKey.KEY_TOOLBAR_BUTTON_PADDING_VERTICAL, ResourceType.DIMENSION), 47 PartnerConfigKey.KEY_TOOLBAR_BUTTON_RADIUS, ResourceType.DIMENSION), 50 PartnerConfigKey.KEY_TOOLBAR_BUTTON_SPACING, ResourceType.DIMENSION), [all …]
|
D | PartnerConfigHelper.java | 75 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.COLOR) { in getColor() 114 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.COLOR) { in getColorStateList() 161 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.DRAWABLE) { in getDrawable() 204 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.STRING) { in getString() 250 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.DIMENSION) { in getDimension() 286 if (partnerConfig.getResourceType() != PartnerConfig.ResourceType.BOOLEAN) { in getBoolean()
|
/frameworks/layoutlib/bridge/tests/src/android/content/res/ |
D | Resources_DelegateTest.java | 19 import com.android.resources.ResourceType; 34 @NonNull ResourceType type, @Nullable ResourceUrl url) { in assertResourceUrl() 51 assertResourceUrl("package", "name", ResourceType.ID, in resourceUrlFromName() 53 assertResourceUrl("package", "name", ResourceType.ID, in resourceUrlFromName() 55 assertResourceUrl("package", "test", ResourceType.STRING, in resourceUrlFromName() 57 assertResourceUrl(null, "test", ResourceType.STRING, in resourceUrlFromName() 62 assertResourceUrl("p1", "r1", ResourceType.STRING, in resourceUrlFromName() 64 assertResourceUrl("p2", "r1", ResourceType.STRING, in resourceUrlFromName() 66 assertResourceUrl("p1", "r1", ResourceType.ID, in resourceUrlFromName()
|
/frameworks/layoutlib/bridge/bridge_client/src/com/android/ide/common/resources/deprecated/ |
D | ResourceRepository.java | 25 import com.android.resources.ResourceType; 47 protected Map<ResourceType, Map<String, ResourceItem>> mResourceMap = 48 new EnumMap<>(ResourceType.class); 77 mResourceMap = new EnumMap<>(ResourceType.class); in clear() 174 public ResourceItem getResourceItem(@NotNull ResourceType type, @NotNull String name) { in getResourceItem() 280 public Map<ResourceType, ResourceValueMap> getConfiguredResources( in getConfiguredResources() 295 private Map<ResourceType, ResourceValueMap> doGetConfiguredResources( in doGetConfiguredResources() 299 Map<ResourceType, ResourceValueMap> map = in doGetConfiguredResources() 300 new EnumMap<>(ResourceType.class); in doGetConfiguredResources() 302 for (ResourceType key : ResourceType.values()) { in doGetConfiguredResources() [all …]
|
D | MultiResourceFile.java | 25 import com.android.resources.ResourceType; 50 private final Map<ResourceType, ResourceValueMap> mResourceItems = 51 new EnumMap<>(ResourceType.class); 53 private Collection<ResourceType> mResourceTypeList = null; 84 Map<ResourceType, ResourceValueMap> oldResourceItems in update() 99 for (ResourceType type : mResourceTypeList) { in update() 120 for (ResourceType type : mResourceTypeList) { in updateResourceItems() 157 ResourceType resType = value.getResourceType(); in addResourceValue() 180 public ResourceValue getValue(ResourceType type, String name) { in getValue()
|
D | IdGeneratingResourceFile.java | 30 import com.android.resources.ResourceType; 48 private final Collection<ResourceType> mResourceTypeList; 52 private final ResourceType mFileType; 56 … public IdGeneratingResourceFile(TestFileWrapper file, ResourceFolder folder, ResourceType type) { in IdGeneratingResourceFile() 62 mResourceTypeList = EnumSet.of(mFileType, ResourceType.ID); in IdGeneratingResourceFile() 105 public ResourceValue getValue(ResourceType type, String name) { in getValue() 107 if (type != mFileType && type != ResourceType.ID) { in getValue() 152 item = repository.getResourceItem(ResourceType.ID, idName); in updateResourceItems()
|
D | FrameworkResources.java | 23 import com.android.resources.ResourceType; 53 private final Map<ResourceType, List<ResourceItem>> mPublicResourceMap = 54 new EnumMap<>(ResourceType.class); 89 ResourceType lastType = null; in loadPublicResources() 116 ResourceType type; in loadPublicResources() 120 type = ResourceType.fromXmlValue(typeName); in loadPublicResources() 186 for (ResourceType type : ResourceType.values()) { in loadPublicResources()
|
D | SingleResourceFile.java | 27 import com.android.resources.ResourceType; 42 private final ResourceType mType; 50 List<ResourceType> types = FolderTypeRelationship.getRelatedResourceTypes(folder.getType()); in SingleResourceFile() 110 public ResourceValue getValue(ResourceType type, String name) { in getValue()
|
D | ResourceFolder.java | 26 import com.android.resources.ResourceType; 97 List<ResourceType> types = FolderTypeRelationship.getRelatedResourceTypes(mType); in createResourceFile() 98 ResourceType primaryType = types.get(0); in createResourceFile()
|
D | ResourceFile.java | 22 import com.android.resources.ResourceType; 71 public abstract ResourceValue getValue(ResourceType type, String name); in getValue()
|
D | ResourceItem.java | 21 import com.android.resources.ResourceType; 71 public ResourceValue getResourceValue(ResourceType type, FolderConfiguration referenceConfig) { in getResourceValue()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 19 import com.android.resources.ResourceType; 30 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<>(); 31 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<>(); 53 public Integer getId(ResourceType type, String name) { in getId() 65 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument 76 public Pair<ResourceType, String> resolveId(int id) { in resolveId()
|
/frameworks/base/tools/aapt2/link/ |
D | PrivateAttributeMover_test.cpp | 44 ResourceTableType* type = package->FindTypeWithDefaultName(ResourceType::kAttr); in TEST() 50 type = package->FindTypeWithDefaultName(ResourceType::kAttrPrivate); in TEST() 71 ResourceTableType* type = package->FindTypeWithDefaultName(ResourceType::kAttr); in TEST() 75 type = package->FindTypeWithDefaultName(ResourceType::kAttrPrivate); in TEST() 90 ASSERT_EQ(nullptr, package->FindTypeWithDefaultName(ResourceType::kAttrPrivate)); in TEST() 95 ASSERT_EQ(nullptr, package->FindTypeWithDefaultName(ResourceType::kAttrPrivate)); in TEST()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/illustration/ |
D | Illustration.kt | 33 enum class ResourceType { IMAGE, LOTTIE } class 49 val resourceType: ResourceType 69 resourceType: ResourceType, in Illustration() 87 ResourceType.LOTTIE -> { in Illustration() 93 ResourceType.IMAGE -> { in Illustration()
|
/frameworks/base/tools/aapt2/optimize/ |
D | ResourceFilter_test.cpp | 41 ResourceName({}, ResourceType::kString, "exclude_listed"), in TEST() 42 ResourceName({}, ResourceType::kString, "exclude_listed2"), in TEST() 65 ResourceName({}, ResourceType::kString, "exclude_listed"), in TEST()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | UnresolvedResourceValue.java | 20 import com.android.resources.ResourceType; 33 super(namespace, ResourceType.STRING, "layoutlib", value); in UnresolvedResourceValue()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/ |
D | IllustrationPage.kt | 31 import com.android.settingslib.spa.widget.illustration.ResourceType 52 override val resourceType = ResourceType.LOTTIE in buildEntry() 65 override val resourceType = ResourceType.IMAGE in buildEntry()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | Bridge.java | 34 import com.android.resources.ResourceType; 112 private final static Map<Integer, Pair<ResourceType, String>> sRMap = new HashMap<>(); 118 private final static Map<ResourceType, Map<String, Integer>> sRevRMap = new EnumMap<>( 119 ResourceType.class); 282 ResourceType resType = ResourceType.fromClassName(resTypeName); in init() 287 fullMap = sRevRMap.get(ResourceType.ATTR); in init() 359 sRevRMap.put(ResourceType.ATTR, revRAttrMap); in parseStyleable() 362 sRevRMap.put(ResourceType.STYLEABLE, revRStyleableMap); in parseStyleable() 411 sRMap.put(attrValue, Pair.create(ResourceType.ATTR, attrName)); in parseStyleable() 414 sRMap.put(index, Pair.create(ResourceType.STYLEABLE, name)); in parseStyleable() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderDrawable.java | 26 import com.android.resources.ResourceType; 77 ResourceType resourceType = drawableResource.getResourceType(); in render() 78 if (resourceType != ResourceType.DRAWABLE && resourceType != ResourceType.MIPMAP) { in render()
|
/frameworks/base/packages/SettingsLib/Spa/screenshot/src/com/android/settingslib/spa/screenshot/widget/illustration/ |
D | ImageIllustrationScreenshotTest.kt | 23 import com.android.settingslib.spa.widget.illustration.ResourceType 52 override val resourceType = ResourceType.IMAGE in getTestSpecs()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 457 if (context_->GetMinSdkVersion() < SDK_O && name.type.type == ResourceType::kId && in ProcessResource() 553 const auto target_type = type.named_type.type == ResourceType::kAttrPrivate in ProcessType() 554 ? ResourceNamedTypeWithDefaultName(ResourceType::kAttr) in ProcessType() 567 if (resource_name.type.type == ResourceType::kStyleable) { in ProcessType() 622 if (type->named_type.type == ResourceType::kAttrPrivate || in Generate() 623 type->named_type.type == ResourceType::kMacro) { in Generate() 643 if (type->named_type.type == ResourceType::kAttr) { in Generate() 646 package->FindTypeWithDefaultName(ResourceType::kAttrPrivate)) { in Generate() 654 if (out != nullptr && type->named_type.type == ResourceType::kStyleable && is_public) { in Generate()
|