Home
last modified time | relevance | path

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

12

/system/update_engine/common/
Dprefs_unittest.cc98 TEST_F(PrefsTest, SetString) { in TEST_F() argument
100 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
108 EXPECT_FALSE(prefs_.SetString(kKeyWithDots, "some value")); in TEST_F()
116 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
124 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F()
129 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F()
294 prefs_.SetString(kKey, "value"); in TEST_F()
312 prefs_.SetString(kKey, "value"); in TEST_F()
324 EXPECT_TRUE(prefs_.SetString(kKey, "value")); in TEST_F()
326 EXPECT_TRUE(prefs_.SetString(kKey, "other value")); in TEST_F()
[all …]
Dprefs.cc36 bool PrefsBase::SetString(const string& key, const string& value) { in SetString() function in chromeos_update_engine::PrefsBase
57 return SetString(key, base::Int64ToString(value)); in SetInt64()
77 return SetString(key, value ? "true" : "false"); in SetBoolean()
Dmock_prefs.h33 MOCK_METHOD2(SetString,
Dprefs_interface.h54 virtual bool SetString(const std::string& key, const std::string& value) = 0;
Dfake_prefs.h43 bool SetString(const std::string& key, const std::string& value) override;
Dprefs.h64 bool SetString(const std::string& key, const std::string& value) override;
Dfake_prefs.cc68 bool FakePrefs::SetString(const string& key, const string& value) { in SetString() function in chromeos_update_engine::FakePrefs
/system/update_engine/
Dupdate_attempter_android_unittest.cc75 prefs_.SetString(kPrefsPreviousVersion, build_version); in TEST_F()
76 prefs_.SetString(kPrefsBootId, "oldboot"); in TEST_F()
97 prefs_.SetString(kPrefsPreviousVersion, "00001"); // Set the fake version in TEST_F()
123 prefs_.SetString(kPrefsPreviousVersion, "56789"); in TEST_F()
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()
Dupdate_attempter_android.cc202 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) { in ApplyPayload()
662 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
767 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
768 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdatePrefsAndReportUpdateMetricsOnReboot()
784 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
794 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
795 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdatePrefsAndReportUpdateMetricsOnReboot()
Domaha_response_handler_action.cc119 !system_state_->prefs()->SetString(kPrefsUpdateCheckResponseHash, in PerformAction()
138 system_state_->prefs()->SetString(current_channel_key, in PerformAction()
Dcommon_service.cc219 if (!prefs->SetString(kPrefsOmahaCohortHint, in_cohort_hint)) { in SetCohortHint()
325 !prefs->SetString(kPrefsUpdateOverCellularTargetVersion, in SetUpdateOverCellularTarget()
Dimage_properties_chromeos.cc144 lsb_release.SetString(kLsbReleaseUpdateChannelKey, properties.target_channel); in StoreMutableImageProperties()
Dreal_system_state.cc133 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Dcommon_service_unittest.cc181 fake_prefs.SetString(kPrefsOmahaEolStatus, "security-only"); in TEST_F()
Domaha_request_action_unittest.cc997 fake_prefs_.SetString(kPrefsUpdateOverCellularTargetVersion, diff_version); in TEST_F()
1035 fake_prefs_.SetString(kPrefsUpdateOverCellularTargetVersion, new_version); in TEST_F()
1444 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
1445 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortHint, "old_hint")); in TEST_F()
1446 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortName, "old_name")); in TEST_F()
1474 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
1767 fake_prefs_.SetString(kPrefsOmahaCohort, "evil\nstring"); in TEST_F()
1768 fake_prefs_.SetString(kPrefsOmahaCohortHint, "evil&string\\"); in TEST_F()
1769 fake_prefs_.SetString( in TEST_F()
1847 EXPECT_CALL(prefs, SetString(kPrefsPreviousVersion, _)).Times(0); in TEST_F()
[all …]
Dpayload_state.cc865 prefs_->SetString(kPrefsCurrentResponseSignature, response_signature_); in SetResponseSignature()
1131 powerwash_safe_prefs_->SetString(kPrefsRollbackVersion, rollback_version); in SetRollbackVersion()
1328 prefs_->SetString(kPrefsTargetVersionUniqueId, target_version_uid); in ExpectRebootInNewVersion()
/system/update_engine/update_manager/
Devaluation_context.cc232 variables->SetString(it.first->GetName(), it.second.ToString()); in DumpContext()
237 value.SetString( in DumpContext()
240 value.SetString( in DumpContext()
/system/update_engine/payload_generator/
Dfake_filesystem.cc54 store->SetString("PAYLOAD_MINOR_VERSION", std::to_string(minor_version_)); in LoadSettings()
Dpayload_signer.cc448 properties->SetString(kPayloadPropertyFileSize, std::to_string(file_size)); in ExtractPayloadProperties()
449 properties->SetString(kPayloadPropertyMetadataSize, in ExtractPayloadProperties()
461 properties->SetString(kPayloadPropertyFileHash, in ExtractPayloadProperties()
463 properties->SetString(kPayloadPropertyMetadataHash, in ExtractPayloadProperties()
/system/testing/gtest_extras/
DOptions.cpp49 {"gtest_filter", {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetString}},
61 {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE | FLAG_CHILD, &Options::SetString}},
152 bool Options::SetString(const std::string& arg, const std::string& value, bool) { in SetString() function in android::gtest_extras::Options
DOptions.h84 bool SetString(const std::string&, const std::string&, bool);
/system/update_engine/payload_consumer/
Ddelta_performer.cc1598 !prefs_->SetString(kPrefsUpdateStateSignatureBlob, in ExtractSignatureMessage()
1898 prefs->SetString(kPrefsUpdateStateSHA256Context, ""); in ResetUpdateProgress()
1899 prefs->SetString(kPrefsUpdateStateSignedSHA256Context, ""); in ResetUpdateProgress()
1900 prefs->SetString(kPrefsUpdateStateSignatureBlob, ""); in ResetUpdateProgress()
1923 TEST_AND_RETURN_FALSE(prefs_->SetString( in CheckpointUpdateProgress()
1926 prefs_->SetString(kPrefsUpdateStateSignedSHA256Context, in CheckpointUpdateProgress()
/system/core/libcutils/
Dproperties_test.cpp96 TEST_F(PropertiesTest, SetString) { in TEST_F() argument

12