Home
last modified time | relevance | path

Searched refs:prop_info (Results 1 – 6 of 6) 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.h119 int __system_property_update(prop_info *pi, const char *value, unsigned int len);
126 unsigned int __system_property_serial(const prop_info *pi);
136 const prop_info *__system_property_find_compat(const char *name);
137 int __system_property_read_compat(const prop_info *pi, char *name, char *value);
139 void (*propfn)(const prop_info *pi, void *cookie),
/bionic/tests/
Dsystem_properties_test.cpp92 prop_info *pi; in TEST()
98 pi = (prop_info *)__system_property_find("property"); in TEST()
99 ASSERT_NE((prop_info *)NULL, pi); in TEST()
102 pi = (prop_info *)__system_property_find("other_property"); in TEST()
103 ASSERT_NE((prop_info *)NULL, pi); in TEST()
106 pi = (prop_info *)__system_property_find("property_other"); in TEST()
107 ASSERT_NE((prop_info *)NULL, pi); in TEST()
161 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback()
164 ASSERT_NE((prop_info *)NULL, pi); in foreach_test_callback()
189 ASSERT_NE((const prop_info *)NULL, __system_property_find_nth(0)); in TEST()
[all …]
/bionic/libc/bionic/
Dsystem_properties_compat.c69 const prop_info *__system_property_find_compat(const char *name) in __system_property_find_compat()
89 return (const prop_info *)pi; in __system_property_find_compat()
95 int __system_property_read_compat(const prop_info *_pi, char *name, char *value) in __system_property_read_compat()
118 void (*propfn)(const prop_info *pi, void *cookie), in __system_property_foreach_compat()
127 propfn((const prop_info *)pi, cookie); in __system_property_foreach_compat()
Dsystem_properties.c68 struct prop_info { struct
74 typedef struct prop_info prop_info; argument
306 static prop_info *new_prop_info(const char *name, uint8_t namelen, in new_prop_info()
310 prop_info *info = new_prop_obj(sizeof(prop_info) + namelen + 1, &off_tmp); in new_prop_info()
381 static const prop_info *find_property(prop_bt *trie, const char *name, in find_property()
433 const prop_info *__system_property_find(const char *name) in __system_property_find()
441 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read()
469 const prop_info *pi = __system_property_find(name); in __system_property_get()
563 int __system_property_wait(const prop_info *pi) in __system_property_wait()
581 int __system_property_update(prop_info *pi, const char *value, unsigned int len) in __system_property_update()
[all …]
/bionic/libc/netbsd/resolv/
Dres_state.c59 struct prop_info* _pi;
72 rt->_pi = (struct prop_info*) __system_property_find("net.change"); in _res_thread_alloc()
130 rt->_pi = (struct prop_info*) __system_property_find("net.change"); in _res_thread_get()