Home
last modified time | relevance | path

Searched refs:system_properties (Results 1 – 4 of 4) sorted by relevance

/bionic/tests/
Dsystem_properties_test.cpp94 SystemPropertiesTest system_properties; in TEST() local
95 ASSERT_TRUE(system_properties.valid()); in TEST()
97 ASSERT_EQ(0, system_properties.Add("property", 8, "value1", 6)); in TEST()
98 ASSERT_EQ(0, system_properties.Add("other_property", 14, "value2", 6)); in TEST()
99 ASSERT_EQ(0, system_properties.Add("property_other", 14, "value3", 6)); in TEST()
109 ASSERT_EQ(0, system_properties.Add(name, strlen(name), "value", 5)); in TEST()
112 ASSERT_EQ(6, system_properties.Get("property", propvalue)); in TEST()
115 ASSERT_EQ(6, system_properties.Get("other_property", propvalue)); in TEST()
118 ASSERT_EQ(6, system_properties.Get("property_other", propvalue)); in TEST()
121 ASSERT_EQ(5, system_properties.Get(name, propvalue)); in TEST()
[all …]
/bionic/libc/bionic/
Dsystem_property_api.cpp37 static SystemProperties system_properties; variable
48 return system_properties.Init(PROP_FILENAME) ? 0 : -1; in __system_properties_init()
59 return system_properties.AreaInit(PROP_FILENAME, &fsetxattr_failed) && !fsetxattr_failed ? 0 : -1; in __system_property_area_init()
64 return system_properties.AreaSerial(); in __system_property_area_serial()
69 return system_properties.Find(name); in __system_property_find()
74 return system_properties.Read(pi, name, value); in __system_property_read()
82 return system_properties.ReadCallback(pi, callback, cookie); in __system_property_read_callback()
87 return system_properties.Get(name, value); in __system_property_get()
92 return system_properties.Update(pi, value, len); in __system_property_update()
98 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
[all …]
/bionic/benchmarks/
Dproperty_benchmark.cpp93 SystemProperties& system_properties() { in system_properties() function
135 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
147 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
162 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
167 pa.system_properties().Read(pinfo[i], nullptr, propvalue); in BM_property_read()
183 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_serial()
/bionic/libc/system_properties/
DAndroid.bp11 "system_properties.cpp",