Home
last modified time | relevance | path

Searched refs:GetProperty (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_helper_test.cc37 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("true"))); in TEST()
41 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("false"))); in TEST()
49 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST()
55 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int>::… in TEST()
59 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST()
67 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST()
74 …config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<uint32_t>::max()) … in TEST()
78 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST()
88 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int32_… in TEST()
93 …config.GetProperty("A", "B"), Optional(StrEq("-" + std::to_string(std::numeric_limits<int32_t>::ma… in TEST()
[all …]
Dconfig_cache_test.cc46 auto value = config.GetProperty("A", "B"); in TEST()
57 auto value = config.GetProperty("A", "B"); in TEST()
68 ASSERT_TRUE(config.GetProperty("CC:DD:EE:FF:00:10", BTIF_STORAGE_KEY_NAME)); in TEST()
84 ASSERT_TRUE(config_2.GetProperty("CC:DD:EE:FF:00:10", BTIF_STORAGE_KEY_NAME)); in TEST()
86 ASSERT_TRUE(config_1.GetProperty("CC:DD:EE:FF:00:10", BTIF_STORAGE_KEY_NAME)); in TEST()
116 auto value = config.GetProperty("A", "B"); in TEST()
125 auto value = config.GetProperty("A", "B"); in TEST()
128 value = config.GetProperty("AA:BB:CC:DD:EE:FF", "B"); in TEST()
131 ASSERT_FALSE(config.GetProperty("A", "BC")); in TEST()
132 ASSERT_FALSE(config.GetProperty("ABC", "B")); in TEST()
[all …]
Dlegacy_config_file_test.cc55 EXPECT_THAT(config_read->GetProperty("A", "B"), Optional(StrEq("C"))); in TEST()
56 …EXPECT_THAT(config_read->GetProperty("CC:DD:EE:FF:00:11", "LinkKey"), Optional(StrEq("AABBAABBCCDD… in TEST()
90 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST()
91 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST()
93 …config_read->GetProperty("01:02:03:ab:cd:ea", "LinkKey"), Optional(StrEq("fedcba0987654321fedcba09… in TEST()
180 …EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), Optional(StrE… in TEST()
182 EXPECT_THAT(config_read->GetProperty("DID", "primaryRecord"), Optional(StrEq("true"))); in TEST()
184 EXPECT_THAT(config_read->GetProperty("DID", "version"), Optional(StrEq("0x1436"))); in TEST()
Dconfig_cache_helper.cc32 auto value_str = config_cache_.GetProperty(section, property); in GetBool()
50 auto value_str = config_cache_.GetProperty(section, property); in GetUint64()
62 auto value_str = config_cache_.GetProperty(section, property); in GetUint32()
81 auto value_str = config_cache_.GetProperty(section, property); in GetInt64()
93 auto value_str = config_cache_.GetProperty(section, property); in GetInt()
114 auto value_str = config_cache_.GetProperty(section, property); in GetBin()
Dconfig_cache_helper.h84 return config_cache_.GetProperty(section, property); in Get()
99 auto value = config_cache_.GetProperty(section, property); in Get()
108 auto value = config_cache_.GetProperty(section, property); in Get()
122 auto value = config_cache_.GetProperty(section, property); in Get()
Dmutation_test.cc119 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("C"))); in TEST()
122 ASSERT_THAT(memory_only_config.GetProperty("A", "D"), Optional(StrEq("Hello"))); in TEST()
Dstorage_module_test.cc79 return GetProperty(section, property); in GetPropertyPublic()
235 config->GetProperty("01:02:03:ab:cd:ea", BTIF_STORAGE_KEY_NAME), Optional(StrEq("foo"))); in TEST_F()
Dconfig_cache.h75 …virtual std::optional<std::string> GetProperty(const std::string& section, const std::string& prop…
/packages/modules/adb/daemon/
Drestart_service_test.cpp48 EXPECT_EQ(android::base::GetProperty("service.adb.tcp.port", ""), in TEST()
54 const std::string port_str = android::base::GetProperty("service.adb.tcp.port", ""); in TEST()
64 EXPECT_EQ(android::base::GetProperty("service.adb.tcp.port", ""), port_str); in TEST()
75 EXPECT_EQ(android::base::GetProperty("service.adb.tcp.port", ""), "0"); in TEST()
Dmain.cpp81 std::string prop = android::base::GetProperty("service.adb.root", ""); in should_drop_privileges()
214 bool device_unlocked = android::base::GetProperty("ro.boot.verifiedbootstate", "") == "orange"; in adbd_main()
266 std::string prop_addr = android::base::GetProperty("service.adb.listen_addrs", ""); in adbd_main()
268 std::string prop_port = android::base::GetProperty("service.adb.tcp.port", ""); in adbd_main()
270 prop_port = android::base::GetProperty("persist.adb.tcp.port", ""); in adbd_main()
Dmdns.cpp41 if (android::base::GetProperty("init.svc.mdnsd", "") == "running") { in start_mdnsd()
122 hostname += android::base::GetProperty("ro.serialno", "unidentified"); in register_base_mdns_transport()
166 std::string serial = android::base::GetProperty("ro.serialno", ""); in GenerateDeviceGuid()
178 std::string guid = android::base::GetProperty("persist.adb.wifi.guid", ""); in ReadDeviceGuid()
/packages/modules/Bluetooth/system/test/suite/adapter/
Dadapter_unittest.cc80 bt_property_t* name_property = GetProperty(BT_PROPERTY_BDNAME); in TEST_F()
93 EXPECT_TRUE(GetProperty(BT_PROPERTY_BDNAME)) in TEST_F()
95 EXPECT_TRUE(property_equals(GetProperty(BT_PROPERTY_BDNAME), new_name)) in TEST_F()
97 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
105 property_equals(GetProperty(BT_PROPERTY_BDNAME), old_name_property)) in TEST_F()
107 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
Dbluetooth_test.h96 bt_property_t* GetProperty(bt_property_type_t type);
Dbluetooth_test.cc126 bt_property_t* BluetoothTest::GetProperty(bt_property_type_t type) { in GetProperty() function in bttest::BluetoothTest
/packages/modules/StatsD/statsd/src/utils/
DDbUtils.cpp41 using base::GetProperty;
413 string model = GetProperty("ro.product.model", "(unknown)"); in getDeviceInfoInsertStmt()
417 string product = GetProperty("ro.product.name", "(unknown)"); in getDeviceInfoInsertStmt()
421 string hardware = GetProperty("ro.hardware", "(unknown)"); in getDeviceInfoInsertStmt()
425 string device = GetProperty("ro.product.device", "(unknown)"); in getDeviceInfoInsertStmt()
429 string osBuild = GetProperty("ro.build.id", "(unknown)"); in getDeviceInfoInsertStmt()
433 string fingerprint = GetProperty("ro.build.fingerprint", "(unknown)"); in getDeviceInfoInsertStmt()
437 string brand = GetProperty("ro.product.brand", "(unknown)"); in getDeviceInfoInsertStmt()
441 string manufacturer = GetProperty("ro.product.manufacturer", "(unknown)"); in getDeviceInfoInsertStmt()
445 string board = GetProperty("ro.product.board", "(unknown)"); in getDeviceInfoInsertStmt()
/packages/modules/Bluetooth/system/gd/sysprops/
Dsysprops_module.cc138 auto str = config->GetProperty("Sysprops", *s); in parse_config()
146 auto val = config->GetProperty(kAflagSection, name); in parse_config()
/packages/modules/Connectivity/netbpfload/
DNetBpfLoad.cpp228 static string ph = base::GetProperty("gsm.current.phone-type", ""); in hasGSM()
241 static string key = base::GetProperty("ro.oem.key1", ""); in isTV()
256 const bool unreleased = (base::GetProperty("ro.build.version.codename", "REL") != "REL"); in doLoad()
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc87 auto str = GetStorage()->GetProperty(section, property); in GetStr()
101 return GetStorage()->GetProperty(section, property); in GetStr()
/packages/modules/Bluetooth/floss/android-base/include/android-base/
Dproperties.h26 std::string GetProperty(const std::string& key,
/packages/modules/Bluetooth/floss/android-base/
Dproperties.cc24 std::string GetProperty(const std::string& key, in GetProperty() function
/packages/services/Car/cpp/powerpolicy/server/src/
DSilentModeHandler.cpp42 using ::android::base::GetProperty;
99 mBootReason = GetProperty(kPropertySystemBootReason, ""); in SilentModeHandler()
/packages/services/Car/cpp/security/vehicle_binding_util/tests/
DVehicleBindingIntegrationTest.cpp51 ASSERT_EQ(expected_value, android::base::GetProperty("vold.storage_seed_bound", "")); in TEST()
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp82 android::base::GetProperty(kSystemPropertiesPrefix + dessert, default_); in ReadSystemProperties()
84 properties["ro.build.version.sdk"] = android::base::GetProperty("ro.build.version.sdk", default_); in ReadSystemProperties()
/packages/modules/UprobeStats/src/
DUprobeStats.cpp37 return android::base::GetProperty("ro.build.type", "unknown") == "user"; in isUserBuild()
/packages/modules/adb/
Dadb_trace.cpp100 return android::base::GetProperty("persist.adb.trace_mask", ""); in get_trace_setting()

12