Home
last modified time | relevance | path

Searched refs:PROP_NAME_MAX (Results 1 – 6 of 6) sorted by relevance

/bionic/tests/
Dsystem_properties_test.cpp68 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 …]
Dsystem_properties_test2.cpp116 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/
Dsystem_properties.h89 #define PROP_NAME_MAX 32 macro
/bionic/libc/system_properties/
Dsystem_properties.cpp177 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/
Dproperty_benchmark.cpp58 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/
Dsystem_property_set.cpp174 char name[PROP_NAME_MAX];
258 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set()