Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 76) sorted by relevance

1234

/system/core/libutils/
DRefBase.cpp208 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
209 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
222 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
223 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
324 int32_t ref; member
332 ref_entry* ref = new ref_entry; in addRef() local
336 ref->ref = mRef; in addRef()
337 ref->id = id; in addRef()
339 ref->stack = CallStack::getCurrent(2); in addRef()
341 ref->next = *refs; in addRef()
[all …]
DRefBase_fuzz.cpp62 RefBaseSubclass* ref; variable
70 ref->decStrong(nullptr); in __anondcbc87e00102()
86 [](RefThreadState*) -> void { ref->getStrongCount(); }, in __anondcbc87e00302()
88 [](RefThreadState*) -> void { ref->printRefs(); }, in __anondcbc87e00502()
92 ref->incStrong(nullptr); in __anondcbc87e00602()
97 ref->forceIncStrong(nullptr); in __anondcbc87e00702()
102 ref->createWeak(nullptr); in __anondcbc87e00802()
166 ref->decStrong(nullptr); in loop()
190 ref = new RefBaseSubclass(&gRefDeleted, gRefDeletedLock); in LLVMFuzzerTestOneInput()
191 weakRefs = ref->getWeakRefs(); in LLVMFuzzerTestOneInput()
[all …]
/system/vold/
DKeyUtil.cpp168 auto ref = buildLegacyKeyName(*name_prefix, raw_ref); in installKeyLegacy() local
170 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKeyLegacy()
175 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in installKeyLegacy()
184 static bool installProvisioningKey(const KeyBuffer& key, const std::string& ref, in installProvisioningKey() argument
196 key_serial_t key_id = add_key("fscrypt-provisioning", ref.c_str(), (void*)&provisioning_key, in installProvisioningKey()
199 PLOG(ERROR) << "Failed to insert fscrypt-provisioning key for " << ref in installProvisioningKey()
203 LOG(DEBUG) << "Added fscrypt-provisioning key for " << ref << " to session keyring"; in installProvisioningKey()
307 std::string ref = keyrefstring(policy->key_raw_ref); in installKey() local
308 LOG(DEBUG) << "Installed fscrypt key with ref " << ref << " to " << mountpoint; in installKey()
310 if (!installProvisioningKey(key, ref, arg->key_spec)) return false; in installKey()
[all …]
/system/extras/simpleperf/
DIOEventLoop.cpp191 bool IOEventLoop::DisableEvent(IOEventRef ref) { in DisableEvent() argument
192 if (ref->enabled) { in DisableEvent()
193 if (event_del(ref->e) != 0) { in DisableEvent()
197 ref->enabled = false; in DisableEvent()
202 bool IOEventLoop::EnableEvent(IOEventRef ref) { in EnableEvent() argument
203 if (!ref->enabled) { in EnableEvent()
205 (ref->timeout.tv_sec != 0 || ref->timeout.tv_usec != 0) ? &ref->timeout : nullptr; in EnableEvent()
206 if (event_add(ref->e, timeout) != 0) { in EnableEvent()
210 ref->enabled = true; in EnableEvent()
215 bool IOEventLoop::DelEvent(IOEventRef ref) { in DelEvent() argument
[all …]
DIOEventLoop_test.cpp166 IOEventRef ref = loop.AddReadEvent(fd[0], [&]() { in TEST() local
168 return IOEventLoop::DelEvent(ref); in TEST()
170 ASSERT_NE(nullptr, ref); in TEST()
191 IOEventRef ref = loop.AddWriteEvent(fd[1], [&]() { in TEST() local
193 return IOEventLoop::DisableEvent(ref); in TEST()
195 ASSERT_NE(nullptr, ref); in TEST()
207 return IOEventLoop::EnableEvent(ref); in TEST()
235 IOEventRef ref = loop.AddPeriodicEvent(tv, [&]() { in TEST() local
236 if (!loop.DisableEvent(ref)) { in TEST()
241 return loop.EnableEvent(ref); in TEST()
DIOEventLoop.h73 static bool DisableEvent(IOEventRef ref);
75 static bool EnableEvent(IOEventRef ref);
78 static bool DelEvent(IOEventRef ref);
/system/tools/hidl/
DReference.h57 Reference(const Reference<OtherT>& ref) in Reference()
58 : mResolved(ref.mResolved), in Reference()
59 mFqName(ref.mFqName), in Reference()
60 mLocation(ref.mLocation), in Reference()
61 mDefinedInline(ref.mDefinedInline), in Reference()
62 mLocalName(ref.mLocalName) {} in Reference()
65 Reference(const Reference<OtherT>& ref, const Location& location) in Reference()
66 : mResolved(ref.mResolved), in Reference()
67 mFqName(ref.mFqName), in Reference()
69 mDefinedInline(ref.mDefinedInline), in Reference()
[all …]
DMethod.cpp81 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences() argument
96 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getStrongReferences() argument
102 for (const auto* ref : getReferences()) { in getStrongReferences() local
103 if (!ref->shallowGet()->isNeverStrongReference()) { in getStrongReferences()
104 ret.push_back(ref); in getStrongReferences()
/system/tools/xsdc/src/com/android/xsdc/tag/
DXsdTag.java23 final private QName ref; field in XsdTag
28 XsdTag(String name, QName ref) { in XsdTag() argument
30 this.ref = ref; in XsdTag()
41 return ref; in getRef()
DXsdAttribute.java27 public XsdAttribute(String name, QName ref, XsdType type, boolean required) in XsdAttribute() argument
29 super(name, ref); in XsdAttribute()
30 if (name == null && ref == null) { in XsdAttribute()
33 if (ref == null && type == null) { in XsdAttribute()
DXsdGroup.java28 public XsdGroup(String name, QName ref, List<XsdElement> elements) in XsdGroup() argument
30 super(name, ref); in XsdGroup()
31 if (name == null && ref == null) { in XsdGroup()
DXsdElement.java27 public XsdElement(String name, QName ref, XsdType type, boolean multiple) in XsdElement() argument
29 super(name, ref); in XsdElement()
30 if (name == null && ref == null) { in XsdElement()
DXsdAttributeGroup.java29 public XsdAttributeGroup(String name, QName ref, in XsdAttributeGroup() argument
32 super(name, ref); in XsdAttributeGroup()
33 if (name == null && ref == null) { in XsdAttributeGroup()
DXsdType.java22 public XsdType(String name, QName ref) { in XsdType() argument
23 super(name, ref); in XsdType()
DXsdAll.java24 public XsdAll(String name, QName ref, XsdType type, boolean multiple) in XsdAll() argument
26 super(name, ref, type, multiple); in XsdAll()
DXsdChoice.java24 public XsdChoice(String name, QName ref, XsdType type, boolean multiple) in XsdChoice() argument
26 super(name, ref, type, multiple); in XsdChoice()
/system/tools/aidl/
Dparser.cpp98 const AidlConstantReference* ref; member
101 void Push(const AidlConstantReference* ref) { in Push() argument
102 stack_.push_back({scope_, ref}); in Push()
103 if (ref->GetRefType()) { in Push()
104 scope_ = ref->GetRefType()->GetDefinedType(); in Push()
113 bool IsCircularReference(const AidlConstantReference* ref) { in IsCircularReference() argument
115 [&](const auto& elem) { return elem.ref == ref; }); in IsCircularReference()
121 path.push_back(it->ref->Literal()); in IsCircularReference()
124 path.push_back(ref->Literal()); in IsCircularReference()
125 AIDL_ERROR(ref) << "Found a circular reference: " << android::base::Join(path, " -> "); in IsCircularReference()
/system/update_engine/update_manager/
Dgeneric_variables.h59 const T& ref, in PollCopyVariable() argument
63 ref_(ref), in PollCopyVariable()
66 PollCopyVariable(const std::string& name, const T& ref, const bool* is_set_p) in PollCopyVariable() argument
67 : PollCopyVariable(name, ref, is_set_p, std::string()) {} in PollCopyVariable()
68 PollCopyVariable(const std::string& name, const T& ref) in PollCopyVariable() argument
69 : PollCopyVariable(name, ref, nullptr) {} in PollCopyVariable()
73 const T& ref, in PollCopyVariable() argument
77 ref_(ref), in PollCopyVariable()
82 const T& ref, in PollCopyVariable() argument
84 : PollCopyVariable(name, poll_interval, ref, is_set_p, std::string()) {} in PollCopyVariable()
[all …]
/system/memory/libmemunreachable/tests/
DBinder_test.cpp46 reply->writeStrongBinder(ref); in onTransact()
47 ref = data.readStrongBinder(); in onTransact()
52 sp<IBinder> ref; member in android::BinderService
159 for (auto ref : refs) { in TEST_F() local
160 if (ref == reinterpret_cast<uintptr_t>(binder.get())) { in TEST_F()
/system/memory/libmemunreachable/
DLeakFolding.cpp51 for (auto& ref : leak.node.references_out) { in ComputeDAG() local
52 if (leak.scc != ref->ptr->scc) { in ComputeDAG()
53 leak.scc->node.Edge(&ref->ptr->scc->node); in ComputeDAG()
65 scc->node.Foreach([&](SCCInfo* ref) { walk(ref); }); in AccumulateLeaks() argument
/system/netd/server/
DMDnsSdListener.cpp77 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in discover() local
78 if (ref == nullptr) { in discover()
84 if (VDBG) ALOGD("using ref %p", ref); in discover()
88 DNSServiceErrorType result = DNSServiceBrowse(ref, nativeFlags, interfaceInt, regType, in discover()
146 DNSServiceRef *ref = mMonitor->lookupServiceRef(requestId); in stop() local
147 if (ref == nullptr) { in stop()
152 if (VDBG) ALOGD("Stopping %s with ref %p", str, ref); in stop()
153 mMonitor->deallocateServiceRef(ref); in stop()
169 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in serviceRegister() local
171 if (ref == nullptr) { in serviceRegister()
[all …]
/system/tools/xsdc/tests/resources/group/
Dgroup.xsd3 <xs:group name="address2" ref="address1">
10 <xs:group ref="address2"/>
/system/tools/hidl/lint/lints/
DnamingConventions.cpp65 for (const NamedReference<Type>* ref : compoundType->getFields()) { in namingConventions() local
66 std::string memberName = (*ref).name(); in namingConventions()
68 errors->push_back(Lint(WARNING, (*ref).location()) in namingConventions()
/system/libbase/
Dscopeguard_test.cpp54 std::bind([](int& guarded_var) { guarded_var++; }, std::ref(guarded_var)))); in TEST()
56 std::bind([](int& guarded_var) { guarded_var++; }, std::ref(guarded_var)))); in TEST()
/system/tools/xsdc/tests/resources/attr_group_simple/
Dattr_group_simple.xsd7 <xs:attributeGroup ref="address"/>
18 <xs:attributeGroup ref="homeAddress"/>

1234