Searched refs:prop_info (Results 1 - 21 of 21) sorted by relevance

/bionic/libc/include/sys/
H A Dsystem_properties.h39 typedef struct prop_info prop_info; typedef in typeref:struct:prop_info
49 * Returns a `prop_info` corresponding system property `name`, or nullptr if it doesn't exist.
54 const prop_info* __system_property_find(const char* __name);
59 void __system_property_read_callback(const prop_info* __pi,
64 * Passes a `prop_info` for each system property to the provided
69 int __system_property_foreach(void (*__callback)(const prop_info* __pi, void* __cookie), void* __cookie)
85 bool __system_property_wait(const prop_info* __pi, uint32_t __old_serial, uint32_t* __new_serial_ptr, const struct timespec* __relative_timeout)
91 int __system_property_read(const prop_info* __pi, char* __name, char* __value);
95 const prop_info* __system_property_find_nt
[all...]
H A D_system_properties.h115 int __system_property_update(prop_info* __pi, const char* __value, unsigned int __value_length);
122 uint32_t __system_property_serial(const prop_info* __pi);
/bionic/tools/versioner/current/sys/
H A Dsystem_properties.h39 typedef struct prop_info prop_info; typedef in typeref:struct:prop_info
49 * Returns a `prop_info` corresponding system property `name`, or nullptr if it doesn't exist.
54 const prop_info* __system_property_find(const char* __name);
59 void __system_property_read_callback(const prop_info* __pi,
64 * Passes a `prop_info` for each system property to the provided
69 int __system_property_foreach(void (*__callback)(const prop_info* __pi, void* __cookie), void* __cookie)
85 bool __system_property_wait(const prop_info* __pi, uint32_t __old_serial, uint32_t* __new_serial_ptr, const struct timespec* __relative_timeout)
91 int __system_property_read(const prop_info* __pi, char* __name, char* __value);
95 const prop_info* __system_property_find_nt
[all...]
H A D_system_properties.h115 int __system_property_update(prop_info* __pi, const char* __value, unsigned int __value_length);
122 uint32_t __system_property_serial(const prop_info* __pi);
/bionic/libc/system_properties/include/system_properties/
H A Dsystem_properties.h60 const prop_info* Find(const char* name);
61 int Read(const prop_info* pi, char* name, char* value);
62 void ReadCallback(const prop_info* pi,
67 int Update(prop_info* pi, const char* value, unsigned int len);
69 uint32_t Serial(const prop_info* pi);
71 bool Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr,
73 const prop_info* FindNth(unsigned n);
74 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
H A Dprop_info.h44 struct prop_info { struct
82 prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen);
83 prop_info(const char* name, uint32_t namelen, uint32_t long_offset);
86 DISALLOW_IMPLICIT_CONSTRUCTORS(prop_info);
89 static_assert(sizeof(prop_info) == 96, "sizeof struct prop_info must be 96 bytes");
H A Dcontexts.h32 #include "prop_info.h"
42 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
H A Dprop_area.h38 #include "prop_info.h"
66 // prop "points" to prop_info structure if there is a propery associated with the trie node.
111 const prop_info* find(const char* name);
114 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
131 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen,
135 prop_info* to_prop_info(atomic_uint_least32_t* off_p);
141 const prop_info* find_property(prop_bt* const trie, const char* name, uint32_t namelen,
144 bool foreach_property(prop_bt* const trie, void (*propfn)(const prop_info* pi, void* cookie),
H A Dcontexts_pre_split.h33 #include "prop_info.h"
54 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override {
H A Dcontexts_serialized.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
H A Dcontexts_split.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
/bionic/libc/system_properties/
H A Dprop_info.cpp29 #include "system_properties/prop_info.h"
35 static_assert(sizeof(kLongLegacyError) < prop_info::kLongLegacyErrorBufferSize,
38 prop_info::prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen) { function in class:prop_info
46 prop_info::prop_info(const char* name, uint32_t namelen, uint32_t long_offset) { function in class:prop_info
H A Dsystem_properties.cpp48 #include "system_properties/prop_info.h"
125 const prop_info* SystemProperties::Find(const char* name) {
143 int SystemProperties::Read(const prop_info* pi, char* name, char* value) {
181 void SystemProperties::ReadCallback(const prop_info* pi,
215 const prop_info* pi = Find(name);
225 int SystemProperties::Update(prop_info* pi, const char* value, unsigned int len) {
298 uint32_t SystemProperties::Serial(const prop_info* pi) {
313 bool SystemProperties::Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr,
345 const prop_info* SystemProperties::FindNth(unsigned n) {
349 const prop_info* resul
[all...]
H A Dprop_area.cpp169 prop_info* prop_area::new_prop_info(const char* name, uint32_t namelen, const char* value,
172 void* const p = allocate_obj(sizeof(prop_info) + namelen + 1, &new_offset);
175 prop_info* info;
184 // Both new_offset and long_value_offset are offsets based off of data_, however prop_info
185 // does not know what data_ is, so we change this offset to be an offset from the prop_info
189 info = new (p) prop_info(name, namelen, long_value_offset);
191 info = new (p) prop_info(name, namelen, value, valuelen);
208 inline prop_info* prop_area::to_prop_info(atomic_uint_least32_t* off_p) {
210 return reinterpret_cast<prop_info*>(to_prop_obj(off));
275 const prop_info* prop_are
[all...]
H A Dcontexts_serialized.cpp147 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) {
H A Dcontexts_split.cpp347 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) {
/bionic/libc/bionic/
H A Dsystem_property_api.cpp70 const prop_info* __system_property_find(const char* name) {
75 int __system_property_read(const prop_info* pi, char* name, char* value) {
80 void __system_property_read_callback(const prop_info* pi,
93 int __system_property_update(prop_info* pi, const char* value, unsigned int len) {
104 uint32_t __system_property_serial(const prop_info* pi) {
114 bool __system_property_wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr,
120 const prop_info* __system_property_find_nth(unsigned n) {
125 int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) {
/bionic/tests/
H A Dsystem_properties_test.cpp58 static void foreach_test_callback(const prop_info *pi, void* cookie) {
65 static void hierarchical_test_callback(const prop_info *pi, void *cookie) {
137 const prop_info* pi = system_properties.Find("property");
139 system_properties.Update(const_cast<prop_info*>(pi), "value4", 6);
143 system_properties.Update(const_cast<prop_info*>(pi), "newvalue5", 9);
147 system_properties.Update(const_cast<prop_info*>(pi), "value6", 6);
341 const prop_info* pi = system_properties.Find("property");
344 ASSERT_EQ(0, system_properties.Update(const_cast<prop_info*>(pi), "value2", 6));
359 prop_info* pi = const_cast<prop_info*>(system_propertie
[all...]
H A Dsystem_properties_test2.cpp89 const prop_info* pi = __system_property_find(property_name.c_str());
120 const prop_info* pi_long = __system_property_find(long_property_name.c_str());
/bionic/benchmarks/
H A Dproperty_benchmark.cpp157 const prop_info** pinfo = new const prop_info*[nprops];
180 const prop_info** pinfo = new const prop_info*[nprops];
/bionic/libc/private/
H A DCachedProperty.h63 // Do we have a `struct prop_info` yet?
89 const prop_info* prop_info_;

Completed in 180 milliseconds