Searched refs:Reference (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/base/tools/aapt2/
H A DValueVisitor_test.cpp30 Reference* visited = nullptr;
32 void Visit(Reference* ref) override { visited = ref; }
38 std::list<Reference*> visited_refs;
41 void Visit(Reference* ref) override { visited_refs.push_back(ref); }
50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"});
75 std::unique_ptr<Reference> ref = test::BuildReference("android:color/white");
76 EXPECT_NE(ValueCast<Reference>(ref.get()), nullptr);
84 EXPECT_EQ(ValueCast<Reference>(style.get()), nullptr);
H A DResourceValues.h150 struct Reference : public BaseItem<Reference> { struct in namespace:aapt
158 Reference::Type reference_type;
162 Reference();
163 explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);
164 explicit Reference(const ResourceId& i, Type type = Type::kResource);
165 Reference(const ResourceNameRef& n, const ResourceId& i);
169 Reference* Clone(StringPool* new_pool) const override;
177 bool operator<(const Reference&, const Reference
[all...]
H A DResources.proto208 Reference ref = 1;
232 message Reference {
345 Reference name = 3;
355 REFERENCE = 0x01; // Allows Reference values.
397 Reference key = 3;
404 Reference parent = 1;
425 Reference attr = 3;
H A DResourceValues.cpp97 Reference::Reference() : reference_type(Type::kResource) {} function in class:aapt::Reference
99 Reference::Reference(const ResourceNameRef& n, Type t) function in class:aapt::Reference
102 Reference::Reference(const ResourceId& i, Type type) function in class:aapt::Reference
105 Reference::Reference(const ResourceNameRef& n, const ResourceId& i) function in class:aapt::Reference
108 bool Reference::Equals(const Value* value) const {
109 const Reference* othe
[all...]
H A DResourceUtils.h101 * Returns a Reference, or None Maybe instance if the string `str` was parsed as
111 Maybe<Reference> ParseStyleParentReference(const android::StringPiece& str, std::string* out_error);
114 * Returns a Reference if the string `str` was parsed as a valid XML attribute
120 Maybe<Reference> ParseXmlAttributeName(const android::StringPiece& str);
123 * Returns a Reference object if the string was parsed as a resource or
129 std::unique_ptr<Reference> TryParseReference(const android::StringPiece& str,
138 // Returns a Reference representing @null.
141 std::unique_ptr<Reference> MakeNull();
H A DResourceUtils.cpp216 Maybe<Reference> ParseStyleParentReference(const StringPiece& str,
261 Reference result(ref);
266 Maybe<Reference> ParseXmlAttributeName(const StringPiece& str) {
272 Reference ref;
291 return Maybe<Reference>(std::move(ref));
294 std::unique_ptr<Reference> TryParseReference(const StringPiece& str,
299 std::unique_ptr<Reference> value = util::make_unique<Reference>(ref);
308 return util::make_unique<Reference>(ref, Reference
[all...]
H A DResourceValues_test.cpp216 // by a default constructed Reference value.
219 ASSERT_TRUE(Reference().Flatten(&value));
235 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")),
245 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u});
247 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u});
249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u});
251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u});
264 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u});
H A DValueVisitor.h33 virtual void Visit(Reference* value) { VisitItem(value); }
58 virtual void Visit(const Reference* value) {
142 for (Reference& reference : styleable->entries) {
H A DResourceUtils_test.cpp143 Maybe<Reference> ref = ResourceUtils::ParseStyleParentReference("@android:style/foo", &err_str);
194 ASSERT_THAT(ResourceUtils::MakeNull(), Pointee(ValueEq(Reference())));
195 ASSERT_THAT(ResourceUtils::TryParseNullOrEmpty("@null"), Pointee(ValueEq(Reference())));
/frameworks/base/tools/aapt2/link/
H A DReferenceLinker.h41 static const SymbolTable::Symbol* ResolveSymbol(const Reference& reference,
47 static const SymbolTable::Symbol* ResolveSymbolCheckVisibility(const Reference& reference,
54 static const SymbolTable::Symbol* ResolveAttributeCheckVisibility(const Reference& reference,
61 static Maybe<xml::AaptAttribute> CompileXmlAttribute(const Reference& reference,
68 static void WriteResourceName(const Reference& orig, const CallSite& callsite,
72 static void WriteAttributeName(const Reference& ref, const CallSite& callsite,
79 static bool LinkReference(const CallSite& callsite, Reference* reference, IAaptContext* context,
H A DReferenceLinker.cpp58 void Visit(Reference* ref) override {
78 Reference transformed_reference = entry.key;
177 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref,
203 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference,
220 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbolCheckVisibility(const Reference& reference,
238 const Reference& reference, const CallSite& callsite, SymbolTable* symbols,
253 Maybe<xml::AaptAttribute> ReferenceLinker::CompileXmlAttribute(const Reference& reference,
270 void ReferenceLinker::WriteResourceName(const Reference& ref, const CallSite& callsite,
280 Reference fully_qualified = ref;
293 void ReferenceLinker::WriteAttributeName(const Reference
[all...]
H A DTableMerger_test.cpp343 std::vector<Reference> expected_refs = {
344 Reference(test::ParseNameOrDie("com.app.a:attr/bar")),
345 Reference(test::ParseNameOrDie("com.app.a:attr/bat")),
346 Reference(test::ParseNameOrDie("com.app.a:attr/foo"), ResourceId(0x01010000)),
353 std::vector<Reference> extracted_refs;
362 Eq(make_value(Reference(test::ParseNameOrDie("com.app.a:style/OverlayParent")))));
H A DXmlReferenceLinker.cpp46 void Visit(Reference* ref) override {
95 Reference attr_ref(
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
H A DReferenceTestUtils.java21 import java.lang.ref.Reference;
33 Reference<?> ref = new WeakReference<>(o, q);
/frameworks/base/tools/aapt2/xml/
H A DXmlUtil.h76 // Helper function for transforming the original Reference inRef to a fully qualified reference
77 // via the IPackageDeclStack. This will also mark the Reference as private if the namespace of the
79 void ResolvePackage(const IPackageDeclStack* decl_stack, Reference* in_ref);
/frameworks/base/docs/
H A D__DEPRECATED__DO_NOT_EDIT__.txt10 - Reference documentation is still maintained via building of .java source files,
/frameworks/base/docs/html/
H A D__DEPRECATED__DO_NOT_EDIT__.txt10 - Reference documentation is still maintained via building of .java source files,
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DWeakIdentityHashMap.java19 import java.lang.ref.Reference;
36 Reference<?> ref;
H A DTrackedGarbage.java23 import java.lang.ref.Reference;
55 Reference<?> ref;
/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp62 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref)));
145 std::unique_ptr<Reference> BuildReference(const StringPiece& ref, const Maybe<ResourceId>& id) {
146 std::unique_ptr<Reference> reference = util::make_unique<Reference>(ParseNameOrDie(ref));
175 Attribute::Symbol{Reference(ResourceName({}, ResourceType::kId, name)), value});
184 style_->parent = Reference(ParseNameOrDie(str));
189 style_->entries.push_back(Style::Entry{Reference(ParseNameOrDie(str)), std::move(value)});
205 styleable_->entries.push_back(Reference(ParseNameOrDie(str)));
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
H A DEmojiInputFilter.java31 import java.lang.ref.Reference;
100 private final Reference<TextView> mViewRef;
H A DEmojiTextWatcher.java30 import java.lang.ref.Reference;
111 private final Reference<EditText> mViewRef;
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.h100 const Symbol* FindByReference(const Reference& ref);
160 const Reference& ref) {
202 const Reference& ref) override;
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp90 Reference key = Reference(ResourceId(ResTable_map::ATTR_TYPE));
96 Reference key = Reference(ResourceId(ResTable_map::ATTR_MIN));
102 Reference key = Reference(ResourceId(ResTable_map::ATTR_MAX));
115 const Reference& parent_ref = style->parent.value();
182 Reference key(q);
198 void FlattenKey(Reference* key, ResTable_map* out_entry) {
207 void FlattenEntry(Reference* ke
[all...]
/frameworks/base/tools/aapt2/format/proto/
H A DProtoDeserialize.cpp44 void Visit(Reference* reference) override {
560 static Reference::Type DeserializeReferenceTypeFromPb(const pb::Reference_Type& pb_type) {
563 return Reference::Type::kResource;
565 return Reference::Type::kAttribute;
569 return Reference::Type::kResource;
572 static bool DeserializeReferenceFromPb(const pb::Reference& pb_ref, Reference* out_ref,
659 style->parent = Reference();
694 Reference attr_ref;
756 const pb::Reference
[all...]

Completed in 268 milliseconds

12