/aosp12/system/bt/gd/storage/ |
H A D | config_cache_test.cc | 44 config.SetProperty("A", "B", "C"); in TEST() 55 config.SetProperty("A", "B", ""); in TEST() 63 config.SetProperty("A", "B", "C"); in TEST() 72 config_1.SetProperty("A", "B", "C"); in TEST() 77 config_2.SetProperty("A", "B", "C"); in TEST() 114 config.SetProperty("A", "B", ""); in TEST() 122 config.SetProperty("A", "B", "C"); in TEST() 136 config.SetProperty("A", "B", "C"); in TEST() 162 config.SetProperty("A", "B", "C"); in TEST() 177 config.SetProperty("A", "B", "C"); in TEST() [all …]
|
H A D | legacy_config_file_test.cc | 40 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()
|
H A D | mutation_test.cc | 35 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()
|
H A D | config_cache_helper.cc | 26 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()
|
H A D | device_test.cc | 49 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()
|
/aosp12/system/libbase/ |
H A D | properties_test.cpp | 33 android::base::SetProperty("debug.libbase.property_test", "hello"); in TEST() 38 android::base::SetProperty("debug.libbase.property_test", "world"); in TEST() 58 ASSERT_FALSE(android::base::SetProperty(key, value)); in TEST() 63 ASSERT_TRUE(android::base::SetProperty(key, value)); in TEST() 66 ASSERT_FALSE(android::base::SetProperty(key, "hello")); in TEST() 71 ASSERT_FALSE(android::base::SetProperty("", "hello")); in TEST() 117 android::base::SetProperty("debug.libbase.property_test", ""); in CheckGetIntProperty() 121 android::base::SetProperty("debug.libbase.property_test", "0"); in CheckGetIntProperty() 123 android::base::SetProperty("debug.libbase.property_test", "1"); in CheckGetIntProperty() 125 android::base::SetProperty("debug.libbase.property_test", "2"); in CheckGetIntProperty() [all …]
|
/aosp12/system/core/init/ |
H A D | property_service_test.cpp | 30 using android::base::SetProperty; 67 ASSERT_TRUE(SetProperty("property_service_utf8_test", "base_success")); in TEST() 68 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\x80")); in TEST() 69 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xC2\x01")); in TEST() 70 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xFF")); in TEST() 71 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xA0\xFF")); in TEST() 72 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x01\xFF")); in TEST() 73 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\xFF")); in TEST() 75 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\x80")); in TEST() 87 SetProperty("init.userspace_reboot.is_supported", original_value); in TEST() [all …]
|
H A D | oneshot_on_test.cpp | 24 using android::base::SetProperty; 37 SetProperty("ctl.oneshot_off", "bootanim"); in TEST() 38 SetProperty("ctl.start", "bootanim"); in TEST() 44 SetProperty("ctl.oneshot_on", "bootanim"); in TEST() 45 SetProperty("ctl.start", "bootanim"); in TEST()
|
H A D | init.cpp | 95 using android::base::SetProperty; 522 SetProperty( in export_oem_lock_status() 552 SetProperty("sys.usb.controller", dp->d_name); in SetUsbController() 568 SetProperty("ro.kernel.version", android::base::StringPrintf("%u.%u", major, minor)); in SetKernelVersion() 709 SetProperty("ro.boottime.init", first_stage_start_time_str); in RecordStageBoottimes() 723 SetProperty("ro.boottime.init.first_stage", in RecordStageBoottimes() 725 SetProperty("ro.boottime.init.selinux", in RecordStageBoottimes() 729 SetProperty("ro.boottime.init.modules", init_module_time_str); in RecordStageBoottimes() 833 SetProperty("ro.boot.avb_version", avb_version); in SecondStageMain() 863 SetProperty(gsi::kGsiBootedProp, is_running); in SecondStageMain() [all …]
|
H A D | security.cpp | 34 using android::base::SetProperty; 181 SetProperty("sys.init.perf_lsm_hooks", "1"); in TestPerfEventSelinuxAction() 214 SetProperty("sys.init.perf_lsm_hooks", "1"); in TestPerfEventSelinuxAction()
|
/aosp12/system/server_configurable_flags/libflags/ |
H A D | server_configurable_flags_test.cc | 44 android::base::SetProperty("persist.device_config.category.flag", "hello"); in TEST() 50 android::base::SetProperty("persist.device_config.category.flag", ""); in TEST() 68 android::base::SetProperty("persist.device_config.category1.prop1", "val1"); in TEST() 69 android::base::SetProperty("persist.device_config.category1.prop2", "val2"); in TEST() 70 android::base::SetProperty("persist.device_config.category2.prop3", "val3"); in TEST() 71 android::base::SetProperty("sys.category3.test", "val4"); in TEST() 72 android::base::SetProperty("device_config.reset_performed", ""); in TEST() 90 android::base::SetProperty("persist.device_config.category1.prop1", "val1"); in TEST() 91 android::base::SetProperty("persist.device_config.category1.prop2", "val2"); in TEST() 93 android::base::SetProperty("sys.category3.test", "val4"); in TEST() [all …]
|
/aosp12/hardware/google/pixel/health/test/ |
H A D | TestBatteryDefender.cpp | 36 virtual bool SetProperty(const std::string &key, const std::string &value); 81 bool SetProperty(const std::string &key, const std::string &value) { in SetProperty() function 82 return mock->SetProperty(key, value); in SetProperty() 140 EXPECT_CALL(*mock, SetProperty(_, _)).Times(AnyNumber()); in SetUp() 263 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() 284 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() 337 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() 357 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() 372 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() 397 EXPECT_CALL(*mock, SetProperty(kPropBatteryDefenderState, "ACTIVE")); in TEST_F() [all …]
|
/aosp12/hardware/google/pixel/vibrator/drv2624/tests/ |
H A D | test-hwcal.cpp | 30 using ::android::base::SetProperty; 98 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::string())); in TEST_F() 111 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "0")); in TEST_F() 124 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "1")); in TEST_F() 137 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", std::string())); in TEST_F() 163 EXPECT_TRUE(SetProperty(prefix + "long.frequency.shift", std::string())); in TEST_F() 189 EXPECT_TRUE(SetProperty(prefix + "short.voltage", std::string())); in TEST_F() 215 EXPECT_TRUE(SetProperty(prefix + "long.voltage", std::string())); in TEST_F() 241 EXPECT_TRUE(SetProperty(prefix + "click.duration", std::string())); in TEST_F() 267 EXPECT_TRUE(SetProperty(prefix + "tick.duration", std::string())); in TEST_F() [all …]
|
/aosp12/packages/modules/adb/daemon/ |
H A D | property_monitor_test.cpp | 57 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()
|
H A D | restart_service.cpp | 42 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()
|
/aosp12/art/libartbase/base/ |
H A D | flags_test.cc | 126 android::base::SetProperty(test_flag_->SystemProperty(), ""); in TearDown() 127 android::base::SetProperty(test_flag_->ServerSetting(), ""); in TearDown() 171 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F() 177 if (android::base::SetProperty(test_flag_->ServerSetting(), "3")) { in TEST_F() 195 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F() 225 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F() 231 if (android::base::SetProperty(test_flag_->ServerSetting(), "3")) { in TEST_F()
|
/aosp12/system/security/ondevice-signing/ |
H A D | odsign_main.cpp | 43 using android::base::SetProperty; 319 SetProperty(kOdsignKeyDoneProp, "1"); in main() 321 SetProperty(kOdsignVerificationStatusProp, kOdsignVerificationStatusError); in main() 322 SetProperty(kOdsignVerificationDoneProp, "1"); in main() 324 SetProperty(kStopServiceProp, "odsign"); in main() 395 SetProperty(kOdsignKeyDoneProp, "1"); in main() 453 SetProperty(kOdsignKeyDoneProp, "1"); in main() 455 SetProperty(kOdsignVerificationStatusProp, kOdsignVerificationStatusValid); in main() 456 SetProperty(kOdsignVerificationDoneProp, "1"); in main() 459 SetProperty(kStopServiceProp, "odsign"); in main()
|
/aosp12/bootable/recovery/tests/unit/ |
H A D | uncrypt_test.cpp | 42 ASSERT_TRUE(android::base::SetProperty("ctl.stop", "setup-bcb")); in StopService() 43 ASSERT_TRUE(android::base::SetProperty("ctl.stop", "clear-bcb")); in StopService() 44 ASSERT_TRUE(android::base::SetProperty("ctl.stop", "uncrypt")); in StopService() 84 ASSERT_TRUE(android::base::SetProperty("ctl.start", isSetup ? "setup-bcb" : "clear-bcb")); in SetupOrClearBcb() 128 ASSERT_TRUE(android::base::SetProperty("ctl.stop", isSetup ? "setup-bcb" : "clear-bcb")); in SetupOrClearBcb()
|
/aosp12/system/logging/liblog/tests/ |
H A D | liblog_default_tag.cpp | 120 SetProperty(log_tag_property, "V"); in TEST() 121 auto reset_tag_property_guard = make_scope_guard([=] { SetProperty(log_tag_property, ""); }); in TEST() 148 SetProperty(log_tag_property, "V"); in TEST() 149 auto reset_tag_property_guard = make_scope_guard([=] { SetProperty(log_tag_property, ""); }); in TEST()
|
H A D | liblog_global_state.cpp | 204 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "d")); in TEST() 209 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "w")); in TEST() 214 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "")); in TEST() 231 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "w")); in TEST() 244 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "d")); in TEST() 255 ASSERT_TRUE(android::base::SetProperty(log_tag_property, "")); in TEST()
|
/aosp12/system/core/init/test_kill_services/ |
H A D | init_kill_services_test.cpp | 24 using ::android::base::SetProperty; 58 EXPECT_TRUE(SetProperty("test.death.test", "asdf")); in TEST_P() 60 EXPECT_TRUE(SetProperty("test.death.test", "")); in TEST_P()
|
/aosp12/system/extras/partition_tools/ |
H A D | lpdump_target.cc | 55 base::SetProperty("sys.lpdumpd", "start"); in LpdumpService() 68 base::SetProperty("sys.lpdumpd", "stop"); in ~LpdumpService() 82 base::SetProperty("sys.lpdumpd", "stop"); in main()
|
/aosp12/hardware/google/pixel/health/ |
H A D | LowBatteryShutdownMetrics.cpp | 29 using android::base::SetProperty; 66 SetProperty(kPersistProp, ""); in uploadVoltageAvg() 88 return SetProperty(kPersistProp, prop_contents); in saveVoltageAvg()
|
/aosp12/system/extras/profcollectd/libprofcollectd/bindings/libbase/ |
H A D | lib.rs | 19 pub use ffi::{GetProperty, SetProperty}; 32 fn SetProperty(key: &str, value: &str); in SetProperty() function
|
H A D | properties.cpp | 24 void SetProperty(rust::Str key, rust::Str value) { in SetProperty() function 25 android::base::SetProperty(std::string(key), std::string(value)); in SetProperty()
|