Home
last modified time | relevance | path

Searched refs:GetVar (Results 1 – 8 of 8) sorted by relevance

/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp101 fb->GetVar("is-userspace", &value); in UserSpaceFastboot()
148 fb->GetVar("current-slot", &initial_slot); in SetUp()
256 EXPECT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
267 ASSERT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
296 if (fb->GetVar("product", &tmp) != SUCCESS) { in TearDown()
301 if (fb->GetVar("product", &tmp) != SUCCESS) { in TearDown()
326 ASSERT_EQ(fb->GetVar("slot-count", &var), SUCCESS) << "Getting slot count failed"; in SetUp()
330 ASSERT_EQ(fb->GetVar("partition-size:" + real_parts.front(), &var), SUCCESS) in SetUp()
335 ASSERT_EQ(fb->GetVar("max-download-size", &var), SUCCESS) << "Getting max download size failed"; in SetUp()
Dmain.cpp70 std::vector<std::pair<std::string, extension::Configuration::GetVar>> GETVAR_XML_TESTS;
188 if (fb->GetVar("partition-type:super", &partition_type) == SUCCESS) { in TEST_F()
190 EXPECT_EQ(fb->GetVar("is-logical:super", &is_logical), SUCCESS) in TEST_F()
194 EXPECT_EQ(fb->GetVar("super-partition-name", &super_name), SUCCESS) in TEST_F()
205 EXPECT_EQ(fb->GetVar("has-slot:system", &has_slot), SUCCESS) << "getvar has-slot:system failed"; in TEST_F()
211 ASSERT_EQ(fb->GetVar("current-slot", &current_slot), SUCCESS) in TEST_F()
219 EXPECT_EQ(fb->GetVar(is_logical_cmd_system, &is_logical), SUCCESS) in TEST_F()
222 EXPECT_EQ(fb->GetVar(is_logical_cmd_vendor, &is_logical), SUCCESS) in TEST_F()
225 EXPECT_EQ(fb->GetVar(is_logical_cmd_boot, &is_logical), SUCCESS) in TEST_F()
245 EXPECT_EQ(fb->GetVar("slot-count", &slot_count), SUCCESS) << "getvar slot-count failed"; in TEST_F()
[all …]
Dextensions.h54 struct GetVar { struct
60 friend ::std::ostream& operator<<(::std::ostream& os, const GetVar& self) {
120 std::unordered_map<std::string, GetVar> getvars;
Dfixtures.h103 std::pair<std::string, extension::Configuration::GetVar>> {};
Dextensions.cpp205 Configuration::GetVar getvar{reg, MakeRegex(reg, var->GetLineNum()), var->GetLineNum()}; in ExtractGetVars()
/system/core/fastboot/
Dfastboot.cpp705 if (fb->GetVar(var, &var_value) != fastboot::SUCCESS) { in CheckRequirement()
786 if (fb->GetVar("has-slot:" + partition_name, &has_slot) != fastboot::SUCCESS || in HandlePartitionExists()
805 if (fb->GetVar("product", &cur_product) != fastboot::SUCCESS) { in CheckRequirements()
842 if (fb->GetVar(var, &value) != fastboot::SUCCESS) { in DisplayVarOrError()
881 if (fb->GetVar(var_name, &value_str) != fastboot::SUCCESS || value_str.empty()) { in get_uint_var()
1024 return fb->GetVar("partition-type:vbmeta", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition()
1025 fb->GetVar("partition-type:vbmeta_a", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition()
1026 fb->GetVar("partition-type:vbmeta_b", &partition_type) == fastboot::SUCCESS; in has_vbmeta_partition()
1031 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical()
1045 if (fb->GetVar("partition-size:" + partition, &partition_size_str) != fastboot::SUCCESS) { in get_partition_size()
[all …]
Dfastboot_driver.h97 RetCode GetVar(const std::string& key, std::string* val,
Dfastboot_driver.cpp99 RetCode FastBootDriver::GetVar(const std::string& key, std::string* val, in GetVar() function in fastboot::FastBootDriver
106 return GetVar("all", &tmp, response); in GetVarAll()