Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 59) 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/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/xsdc/src/com/android/xsdc/tag/
DXsdTag.java23 final private QName ref; field in XsdTag
26 XsdTag(String name, QName ref) { in XsdTag() argument
28 this.ref = ref; in XsdTag()
37 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()
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()
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/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/tools/hidl/
DReference.h45 Reference(const Reference<OtherT>& ref) in Reference()
46 : mResolved(ref.mResolved), mFqName(ref.mFqName), mLocation(ref.mLocation) {} in Reference()
49 Reference(const Reference<OtherT>& ref, const Location& location) in Reference()
50 : mResolved(ref.mResolved), mFqName(ref.mFqName), mLocation(location) {} in Reference()
DMethod.cpp76 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences() argument
91 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getStrongReferences() argument
97 for (const auto* ref : getReferences()) { in getStrongReferences() local
98 if (!ref->shallowGet()->isNeverStrongReference()) { in getStrongReferences()
99 ret.push_back(ref); in getStrongReferences()
DType.cpp119 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences() argument
143 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getStrongReferences() argument
149 for (const auto* ref : getReferences()) { in getStrongReferences() local
150 if (!ref->shallowGet()->isNeverStrongReference()) { in getStrongReferences()
151 ret.push_back(ref); in getStrongReferences()
277 status_t Type::checkForwardReferenceRestrictions(const Reference<Type>& ref) const { in checkForwardReferenceRestrictions()
278 const Location& refLoc = ref.location(); in checkForwardReferenceRestrictions()
279 const Type* refType = ref.shallowGet(); in checkForwardReferenceRestrictions()
312 std::cerr << "ERROR: Forward reference of '" << refType->typeName() << "' at " << ref.location() in checkForwardReferenceRestrictions()
/system/core/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/vold/
DKeyUtil.cpp112 auto ref = keyname(*name_prefix, *raw_ref); in installKey() local
114 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKey()
119 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in installKey()
130 auto ref = keyname(*name_prefix, raw_ref); in evictKey() local
131 auto key_serial = keyctl_search(device_keyring, "logon", ref.c_str(), 0); in evictKey()
138 PLOG(ERROR) << "Failed to unlink key with serial " << key_serial << " ref " << ref; in evictKey()
141 LOG(DEBUG) << "Unlinked key with serial " << key_serial << " ref " << ref; in evictKey()
/system/core/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
DTarjan.h42 void Edge(Node<T>* ref) { in Edge() argument
43 references_out.emplace(ref); in Edge()
44 ref->references_in.emplace(this); in Edge()
/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/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()
/system/core/adb/client/
Dtransport_mdns.cpp43 static inline int adb_DNSServiceRefSockFD(DNSServiceRef ref) { in adb_DNSServiceRefSockFD() argument
44 return adb_register_socket(DNSServiceRefSockFD(ref)); in adb_DNSServiceRefSockFD()
58 DNSServiceRef* ref = reinterpret_cast<DNSServiceRef*>(data); in pump_service_ref() local
61 DNSServiceProcessResult(*ref); in pump_service_ref()
/system/netd/libnetdutils/include/netdutils/
DSlice.h71 inline const Slice makeSlice(const T& ref) { in makeSlice() argument
74 return {const_cast<T*>(&ref), sizeof(ref)}; in makeSlice()
/system/chre/
Dbundle_chre.sh10 BRANCH=`git rev-parse --abbrev-ref --symbolic-full-name @{u}`
/system/tools/xsdc/tests/resources/reference/
Dreference.xsd9 <xs:attribute ref="name"/>
/system/tools/xsdc/src/com/android/xsdc/
DXsdHandler.java244 QName ref = parseQName(state.attributeMap.get("ref")); in makeElement() local
277 return setDeprecated(new XsdElement(name, ref, type, multiple), state.deprecated); in makeElement()
283 QName ref = parseQName(state.attributeMap.get("ref")); in makeAttribute() local
300 return setDeprecated(new XsdAttribute(name, ref, type), state.deprecated); in makeAttribute()
466 ref -> new XsdType(null, ref)).collect(Collectors.toList()); in makeSimpleTypeUnion()

123