Home
last modified time | relevance | path

Searched refs:GetProperty (Results 1 – 25 of 106) 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/bt/gd/storage/
Dconfig_cache_helper_test.cc37 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 …]
Dconfig_cache_test.cc45 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 …]
Dlegacy_config_file_test.cc54 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()
Dconfig_cache_helper.cc30 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()
Dstorage_module_test.cc151 …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/
Dinit_kill_services_test.cpp23 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/update_engine/
Dhardware_android.cc32 using android::base::GetProperty;
109 auto manufacturer = GetProperty(kPropProductManufacturer, ""); in GetHardwareClass()
110 auto sku = GetProperty(kPropBootHardwareSKU, ""); in GetHardwareClass()
111 auto revision = GetProperty(kPropBootRevision, ""); in GetHardwareClass()
117 return GetProperty(kPropBootBootloader, ""); in GetFirmwareVersion()
121 return GetProperty(kPropBootBaseband, ""); in GetECVersion()
Dimage_properties_android.cc37 using android::base::GetProperty;
160 channel = GetProperty(kPropDefaultChannel, "stable-channel"); in GetTargetChannel()
198 result.board = GetProperty(kPropProductName, "brillo"); in LoadImageProperties()
199 result.build_fingerprint = GetProperty(kPropBuildFingerprint, "none"); in LoadImageProperties()
200 result.build_type = GetProperty(kPropBuildType, ""); in LoadImageProperties()
/system/core/usbd/
Dusbd.cpp27 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/core/fastboot/device/
Dvariables.cpp55 *message = android::base::GetProperty("ro.bootloader", ""); in GetBootloaderVersion()
61 *message = android::base::GetProperty("ro.build.expect.baseband", ""); in GetBasebandVersion()
67 *message = android::base::GetProperty("ro.build.version.release", ""); in GetOsVersion()
73 *message = android::base::GetProperty("ro.vndk.version", ""); in GetVndkVersion()
79 *message = android::base::GetProperty("ro.product.device", ""); in GetProduct()
85 *message = android::base::GetProperty("ro.serialno", ""); in GetSerial()
432 *message = android::base::GetProperty("ro.revision", ""); in GetHardwareRevision()
470 *message = android::base::GetProperty("ro.product.cpu.abi", ""); in GetCpuAbi()
476 *message = android::base::GetProperty("ro.system.build.fingerprint", ""); in GetSystemFingerprint()
478 *message = android::base::GetProperty("ro.build.fingerprint", ""); in GetSystemFingerprint()
[all …]
/system/core/libstats/push_compat/tests/
DStatsEventCompat_test.cpp22 using android::base::GetProperty;
32 const static bool mPlatformAtLeastR = GetProperty("ro.build.version.release", "") == "R" ||
/system/bt/test/suite/adapter/
Dadapter_unittest.cc79 bt_property_t* name_property = GetProperty(BT_PROPERTY_BDNAME); in TEST_F()
92 EXPECT_TRUE(GetProperty(BT_PROPERTY_BDNAME)) in TEST_F()
94 EXPECT_TRUE(property_equals(GetProperty(BT_PROPERTY_BDNAME), new_name)) in TEST_F()
96 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
104 property_equals(GetProperty(BT_PROPERTY_BDNAME), old_name_property)) in TEST_F()
106 << property_as_name(GetProperty(BT_PROPERTY_BDNAME))->name in TEST_F()
/system/core/init/
Doneshot_on_test.cpp23 using android::base::GetProperty;
35 ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", "")); in TEST()
Dproperty_service_test.cpp28 using android::base::GetProperty;
84 const std::string original_value = GetProperty("init.userspace_reboot.is_supported", ""); in TEST()
/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()
/system/apex/apexd/
Dapexd_prop.cpp27 using android::base::GetProperty;
44 auto name = GetProperty("sys.init.updatable_crashing_process_name", ""); in waitForBootStatus()
/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/core/adb/daemon/
Dmain.cpp83 std::string prop = android::base::GetProperty("service.adb.root", ""); in should_drop_privileges()
207 bool device_unlocked = "orange" == android::base::GetProperty("ro.boot.verifiedbootstate", ""); in adbd_main()
244 std::string prop_addr = android::base::GetProperty("service.adb.listen_addrs", ""); in adbd_main()
246 std::string prop_port = android::base::GetProperty("service.adb.tcp.port", ""); in adbd_main()
248 prop_port = android::base::GetProperty("persist.adb.tcp.port", ""); in adbd_main()
Dmdns.cpp41 if (android::base::GetProperty("init.svc.mdnsd", "") == "running") { in start_mdnsd()
123 hostname += android::base::GetProperty("ro.serialno", "unidentified"); in register_base_mdns_transport()
167 std::string serial = android::base::GetProperty("ro.serialno", ""); in GenerateDeviceGuid()
179 std::string guid = android::base::GetProperty("persist.adb.wifi.guid", ""); in ReadDeviceGuid()
/system/extras/profcollectd/libprofcollectd/
Dscheduler.cpp48 using ::android::base::GetProperty;
114 config.buildFingerprint = GetProperty("ro.build.fingerprint", "unknown"); in ReadConfig()
120 config.traceOutputDir = GetProperty("profcollectd.trace_output_dir", in ReadConfig()
123 GetProperty("profcollectd.output_dir", std::get<const char*>(CONFIG_PROFILE_OUTDIR.second)); in ReadConfig()
125 GetProperty("profcollectd.binary_filter", std::get<const char*>(CONFIG_BINARY_FILTER.second)); in ReadConfig()
/system/core/toolbox/
Dstart.cpp26 using android::base::GetProperty;
47 std::string zygote_configuration = GetProperty("ro.zygote", ""); in ControlDefaultServices()
/system/core/set-verity-state/
Dset-verity-state.cpp124 return android::base::GetProperty("ro.boot.slot_suffix", ""); in get_ab_suffix()
128 return android::base::GetProperty("ro.boot.vbmeta.device_state", "") == "locked"; in is_avb_device_locked()
212 bool using_avb = !android::base::GetProperty("ro.boot.vbmeta.digest", "").empty(); in main()

12345