Home
last modified time | relevance | path

Searched refs:Reference (Results 1 – 25 of 208) sorted by relevance

123456789

/aosp12/system/tools/hidl/
H A DReference.h35 struct Reference { struct
36 Reference() = default;
37 virtual ~Reference() {} in ~Reference() argument
39 Reference(const std::string& localName, const FQName& fqName, const Location& location,
47 Reference(const std::string& localName, T* type, const Location& location,
57 Reference(const Reference<OtherT>& ref) in Reference() argument
65 Reference(const Reference<OtherT>& ref, const Location& location) in Reference() argument
149 friend struct Reference; argument
153 struct NamedReference : public Reference<T>, DocCommentable {
155 : Reference<T>(reference, location), mName(name) {} in NamedReference()
[all …]
H A DConstantExpression.h76 std::vector<Reference<LocalIdentifier>*> getReferences();
77 virtual std::vector<const Reference<LocalIdentifier>*> getReferences() const;
79 std::vector<Reference<Type>*> getTypeReferences();
80 virtual std::vector<const Reference<Type>*> getTypeReferences() const;
217 ReferenceConstantExpression(const Reference<LocalIdentifier>& value, const std::string& expr);
222 std::vector<const Reference<LocalIdentifier>*> getReferences() const override;
225 Reference<LocalIdentifier> mReference;
230 AttributeConstantExpression(const Reference<Type>& value, const std::string& fqname,
237 std::vector<const Reference<Type>*> getTypeReferences() const override;
240 Reference<Type> mReference;
H A DMethod.cpp77 std::vector<Reference<Type>*> Method::getReferences() { in getReferences()
79 std::vector<Reference<Type>*> ret(constRet.size()); in getReferences()
81 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences()
85 std::vector<const Reference<Type>*> Method::getReferences() const { in getReferences()
86 std::vector<const Reference<Type>*> ret; in getReferences()
92 std::vector<Reference<Type>*> Method::getStrongReferences() { in getStrongReferences()
94 std::vector<Reference<Type>*> ret(constRet.size()); in getStrongReferences()
96 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getStrongReferences()
100 std::vector<const Reference<Type>*> Method::getStrongReferences() const { in getStrongReferences()
101 std::vector<const Reference<Type>*> ret; in getStrongReferences()
H A DType.h70 std::vector<Reference<Type>*> getReferences();
71 virtual std::vector<const Reference<Type>*> getReferences() const;
79 std::vector<Reference<Type>*> getStrongReferences();
80 virtual std::vector<const Reference<Type>*> getStrongReferences() const;
131 status_t checkForwardReferenceRestrictions(const Reference<Type>& ref) const;
362 void setElementType(const Reference<Type>& elementType);
372 std::vector<const Reference<Type>*> getReferences() const override;
381 Reference<Type> mElementType;
H A DType.cpp121 std::vector<Reference<Type>*> Type::getReferences() { in getReferences()
123 std::vector<Reference<Type>*> ret(constRet.size()); in getReferences()
125 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences()
129 std::vector<const Reference<Type>*> Type::getReferences() const { in getReferences()
145 std::vector<Reference<Type>*> Type::getStrongReferences() { in getStrongReferences()
147 std::vector<Reference<Type>*> ret(constRet.size()); in getStrongReferences()
153 std::vector<const Reference<Type>*> Type::getStrongReferences() const { in getStrongReferences()
154 std::vector<const Reference<Type>*> ret; in getStrongReferences()
295 for (const Reference<Type>* innerRef : refType->getReferences()) { in checkForwardReferenceRestrictions()
743 void TemplatedType::setElementType(const Reference<Type>& elementType) { in setElementType()
[all …]
H A DTypeDef.h29 Scope* parent, const Reference<Type>& type);
46 std::vector<const Reference<Type>*> getReferences() const override;
52 Reference<Type> mReferencedType;
/aosp12/art/runtime/mirror/
H A Dreference.h42 class MANAGED Reference : public Object {
51 return sizeof(Reference); in InstanceSize()
55 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); in PendingNextOffset()
58 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); in QueueOffset()
61 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); in QueueNextOffset()
64 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); in ReferentOffset()
79 Reference* GetPendingNext() REQUIRES_SHARED(Locks::mutator_lock_) { in GetPendingNext()
108 HeapReference<Reference> pending_next_;
110 HeapReference<Reference> queue_next_;
116 DISALLOW_IMPLICIT_CONSTRUCTORS(Reference);
[all …]
H A Dreference-inl.h28 inline uint32_t Reference::ClassSize(PointerSize pointer_size) { in ClassSize()
34 inline void Reference::SetReferent(ObjPtr<Object> referent) { in SetReferent()
38 inline void Reference::SetPendingNext(ObjPtr<Reference> pending_next) { in SetPendingNext()
/aosp12/art/runtime/native/
H A Djava_lang_ref_Reference.cc33 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_getReferent()
45 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_refersTo0()
46 const ObjPtr<mirror::Object> other = soa.Decode<mirror::Reference>(o); in Reference_refersTo0()
72 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_clearReferent()
77 FAST_NATIVE_METHOD(Reference, getReferent, "()Ljava/lang/Object;"),
78 FAST_NATIVE_METHOD(Reference, clearReferent, "()V"),
79 FAST_NATIVE_METHOD(Reference, refersTo0, "(Ljava/lang/Object;)Z"),
/aosp12/art/runtime/gc/
H A Dreference_queue.cc42 void ReferenceQueue::EnqueueReference(ObjPtr<mirror::Reference> ref) { in EnqueueReference()
59 ObjPtr<mirror::Reference> ReferenceQueue::DequeuePendingReference() { in DequeuePendingReference()
61 ObjPtr<mirror::Reference> ref = list_->GetPendingNext<kWithoutReadBarrier>(); in DequeuePendingReference()
68 ObjPtr<mirror::Reference> next = ref->GetPendingNext<kWithoutReadBarrier>(); in DequeuePendingReference()
105 ObjPtr<mirror::Reference> cur = list_; in Dump()
111 ObjPtr<mirror::Reference> pending_next = cur->GetPendingNext(); in Dump()
123 ObjPtr<mirror::Reference> cur = list_; in GetLength()
136 ObjPtr<mirror::Reference> ref = DequeuePendingReference(); in ClearWhiteReferences()
184 const ObjPtr<mirror::Reference> head = list_; in ForwardSoftReferences()
185 ObjPtr<mirror::Reference> ref = head; in ForwardSoftReferences()
[all …]
H A Dreference_queue.h38 class Reference; variable
63 void AtomicEnqueueIfNotEnqueued(Thread* self, ObjPtr<mirror::Reference> ref)
68 void EnqueueReference(ObjPtr<mirror::Reference> ref) REQUIRES_SHARED(Locks::mutator_lock_);
72 ObjPtr<mirror::Reference> DequeuePendingReference() REQUIRES_SHARED(Locks::mutator_lock_);
77 void DisableReadBarrierForReference(ObjPtr<mirror::Reference> ref)
107 mirror::Reference* GetList() REQUIRES_SHARED(Locks::mutator_lock_) { in GetList()
121 mirror::Reference* list_;
H A Dreference_processor.h34 class Reference; variable
62 ObjPtr<mirror::Object> GetReferent(Thread* self, ObjPtr<mirror::Reference> reference)
68 ObjPtr<mirror::Reference> ref,
78 void ClearReferent(ObjPtr<mirror::Reference> ref)
/aosp12/art/tools/ahat/src/test-dump/
H A DDumpedStuff.java60 aLongStrongPathToSamplePathObject = new Reference(new Reference(new Reference(object))); in DumpedStuff()
61 aShortWeakPathToSamplePathObject = new WeakReference(new Reference(object)); in DumpedStuff()
119 public static class Reference { class in DumpedStuff
122 public Reference(Object referent) { in Reference() method in DumpedStuff.Reference
174 public Reference aReference = new Reference(anObject);
180 public Reference reachabilityReferenceChain;
187 public Reference aLongStrongPathToSamplePathObject;
190 public SoftReference aSoftChain = new SoftReference(new Reference(new Reference(new Object())));
217 reachabilityReferenceChain = new Reference( in shouldNotGc()
219 new Reference( in shouldNotGc()
/aosp12/frameworks/base/tools/aapt2/link/
H A DReferenceLinker.h45 std::unique_ptr<Reference> TransformDerived(const Reference* value) override;
46 std::unique_ptr<Item> TransformItem(const Reference* value) override;
76 static const SymbolTable::Symbol* ResolveSymbol(const Reference& reference,
84 static const SymbolTable::Symbol* ResolveSymbolCheckVisibility(const Reference& reference,
92 static const SymbolTable::Symbol* ResolveAttributeCheckVisibility(const Reference& reference,
100 static Maybe<xml::AaptAttribute> CompileXmlAttribute(const Reference& reference,
112 static void WriteAttributeName(const Reference& ref, const CallSite& callsite,
126 static std::unique_ptr<Item> LinkReference(const CallSite& callsite, const Reference& reference,
H A DReferenceLinker.cpp48 const Reference& ref_;
61 Reference fully_qualified = name.ref_; in operator <<()
77 std::unique_ptr<Reference> ReferenceLinkerTransformer::TransformDerived(const Reference* value) { in TransformDerived()
82 if (auto ref = ValueCast<Reference>(linked_item_ptr)) { in TransformDerived()
83 return std::unique_ptr<Reference>(ref); in TransformDerived()
111 Reference transformed_reference = entry.key; in TransformDerived()
360 Reference fully_qualified = ref; in WriteAttributeName()
380 return std::make_unique<Reference>(reference); in LinkReference()
383 Reference transformed_reference = reference; in LinkReference()
432 if (auto ref = ValueCast<Reference>(new_value.get())) { in LinkReference()
[all …]
/aosp12/frameworks/base/tools/aapt2/
H A DValueVisitor_test.cpp30 Reference* visited = nullptr;
32 void Visit(Reference* ref) override { visited = ref; } in Visit()
38 std::list<Reference*> visited_refs;
41 void Visit(Reference* ref) override { visited_refs.push_back(ref); } in Visit()
50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST()
75 std::unique_ptr<Reference> ref = test::BuildReference("android:color/white"); in TEST()
76 EXPECT_NE(ValueCast<Reference>(ref.get()), nullptr); in TEST()
84 EXPECT_EQ(ValueCast<Reference>(style.get()), nullptr); in TEST()
H A DResourceValues.h156 struct Reference : public TransformableItem<Reference, BaseItem<Reference>> { struct
165 Reference::Type reference_type; argument
170 Reference(); argument
173 Reference(const ResourceNameRef& n, const ResourceId& i);
184 bool operator<(const Reference&, const Reference&);
185 bool operator==(const Reference&, const Reference&);
294 Reference symbol;
324 Reference key;
330 Maybe<Reference> parent;
362 std::vector<Reference> entries;
[all …]
H A DResourceValues.cpp98 Reference::Reference() : reference_type(Type::kResource) {} in Reference() function in aapt::Reference
100 Reference::Reference(const ResourceNameRef& n, Type t) in Reference() function in aapt::Reference
103 Reference::Reference(const ResourceId& i, Type type) in Reference() function in aapt::Reference
106 Reference::Reference(const ResourceNameRef& n, const ResourceId& i) in Reference() function in aapt::Reference
110 const Reference* other = ValueCast<Reference>(value); in Equals()
1017 [](const Reference& a, const Reference& b) -> bool { in Equals()
1042 bool operator<(const Reference& a, const Reference& b) { in operator <()
1048 bool operator==(const Reference& a, const Reference& b) { in operator ==()
1052 bool operator!=(const Reference& a, const Reference& b) { in operator !=()
1057 bool operator()(const Reference& a, const Reference& b) const { in operator ()()
[all …]
/aosp12/art/test/072-reachability-fence/src/
H A DMain.java17 import java.lang.ref.Reference;
50 Reference.reachabilityFence(str0); in main()
51 Reference.reachabilityFence(str1); in main()
52 Reference.reachabilityFence(str2); in main()
53 Reference.reachabilityFence(str3); in main()
54 Reference.reachabilityFence(str4); in main()
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DZygoteCommandBuffer.java24 import java.lang.ref.Reference; // For reachabilityFence.
107 Reference.reachabilityFence(mSocket); in getCount()
135 Reference.reachabilityFence(mSocket); in nextArg()
145 Reference.reachabilityFence(mSocket); in readFullyAndReset()
172 Reference.reachabilityFence(mSocket); in forkRepeatedly()
173 Reference.reachabilityFence(zygoteSocket); in forkRepeatedly()
/aosp12/art/tools/ahat/src/main/com/android/ahat/heapdump/
H A DAhatClassObj.java122 Iterable<Reference> getReferences() { in getReferences()
123 List<Reference> refs = new AbstractList<Reference>() { in getReferences()
130 public Reference get(int index) { in getReferences()
134 return new Reference(AhatClassObj.this, in getReferences()
H A DSuperRoot.java46 Iterable<Reference> getReferences() { in getReferences()
47 return new AbstractList<Reference>() { in getReferences()
54 public Reference get(int index) { in getReferences()
56 return new Reference(SuperRoot.this, field, mRoots.get(index), Reachability.STRONG); in getReferences()
H A DAhatClassInstance.java106 Iterable<Reference> getReferences() { in getReferences()
424 private class ReferenceIterator implements Iterable<Reference>,
425 Iterator<Reference> {
427 private Reference mNext = null;
444 mNext = new Reference(AhatClassInstance.this, "." + field.name, ref, reachability); in hasNext()
451 public Reference next() { in next()
455 Reference next = mNext; in next()
461 public Iterator<Reference> iterator() { in iterator()
H A DDominatorReferenceIterator.java29 private Iterator<Reference> mIter;
32 public DominatorReferenceIterator(Reachability retained, Iterable<Reference> iter) { in DominatorReferenceIterator()
41 Reference ref = mIter.next(); in hasNext()
/aosp12/art/test/072-reachability-fence/
H A Dexpected-stdout.txt2 Reference 0 was live.
3 Reference 3 was live.
4 Reference 4 was live.

123456789