/system/core/init/ |
D | property_service_test.cpp | 27 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 …]
|
D | host_init_stubs.cpp | 36 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;
|
D | subcontext_test.cpp | 35 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/ |
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() 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 …]
|
D | server_configurable_flags.cc | 60 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/ |
D | properties_test.cpp | 31 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/ |
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()
|
D | mdns.cpp | 43 android::base::SetProperty("ctl.start", "mdnsd"); in start_mdns()
|
D | reboot_service.cpp | 74 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_string)) { in reboot_service()
|
/system/extras/partition_tools/ |
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()
|
/system/core/usbd/ |
D | usbd.cpp | 30 using android::base::SetProperty; 47 SetProperty("ctl.start", "adbd"); in main()
|
/system/extras/perfprofd/ |
D | cpuconfig.cc | 97 if (!android::base::SetProperty("ctl.stop", "mpdecision")) { in StopMpdecision() 109 if (!android::base::SetProperty("ctl.start", "mpdecision")) { in RestartMpdecision()
|
/system/core/libsysutils/src/ |
D | ServiceManager.cpp | 60 android::base::SetProperty("ctl.start", name); in start() 90 android::base::SetProperty("ctl.stop", name); in stop()
|
/system/vold/ |
D | main.cpp | 132 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()
|
D | EncryptInplace.cpp | 95 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/ |
D | variables_test.cc | 34 android::base::SetProperty("debug.linkerconfig.test_prop_key", in TEST()
|
/system/bpf/bpfloader/ |
D | BpfLoader.cpp | 100 if (android::base::SetProperty("bpf.progs_loaded", "1") == false) { in main()
|
/system/core/base/include/android-base/ |
D | properties.h | 55 bool SetProperty(const std::string& key, const std::string& value);
|
/system/libhidl/adapter/ |
D | HidlBinderAdapter.cpp | 34 using android::base::SetProperty; 124 SetProperty(property, "false"); in waitForAdaptersDeactivated()
|
/system/extras/simpleperf/ |
D | environment.cpp | 367 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()
|
D | gtest_main.cpp | 58 android::base::SetProperty("security.perf_harden", value); in SetProp()
|
/system/extras/libperfmgr/ |
D | PropertyNode.cc | 57 if (!android::base::SetProperty(node_path_, req_value)) { in Update()
|
/system/core/fastboot/device/ |
D | commands.cpp | 255 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/ |
D | bootstat.cpp | 752 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/ |
D | gsi_tool.cpp | 64 if (!android::base::SetProperty("ctl.start", "gsid") || in GetGsiService() 304 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,adb")) { in Install()
|