Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/database/sqlite/
DSQLiteRawStatement.java31 import java.lang.ref.Reference;
266 Reference.reachabilityFence(this); in step()
285 Reference.reachabilityFence(this); in stepNoThrow()
302 Reference.reachabilityFence(this); in reset()
319 Reference.reachabilityFence(this); in clearBindings()
337 Reference.reachabilityFence(this); in getParameterCount()
358 Reference.reachabilityFence(this); in getParameterIndex()
379 Reference.reachabilityFence(this); in getParameterName()
401 Reference.reachabilityFence(this); in bindBlob()
428 Reference.reachabilityFence(this); in bindBlob()
[all …]
/frameworks/base/tools/aapt2/
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()
DResourceValues.h154 struct Reference : public TransformableItem<Reference, BaseItem<Reference>> { struct
163 Reference::Type reference_type; argument
168 Reference(); argument
169 explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);
170 explicit Reference(const ResourceId& i, Type type = Type::kResource);
171 Reference(const ResourceNameRef& n, const ResourceId& i);
182 bool operator<(const Reference&, const Reference&);
183 bool operator==(const Reference&, const Reference&);
293 Reference symbol;
323 Reference key;
[all …]
DResourceValues.cpp99 Reference::Reference() : reference_type(Type::kResource) {} in Reference() function in aapt::Reference
101 Reference::Reference(const ResourceNameRef& n, Type t) in Reference() function in aapt::Reference
104 Reference::Reference(const ResourceId& i, Type type) in Reference() function in aapt::Reference
107 Reference::Reference(const ResourceNameRef& n, const ResourceId& i) in Reference() function in aapt::Reference
110 bool Reference::Equals(const Value* value) const { in Equals()
111 const Reference* other = ValueCast<Reference>(value); in Equals()
119 bool Reference::Flatten(android::Res_value* out_value) const { in Flatten()
127 if (reference_type == Reference::Type::kResource) { in Flatten()
144 void Reference::Print(std::ostream* out) const { in Print()
171 static void PrettyPrintReferenceImpl(const Reference& ref, bool print_package, Printer* printer) { in PrettyPrintReferenceImpl()
[all …]
DResourceUtils.h116 std::optional<Reference> ParseStyleParentReference(android::StringPiece str,
126 std::optional<Reference> ParseXmlAttributeName(android::StringPiece str);
135 std::unique_ptr<Reference> TryParseReference(android::StringPiece str, bool* out_create = nullptr);
146 std::unique_ptr<Reference> MakeNull();
DResourceUtils.cpp249 std::optional<Reference> ParseStyleParentReference(StringPiece str, std::string* out_error) { in ParseStyleParentReference()
293 Reference result(ref); in ParseStyleParentReference()
298 std::optional<Reference> ParseXmlAttributeName(StringPiece str) { in ParseXmlAttributeName()
304 Reference ref; in ParseXmlAttributeName()
324 return std::optional<Reference>(std::move(ref)); in ParseXmlAttributeName()
327 std::unique_ptr<Reference> TryParseReference(StringPiece str, bool* out_create) { in TryParseReference()
331 std::unique_ptr<Reference> value = util::make_unique<Reference>(ref); in TryParseReference()
340 return util::make_unique<Reference>(ref, Reference::Type::kAttribute); in TryParseReference()
355 std::unique_ptr<Reference> MakeNull() { in MakeNull()
358 return util::make_unique<Reference>(); in MakeNull()
[all …]
DResourceValues_test.cpp223 ASSERT_TRUE(Reference().Flatten(&value)); in TEST()
239 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), in TEST()
249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u}); in TEST()
253 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u}); in TEST()
255 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u}); in TEST()
268 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
DValueTransformer.h28 struct Reference;
89 AAPT_TRANSFORM_ITEM(Reference);
DValueVisitor.h33 virtual void Visit(Reference* value) { VisitItem(value); } in Visit()
61 virtual void Visit(const Reference* value) { in Visit()
148 for (Reference& reference : styleable->entries) { in VisitSubValues()
/frameworks/base/tools/aapt2/link/
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 std::optional<xml::AaptAttribute> CompileXmlAttribute(const Reference& reference,
112 static void WriteAttributeName(const Reference& ref, const CallSite& callsite,
127 static std::unique_ptr<Item> LinkReference(const CallSite& callsite, const Reference& reference,
DReferenceLinker.cpp42 LoggingResourceName(const Reference& ref, const CallSite& callsite, in LoggingResourceName()
47 const Reference& ref_;
60 Reference fully_qualified = name.ref_; in operator <<()
76 std::unique_ptr<Reference> ReferenceLinkerTransformer::TransformDerived(const Reference* value) { in TransformDerived()
81 if (auto ref = ValueCast<Reference>(linked_item_ptr)) { in TransformDerived()
82 return std::unique_ptr<Reference>(ref); in TransformDerived()
110 Reference transformed_reference = entry.key; in TransformDerived()
152 std::unique_ptr<Item> ReferenceLinkerTransformer::TransformItem(const Reference* value) { in TransformItem()
226 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible()
252 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference, in ResolveSymbol()
[all …]
/frameworks/base/core/java/com/android/internal/os/
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()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DReferenceGetPerfTest.java30 import java.lang.ref.Reference;
46 Field intrinsicDisabledField = Reference.class.getDeclaredField("disableIntrinsic"); in setUp()
53 Reference soft = new SoftReference(mObj); in timeSoftReferenceGet()
62 Reference weak = new WeakReference(mObj); in timeWeakReferenceGet()
71 Reference weak = new WeakReference(mObj); in timeNonPreservedWeakReferenceGet()
/frameworks/base/tools/aapt2/format/binary/
DResEntryWriter.cpp52 Reference key = Reference(ResourceId(ResTable_map::ATTR_TYPE)); in Visit()
58 Reference key = Reference(ResourceId(ResTable_map::ATTR_MIN)); in Visit()
64 Reference key = Reference(ResourceId(ResTable_map::ATTR_MAX)); in Visit()
77 const Reference& parent_ref = style->parent.value(); in Visit()
105 Reference key(android::ResTable_map::ATTR_MIN + i); in Visit()
148 Reference key(q); in Visit()
164 void FlattenKey(const Reference* key, ResTable_map* out_entry) { in FlattenKey()
173 void FlattenEntry(const Reference* key, Item* value) { in FlattenEntry()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/
DReference_Delegate.java19 import java.lang.ref.Reference;
26 public static <T> boolean refersTo(Reference<T> thisRef, T obj) { in refersTo()
/frameworks/base/core/java/android/window/
DWindowContext.java36 import java.lang.ref.Reference;
85 Reference.reachabilityFence(this); in WindowContext()
125 Reference.reachabilityFence(this); in destroy()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp53 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference()
152 std::unique_ptr<Reference> BuildReference(StringPiece ref, const std::optional<ResourceId>& id) { in BuildReference()
153 std::unique_ptr<Reference> reference = util::make_unique<Reference>(ParseNameOrDie(ref)); in BuildReference()
187 Attribute::Symbol{Reference(ResourceName({}, ResourceType::kId, name)), value}); in AddItem()
193 Reference ref(ResourceName({}, ResourceType::kId, name)); in AddItemWithComment()
204 style_->parent = Reference(ParseNameOrDie(str)); in SetParent()
209 style_->entries.push_back(Style::Entry{Reference(ParseNameOrDie(str)), std::move(value)}); in AddItem()
225 styleable_->entries.push_back(Reference(ParseNameOrDie(str))); in AddItem()
/frameworks/libs/binary_translation/guest_abi/riscv64/include/berberis/guest_abi/
Dguest_arguments_arch.h66 return Reference<ArgumentInfo, CastType>(kArgumentsLocations[index]); in GuestArgument()
75 return Reference<ArgumentInfo, CastType>(kArgumentsLocations[index]); in HostArgument()
82 return Reference<ArgumentInfo, CastType>(kResultLocation); in GuestResult()
89 return Reference<ArgumentInfo, CastType>(kResultLocation); in HostResult()
94 auto& Reference(riscv64::ArgLocation loc) const { in Reference() function
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java21 import java.lang.ref.Reference;
33 Reference<?> ref = new WeakReference<>(o, q); in createCollectionWaiter()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/libcore/util/
DNativeAllocationRegistry.java21 import java.lang.ref.Reference;
74 Reference.reachabilityFence(referent); in registerNativeAllocation()
/frameworks/base/core/java/android/view/accessibility/
DWeakSparseArray.java21 import java.lang.ref.Reference;
48 for (Reference ref = mRefQueue.poll(); ref != null; ref = mRefQueue.poll()) { in removeUnreachableValues()
/frameworks/base/core/java/android/speech/
DSpeechRecognizerProxy.java26 import java.lang.ref.Reference;
69 Reference.reachabilityFence(this); in destroy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DWeakIdentityHashMap.java19 import java.lang.ref.Reference;
36 Reference<?> ref; in cleanUp()
DTrackedGarbage.java23 import java.lang.ref.Reference;
55 Reference<?> ref; in cleanUp()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceLightsManager.java29 import java.lang.ref.Reference;
128 Reference.reachabilityFence(this); in close()

1234