HomeSort by relevance Sort by last modified time
    Searched refs:ResourceId (Results 1 - 25 of 38) sorted by null

1 2

  /frameworks/base/tools/aapt2/
SdkConstants_test.cpp 24 EXPECT_EQ(1u, findAttributeSdkLevel(ResourceId(0x01010000)));
28 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010103f7)));
29 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010104ce)));
31 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104cf)));
32 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d8)));
34 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d9)));
35 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x0101ffff)));
Resource.h 122 struct ResourceId {
125 ResourceId();
126 ResourceId(const ResourceId& rhs);
127 ResourceId(uint32_t resId);
128 ResourceId(uint8_t p, uint8_t t, uint16_t e);
186 // ResourceId implementation.
189 inline ResourceId::ResourceId() : id(0) {
192 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id)
    [all...]
SdkConstants.h 48 size_t findAttributeSdkLevel(ResourceId id);
ResourceTable.h 203 const ResourceId resId,
234 const ResourceId id,
241 const ResourceId resId,
246 const ResourceId resId,
297 ResourceId resId,
306 ResourceId resId,
ResourceTable.cpp 277 const ResourceId resId,
314 return addResourceImpl(name, ResourceId{}, config, StringPiece{}, std::move(fileRef),
323 return addResourceImpl(name, ResourceId{}, config, product, std::move(value),
328 const ResourceId id,
338 const ResourceId resId,
397 << ResourceId(package->id.value(), type->id.value(), entry->id.value()));
429 bool ResourceTable::setSymbolState(const ResourceNameRef& name, const ResourceId resId,
435 const ResourceId resId,
440 bool ResourceTable::setSymbolStateImpl(const ResourceNameRef& name, const ResourceId resId,
494 << ResourceId(package->id.value(), type->id.value(), entry->id.value()))
    [all...]
  /frameworks/base/tools/aapt2/link/
XmlReferenceLinker_test.cpp 31 .addPublicSymbol(u"@android:attr/layout_width", ResourceId(0x01010000),
37 .addPublicSymbol(u"@android:attr/background", ResourceId(0x01010001),
40 .addPublicSymbol(u"@android:attr/attr", ResourceId(0x01010002),
42 .addPublicSymbol(u"@android:attr/text", ResourceId(0x01010003),
48 .addPublicSymbol(u"@android:attr/colorAccent", ResourceId(0x01010435),
52 .addSymbol(u"@android:color/hidden", ResourceId(0x01020001))
54 .addPublicSymbol(u"@android:id/id", ResourceId(0x01030000))
55 .addSymbol(u"@com.app.test:id/id", ResourceId(0x7f030000))
56 .addSymbol(u"@com.app.test:color/green", ResourceId(0x7f020000))
57 .addSymbol(u"@com.app.test:color/red", ResourceId(0x7f020001)
    [all...]
ReferenceLinker_test.cpp 27 .addReference(u"@com.app.test:string/foo", ResourceId(0x7f020000),
31 .addReference(u"@com.app.test:string/bar", ResourceId(0x7f020001), u"@string/baz")
33 .addReference(u"@com.app.test:string/baz", ResourceId(0x7f020002),
43 .addPublicSymbol(u"@android:string/ok", ResourceId(0x01040034))
53 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020001));
58 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020002));
63 EXPECT_EQ(ref->id.value(), ResourceId(0x01040034));
91 ResourceId(0x01060000))
92 .addPublicSymbol(u"@android:attr/foo", ResourceId(0x01010001),
96 .addPublicSymbol(u"@android:attr/bar", ResourceId(0x01010002)
    [all...]
AutoVersioner_test.cpp 57 .addValue(u"@app:style/Foo", ResourceId(0x7f020000), test::parseConfigOrDie("v4"),
59 .addItem(u"@android:attr/onClick", ResourceId(0x0101026f),
61 .addItem(u"@android:attr/paddingStart", ResourceId(0x010103b3),
64 ResourceId(0x01010364), util::make_unique<Id>())
65 .addItem(u"@android:attr/colorAccent", ResourceId(0x01010435),
68 .addValue(u"@app:style/Foo", ResourceId(0x7f020000), test::parseConfigOrDie("v21"),
70 .addItem(u"@android:attr/paddingEnd", ResourceId(0x010103b4),
ManifestFixer_test.cpp 34 .addSymbol(u"@android:attr/package", ResourceId(0x01010000),
38 .addSymbol(u"@android:attr/minSdkVersion", ResourceId(0x01010001),
43 .addSymbol(u"@android:attr/targetSdkVersion", ResourceId(0x01010002),
48 .addSymbol(u"@android:string/str", ResourceId(0x01060000))
PrivateAttributeMover_test.cpp 33 .setSymbolState(u"@android:attr/publicA", ResourceId(0x01010000), SymbolState::kPublic)
34 .setSymbolState(u"@android:attr/publicB", ResourceId(0x01010000), SymbolState::kPublic)
  /frameworks/base/tools/aapt2/process/
SymbolTable.h 45 inline android::hash_t hash_type(const ResourceId& id) {
54 Symbol() : Symbol(Maybe<ResourceId>{}) {
57 Symbol(const Maybe<ResourceId>& i) : Symbol(i, nullptr) {
60 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr) :
64 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr, bool pub) :
73 Maybe<ResourceId> id;
89 const Symbol* findById(ResourceId id);
103 android::LruCache<ResourceId, std::shared_ptr<Symbol>> mIdCache;
117 virtual std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) = 0;
144 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override
    [all...]
SymbolTable_test.cpp 24 .addSimple(u"@android:id/foo", ResourceId(0x01020000))
26 .addValue(u"@android:attr/foo", ResourceId(0x01010000),
42 .addValue(u"@android:^attr-private/foo", ResourceId(0x01010000),
SymbolTable.cpp 65 const SymbolTable::Symbol* SymbolTable::findById(ResourceId id) {
120 symbol->id = ResourceId(sr.package->id.value(), sr.type->id.value(), sr.entry->id.value());
144 ResourceId id) {
199 symbol.symbol.id = ResourceId(mapEntry.name.ident);
213 ResourceId resId = table.identifierForName(name.entry.data(), name.entry.size(),
236 static Maybe<ResourceName> getResourceName(const android::ResTable& table, ResourceId id) {
274 std::unique_ptr<SymbolTable::Symbol> AssetManagerSymbolSource::findById(ResourceId id) {
  /frameworks/base/tools/aapt2/flatten/
TableFlattener_test.cpp 70 const ResourceId expectedId,
147 .addSimple(u"@com.app.test:id/one", ResourceId(0x7f020000))
148 .addSimple(u"@com.app.test:id/two", ResourceId(0x7f020001))
149 .addValue(u"@com.app.test:id/three", ResourceId(0x7f020002),
150 test::buildReference(u"@com.app.test:id/one", ResourceId(0x7f020000)))
151 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000),
153 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000),
156 .addString(u"@com.app.test:string/test", ResourceId(0x7f040000), u"foo")
157 .addString(u"@com.app.test:layout/bar", ResourceId(0x7f050000), u"res/layout/bar.xml")
163 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/one", ResourceId(0x7f020000), {}
    [all...]
XmlFlattener_test.cpp 36 .addSymbol(u"@android:attr/id", ResourceId(0x010100d0),
38 .addSymbol(u"@com.app.test:id/id", ResourceId(0x7f020000))
39 .addSymbol(u"@android:attr/paddingStart", ResourceId(0x010103b3),
41 .addSymbol(u"@android:attr/colorAccent", ResourceId(0x01010435),
  /frameworks/base/tools/aapt2/java/
JavaClassGenerator_test.cpp 29 .addSimple(u"@android:id/class", ResourceId(0x01020000))
45 .addSimple(u"@android:id/hey-man", ResourceId(0x01020000))
46 .addValue(u"@android:attr/cool.attr", ResourceId(0x01010000),
48 .addValue(u"@android:styleable/hey.dude", ResourceId(0x01030000),
50 .addItem(u"@android:attr/cool.attr", ResourceId(0x01010000))
78 .addSimple(u"@android:id/one", ResourceId(0x01020000))
79 .addSimple(u"@android:id/com.foo$two", ResourceId(0x01020001))
100 .addSimple(u"@android:attr/two", ResourceId(0x01010001))
101 .addSimple(u"@android:^attr-private/one", ResourceId(0x01010000))
121 .addSimple(u"@android:id/one", ResourceId(0x01020000)
    [all...]
ClassDefinition.h 107 using ResourceMember = PrimitiveMember<ResourceId>;
152 using ResourceArrayMember = PrimitiveArrayMember<ResourceId>;
JavaClassGenerator.cpp 196 const ResourceId lhsId = lhs.attrRef->id ? lhs.attrRef->id.value() : ResourceId(0);
197 const ResourceId rhsId = rhs.attrRef->id ? rhs.attrRef->id.value() : ResourceId(0);
337 styleableAttr.attrRef->id ? styleableAttr.attrRef->id.value() : ResourceId(0));
416 ResourceId id;
418 id = ResourceId(package->id.value(), type->id.value(), entry->id.value());
  /frameworks/base/tools/aapt2/test/
Builders.h 49 ResourceTableBuilder& addSimple(const StringPiece16& name, const ResourceId id = {}) {
57 ResourceTableBuilder& addReference(const StringPiece16& name, const ResourceId id,
66 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id,
71 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id,
81 ResourceTableBuilder& addFileReference(const StringPiece16& name, const ResourceId id,
98 ResourceTableBuilder& addValue(const StringPiece16& name, const ResourceId id,
103 ResourceTableBuilder& addValue(const StringPiece16& name, const ResourceId id,
113 ResourceTableBuilder& setSymbolState(const StringPiece16& name, ResourceId id,
129 Maybe<ResourceId> id = {}) {
210 StyleBuilder& addItem(const StringPiece16& str, ResourceId id, std::unique_ptr<Item> value)
    [all...]
Context.h 106 StaticSymbolSourceBuilder& addPublicSymbol(const StringPiece16& name, ResourceId id,
116 StaticSymbolSourceBuilder& addSymbol(const StringPiece16& name, ResourceId id,
143 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override {
153 std::map<ResourceId, SymbolTable::Symbol*> mIdMap;
  /frameworks/base/tools/aapt2/compile/
IdAssigner_test.cpp 45 .addSimple(u"@android:attr/foo", ResourceId(0x01040006))
62 .addSimple(u"@android:attr/foo", ResourceId(0x01040006))
63 .addSimple(u"@android:attr/bar", ResourceId(0x01040006))
  /external/llvm/lib/Target/AMDGPU/
R600TextureIntrinsicsReplacer.cpp 161 Value *ResourceId = I.getArgOperand(1);
180 Offset, ResourceId, SamplerId, CT, Coord);
185 Value *ResourceId = I.getArgOperand(4);
204 Offset, ResourceId, SamplerId, CT, Coord);
  /frameworks/base/tools/aapt2/proto/
TableProtoSerializer_test.cpp 31 .addFileReference(u"@com.app.a:layout/main", ResourceId(0x7f020000),
33 .addReference(u"@com.app.a:layout/other", ResourceId(0x7f020001),
42 ResourceId(0x7f020000),
70 expectedRef.id = ResourceId(0x01020000);
TableProtoDeserializer.cpp 33 ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceNameRef>* mapping) :
43 ResourceId id = reference->id.value();
51 const std::map<ResourceId, ResourceNameRef>* mMapping;
71 std::map<ResourceId, ResourceNameRef> idIndex;
122 ResourceId resId(pbPackage.package_id(), pbType.id(), pbEntry.id());
350 outRef->id = ResourceId(pbRef.id());
  /frameworks/base/tools/aapt2/unflatten/
BinaryResourceParser.h 112 std::map<ResourceId, ResourceName> mIdIndex;

Completed in 161 milliseconds

1 2