Home
last modified time | relevance | path

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

123

/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"), in TEST()
60 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST()
68 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST()
74 ASSERT_THAT(config.GetProperty("A", "B"), in TEST()
79 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST()
89 ASSERT_THAT(config.GetProperty("A", "B"), in TEST()
94 ASSERT_THAT(config.GetProperty("A", "B"), 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"), in TEST()
91 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST()
92 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST()
93 EXPECT_THAT(config_read->GetProperty("01:02:03:ab:cd:ea", "LinkKey"), in TEST()
181 EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), in TEST()
184 EXPECT_THAT(config_read->GetProperty("DID", "primaryRecord"), Optional(StrEq("true"))); in TEST()
186 EXPECT_THAT(config_read->GetProperty("DID", "version"), Optional(StrEq("0x1436"))); in TEST()
Dconfig_cache_helper.cc34 auto value_str = config_cache_.GetProperty(section, property); in GetBool()
54 auto value_str = config_cache_.GetProperty(section, property); in GetUint64()
68 auto value_str = config_cache_.GetProperty(section, property); in GetUint32()
89 auto value_str = config_cache_.GetProperty(section, property); in GetInt64()
102 auto value_str = config_cache_.GetProperty(section, property); in GetInt()
123 auto value_str = config_cache_.GetProperty(section, property); in GetBin()
Dstorage_module_test.cc95 std::optional<std::string> GetProperty(const std::string& section, const std::string& property) { in GetProperty() function in bluetooth::storage::StorageModuleTest
96 return storage_->GetProperty(section, property); in GetProperty()
171 ASSERT_THAT(GetProperty(StorageModule::kAdapterSection, BTIF_STORAGE_KEY_ADDRESS), in TEST_F()
194 ASSERT_THAT(GetProperty("01:02:03:ab:cd:ea", BTIF_STORAGE_KEY_NAME), in TEST_F()
197 ASSERT_THAT(GetProperty("01:02:03:ab:cd:ea", BTIF_STORAGE_KEY_NAME), Optional(StrEq("foo"))); in TEST_F()
202 ASSERT_THAT(GetProperty("01:02:03:ab:cd:ea", BTIF_STORAGE_KEY_NAME), Optional(StrEq("foo"))); in TEST_F()
Dconfig_cache_helper.h93 return config_cache_.GetProperty(section, property); in Get()
110 auto value = config_cache_.GetProperty(section, property); in Get()
119 auto value = config_cache_.GetProperty(section, property); in Get()
132 auto value = config_cache_.GetProperty(section, property); in Get()
Dmutation_test.cc123 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("C"))); in TEST()
126 ASSERT_THAT(memory_only_config.GetProperty("A", "D"), Optional(StrEq("Hello"))); in TEST()
/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()
Dmdns.cpp47 if (android::base::GetProperty("init.svc.mdnsd", "") == "running") { in start_mdnsd()
74 attributes["name"] = android::base::GetProperty("ro.product.model", ""); in buildTxtRecord()
75 attributes["api"] = android::base::GetProperty("ro.build.version.sdk", ""); in buildTxtRecord()
124 hostname += android::base::GetProperty("ro.serialno", "unidentified"); in register_base_mdns_transport()
168 std::string serial = android::base::GetProperty("ro.serialno", ""); in GenerateDeviceGuid()
180 std::string guid = android::base::GetProperty("persist.adb.wifi.guid", ""); in ReadDeviceGuid()
Dmain.cpp84 std::string prop = android::base::GetProperty("service.adb.root", ""); in should_drop_privileges()
221 bool device_unlocked = android::base::GetProperty("ro.boot.verifiedbootstate", "") == "orange"; in adbd_main()
273 std::string prop_addr = android::base::GetProperty("service.adb.listen_addrs", ""); in adbd_main()
275 std::string prop_port = android::base::GetProperty("service.adb.tcp.port", ""); in adbd_main()
277 prop_port = android::base::GetProperty("persist.adb.tcp.port", ""); in adbd_main()
/packages/modules/Bluetooth/system/test/suite/adapter/
Dadapter_unittest.cc124 bt_property_t* name_property = GetProperty(BT_PROPERTY_BDNAME); in TEST_F()
135 EXPECT_TRUE(GetProperty(BT_PROPERTY_BDNAME)) << "The Bluetooth name property did not change."; in TEST_F()
136 EXPECT_TRUE(property_equals(GetProperty(BT_PROPERTY_BDNAME), new_name)) in TEST_F()
137 << "Bluetooth name " << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
143 EXPECT_TRUE(property_equals(GetProperty(BT_PROPERTY_BDNAME), old_name_property)) in TEST_F()
144 << "Bluetooth name " << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
Dbluetooth_test.h96 bt_property_t* GetProperty(bt_property_type_t type);
/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.cc135 auto str = config->GetProperty("Sysprops", *s); in parse_config()
143 auto val = config->GetProperty(kAflagSection, name); in parse_config()
/packages/modules/Nfc/libnfc-nci/src/adaptation/
Dnfc_config.cc60 android::base::GetProperty("persist.nfc_cfg.config_file_name", "")); in findConfigPath()
66 android::base::GetProperty("ro.boot.product.hardware.sku", "") + ".conf"); in findConfigPath()
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc81 auto str = GetStorage()->GetProperty(section, property); in GetStr()
95 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, const std::string& default_value);
/packages/modules/Bluetooth/floss/android-base/
Dproperties.cc24 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() function
/packages/services/Car/cpp/power/server/src/
DSilentModeHandler.cpp42 using ::android::base::GetProperty;
99 mBootReason = GetProperty(kPropertySystemBootReason, ""); in SilentModeHandler()
/packages/modules/Nfc/libnfc-nci/src/nfc_vendor_extn/
DNfcVendorExtn.cc85 android::base::GetProperty("persist.nfc_vendor_extn.lib_file_name", "")); in findLibPath()
91 android::base::GetProperty("ro.boot.product.hardware.sku", "") + ".so"); in findLibPath()
/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/Connectivity/bpf/headers/include/bpf/
DBpfUtils.h37 const bool unreleased = (base::GetProperty("ro.build.version.codename", "REL") != "REL");
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp85 android::base::GetProperty(kSystemPropertiesPrefix + dessert, default_); in ReadSystemProperties()
87 properties["ro.build.version.sdk"] = android::base::GetProperty("ro.build.version.sdk", default_); in ReadSystemProperties()
/packages/services/Car/cpp/packagemanagerproxy/service/src/
DPackageManagerProxy.cpp43 using ::android::base::GetProperty;
/packages/modules/adb/
Dadb_trace.cpp100 return android::base::GetProperty("persist.adb.trace_mask", ""); in get_trace_setting()

123