Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dsystem_properties_compat.c73 prop_area_compat *pa = (prop_area_compat *)__system_property_area__; in __system_property_find_compat() local
74 unsigned count = pa->count; in __system_property_find_compat()
75 unsigned *toc = pa->toc; in __system_property_find_compat()
88 pi = TOC_TO_INFO(pa, entry); in __system_property_find_compat()
123 prop_area_compat *pa = (prop_area_compat *)__system_property_area__; in __system_property_foreach_compat() local
126 for (i = 0; i < pa->count; i++) { in __system_property_foreach_compat()
127 unsigned entry = pa->toc[i]; in __system_property_foreach_compat()
128 prop_info_compat *pi = TOC_TO_INFO(pa, entry); in __system_property_foreach_compat()
Dsystem_properties.cpp214 prop_area *pa = new(memory_area) prop_area(PROP_AREA_MAGIC, PROP_AREA_VERSION); in map_prop_area_rw() local
217 __system_property_area__ = pa; in map_prop_area_rw()
244 prop_area* pa = reinterpret_cast<prop_area*>(map_result); in map_fd_ro() local
245 if ((pa->magic != PROP_AREA_MAGIC) || (pa->version != PROP_AREA_VERSION && in map_fd_ro()
246 pa->version != PROP_AREA_VERSION_COMPAT)) { in map_fd_ro()
247 munmap(pa, pa_size); in map_fd_ro()
251 if (pa->version == PROP_AREA_VERSION_COMPAT) { in map_fd_ro()
255 __system_property_area__ = pa; in map_fd_ro()
300 prop_area *pa = __system_property_area__; in allocate_obj() local
302 if (pa->bytes_used + aligned > pa_data_size) { in allocate_obj()
[all …]
/bionic/benchmarks/
Dproperty_benchmark.cpp145 LocalPropertyTestState pa(nprops); in BM_property_get() local
148 if (!pa.valid) in BM_property_get()
156 __system_property_get(pa.names[random() % nprops], value); in BM_property_get()
166 LocalPropertyTestState pa(nprops); in BM_property_find() local
168 if (!pa.valid) in BM_property_find()
176 __system_property_find(pa.names[random() % nprops]); in BM_property_find()
186 LocalPropertyTestState pa(nprops); in BM_property_read() local
188 if (!pa.valid) in BM_property_read()
196 pinfo[i] = __system_property_find(pa.names[random() % nprops]); in BM_property_read()
213 LocalPropertyTestState pa(nprops); in BM_property_serial() local
[all …]
/bionic/tests/
Dsystem_properties_test.cpp120 LocalPropertyTestState pa; in TEST() local
121 ASSERT_TRUE(pa.valid); in TEST()
144 LocalPropertyTestState pa; in TEST() local
145 ASSERT_TRUE(pa.valid); in TEST()
181 LocalPropertyTestState pa; in TEST() local
182 ASSERT_TRUE(pa.valid); in TEST()
226 LocalPropertyTestState pa; in TEST() local
227 ASSERT_TRUE(pa.valid); in TEST()
243 LocalPropertyTestState pa; in TEST() local
244 ASSERT_TRUE(pa.valid); in TEST()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dqsort.c113 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort_r() local
141 pa = pb = (char *)a + es; in qsort_r()
148 swap(pa, pb); in qsort_r()
149 pa += es; in qsort_r()
178 r = min(pa - (char *)a, pb - pa); in qsort_r()
182 if ((r = pb - pa) > es) in qsort_r()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c239 struct parse pa; in regcomp() local
241 struct parse *p = &pa; in regcomp()