Searched refs:PROP_NAME_MAX (Results 1 – 6 of 6) sorted by relevance
/bionic/tests/ |
D | system_properties_test.cpp | 68 char name[PROP_NAME_MAX]; in hierarchical_test_callback() 102 char name[PROP_NAME_MAX + 11]; in TEST() 168 char prop_name[PROP_NAME_MAX]; in TEST() 175 ret = snprintf(prop_name, PROP_NAME_MAX - 1, "property_%d", count); in TEST() 176 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST() 179 prop_name[PROP_NAME_MAX - 1] = 0; in TEST() 182 ret = system_properties.Add(prop_name, PROP_NAME_MAX - 1, prop_value, PROP_VALUE_MAX - 1); in TEST() 193 ret = snprintf(prop_name, PROP_NAME_MAX - 1, "property_%d", i); in TEST() 194 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST() 197 prop_name[PROP_NAME_MAX - 1] = 0; in TEST() [all …]
|
D | system_properties_test2.cpp | 116 char legacy_name[PROP_NAME_MAX]; in TEST() 117 expected_name = std::string(property_name.c_str(), PROP_NAME_MAX-1); in TEST() 124 expected_name = std::string(long_property_name.c_str(), PROP_NAME_MAX-1); in TEST()
|
/bionic/libc/include/sys/ |
D | system_properties.h | 89 #define PROP_NAME_MAX 32 macro
|
/bionic/libc/system_properties/ |
D | system_properties.cpp | 177 size_t namelen = strlcpy(name, pi->name, PROP_NAME_MAX); in Read() 178 if (namelen >= PROP_NAME_MAX) { in Read() 183 pi->name, PROP_NAME_MAX - 1, name); in Read()
|
/bionic/benchmarks/ |
D | property_benchmark.cpp | 58 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState() 59 names[i] = new char[PROP_NAME_MAX + 1]; in LocalPropertyTestState()
|
/bionic/libc/bionic/ |
D | system_property_set.cpp | 174 char name[PROP_NAME_MAX]; 258 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set()
|