/system/core/init/ |
D | property_service_test.cpp | 29 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.boot.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 …]
|
D | oneshot_on_test.cpp | 23 using android::base::GetProperty; 35 ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", "")); in TEST()
|
D | property_service.cpp | 79 using android::base::GetProperty; 771 std::string config = android::base::GetProperty("persist.sys.usb.config", ""); in update_sys_usb_config() 811 GetProperty("ro.product.property_source_order", EMPTY); in property_initialize_ro_product_props() 839 std::string base_prop_val = GetProperty(base_prop, EMPTY); in property_initialize_ro_product_props() 850 std::string target_prop_val = GetProperty(target_prop, EMPTY); in property_initialize_ro_product_props() 867 std::string build_id = GetProperty(ID_PROP, ""); in property_initialize_build_id() 872 std::string legacy_build_id = GetProperty(LEGACY_ID_PROP, ""); in property_initialize_build_id() 873 std::string vbmeta_digest = GetProperty(VBMETA_DIGEST_PROP, ""); in property_initialize_build_id() 892 std::string build_fingerprint = GetProperty("ro.product.brand", UNKNOWN); in ConstructBuildFingerprint() 894 build_fingerprint += GetProperty("ro.product.name", UNKNOWN); in ConstructBuildFingerprint() [all …]
|
/system/server_configurable_flags/libflags/ |
D | server_configurable_flags_test.cc | 76 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/bt/gd/storage/ |
D | config_cache_helper_test.cc | 37 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("true"))); in TEST() 41 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("false"))); in TEST() 49 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST() 55 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int>::… in TEST() 59 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST() 67 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST() 74 …config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<uint32_t>::max()) … in TEST() 78 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST() 88 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int32_… in TEST() 93 …config.GetProperty("A", "B"), Optional(StrEq("-" + std::to_string(std::numeric_limits<int32_t>::ma… in TEST() [all …]
|
D | config_cache_test.cc | 45 auto value = config.GetProperty("A", "B"); in TEST() 56 auto value = config.GetProperty("A", "B"); in TEST() 67 ASSERT_TRUE(config.GetProperty("CC:DD:EE:FF:00:10", "Name")); in TEST() 83 ASSERT_TRUE(config_2.GetProperty("CC:DD:EE:FF:00:10", "Name")); in TEST() 85 ASSERT_TRUE(config_1.GetProperty("CC:DD:EE:FF:00:10", "Name")); in TEST() 115 auto value = config.GetProperty("A", "B"); in TEST() 124 auto value = config.GetProperty("A", "B"); in TEST() 127 value = config.GetProperty("AA:BB:CC:DD:EE:FF", "B"); in TEST() 130 ASSERT_FALSE(config.GetProperty("A", "BC")); in TEST() 131 ASSERT_FALSE(config.GetProperty("ABC", "B")); in TEST() [all …]
|
D | legacy_config_file_test.cc | 54 EXPECT_THAT(config_read->GetProperty("A", "B"), Optional(StrEq("C"))); in TEST() 55 …EXPECT_THAT(config_read->GetProperty("CC:DD:EE:FF:00:11", "LinkKey"), Optional(StrEq("AABBAABBCCDD… in TEST() 89 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST() 90 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST() 92 …config_read->GetProperty("01:02:03:ab:cd:ea", "LinkKey"), Optional(StrEq("fedcba0987654321fedcba09… in TEST() 178 …EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), Optional(StrE… in TEST() 180 EXPECT_THAT(config_read->GetProperty("DID", "primaryRecord"), Optional(StrEq("true"))); in TEST() 182 EXPECT_THAT(config_read->GetProperty("DID", "version"), Optional(StrEq("0x1436"))); in TEST()
|
D | config_cache_helper.cc | 30 auto value_str = config_cache_.GetProperty(section, property); in GetBool() 48 auto value_str = config_cache_.GetProperty(section, property); in GetUint64() 60 auto value_str = config_cache_.GetProperty(section, property); in GetUint32() 79 auto value_str = config_cache_.GetProperty(section, property); in GetInt64() 91 auto value_str = config_cache_.GetProperty(section, property); in GetInt() 112 auto value_str = config_cache_.GetProperty(section, property); in GetBin()
|
D | storage_module_test.cc | 151 …config->GetProperty(StorageModule::kInfoSection, StorageModule::kFileSourceProperty), Optional(Str… in TEST_F() 154 …auto timestamp = config->GetProperty(StorageModule::kInfoSection, StorageModule::kTimeCreatedPrope… in TEST_F() 221 storage->GetConfigCachePublic()->GetProperty(StorageModule::kAdapterSection, "Address"), in TEST_F() 250 …storage->GetConfigCachePublic()->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(StrEq("hello w… in TEST_F() 252 …ASSERT_THAT(storage->GetConfigCachePublic()->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(St… in TEST_F() 256 ASSERT_THAT(config->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(StrEq("foo"))); in TEST_F()
|
/system/core/init/test_kill_services/ |
D | init_kill_services_test.cpp | 23 using ::android::base::GetProperty; 30 const std::string initial_pid = GetProperty(pid_prop, ""); in ExpectKillingServiceRecovers() 32 EXPECT_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/ |
D | apexd_lifecycle.cpp | 26 using android::base::GetProperty; 34 auto status = GetProperty(kApexStatusSysprop, ""); in IsBooting() 49 auto name = GetProperty("sys.init.updatable_crashing_process_name", ""); in WaitForBootStatus()
|
/system/core/usbd/ |
D | usbd.cpp | 27 using android::base::GetProperty; 35 if (GetProperty("ro.bootmode", "") == "charger") exit(0); in main() 43 std::string function = GetProperty("persist.sys.usb.config", ""); in main()
|
/system/extras/profcollectd/libprofcollectd/bindings/libbase/ |
D | lib.rs | 19 pub use ffi::{GetProperty, SetProperty}; 29 fn GetProperty(key: &str, default_value: &str) -> String; in GetProperty() function
|
D | properties.cpp | 20 rust::String GetProperty(rust::Str key, rust::Str default_value) { in GetProperty() function 21 return android::base::GetProperty(std::string(key), std::string(default_value)); in GetProperty()
|
D | properties.hpp | 21 rust::String GetProperty(rust::Str, rust::Str);
|
/system/core/fastboot/device/ |
D | variables.cpp | 61 *message = android::base::GetProperty("ro.bootloader", ""); in GetBootloaderVersion() 67 *message = android::base::GetProperty("ro.build.expect.baseband", ""); in GetBasebandVersion() 73 *message = android::base::GetProperty("ro.build.version.release", ""); in GetOsVersion() 79 *message = android::base::GetProperty("ro.vndk.version", ""); in GetVndkVersion() 85 *message = android::base::GetProperty("ro.product.device", ""); in GetProduct() 91 *message = android::base::GetProperty("ro.serialno", ""); in GetSerial() 438 *message = android::base::GetProperty("ro.revision", ""); in GetHardwareRevision() 476 *message = android::base::GetProperty("ro.product.cpu.abi", ""); in GetCpuAbi() 482 *message = android::base::GetProperty("ro.system.build.fingerprint", ""); in GetSystemFingerprint() 484 *message = android::base::GetProperty("ro.build.fingerprint", ""); in GetSystemFingerprint() [all …]
|
/system/update_engine/aosp/ |
D | hardware_android.cc | 46 using android::base::GetProperty; 62 return android::base::GetProperty("ro." + partition_name + ".build.date.utc", in GetPartitionBuildDate() 173 auto manufacturer = GetProperty(kPropProductManufacturer, ""); in GetHardwareClass() 174 auto sku = GetProperty(kPropBootHardwareSKU, ""); in GetHardwareClass() 175 auto revision = GetProperty(kPropBootRevision, ""); in GetHardwareClass() 289 if (android::base::GetProperty("ro.boot.avb_version", "").empty() && in SetVbmetaDigestForInactiveSlot() 290 android::base::GetProperty("ro.boot.vbmeta.avb_version", "").empty()) { in SetVbmetaDigestForInactiveSlot()
|
/system/bt/test/suite/adapter/ |
D | adapter_unittest.cc | 80 bt_property_t* name_property = GetProperty(BT_PROPERTY_BDNAME); in TEST_F() 93 EXPECT_TRUE(GetProperty(BT_PROPERTY_BDNAME)) in TEST_F() 95 EXPECT_TRUE(property_equals(GetProperty(BT_PROPERTY_BDNAME), new_name)) in TEST_F() 97 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F() 105 property_equals(GetProperty(BT_PROPERTY_BDNAME), old_name_property)) in TEST_F() 107 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
|
/system/libbase/ |
D | properties_test.cpp | 35 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()
|
/system/iorap/src/common/ |
D | property.h | 31 ::android::base::GetProperty("iorapd.perfetto.enable", default_value)) == "true"; in IsTracingEnabled() 38 ::android::base::GetProperty("iorapd.readahead.enable", default_value)) == "true"; in IsReadAheadEnabled()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | property_fetcher.h | 27 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;
|
D | mock_property_fetcher.h | 29 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/ |
D | property_fetcher.cpp | 26 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/core/toolbox/ |
D | start.cpp | 26 using android::base::GetProperty; 47 std::string zygote_configuration = GetProperty("ro.zygote", ""); in ControlDefaultServices()
|
/system/tools/sysprop/tests/ |
D | CppGenIntegrationTest.cpp | 31 EXPECT_EQ(expected_raw_value, android::base::GetProperty(prop_name, "")); \ 41 EXPECT_EQ(expected_raw_value, android::base::GetProperty(prop_name, "")); \
|