Home
last modified time | relevance | path

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

123

/system/core/libutils/
DRefBase.cpp197 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
198 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
211 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
212 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
312 int32_t ref; member
320 ref_entry* ref = new ref_entry; in addRef() local
324 ref->ref = mRef; in addRef()
325 ref->id = id; in addRef()
327 ref->stack = CallStack::getCurrent(2); in addRef()
329 ref->next = *refs; in addRef()
[all …]
/system/vold/
DKeyUtil.cpp170 auto ref = buildLegacyKeyName(*name_prefix, raw_ref); in installKeyLegacy() local
172 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKeyLegacy()
177 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in installKeyLegacy()
186 static bool installProvisioningKey(const KeyBuffer& key, const std::string& ref, in installProvisioningKey() argument
198 key_serial_t key_id = add_key("fscrypt-provisioning", ref.c_str(), (void*)&provisioning_key, in installProvisioningKey()
201 PLOG(ERROR) << "Failed to insert fscrypt-provisioning key for " << ref in installProvisioningKey()
205 LOG(DEBUG) << "Added fscrypt-provisioning key for " << ref << " to session keyring"; in installProvisioningKey()
309 std::string ref = keyrefstring(policy->key_raw_ref); in installKey() local
310 LOG(DEBUG) << "Installed fscrypt key with ref " << ref << " to " << mountpoint; in installKey()
312 if (!installProvisioningKey(key, ref, arg->key_spec)) return false; in installKey()
[all …]
/system/extras/simpleperf/
DIOEventLoop.cpp194 bool IOEventLoop::DisableEvent(IOEventRef ref) { in DisableEvent() argument
195 if (ref->enabled) { in DisableEvent()
196 if (event_del(ref->e) != 0) { in DisableEvent()
200 ref->enabled = false; in DisableEvent()
205 bool IOEventLoop::EnableEvent(IOEventRef ref) { in EnableEvent() argument
206 if (!ref->enabled) { in EnableEvent()
207 timeval* timeout = (ref->timeout.tv_sec != 0 || ref->timeout.tv_usec != 0) ? in EnableEvent()
208 &ref->timeout : nullptr; in EnableEvent()
209 if (event_add(ref->e, timeout) != 0) { in EnableEvent()
213 ref->enabled = true; in EnableEvent()
[all …]
DIOEventLoop_test.cpp164 IOEventRef ref = loop.AddReadEvent(fd[0], [&]() { in TEST() local
166 return IOEventLoop::DelEvent(ref); in TEST()
168 ASSERT_NE(nullptr, ref); in TEST()
189 IOEventRef ref = loop.AddWriteEvent(fd[1], [&]() { in TEST() local
191 return IOEventLoop::DisableEvent(ref); in TEST()
193 ASSERT_NE(nullptr, ref); in TEST()
205 return IOEventLoop::EnableEvent(ref); in TEST()
233 IOEventRef ref = loop.AddPeriodicEvent(tv, [&]() { in TEST() local
234 if (!loop.DisableEvent(ref)) { in TEST()
239 return loop.EnableEvent(ref); in TEST()
DIOEventLoop.h71 static bool DisableEvent(IOEventRef ref);
73 static bool EnableEvent(IOEventRef ref);
76 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()
DType.cpp125 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences() argument
149 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getStrongReferences() argument
155 for (const auto* ref : getReferences()) { in getStrongReferences() local
156 if (!ref->shallowGet()->isNeverStrongReference()) { in getStrongReferences()
157 ret.push_back(ref); in getStrongReferences()
283 status_t Type::checkForwardReferenceRestrictions(const Reference<Type>& ref) const { in checkForwardReferenceRestrictions()
284 const Location& refLoc = ref.location(); in checkForwardReferenceRestrictions()
285 const Type* refType = ref.shallowGet(); in checkForwardReferenceRestrictions()
318 std::cerr << "ERROR: Forward reference of '" << refType->typeName() << "' at " << ref.location() in checkForwardReferenceRestrictions()
/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.java26 public XsdAttribute(String name, QName ref, XsdType type) in XsdAttribute() argument
28 super(name, ref); in XsdAttribute()
29 if (name == null && ref == null) { in XsdAttribute()
32 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()
DXsdChoice.java24 public XsdChoice(String name, QName ref, XsdType type, boolean multiple) in XsdChoice() argument
26 super(name, ref, type, multiple); in XsdChoice()
DXsdAll.java24 public XsdAll(String name, QName ref, XsdType type, boolean multiple) in XsdAll() argument
26 super(name, ref, type, multiple); in XsdAll()
/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/hidl/hidl2aidl/
DAidlHelper.cpp112 for (const Reference<Type>* ref : method->getReferences()) { in emitFileHeader() local
113 importLocallyReferencedType(*ref->get(), &imports); in emitFileHeader()
117 for (const Reference<Type>* ref : type.getReferences()) { in emitFileHeader() local
118 importLocallyReferencedType(*ref->get(), &imports); in emitFileHeader()
/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/tools/xsdc/tests/resources/group/
Dgroup.xsd8 <xs:group name="address2" ref="address1">
15 <xs:group ref="address2"/>
/system/tools/xsdc/tests/resources/attr_group_simple/
Dattr_group_simple.xsd7 <xs:attributeGroup ref="address"/>
15 <xs:attributeGroup ref="homeAddress"/>
/system/core/base/
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()

123