Home
last modified time | relevance | path

Searched refs:GetProperty (Results 1 – 25 of 109) sorted by relevance

12345

/system/server_configurable_flags/libflags/
Dserver_configurable_flags_test.cc76 ASSERT_EQ("2", android::base::GetProperty("persist.device_config.attempted_boot_count", "")); in TEST()
77 ASSERT_EQ("val1", android::base::GetProperty("persist.device_config.category1.prop1", "")); in TEST()
78 ASSERT_EQ("val2", android::base::GetProperty("persist.device_config.category1.prop2", "")); in TEST()
79 ASSERT_EQ("val3", android::base::GetProperty("persist.device_config.category2.prop3", "")); in TEST()
80 ASSERT_EQ("val4", android::base::GetProperty("sys.category3.test", "")); in TEST()
81 ASSERT_EQ("", android::base::GetProperty("device_config.reset_performed", "")); in TEST()
97 ASSERT_EQ("true", android::base::GetProperty("device_config.reset_performed", "")); in TEST()
98 ASSERT_EQ("5", android::base::GetProperty("persist.device_config.attempted_boot_count", "")); in TEST()
99 ASSERT_EQ("", android::base::GetProperty("persist.device_config.category1.prop1", "")); in TEST()
100 ASSERT_EQ("", android::base::GetProperty("persist.device_config.category1.prop2", "")); in TEST()
[all …]
/system/core/init/
Dproperty_service_test.cpp29 using android::base::GetProperty;
85 const std::string original_value = GetProperty("init.userspace_reboot.is_supported", ""); in TEST()
95 std::string legacy_build_id = GetProperty("ro.build.legacy.id", ""); in TEST()
100 std::string vbmeta_digest = GetProperty("ro.boot.vbmeta.digest", ""); in TEST()
102 std::string build_id = GetProperty("ro.build.id", ""); in TEST()
107 std::string fingerprint = GetProperty("ro.build.fingerprint", ""); in TEST()
109 GetProperty("ro.product.brand", ""), in TEST()
111 GetProperty("ro.product.name", ""), in TEST()
113 GetProperty("ro.product.device", ""), in TEST()
115 GetProperty("ro.build.version.release_or_codename", ""), in TEST()
[all …]
Doneshot_on_test.cpp23 using android::base::GetProperty;
35 ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", "")); in TEST()
Dproperty_service.cpp82 using android::base::GetProperty;
834 std::string config = android::base::GetProperty("persist.sys.usb.config", ""); in update_sys_usb_config()
874 GetProperty("ro.product.property_source_order", EMPTY); in property_initialize_ro_product_props()
902 std::string base_prop_val = GetProperty(base_prop, EMPTY); in property_initialize_ro_product_props()
913 std::string target_prop_val = GetProperty(target_prop, EMPTY); in property_initialize_ro_product_props()
930 std::string build_id = GetProperty(ID_PROP, ""); in property_initialize_build_id()
935 std::string legacy_build_id = GetProperty(LEGACY_ID_PROP, ""); in property_initialize_build_id()
936 std::string vbmeta_digest = GetProperty(VBMETA_DIGEST_PROP, ""); in property_initialize_build_id()
955 std::string build_fingerprint = GetProperty("ro.product.brand", UNKNOWN); in ConstructBuildFingerprint()
957 build_fingerprint += GetProperty("ro.product.name", UNKNOWN); in ConstructBuildFingerprint()
[all …]
/system/core/init/test_kill_services/
Dinit_kill_services_test.cpp23 using ::android::base::GetProperty;
30 const std::string initial_pid = GetProperty(pid_prop, ""); in ExpectKillingServiceRecovers()
32 ASSERT_EQ("running", GetProperty(status_prop, "")) << status_prop; in ExpectKillingServiceRecovers()
43 const std::string& pid = GetProperty(pid_prop, ""); in ExpectKillingServiceRecovers()
49 EXPECT_EQ("running", GetProperty(status_prop, "")); in ExpectKillingServiceRecovers()
59 EXPECT_EQ(GetProperty("test.death.test", ""), "asdf"); in TEST_P()
/system/apex/apexd/
Dapexd_lifecycle.cpp27 using android::base::GetProperty;
35 auto status = GetProperty(kApexStatusSysprop, ""); in IsBooting()
50 auto name = GetProperty("sys.init.updatable_crashing_process_name", ""); in WaitForBootStatus()
Dapex_database.cpp79 Result<std::string> GetProperty(const std::string& property) const { in GetProperty() function in android::apex::__anon1df56a490111::BlockDevice
145 auto backing_file = dev.GetProperty("loop/backing_file"); in PopulateLoopInfo()
207 auto backing_file = block.GetProperty("loop/backing_file"); in ResolveMountInfo()
219 auto name = block.GetProperty("dm/name"); in ResolveMountInfo()
/system/core/fastboot/device/
Dvariables.cpp58 *message = android::base::GetProperty("ro.bootloader", ""); in GetBootloaderVersion()
64 *message = android::base::GetProperty("ro.build.expect.baseband", ""); in GetBasebandVersion()
70 *message = android::base::GetProperty("ro.build.version.release", ""); in GetOsVersion()
76 *message = android::base::GetProperty("ro.vndk.version", ""); in GetVndkVersion()
82 *message = android::base::GetProperty("ro.product.device", ""); in GetProduct()
88 *message = android::base::GetProperty("ro.serialno", ""); in GetSerial()
424 *message = android::base::GetProperty("ro.revision", ""); in GetHardwareRevision()
462 *message = android::base::GetProperty("ro.product.cpu.abi", ""); in GetCpuAbi()
468 *message = android::base::GetProperty("ro.system.build.fingerprint", ""); in GetSystemFingerprint()
470 *message = android::base::GetProperty("ro.build.fingerprint", ""); in GetSystemFingerprint()
[all …]
/system/update_engine/aosp/
Dhardware_android.cc46 using android::base::GetProperty;
62 return android::base::GetProperty("ro." + partition_name + ".build.date.utc", in GetPartitionBuildDate()
174 auto manufacturer = GetProperty(kPropProductManufacturer, ""); in GetHardwareClass()
175 auto sku = GetProperty(kPropBootHardwareSKU, ""); in GetHardwareClass()
176 auto revision = GetProperty(kPropBootRevision, ""); in GetHardwareClass()
290 if (android::base::GetProperty("ro.boot.avb_version", "").empty() && in SetVbmetaDigestForInactiveSlot()
291 android::base::GetProperty("ro.boot.vbmeta.avb_version", "").empty()) { in SetVbmetaDigestForInactiveSlot()
/system/libbase/
Dproperties_test.cpp35 std::string s = android::base::GetProperty("debug.libbase.property_test", ""); in TEST()
39 s = android::base::GetProperty("debug.libbase.property_test", ""); in TEST()
42 s = android::base::GetProperty("this.property.does.not.exist", ""); in TEST()
45 s = android::base::GetProperty("this.property.does.not.exist", "default"); in TEST()
59 ASSERT_EQ("missing", android::base::GetProperty(key, "missing")); in TEST()
64 ASSERT_EQ(value, android::base::GetProperty(key, "missing")); in TEST()
67 ASSERT_EQ(value, android::base::GetProperty(key, "missing")); in TEST()
72 ASSERT_EQ("default", android::base::GetProperty("", "default")); in TEST()
80 ASSERT_EQ("default", android::base::GetProperty("debug.libbase.property_empty_value", "default")); in TEST()
Dproperties.cpp72 switch (ParseBool(GetProperty(key, ""))) { in GetBoolProperty()
86 std::string value = GetProperty(key, ""); in GetIntProperty()
94 std::string value = GetProperty(key, ""); in GetUintProperty()
109 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() function
/system/extras/simpleperf/
Dcmd_boot_record_test.cpp34 ASSERT_EQ(android::base::GetProperty("persist.simpleperf.boot_record", ""), "-a -g --duration 1"); in TEST()
39 ASSERT_EQ(android::base::GetProperty("persist.simpleperf.boot_record", ""), ""); in TEST()
/system/core/usbd/
Dusbd.cpp30 using android::base::GetProperty;
39 if (GetProperty("ro.bootmode", "") == "charger") exit(0); in main()
48 std::string function = GetProperty("persist.sys.usb.config", ""); in main()
/system/core/fs_mgr/liblp/include/liblp/
Dproperty_fetcher.h27 virtual std::string GetProperty(const std::string& key, const std::string& defaultValue) = 0;
37 std::string GetProperty(const std::string& key, const std::string& defaultValue) override;
Dmock_property_fetcher.h29 MOCK_METHOD2(GetProperty, std::string(const std::string&, const std::string&));
36 ON_CALL(*this, GetProperty(_, _)).WillByDefault(Invoke([](const auto&, const auto& def) { in MockPropertyFetcher()
/system/core/fs_mgr/liblp/
Dproperty_fetcher.cpp26 std::string PropertyFetcher::GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() function in android::fs_mgr::PropertyFetcher
27 return android::base::GetProperty(key, default_value); in GetProperty()
/system/logging/logd/
DLogSize.cpp31 std::string value = android::base::GetProperty(key, ""); in GetBufferSizeProperty()
62 const auto hwType = android::base::GetProperty("ro.hardware.type", ""); in GetBufferSizeFromProperties()
Dmain.cpp65 using android::base::GetProperty;
120 bool default_value = (GetProperty("ro.build.type", "user").compare("eng") == 0) && in GetBoolPropertyEngSvelteDefault()
245 std::string buffer_type = GetProperty("logd.buffer_type", "serialized"); in main()
/system/core/toolbox/
Dstart.cpp26 using android::base::GetProperty;
47 std::string zygote_configuration = GetProperty("ro.zygote", ""); in ControlDefaultServices()
Dgetprop.cpp27 using android::base::GetProperty;
76 std::cout << GetProperty(name, default_value) << std::endl; in PrintProperty()
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp68 prop_value = android::base::GetProperty(prop, "" /* default */); in wait_and_get_property()
174 return android::base::GetProperty(kVerifiedBootStateProp, /*default_value=*/"red"); in GetVerifiedBootState()
181 return android::base::GetProperty(kVbmetaDeviceStateProp, /*default_value=*/"unlocked"); in GetBootloaderState()
260 auto vbmeta_string = android::base::GetProperty( in GetVbmetaDigest()
/system/tools/sysprop/tests/
DCppGenIntegrationTest.cpp31 EXPECT_EQ(expected_raw_value, android::base::GetProperty(prop_name, "")); \
41 EXPECT_EQ(expected_raw_value, android::base::GetProperty(prop_name, "")); \
/system/core/libstats/push_compat/tests/
DStatsEventCompat_test.cpp22 using android::base::GetProperty;
/system/core/bootstat/
Dbootstat.cpp907 auto old_system_boot_reason = android::base::GetProperty(system_reboot_reason_property, ""); in BootReasonAddToHistory()
913 android::base::Split(android::base::GetProperty(history_reboot_reason_property, ""), "\n"); in BootReasonAddToHistory()
946 auto ret = android::base::GetProperty(system_reboot_reason_property, ""); in BootReasonStrToReason()
1087 content = android::base::GetProperty(last_reboot_reason_property, ""); in BootReasonStrToReason()
1132 auto build_date_str = android::base::GetProperty("ro.build.date.utc", ""); in CalculateBootCompletePrefix()
1155 auto value = android::base::GetProperty(property, ""); in RecordInitBootTimeProp()
1173 auto value = android::base::GetProperty("ro.boot.boottime", ""); in GetBootLoaderTimings()
1247 auto reason = android::base::GetProperty(bootloader_reboot_reason_property, "<EMPTY>"); in LogBootInfoToStatsd()
1248 auto system_reason = android::base::GetProperty(system_reboot_reason_property, "<EMPTY>"); in LogBootInfoToStatsd()
1257 android::base::GetProperty(bootloader_reboot_reason_property, ""); in SetSystemBootReason()
[all …]
/system/nfc/src/adaptation/
Dnfc_config.cc53 android::base::GetProperty("persist.nfc_cfg.config_file_name", "")); in findConfigPath()
59 android::base::GetProperty("ro.boot.product.hardware.sku", "") + ".conf"); in findConfigPath()

12345