Home
last modified time | relevance | path

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

12

/system/core/init/
Dproperty_service_test.cpp27 using android::base::SetProperty;
59 ASSERT_TRUE(SetProperty("property_service_utf8_test", "base_success")); in TEST()
60 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\x80")); in TEST()
61 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xC2\x01")); in TEST()
62 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xFF")); in TEST()
63 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xE0\xA0\xFF")); in TEST()
64 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x01\xFF")); in TEST()
65 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\xFF")); in TEST()
66 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\x80\xFF")); in TEST()
67 EXPECT_FALSE(SetProperty("property_service_utf8_test", "\xF0\x90\x80")); in TEST()
[all …]
Dhost_init_stubs.cpp36 uint32_t SetProperty(const std::string& key, const std::string& value) { in SetProperty() function
37 android::base::SetProperty(key, value); in SetProperty()
40 uint32_t (*property_set)(const std::string& name, const std::string& value) = SetProperty;
Dsubcontext_test.cpp35 using android::base::SetProperty;
82 SetProperty("init.test.subcontext", "fail"); in TEST()
184 android::base::SetProperty(args[1], args[2]); in BuildTestFunctionMap()
/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.cc60 android::base::SetProperty(key, "")) { in ResetFlag()
66 android::base::SetProperty(RESET_PERFORMED_PROPERTY, "true"); in ResetFlag()
100 android::base::SetProperty(ATTEMPTED_BOOT_COUNT_PROPERTY, std::to_string(fail_count + 1)); in ServerConfigurableFlagsReset()
/system/core/base/
Dproperties_test.cpp31 android::base::SetProperty("debug.libbase.property_test", "hello"); in TEST()
36 android::base::SetProperty("debug.libbase.property_test", "world"); in TEST()
51 android::base::SetProperty("debug.libbase.property_test", ""); in TEST()
57 android::base::SetProperty("debug.libbase.property_test", value.c_str()); in CheckGetBoolProperty()
84 android::base::SetProperty("debug.libbase.property_test", "-12"); in CheckGetIntProperty()
86 android::base::SetProperty("debug.libbase.property_test", "12"); in CheckGetIntProperty()
90 android::base::SetProperty("debug.libbase.property_test", ""); in CheckGetIntProperty()
94 android::base::SetProperty("debug.libbase.property_test", "0"); in CheckGetIntProperty()
96 android::base::SetProperty("debug.libbase.property_test", "1"); in CheckGetIntProperty()
98 android::base::SetProperty("debug.libbase.property_test", "2"); 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()
Dmdns.cpp43 android::base::SetProperty("ctl.start", "mdnsd"); in start_mdns()
Dreboot_service.cpp74 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_string)) { in reboot_service()
/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/usbd/
Dusbd.cpp30 using android::base::SetProperty;
47 SetProperty("ctl.start", "adbd"); in main()
/system/extras/perfprofd/
Dcpuconfig.cc97 if (!android::base::SetProperty("ctl.stop", "mpdecision")) { in StopMpdecision()
109 if (!android::base::SetProperty("ctl.start", "mpdecision")) { in RestartMpdecision()
/system/core/libsysutils/src/
DServiceManager.cpp60 android::base::SetProperty("ctl.start", name); in start()
90 android::base::SetProperty("ctl.stop", name); in stop()
/system/vold/
Dmain.cpp132 android::base::SetProperty("vold.has_adoptable", has_adoptable ? "1" : "0"); in main()
133 android::base::SetProperty("vold.has_quota", has_quota ? "1" : "0"); in main()
134 android::base::SetProperty("vold.has_reserved", has_reserved ? "1" : "0"); in main()
DEncryptInplace.cpp95 android::base::SetProperty("vold.encrypt_progress", buf); in update_progress()
114 android::base::SetProperty("vold.encrypt_time_remaining", buf); in update_progress()
532 android::base::SetProperty("vold.encrypt_progress", property_buf); in cryptfs_enable_inplace_full()
/system/linkerconfig/modules/tests/
Dvariables_test.cc34 android::base::SetProperty("debug.linkerconfig.test_prop_key", in TEST()
/system/bpf/bpfloader/
DBpfLoader.cpp100 if (android::base::SetProperty("bpf.progs_loaded", "1") == false) { in main()
/system/core/base/include/android-base/
Dproperties.h55 bool SetProperty(const std::string& key, const std::string& value);
/system/libhidl/adapter/
DHidlBinderAdapter.cpp34 using android::base::SetProperty;
124 SetProperty(property, "false"); in waitForAdaptersDeactivated()
/system/extras/simpleperf/
Denvironment.cpp367 if (android::base::SetProperty(prop_name, "0")) { in CheckPerfEventLimit()
393 static bool SetProperty(const char* prop_name, uint64_t value) { in SetProperty() function
394 if (!android::base::SetProperty(prop_name, std::to_string(value))) { in SetProperty()
402 if (!SetProperty("debug.perf_event_max_sample_rate", sample_freq) || in SetPerfEventLimits()
403 !SetProperty("debug.perf_cpu_time_max_percent", cpu_percent) || in SetPerfEventLimits()
404 !SetProperty("debug.perf_event_mlock_kb", mlock_kb) || in SetPerfEventLimits()
405 !SetProperty("security.perf_harden", 0)) { in SetPerfEventLimits()
Dgtest_main.cpp58 android::base::SetProperty("security.perf_harden", value); in SetProp()
/system/extras/libperfmgr/
DPropertyNode.cc57 if (!android::base::SetProperty(node_path_, req_value)) { in Update()
/system/core/fastboot/device/
Dcommands.cpp255 android::base::SetProperty(ANDROID_RB_PROPERTY, "shutdown,fastboot"); in ShutDownHandler()
263 android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,from_fastboot"); in RebootHandler()
271 android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,bootloader"); in RebootBootloaderHandler()
279 android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,fastboot"); in RebootFastbootHandler()
/system/core/bootstat/
Dbootstat.cpp752 if (!android::base::SetProperty(system_reboot_reason_property, system_boot_reason)) { in BootReasonAddToHistory()
753 android::base::SetProperty(system_reboot_reason_property, in BootReasonAddToHistory()
780 while (!android::base::SetProperty(history_reboot_reason_property, in BootReasonAddToHistory()
1110 android::base::SetProperty(last_last_reboot_reason_property, last_boot_reason); in SetSystemBootReason()
1111 android::base::SetProperty(last_reboot_reason_property, ""); in SetSystemBootReason()
1221 android::base::SetProperty(bootloader_reboot_reason_property, system_reason); in RecordBootReason()
/system/gsid/
Dgsi_tool.cpp64 if (!android::base::SetProperty("ctl.start", "gsid") || in GetGsiService()
304 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,adb")) { in Install()

12