Home
last modified time | relevance | path

Searched refs:SetProperty (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_test.cc44 config.SetProperty("A", "B", "C"); in TEST()
52 ASSERT_DEATH({ config.SetProperty("", "B", "C"); }, "Empty section name not allowed"); in TEST()
53 ASSERT_DEATH({ config.SetProperty("A", "", "C"); }, "Empty property name not allowed"); in TEST()
55 config.SetProperty("A", "B", ""); in TEST()
63 config.SetProperty("A", "B", "C"); in TEST()
64 config.SetProperty("CC:DD:EE:FF:00:10", "Name", "Hello"); in TEST()
65 config.SetProperty("CC:DD:EE:FF:00:09", "Name", "Hello 2"); in TEST()
66 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST()
72 config_1.SetProperty("A", "B", "C"); in TEST()
73 config_1.SetProperty("CC:DD:EE:FF:00:10", "Name", "Hello"); in TEST()
[all …]
Dlegacy_config_file_test.cc40 config.SetProperty("A", "B", "C"); in TEST()
41 config.SetProperty("AA:BB:CC:DD:EE:FF", "B", "C"); in TEST()
42 config.SetProperty("AA:BB:CC:DD:EE:FF", "C", "D"); in TEST()
43 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST()
115 config.SetProperty("Info", "FileSource", "Empty"); in TEST()
116 config.SetProperty("Info", "TimeCreated", ""); in TEST()
117 config.SetProperty("Adapter", "Address", "01:02:03:ab:cd:ef"); in TEST()
118 config.SetProperty("01:02:03:ab:cd:ea", "name", "hello world"); in TEST()
119 config.SetProperty("01:02:03:ab:cd:ea", "LinkKey", "fedcba0987654321fedcba0987654328"); in TEST()
Dmutation_test.cc35 config.SetProperty("A", "B", "C"); in TEST()
36 config.SetProperty("AA:BB:CC:DD:EE:FF", "B", "C"); in TEST()
37 config.SetProperty("AA:BB:CC:DD:EE:FF", "C", "D"); in TEST()
38 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST()
53 config.SetProperty("A", "B", "C"); in TEST()
54 config.SetProperty("A", "C", "D"); in TEST()
55 config.SetProperty("B", "B", "C"); in TEST()
56 config.SetProperty("B", "C", "D"); in TEST()
Dconfig_cache_helper.cc26 config_cache_.SetProperty(section, property, value ? "true" : "false"); in SetBool()
44 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint64()
56 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint32()
75 config_cache_.SetProperty(section, property, std::to_string(value)); in SetInt64()
87 config_cache_.SetProperty(section, property, std::to_string(value)); in SetInt()
107 config_cache_.SetProperty(section, property, common::ToHexString(value)); in SetBin()
Ddevice_test.cc49 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
74 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
101 config.SetProperty(pseudo_first_seen_address.ToString(), "Name", "hello"); in TEST()
102 …config.SetProperty(pseudo_first_seen_address.ToString(), "LeIdentityAddr", le_identity_address.ToS… in TEST()
103 config.SetProperty(address.ToString(), "Name", "world"); in TEST()
220 config.SetProperty(address.ToString(), "Name", "hello"); in TEST()
229 config.SetProperty(address.ToString(), "Name", "hello"); in TEST()
Dstorage_module.cc180 config->SetProperty(kInfoSection, kFileSourceProperty, std::move(file_source)); in Start()
193 config->SetProperty(kInfoSection, kTimeCreatedProperty, ss.str()); in Start()
283 void StorageModule::SetProperty(std::string section, std::string property, std::string value) { in SetProperty() function in bluetooth::storage::StorageModule
285 pimpl_->cache_.SetProperty(section, property, value); in SetProperty()
Dconfig_cache.cc180 void ConfigCache::SetProperty(std::string section, std::string property, std::string value) { in SetProperty() function in bluetooth::storage::ConfigCache
301 SetProperty(section, std::string(property), kEncryptedStr); in ConvertEncryptOrDecryptKeyIfNeeded()
308 SetProperty(section, std::string(property), value_str); in ConvertEncryptOrDecryptKeyIfNeeded()
368 SetProperty(std::move(entry.section), std::move(entry.property), std::move(entry.value)); in Commit()
Dlegacy_config_file.cc71 cache.SetProperty(section, tokens[0], std::move(tokens[1])); in Read()
Dconfig_cache.h103 virtual void SetProperty(std::string section, std::string property, std::string value);
Dstorage_module.h152 void SetProperty(std::string section, std::string property, std::string value);
Dstorage_module_test.cc80 return SetProperty(section, property, value); in SetPropertyPublic()
/packages/modules/adb/daemon/
Dproperty_monitor_test.cpp57 android::base::SetProperty(prop_name, "0"); in RegisterExitCallback()
60 android::base::SetProperty(prop_name, "1"); in RegisterExitCallback()
83 android::base::SetProperty(foo, "foo"); in TEST()
109 android::base::SetProperty(foo, "foo"); in TEST()
122 android::base::SetProperty(foo, "bar"); in TEST()
150 android::base::SetProperty(foo, "foo"); in TEST()
151 android::base::SetProperty(bar, "bar"); in TEST()
169 android::base::SetProperty(foo, "bar"); in TEST()
170 android::base::SetProperty(bar, "foo"); in TEST()
Drestart_service.cpp42 android::base::SetProperty("service.adb.root", "1"); in restart_root_service()
53 android::base::SetProperty("service.adb.root", "0"); in restart_unroot_service()
64 android::base::SetProperty("service.adb.tcp.port", android::base::StringPrintf("%d", port)); in restart_tcp_service()
70 android::base::SetProperty("service.adb.tcp.port", "0"); in restart_usb_service()
Dmdns.cpp45 android::base::SetProperty("ctl.start", "mdnsd"); in start_mdnsd()
183 android::base::SetProperty("persist.adb.wifi.guid", guid); in ReadDeviceGuid()
Dadb_wifi.cpp174 SetProperty(kWifiPortProp, std::to_string(sTlsServer->port())); in enable_wifi_debugging()
187 SetProperty(kWifiPortProp, ""); in disable_wifi_debugging()
Dmain.cpp165 android::base::SetProperty("service.adb.root", "0"); in drop_privileges()
Dusb_ffs.cpp302 android::base::SetProperty("sys.usb.ffs.ready", "1"); in open_functionfs()
Dservices.cpp150 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_string)) { in reboot_device()
/packages/services/Car/cpp/powerpolicy/server/src/
DSilentModeHandler.cpp45 using ::android::base::SetProperty;
229 if (!SetProperty(kPropertyNoBootAnimation, value)) { in enableBootAnimation()
233 if (!SetProperty(kPropertyBootAnimationExit, value)) { in enableBootAnimation()
/packages/services/Car/cpp/bugreport/
Dmain.cpp462 android::base::SetProperty("ctl.start", "cardumpstatez"); in main()
470 android::base::SetProperty("ctl.stop", "cardumpstatez"); in main()
501 android::base::SetProperty("ctl.stop", "cardumpstatez"); in main()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.h98 android::base::SetProperty(key, value); in ScopedSystemProperties()
100 ~ScopedSystemProperties() { android::base::SetProperty(mStoredKey, mStoredValue); } in ~ScopedSystemProperties()
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc107 GetStorage()->SetProperty(section, property, value); in SetStr()
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp139 if (!android::base::SetProperty(property_name, std::to_string(version))) { in SetExtension()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp32 using android::base::SetProperty;
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.cpp27 using android::base::SetProperty;
2084 SetProperty(StringPrintf("persist.device_config.%s.%s", STATSD_NATIVE_NAMESPACE.c_str(), in writeFlag()
2090 SetProperty(StringPrintf("persist.device_config.%s.%s", STATSD_NATIVE_BOOT_NAMESPACE.c_str(), in writeBootFlag()

12