Home
last modified time | relevance | path

Searched refs:SetString (Results 1 – 25 of 28) sorted by relevance

12

/system/update_engine/payload_generator/
Dpayload_properties.cc65 properties.SetString(kPayloadPropertyJsonMetadataSizeStr, in GetPropertiesAsJson()
67 properties.SetString(kPayloadPropertyJsonMetadataSignature, in GetPropertiesAsJson()
70 properties.SetString(kPayloadPropertyJsonPayloadSizeStr, in GetPropertiesAsJson()
72 properties.SetString(kPayloadPropertyJsonPayloadHash, payload_hash_); in GetPropertiesAsJson()
82 properties.SetString(kPayloadPropertyFileSize, std::to_string(payload_size_)); in GetPropertiesAsKeyValue()
83 properties.SetString(kPayloadPropertyMetadataSize, in GetPropertiesAsKeyValue()
85 properties.SetString(kPayloadPropertyFileHash, payload_hash_); in GetPropertiesAsKeyValue()
86 properties.SetString(kPayloadPropertyMetadataHash, metadata_hash_); in GetPropertiesAsKeyValue()
/system/update_engine/common/
Dprefs_unittest.cc64 EXPECT_TRUE(common_prefs_->SetString(key0, "")); in MultiNamespaceKeyTest()
65 EXPECT_TRUE(common_prefs_->SetString(key0corner, "")); in MultiNamespaceKeyTest()
66 EXPECT_TRUE(common_prefs_->SetString(key1A, "")); in MultiNamespaceKeyTest()
67 EXPECT_TRUE(common_prefs_->SetString(key1B, "")); in MultiNamespaceKeyTest()
68 EXPECT_TRUE(common_prefs_->SetString(key2, "")); in MultiNamespaceKeyTest()
69 EXPECT_TRUE(common_prefs_->SetString(key2corner, "")); in MultiNamespaceKeyTest()
125 EXPECT_TRUE(common_prefs_->SetString(key1A, "fp_1A")); in MultiNamespaceKeyTest()
127 EXPECT_TRUE(common_prefs_->SetString(key1B, "fp_1B")); in MultiNamespaceKeyTest()
129 EXPECT_TRUE(common_prefs_->SetString(key2A, "fp_A2")); in MultiNamespaceKeyTest()
236 TEST_F(PrefsTest, SetString) { in TEST_F() argument
[all …]
Dmock_prefs.h33 MOCK_METHOD2(SetString, bool(std::string_view key, std::string_view value));
Dprefs_interface.h55 virtual bool SetString(std::string_view key, std::string_view value) = 0;
Dprefs.cc61 bool PrefsBase::SetString(std::string_view key, std::string_view value) { in SetString() function in chromeos_update_engine::PrefsBase
91 return SetString(key, base::NumberToString(value)); in SetInt64()
111 return SetString(key, value ? "true" : "false"); in SetBoolean()
Dfake_prefs.h45 bool SetString(std::string_view key, std::string_view value) override;
Dprefs.h82 bool SetString(std::string_view key, std::string_view value) override;
/system/update_engine/
Dupdate_status_utils.cc100 key_value_store.SetString(kLastCheckedTime, in UpdateEngineStatusToString()
102 key_value_store.SetString(kProgress, base::NumberToString(status.progress)); in UpdateEngineStatusToString()
103 key_value_store.SetString(kNewSize, in UpdateEngineStatusToString()
105 key_value_store.SetString(kCurrentOp, UpdateStatusToString(status.status)); in UpdateEngineStatusToString()
106 key_value_store.SetString(kNewVersion, status.new_version); in UpdateEngineStatusToString()
Dcertificate_checker_unittest.cc83 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
100 EXPECT_CALL(prefs_, SetString(_, _)).Times(0); in TEST_F()
120 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
Dcertificate_checker.cc170 if (!prefs_->SetString(storage_key, digest_string)) { in CheckCertificateChange()
181 if (!prefs_->SetString(storage_key, digest_string)) { in CheckCertificateChange()
Dmetrics_utils.h139 prefs_->SetString(key_, value);
/system/update_engine/aosp/
Dupdate_attempter_android_unittest.cc100 prefs_.SetString(kPrefsPreviousVersion, build_version); in TEST_F()
101 prefs_.SetString(kPrefsBootId, "oldboot"); in TEST_F()
124 prefs_.SetString(kPrefsPreviousVersion, "00001"); // Set the fake version in TEST_F()
151 prefs_.SetString(kPrefsPreviousVersion, "56789"); in TEST_F()
Dupdate_attempter_android.cc305 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) { in ApplyPayload()
940 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id)); in WriteUpdateCompletedMarker()
1112 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdateStateAfterReboot()
1122 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdateStateAfterReboot()
1152 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdateStateAfterReboot()
/system/testing/gtest_extras/gtest_isolated/
DOptions.cpp52 {"gtest_filter", {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetString}},
53 {"gtest_flagfile", {FLAG_REQUIRES_VALUE, &Options::SetString}},
65 {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE | FLAG_CHILD, &Options::SetString}},
154 bool Options::SetString(const std::string& arg, const std::string& value, bool) { in SetString() function in android::gtest_extras::Options
DOptions.h88 bool SetString(const std::string&, const std::string&, bool);
/system/update_engine/payload_consumer/
Ddelta_performer.cc584 prefs_->SetString(kPrefsManifestBytes, {begin, buffer_.size()}); in ParseManifest()
925 TEST_AND_RETURN_FALSE(prefs->SetString(kPrefsDynamicPartitionMetadataUpdated, in PreparePartitionsForUpdate()
1461 prefs->SetString(kPrefsUpdateStateSHA256Context, ""); in ResetUpdateProgress()
1462 prefs->SetString(kPrefsUpdateStateSignedSHA256Context, ""); in ResetUpdateProgress()
1463 prefs->SetString(kPrefsUpdateStateSignatureBlob, ""); in ResetUpdateProgress()
1508 !prefs_->SetString(kPrefsUpdateStateSignatureBlob, in CheckpointUpdateProgress()
1512 TEST_AND_RETURN_FALSE(prefs_->SetString( in CheckpointUpdateProgress()
1515 prefs_->SetString(kPrefsUpdateStateSignedSHA256Context, in CheckpointUpdateProgress()
Ddelta_performer_integration_test.cc730 EXPECT_CALL(prefs, SetString(_, IsEmpty())).WillRepeatedly(Return(true)); in ApplyDeltaFile()
748 EXPECT_CALL(prefs, SetString(kPrefsUpdateStateSHA256Context, _)) in ApplyDeltaFile()
750 EXPECT_CALL(prefs, SetString(kPrefsUpdateStateSignedSHA256Context, _)) in ApplyDeltaFile()
752 EXPECT_CALL(prefs, SetString(kPrefsDynamicPartitionMetadataUpdated, _)) in ApplyDeltaFile()
755 SetString(kPrefsManifestBytes, in ApplyDeltaFile()
761 SetString(kPrefsUpdateStateSignatureBlob, Not(IsEmpty()))) in ApplyDeltaFile()
/system/sepolicy/build/soong/
Dbug_map.go84 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", b.stem())
Dsepolicy_vers.go101 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", v.stem())
Dvalidate_bindings.go105 entries.SetString("LOCAL_ADDITIONAL_DEPENDENCIES", m.testTimestamp.String())
Dcompat_cil.go111 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", c.stem())
254 entries.SetString("LOCAL_ADDITIONAL_DEPENDENCIES", f.compatTestTimestamp.String())
Dpolicy.go308 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", c.stem())
464 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", c.stem())
604 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", c.stem())
Dsepolicy_freeze.go168 entries.SetString("LOCAL_ADDITIONAL_DEPENDENCIES", f.freezeTestTimestamp.String())
Dversioned_policy.go177 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", m.installSource.Base())
Dcil_compat_map.go174 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", String(c.properties.Stem))

12