/frameworks/base/tools/aapt2/ |
D | Resource.cpp | 25 StringPiece16 toString(ResourceType type) { in toString() 27 case ResourceType::kAnim: return u"anim"; in toString() 28 case ResourceType::kAnimator: return u"animator"; in toString() 29 case ResourceType::kArray: return u"array"; in toString() 30 case ResourceType::kAttr: return u"attr"; in toString() 31 case ResourceType::kAttrPrivate: return u"attr"; in toString() 32 case ResourceType::kBool: return u"bool"; in toString() 33 case ResourceType::kColor: return u"color"; in toString() 34 case ResourceType::kDimen: return u"dimen"; in toString() 35 case ResourceType::kDrawable: return u"drawable"; in toString() [all …]
|
D | Resource_test.cpp | 24 const ResourceType* type = parseResourceType(u"anim"); in TEST() 26 EXPECT_EQ(*type, ResourceType::kAnim); in TEST() 30 EXPECT_EQ(*type, ResourceType::kAnimator); in TEST() 34 EXPECT_EQ(*type, ResourceType::kArray); in TEST() 38 EXPECT_EQ(*type, ResourceType::kAttr); in TEST() 42 EXPECT_EQ(*type, ResourceType::kAttrPrivate); in TEST() 46 EXPECT_EQ(*type, ResourceType::kBool); in TEST() 50 EXPECT_EQ(*type, ResourceType::kColor); in TEST() 54 EXPECT_EQ(*type, ResourceType::kDimen); in TEST() 58 EXPECT_EQ(*type, ResourceType::kDrawable); in TEST() [all …]
|
D | ResourceParser_test.cpp | 31 ResourceNameRef expected = { {}, ResourceType::kColor, u"foo" }; in TEST() 42 ResourceNameRef expected = { u"android", ResourceType::kColor, u"foo" }; in TEST() 54 ResourceNameRef expected = { u"android", ResourceType::kColor, u"foo" }; in TEST() 66 ResourceNameRef expected = { u"android", ResourceType::kId, u"foo" }; in TEST() 78 ResourceNameRef expected = { u"android", ResourceType::kId, u"foo" }; in TEST() 101 EXPECT_EQ(ref.name, (ResourceName{ u"android", ResourceType::kStyle, u"foo" })); in TEST() 104 EXPECT_EQ(ref.name, (ResourceName{ {}, ResourceType::kStyle, u"foo" })); in TEST() 107 EXPECT_EQ(ref.name, (ResourceName{ u"android", ResourceType::kStyle, u"foo" })); in TEST() 110 EXPECT_EQ(ref.name, (ResourceName{ {}, ResourceType::kStyle, u"foo" })); in TEST() 113 EXPECT_EQ(ref.name, (ResourceName{ u"android", ResourceType::kStyle, u"foo" })); in TEST() [all …]
|
D | Linker_test.cpp | 40 addResource(ResourceName{ {}, ResourceType::kAttr, u"integer" }, in SetUp() 43 addResource(ResourceName{ {}, ResourceType::kAttr, u"string" }, in SetUp() 46 addResource(ResourceName{ {}, ResourceType::kId, u"apple" }, util::make_unique<Id>()); in SetUp() 48 addResource(ResourceName{ {}, ResourceType::kId, u"banana" }, util::make_unique<Id>()); in SetUp() 53 ResourceNameRef{ u"android", ResourceType::kId, u"apple" }, 1 }); in SetUp() 55 ResourceNameRef{ u"android", ResourceType::kId, u"banana" }, 2 }); in SetUp() 56 addResource(ResourceName{ {}, ResourceType::kAttr, u"flags" }, std::move(flagAttr)); in SetUp() 72 ASSERT_TRUE(addResource(ResourceName{ u"android", ResourceType::kString, u"foo" }, in TEST_F() 82 ResourceNameRef{ u"android", ResourceType::kAttr, u"integer" }, in TEST_F() 86 ASSERT_TRUE(addResource(ResourceName{ u"android", ResourceType::kStyle, u"foo" }, in TEST_F() [all …]
|
D | JavaClassGenerator_test.cpp | 47 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"class" }, in TEST_F() 57 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"hey-man" }, in TEST_F() 60 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kAttr, u"cool.attr" }, in TEST_F() 64 Reference ref(ResourceName{ u"android", ResourceType::kAttr, u"cool.attr"}); in TEST_F() 68 ASSERT_TRUE(mTable->addResource(ResourceName{ {}, ResourceType::kStyleable, u"hey.dude" }, in TEST_F() 90 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"foo" }, in TEST_F() 94 ASSERT_TRUE(table.addResource(ResourceName{ {}, ResourceType::kId, u"test" }, {}, in TEST_F() 121 ResourceType::kAttr, in TEST_F() 123 styleable->entries.emplace_back(ResourceNameRef{ u"com.lib", ResourceType::kAttr, u"bar" }); in TEST_F() 124 ASSERT_TRUE(mTable->addResource(ResourceName{ {}, ResourceType::kStyleable, u"Foo" }, {}, {}, in TEST_F() [all …]
|
D | ResourceTable_test.cpp | 68 ResourceNameRef{ u"android", ResourceType::kId, u"hey,there" }, in TEST() 73 ResourceNameRef{ u"android", ResourceType::kId, u"hey:there" }, in TEST() 84 const ResourceName name = { kAndroidPackage, ResourceType::kAttr, u"id" }; in TEST() 113 ResourceName{ kAndroidPackage, ResourceType::kAttr, u"layout_width" }, in TEST() 118 ResourceName{ kAndroidPackage, ResourceType::kAttr, u"id" }, in TEST() 123 ResourceName{ kAndroidPackage, ResourceType::kString, u"ok" }, in TEST() 128 ResourceName{ kAndroidPackage, ResourceType::kString, u"ok" }, in TEST() 136 EXPECT_EQ(ResourceType::kAttr, (*typeIter)->type); in TEST() 155 EXPECT_EQ(ResourceType::kString, (*typeIter)->type); in TEST() 205 ResourceName{ kAndroid, ResourceType::kAttr, u"foo" }, in TEST() [all …]
|
D | Resource.h | 33 enum class ResourceType { enum 60 StringPiece16 toString(ResourceType type); 66 const ResourceType* parseResourceType(const StringPiece16& str); 74 ResourceType type; 91 ResourceType type; 98 ResourceNameRef(const StringPiece16& p, ResourceType t, const StringPiece16& e); 203 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceType& val) { 246 inline ResourceNameRef::ResourceNameRef(const StringPiece16& p, ResourceType t, in ResourceNameRef()
|
D | ResourceParser.cpp | 70 const ResourceType* parsedType = parseResourceType(type); in tryParseReference() 75 if (*outCreate && *parsedType != ResourceType::kId) { in tryParseReference() 105 outRef->type = ResourceType::kAttr; in tryParseAttributeReference() 142 ref.type = ResourceType::kStyle; in parseStyleParentReference() 148 const ResourceType* parsedType = parseResourceType(typeStr); in parseStyleParentReference() 149 if (!parsedType || *parsedType != ResourceType::kStyle) { in parseStyleParentReference() 663 success &= mTable->addResource(ResourceNameRef{ {}, ResourceType::kId, attributeName }, in parseResources() 668 ResourceNameRef{ {}, ResourceType::kString, attributeName }); in parseResources() 671 ResourceNameRef{ {}, ResourceType::kColor, attributeName }); in parseResources() 674 ResourceNameRef{ {}, ResourceType::kDrawable, attributeName }); in parseResources() [all …]
|
D | ResourceTable.h | 100 const ResourceType type; 118 ResourceTableType(const ResourceType _type); 185 std::unique_ptr<ResourceTableType>& findOrCreateType(ResourceType type); 223 inline ResourceTableType::ResourceTableType(const ResourceType _type) : in ResourceTableType()
|
D | XmlFlattener_test.cpp | 42 { ResourceName{ u"android", ResourceType::kAttr, u"attr" }, in SetUp() 44 { ResourceName{ u"android", ResourceType::kId, u"id" }, in SetUp() 46 { ResourceName{ u"com.lib", ResourceType::kAttr, u"attr" }, in SetUp() 48 { ResourceName{ u"com.lib", ResourceType::kId, u"id" }, in SetUp()
|
D | ProguardRules.cpp | 195 bool collectProguardRules(ResourceType type, const Source& source, xml::Node* node, in collectProguardRules() 198 case ResourceType::kLayout: { in collectProguardRules() 204 case ResourceType::kXml: { in collectProguardRules() 210 case ResourceType::kTransition: { in collectProguardRules()
|
D | BinaryResourceParser.cpp | 178 const ResourceType* type = parseResourceType(typeStr); in getSymbol() 467 const ResourceType* parsedType = parseResourceType(util::getString(mTypePool, in parsePublic() 576 const ResourceType* parsedType = parseResourceType(typeName); in parseType() 665 if (name.type == ResourceType::kId) { in parseValue() 687 if (name.type != ResourceType::kString && in parseValue() 738 case ResourceType::kStyle: in parseMapEntry() 740 case ResourceType::kAttr: in parseMapEntry() 742 case ResourceType::kArray: in parseMapEntry() 744 case ResourceType::kStyleable: in parseMapEntry() 746 case ResourceType::kPlurals: in parseMapEntry()
|
/frameworks/base/tools/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<Pair<ResourceType… 31 …private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<Resour… 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/libs/hwui/ |
D | ResourceCache.h | 38 enum ResourceType { enum 45 ResourceReference(ResourceType type) { in ResourceReference() 51 ResourceType resourceType; 82 void incrementRefcount(void* resource, ResourceType resourceType); 83 void incrementRefcountLocked(void* resource, ResourceType resourceType);
|
D | ResourceCache.cpp | 62 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount() 71 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | LayoutLibTestCallback.java | 28 import com.android.resources.ResourceType; 55 private final Map<Integer, Pair<ResourceType, String>> mProjectResources = Maps.newHashMap(); 57 private final Map<ResourceType, Map<String, Integer>> mResources = Maps.newHashMap(); 70 final ResourceType resType = ResourceType.getEnum(resClass.getSimpleName()); in initResources() 118 public Pair<ResourceType, String> resolveResourceId(int id) { in resolveResourceId() 128 public Integer getResourceId(ResourceType type, String name) { in getResourceId()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | Bridge.java | 31 import com.android.resources.ResourceType; 91 private final static Map<Integer, Pair<ResourceType, String>> sRMap = 92 new HashMap<Integer, Pair<ResourceType, String>>(); 102 private final static Map<ResourceType, Map<String, Integer>> sRevRMap = 103 new EnumMap<ResourceType, Map<String,Integer>>(ResourceType.class); 263 ResourceType resType = ResourceType.getEnum(resTypeName); in init() 268 fullMap = sRevRMap.get(ResourceType.ATTR); in init() 334 sRevRMap.put(ResourceType.ATTR, revRAttrMap); in parseStyleable() 337 sRevRMap.put(ResourceType.STYLEABLE, revRStyleableMap); in parseStyleable() 390 sRMap.put(attrValue, Pair.of(ResourceType.ATTR, attrName)); in parseStyleable() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | Resources_Theme_Delegate.java | 24 import com.android.resources.ResourceType; 146 .getFrameworkResource(ResourceType.STYLE, theme.getName()); in resolveStyle() 149 .getProjectResource(ResourceType.STYLE, theme.getName()); in resolveStyle()
|
D | BridgeTypedArray.java | 30 import com.android.resources.ResourceType; 666 idValue = Bridge.getResourceId(ResourceType.ID, idName); in getResourceId() 668 … idValue = mContext.getLayoutlibCallback().getResourceId(ResourceType.ID, idName); in getResourceId() 675 return mContext.getFrameworkResourceValue(ResourceType.ID, idName, defValue); in getResourceId() 677 return mContext.getProjectResourceValue(ResourceType.ID, idName, defValue); in getResourceId() 913 ResourceValue attr = res.getProjectResource(ResourceType.ATTR, mNames[index]); in resolveEnumAttribute()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | AppCompatActionBar.java | 25 import com.android.resources.ResourceType; 55 int contentRootId = context.getProjectResourceValue(ResourceType.ID, in AppCompatActionBar() 87 return context.getRenderResources().getProjectResource(ResourceType.LAYOUT, in getLayoutResource()
|
D | CustomBar.java | 30 import com.android.resources.ResourceType; 263 ResourceType type = resource.getResourceType(); in getColor() 264 if (type == null || type == ResourceType.COLOR) { in getColor()
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | BridgeInflater.java | 32 import com.android.resources.ResourceType; 174 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource); in inflate() 177 ResourceType.LAYOUT, layoutInfo.getSecond()); in inflate() 183 ResourceType.LAYOUT, layoutInfo.getSecond()); in inflate()
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 26 import com.android.resources.ResourceType; 62 Integer v = Bridge.getResourceId(ResourceType.ATTR, name); in getAttributeNameResource() 73 Integer v = mContext.getLayoutlibCallback().getResourceId(ResourceType.ATTR, name); in getAttributeNameResource()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 33 import com.android.resources.ResourceType; 321 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid); in resolveThemeAttribute() 373 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in resolveId() 423 resValue = mRenderResources.getFrameworkResource(ResourceType.LAYOUT, in inflateView() 426 resValue = mRenderResources.getProjectResource(ResourceType.LAYOUT, in inflateView() 764 Pair<ResourceType, String> value = Bridge.resolveResourceId(defStyleRes); in obtainStyledAttributes() 771 if ((value.getFirst() == ResourceType.STYLE)) { in obtainStyledAttributes() 974 Pair<ResourceType, String> resolvedResource = Bridge.resolveResourceId(attr); in searchAttrs() 1000 Pair<ResourceType, String> info = Bridge.resolveResourceId(attr); in searchAttr() 1043 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { in getFrameworkResourceValue() [all …]
|
/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/ |
D | BindingExpressionLexer.tokens | 56 ResourceType=56
|