Home
last modified time | relevance | path

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

/bionic/libc/system_properties/
Dprop_info.cpp38 prop_info::prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen) { in prop_info() argument
41 atomic_init(&this->serial, valuelen << 24); in prop_info()
42 memcpy(this->value, value, valuelen); in prop_info()
43 this->value[valuelen] = '\0'; in prop_info()
Dprop_area.cpp173 uint32_t valuelen, uint_least32_t* const off) { in new_prop_info() argument
179 if (valuelen >= PROP_VALUE_MAX) { in new_prop_info()
181 char* long_location = reinterpret_cast<char*>(allocate_obj(valuelen + 1, &long_value_offset)); in new_prop_info()
184 memcpy(long_location, value, valuelen); in new_prop_info()
185 long_location[valuelen] = '\0'; in new_prop_info()
194 info = new (p) prop_info(name, namelen, value, valuelen); in new_prop_info()
279 uint32_t namelen, const char* value, uint32_t valuelen, in find_property() argument
325 prop_info* new_info = new_prop_info(name, namelen, value, valuelen, &new_offset); in find_property()
370 unsigned int valuelen) { in add() argument
371 return find_property(root_node(), name, namelen, value, valuelen, true); in add()
Dsystem_properties.cpp339 unsigned int valuelen) { in Add() argument
346 if (valuelen >= PROP_VALUE_MAX && !is_read_only(name)) { in Add()
349 name, valuelen); in Add()
373 if (!pa->add(name, namelen, value, valuelen)) { in Add()
391 if (other_pa->add(override_name, strlen(override_name), value, valuelen)) { in Add()
403 strlcpy(other_pi->value, value, valuelen + 1); in Add()
/bionic/libc/system_properties/include/system_properties/
Dprop_area.h126 bool add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
146 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen,
158 const char* value, uint32_t valuelen, bool alloc_if_needed);
Dprop_info.h82 prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen);
Dsystem_properties.h67 int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
/bionic/libc/bionic/
Dsystem_property_set.cpp144 uint32_t valuelen = strlen(value); in WriteString() local
145 WriteUint32(valuelen); in WriteString()
146 if (valuelen == 0) { in WriteString()
152 iov_[iov_index_].iov_len = valuelen; in WriteString()
Dsystem_property_api.cpp98 unsigned int valuelen) { in __system_property_add() argument
99 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()