Lines Matching refs:name
68 char name[PROP_NAME_MAX]; in hierarchical_test_callback() local
71 __system_property_read(pi, name, value); in hierarchical_test_callback()
75 ASSERT_EQ(3, sscanf(name, "property_%d.%d.%d", &name_i, &name_j, &name_k)); in hierarchical_test_callback()
102 char name[PROP_NAME_MAX + 11]; in TEST() local
103 name[0] = 'p'; in TEST()
104 for (size_t i = 1; i < sizeof(name); i++) { in TEST()
105 name[i] = 'x'; in TEST()
108 name[sizeof(name)-1] = '\0'; in TEST()
109 ASSERT_EQ(0, system_properties.Add(name, strlen(name), "value", 5)); in TEST()
121 ASSERT_EQ(5, system_properties.Get(name, propvalue)); in TEST()
235 char name[PROP_NAME_MAX]; in TEST() local
237 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(0), name, value)); in TEST()
238 EXPECT_STREQ("property", name); in TEST()
240 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(1), name, value)); in TEST()
241 EXPECT_STREQ("other_property", name); in TEST()
243 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(2), name, value)); in TEST()
244 EXPECT_STREQ("property_other", name); in TEST()
461 const std::string& name = property.first; in TEST() local
463 ASSERT_EQ(0, system_properties.Add(name.c_str(), name.size(), value.c_str(), value.size())); in TEST()
467 const std::string& name = property.first; in TEST() local
469 ASSERT_EQ(0, system_properties.Add(name.c_str(), name.size(), value.c_str(), value.size())); in TEST()
472 auto check_with_legacy_read = [&system_properties](const std::string& name, in TEST()
475 EXPECT_EQ(static_cast<int>(expected_value.size()), system_properties.Get(name.c_str(), value)) in TEST()
476 << name; in TEST()
477 EXPECT_EQ(expected_value, value) << name; in TEST()
480 auto check_with_read_callback = [&system_properties](const std::string& name, in TEST() argument
482 const prop_info* pi = system_properties.Find(name.c_str()); in TEST()
491 EXPECT_EQ(expected_value, value) << name; in TEST()
495 const std::string& name = property.first; in TEST() local
497 check_with_legacy_read(name, value); in TEST()
498 check_with_read_callback(name, value); in TEST()
504 const std::string& name = property.first; in TEST() local
506 check_with_legacy_read(name, kExtraLongLegacyError); in TEST()
507 check_with_read_callback(name, value); in TEST()
521 auto name = "ro.super_long_property"s; in TEST() local
523 ASSERT_NE(0, system_properties.Add(name.c_str(), name.size(), value.c_str(), value.size())); in TEST()