Home
last modified time | relevance | path

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

123

/system/bt/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.cc47 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
72 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
99 config.SetProperty(pseudo_first_seen_address.ToString(), "Name", "hello"); in TEST()
100 …config.SetProperty(pseudo_first_seen_address.ToString(), "LeIdentityAddr", le_identity_address.ToS… in TEST()
101 config.SetProperty(address.ToString(), "Name", "world"); in TEST()
218 config.SetProperty(address.ToString(), "Name", "hello"); in TEST()
227 config.SetProperty(address.ToString(), "Name", "hello"); in TEST()
/system/core/init/
Dproperty_service_test.cpp29 using android::base::SetProperty;
66 ASSERT_TRUE(SetProperty("property_service_utf8_test", "base_success")); in TEST()
67 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\x80")); in TEST()
68 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xC2\x01")); in TEST()
69 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xFF")); in TEST()
70 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xA0\xFF")); in TEST()
71 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x01\xFF")); in TEST()
72 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\xFF")); in TEST()
73 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\x80\xFF")); in TEST()
74 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\x80")); in TEST()
[all …]
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()
Dinit.cpp91 using android::base::SetProperty;
173 SetProperty("ro.boottime.init.cold_boot_wait", std::to_string(time_waited)); in CheckAndResetWait()
521 SetProperty("ro.boot.flash.locked", value == "orange" ? "0" : "1"); in export_oem_lock_status()
551 SetProperty("sys.usb.controller", dp->d_name); in SetUsbController()
689 SetProperty("ro.boottime.init", first_stage_start_time_str); in RecordStageBoottimes()
703 SetProperty("ro.boottime.init.first_stage", in RecordStageBoottimes()
705 SetProperty("ro.boottime.init.selinux", in RecordStageBoottimes()
806 SetProperty("ro.boot.avb_version", avb_version); in SecondStageMain()
835 SetProperty(gsi::kGsiBootedProp, is_running); in SecondStageMain()
837 SetProperty(gsi::kGsiInstalledProp, is_installed); in SecondStageMain()
Dsubcontext_test.cpp35 using android::base::SetProperty;
75 SetProperty("init.test.subcontext", "fail"); in TEST()
188 android::base::SetProperty(args[1], args[2]); in BuildTestFunctionMap()
Dbuiltins.cpp90 using android::base::SetProperty;
572 SetProperty("ro.crypto.state", "encrypted"); in queue_fs_event()
573 SetProperty("ro.crypto.type", "block"); in queue_fs_event()
577 SetProperty("ro.crypto.state", "unencrypted"); in queue_fs_event()
581 SetProperty("ro.crypto.state", "unsupported"); in queue_fs_event()
597 SetProperty("ro.crypto.state", "encrypted"); in queue_fs_event()
598 SetProperty("ro.crypto.type", "file"); in queue_fs_event()
608 SetProperty("ro.crypto.state", "encrypted"); in queue_fs_event()
609 SetProperty("ro.crypto.type", "file"); in queue_fs_event()
619 SetProperty("ro.crypto.state", "encrypted"); in queue_fs_event()
[all …]
Dsecurity.cpp33 using android::base::SetProperty;
253 SetProperty("sys.init.perf_lsm_hooks", "1"); in TestPerfEventSelinuxAction()
/system/server_configurable_flags/libflags/
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()
67 android::base::SetProperty("persist.device_config.attempted_boot_count", "1"); 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()
89 android::base::SetProperty("persist.device_config.attempted_boot_count", "5"); in TEST()
90 android::base::SetProperty("persist.device_config.category1.prop1", "val1"); in TEST()
[all …]
Dserver_configurable_flags.cc68 android::base::SetProperty(key, "")) { in ResetFlag()
74 android::base::SetProperty(RESET_PERFORMED_PROPERTY, "true"); in ResetFlag()
108 android::base::SetProperty(ATTEMPTED_BOOT_COUNT_PROPERTY, std::to_string(fail_count + 1)); in ServerConfigurableFlagsReset()
/system/libbase/
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()
79 ASSERT_TRUE(android::base::SetProperty("debug.libbase.property_empty_value", "")); in TEST()
84 android::base::SetProperty("debug.libbase.property_test", value.c_str()); in CheckGetBoolProperty()
111 android::base::SetProperty("debug.libbase.property_test", "-12"); in CheckGetIntProperty()
113 android::base::SetProperty("debug.libbase.property_test", "12"); in CheckGetIntProperty()
[all …]
/system/core/adb/daemon/
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()
/system/core/init/test_kill_services/
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()
/system/extras/partition_tools/
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()
/system/core/liblog/tests/
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()
Dliblog_global_state.cpp195 android::base::SetProperty(log_tag_property, "d"); in TEST()
200 android::base::SetProperty(log_tag_property, "w"); in TEST()
205 android::base::SetProperty(log_tag_property, ""); in TEST()
221 android::base::SetProperty(log_tag_property, "w"); in TEST()
234 android::base::SetProperty(log_tag_property, "d"); in TEST()
245 android::base::SetProperty(log_tag_property, ""); in TEST()
/system/core/usbd/
Dusbd.cpp28 using android::base::SetProperty;
46 SetProperty("ctl.start", "adbd"); in main()
/system/core/libsysutils/src/
DServiceManager.cpp60 android::base::SetProperty("ctl.start", name); in start()
90 android::base::SetProperty("ctl.stop", name); in stop()
/system/core/toolbox/
Dsetprop.cpp26 using android::base::SetProperty;
72 if (!SetProperty(name, value)) { in setprop_main()
Dstart.cpp27 using android::base::SetProperty;
31 if (!android::base::SetProperty(start ? "ctl.start" : "ctl.stop", service)) { in ControlService()
/system/vold/
Dmain.cpp134 android::base::SetProperty("vold.has_adoptable", configs.has_adoptable ? "1" : "0"); in main()
135 android::base::SetProperty("vold.has_quota", configs.has_quota ? "1" : "0"); in main()
136 android::base::SetProperty("vold.has_reserved", configs.has_reserved ? "1" : "0"); in main()
137 android::base::SetProperty("vold.has_compress", configs.has_compress ? "1" : "0"); in main()
/system/extras/simpleperf/
Dmain.cpp43 if (!android::base::SetProperty(prop_name, "0")) { in AndroidSecurityCheck()

123