Home
last modified time | relevance | path

Searched refs:pa (Results 1 – 9 of 9) sorted by relevance

/bionic/benchmarks/
Dproperty_benchmark.cpp134 LocalPropertyTestState pa(nprops); in BM_property_get() local
135 if (!pa.valid) return; in BM_property_get()
139 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
147 LocalPropertyTestState pa(nprops); in BM_property_find() local
148 if (!pa.valid) return; in BM_property_find()
151 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
159 LocalPropertyTestState pa(nprops); in BM_property_read() local
160 if (!pa.valid) return; in BM_property_read()
166 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
171 pa.system_properties().Read(pinfo[i], nullptr, propvalue); in BM_property_read()
[all …]
/bionic/libc/system_properties/
Dsystem_properties.cpp153 prop_area* pa = contexts_->GetSerialPropArea(); in AreaSerial() local
154 if (!pa) { in AreaSerial()
159 return atomic_load_explicit(pa->serial(), memory_order_acquire); in AreaSerial()
167 prop_area* pa = contexts_->GetPropAreaForName(name); in Find() local
168 if (!pa) { in Find()
173 return pa->find(name); in Find()
194 prop_area* pa = contexts_->GetPropAreaForName(pi->name); in ReadMutablePropertyValue() local
195 memcpy(value, pa->dirty_backup_area(), len + 1); in ReadMutablePropertyValue()
286 prop_area* pa = contexts_->GetPropAreaForName(pi->name); in Update() local
289 if (__predict_false(!pa)) { in Update()
[all …]
Dprop_area.cpp105 prop_area* pa = new (memory_area) prop_area(PROP_AREA_MAGIC, PROP_AREA_VERSION); in map_prop_area_rw() local
108 return pa; in map_prop_area_rw()
131 prop_area* pa = reinterpret_cast<prop_area*>(map_result); in map_fd_ro() local
132 if ((pa->magic() != PROP_AREA_MAGIC) || (pa->version() != PROP_AREA_VERSION)) { in map_fd_ro()
133 munmap(pa, pa_size_); in map_fd_ro()
137 return pa; in map_fd_ro()
Dcontexts_serialized.cpp142 if (!context_node->pa()) { in GetPropAreaForName()
148 return context_node->pa(); in GetPropAreaForName()
154 context_nodes_[i].pa()->foreach (propfn, cookie); in ForEach()
Dcontexts_split.cpp330 if (!cnode->pa()) { in GetPropAreaForName()
336 return cnode->pa(); in GetPropAreaForName()
342 l->pa()->foreach (propfn, cookie); in ForEach()
/bionic/libc/system_properties/include/system_properties/
Dprop_area.h97 static void unmap_prop_area(prop_area** pa) { in unmap_prop_area() argument
98 if (*pa) { in unmap_prop_area()
99 munmap(*pa, pa_size_); in unmap_prop_area()
100 *pa = nullptr; in unmap_prop_area()
Dcontext_node.h55 prop_area* pa() { in pa() function
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dqsort.c112 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in local_qsort() local
144 pa = pb = (char *)a + es; in local_qsort()
151 swapfunc(pa, pb, es); in local_qsort()
152 pa += es; in local_qsort()
181 d1 = MIN(pa - (char *)a, pb - pa); in local_qsort()
191 d1 = pb - pa; in local_qsort()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c273 struct parse pa; in regcomp_internal() local
275 struct parse *p = &pa; in regcomp_internal()