Home
last modified time | relevance | path

Searched refs:prop_info (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/include/sys/
Dsystem_properties.h36 typedef struct prop_info prop_info; typedef
62 const prop_info *__system_property_find(const char *name);
73 int __system_property_read(const prop_info *pi, char *name, char *value);
84 const prop_info *__system_property_find_nth(unsigned n);
97 void (*propfn)(const prop_info *pi, void *cookie),
D_system_properties.h143 int __system_property_update(prop_info *pi, const char *value, unsigned int len);
150 unsigned int __system_property_serial(const prop_info *pi);
160 const prop_info *__system_property_find_compat(const char *name);
161 int __system_property_read_compat(const prop_info *pi, char *name, char *value);
163 void (*propfn)(const prop_info *pi, void *cookie),
/bionic/tests/
Dsystem_properties_test.cpp74 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback()
77 ASSERT_NE((prop_info *)NULL, pi); in foreach_test_callback()
81 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback()
108 prop_info *pi; in PropertyWaitHelperFn()
109 pi = (prop_info *)__system_property_find("property"); in PropertyWaitHelperFn()
150 prop_info *pi; in TEST()
156 pi = (prop_info *)__system_property_find("property"); in TEST()
157 ASSERT_NE((prop_info *)NULL, pi); in TEST()
160 pi = (prop_info *)__system_property_find("other_property"); in TEST()
161 ASSERT_NE((prop_info *)NULL, pi); in TEST()
[all …]
/bionic/libc/bionic/
Dsystem_properties_compat.c71 __LIBC_HIDDEN__ const prop_info *__system_property_find_compat(const char *name) in __system_property_find_compat()
91 return (const prop_info *)pi; in __system_property_find_compat()
97 __LIBC_HIDDEN__ int __system_property_read_compat(const prop_info *_pi, char *name, char *value) in __system_property_read_compat()
120 void (*propfn)(const prop_info *pi, void *cookie), in __system_property_foreach_compat()
129 propfn((const prop_info *)pi, cookie); in __system_property_foreach_compat()
Dsystem_properties.cpp135 struct prop_info { struct
140 prop_info(const char *name, const uint8_t namelen, const char *value, in prop_info() argument
149 DISALLOW_COPY_AND_ASSIGN(prop_info);
155 const prop_info *pi;
319 static prop_info *new_prop_info(const char *name, uint8_t namelen, in new_prop_info()
323 void* const p = allocate_obj(sizeof(prop_info) + namelen + 1, &new_offset); in new_prop_info()
325 prop_info* info = new(p) prop_info(name, namelen, value, valuelen); in new_prop_info()
348 static inline prop_info *to_prop_info(atomic_uint_least32_t* off_p) { in to_prop_info()
350 return reinterpret_cast<prop_info*>(to_prop_obj(off)); in to_prop_info()
420 static const prop_info *find_property(prop_bt *const trie, const char *name, in find_property()
[all …]
Dbionic_systrace.cpp36 static const prop_info* g_pinfo;
/bionic/libc/dns/resolv/
Dres_state.c58 struct prop_info* _pi;
71 rt->_pi = (struct prop_info*) __system_property_find("net.change"); in _res_thread_alloc()
128 rt->_pi = (struct prop_info*) __system_property_find("net.change"); in _res_thread_get()
/bionic/benchmarks/
Dproperty_benchmark.cpp192 const prop_info** pinfo = new const prop_info*[iters]; in Run()
218 const prop_info** pinfo = new const prop_info*[iters]; in Run()