/bionic/libc/include/sys/ |
D | system_properties.h | 44 typedef struct prop_info prop_info; typedef 66 const prop_info* _Nullable __system_property_find(const char* _Nonnull __name); 74 void __system_property_read_callback(const prop_info* _Nonnull __pi, 87 int __system_property_foreach(void (* _Nonnull __callback)(const prop_info* _Nonnull __pi, void* _N… 104 bool __system_property_wait(const prop_info* _Nullable __pi, uint32_t __old_serial, uint32_t* _Nonn… 114 int __system_property_read(const prop_info* _Nonnull __pi, char* _Nullable __name, char* _Nonnull _… 118 const prop_info* _Nullable __system_property_find_nth(unsigned __n);
|
D | _system_properties.h | 116 int __system_property_update(prop_info* _Nonnull __pi, const char* _Nonnull __value, unsigned int _… 123 uint32_t __system_property_serial(const prop_info* _Nonnull __pi);
|
/bionic/libc/system_properties/include/system_properties/ |
D | system_properties.h | 59 const prop_info* Find(const char* name); 60 int Read(const prop_info* pi, char* name, char* value); 61 void ReadCallback(const prop_info* pi, 66 int Update(prop_info* pi, const char* value, unsigned int len); 69 bool Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, 71 const prop_info* FindNth(unsigned n); 72 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie); 75 uint32_t ReadMutablePropertyValue(const prop_info* pi, char* value);
|
D | prop_info.h | 44 struct prop_info { struct 82 prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen); argument 83 prop_info(const char* name, uint32_t namelen, uint32_t long_offset); 86 BIONIC_DISALLOW_IMPLICIT_CONSTRUCTORS(prop_info); 89 static_assert(sizeof(prop_info) == 96, "sizeof struct prop_info must be 96 bytes");
|
D | prop_area.h | 125 const prop_info* find(const char* name); 128 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie); 146 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen, 150 prop_info* to_prop_info(atomic_uint_least32_t* off_p); 157 const prop_info* find_property(prop_trie_node* const trie, const char* name, uint32_t namelen, 161 void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
|
D | contexts.h | 43 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
|
D | contexts_pre_split.h | 54 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override { in ForEach()
|
D | contexts_split.h | 47 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
|
D | contexts_serialized.h | 48 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
|
/bionic/libc/bionic/ |
D | system_property_api.cpp | 69 const prop_info* __system_property_find(const char* name) { in __system_property_find() 74 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() 79 void __system_property_read_callback(const prop_info* pi, in __system_property_read_callback() 92 int __system_property_update(prop_info* pi, const char* value, unsigned int len) { in __system_property_update() 103 uint32_t __system_property_serial(const prop_info* pi) { in __system_property_serial() 119 bool __system_property_wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, in __system_property_wait() 125 const prop_info* __system_property_find_nth(unsigned n) { in __system_property_find_nth() 130 int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in __system_property_foreach()
|
D | sysprop_helpers.cpp | 39 const prop_info* prop = __system_property_find(property_name); in get_property_value()
|
D | fdsan.cpp | 349 const prop_info* pi = __system_property_find(kFdsanPropertyName); in android_fdsan_set_error_level_from_property()
|
/bionic/libc/system_properties/ |
D | prop_info.cpp | 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) { in prop_info() function in prop_info 46 prop_info::prop_info(const char* name, uint32_t namelen, uint32_t long_offset) { in prop_info() function in prop_info
|
D | prop_area.cpp | 172 prop_info* prop_area::new_prop_info(const char* name, uint32_t namelen, const char* value, in new_prop_info() 175 void* const p = allocate_obj(sizeof(prop_info) + namelen + 1, &new_offset); in new_prop_info() 178 prop_info* info; in new_prop_info() 192 info = new (p) prop_info(name, namelen, long_value_offset); in new_prop_info() 194 info = new (p) prop_info(name, namelen, value, valuelen); in new_prop_info() 211 inline prop_info* prop_area::to_prop_info(atomic_uint_least32_t* off_p) { in to_prop_info() 213 return reinterpret_cast<prop_info*>(to_prop_obj(off)); in to_prop_info() 278 const prop_info* prop_area::find_property(prop_trie_node* const trie, const char* name, in find_property() 325 prop_info* new_info = new_prop_info(name, namelen, value, valuelen, &new_offset); in find_property() 337 void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach_property() [all …]
|
D | system_properties.cpp | 162 const prop_info* SystemProperties::Find(const char* name) { in Find() 184 uint32_t SystemProperties::ReadMutablePropertyValue(const prop_info* pi, char* value) { in ReadMutablePropertyValue() 215 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read() 238 void SystemProperties::ReadCallback(const prop_info* pi, in ReadCallback() 260 const prop_info* pi = Find(name); in Get() 270 int SystemProperties::Update(prop_info* pi, const char* value, unsigned int len) { in Update() 295 auto* override_pi = const_cast<prop_info*>(have_override ? override_pa->find(pi->name) : nullptr); in Update() 389 auto other_pi = const_cast<prop_info*>(other_pa->find(override_name)); in Add() 422 bool SystemProperties::Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, in Wait() 454 const prop_info* SystemProperties::FindNth(unsigned n) { in FindNth() [all …]
|
D | Android.bp | 24 "prop_info.cpp",
|
D | contexts_serialized.cpp | 151 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach()
|
D | contexts_split.cpp | 339 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach()
|
/bionic/tests/ |
D | system_properties_test.cpp | 80 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback() 87 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback() 211 const prop_info* pi = system_properties.Find("property"); in TEST() 213 system_properties.Update(const_cast<prop_info*>(pi), "value4", 6); in TEST() 217 system_properties.Update(const_cast<prop_info*>(pi), "newvalue5", 9); in TEST() 221 system_properties.Update(const_cast<prop_info*>(pi), "value6", 6); in TEST() 415 const prop_info* pi = system_properties.Find("property"); in TEST() 418 ASSERT_EQ(0, system_properties.Update(const_cast<prop_info*>(pi), "value2", 6)); in TEST() 433 prop_info* pi = const_cast<prop_info*>(system_properties.Find("property")); in TEST() 440 prop_info* pi = const_cast<prop_info*>(system_properties.Find("property")); in TEST() [all …]
|
D | system_properties_test2.cpp | 87 const prop_info* pi = __system_property_find(property_name.c_str()); in TEST() 118 const prop_info* pi_long = __system_property_find(long_property_name.c_str()); in TEST()
|
D | gwp_asan_test.cpp | 126 const prop_info* pi = __system_property_find(name.c_str()); in GetSysprop()
|
D | utils.h | 76 static const prop_info* pi = __system_property_find("ro.dalvik.vm.isa." ABI_STRING); in running_with_native_bridge()
|
/bionic/benchmarks/ |
D | property_benchmark.cpp | 162 const prop_info** pinfo = new const prop_info*[nprops]; in BM_property_read() 185 const prop_info** pinfo = new const prop_info*[nprops]; in BM_property_serial() 207 [](const prop_info* pi, void* cookie) { in BM_property_find_real()
|
/bionic/libc/private/ |
D | CachedProperty.h | 89 const prop_info* prop_info_;
|