Home
last modified time | relevance | path

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

123456

/aosp12/system/bt/gd/storage/
H A Dconfig_cache_test.cc44 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 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()
H A 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()
H A 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()
H A 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()
/aosp12/system/libbase/
H A Dproperties_test.cpp33 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 Dproperty_service_test.cpp30 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 Doneshot_on_test.cpp24 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 Dinit.cpp95 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 Dsecurity.cpp34 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 Dserver_configurable_flags_test.cc44 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 DTestBatteryDefender.cpp36 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 Dtest-hwcal.cpp30 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 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()
H A 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()
/aosp12/art/libartbase/base/
H A Dflags_test.cc126 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 Dodsign_main.cpp43 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 Duncrypt_test.cpp42 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 Dliblog_default_tag.cpp120 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 Dliblog_global_state.cpp204 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 Dinit_kill_services_test.cpp24 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 Dlpdump_target.cc55 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 DLowBatteryShutdownMetrics.cpp29 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 Dlib.rs19 pub use ffi::{GetProperty, SetProperty};
32 fn SetProperty(key: &str, value: &str); in SetProperty() function
H A Dproperties.cpp24 void SetProperty(rust::Str key, rust::Str value) { in SetProperty() function
25 android::base::SetProperty(std::string(key), std::string(value)); in SetProperty()

123456