Home
last modified time | relevance | path

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

12

/system/bt/btif/test/
Dbtif_config_cache_test.cc61 test_btif_config_cache.SetString(kBtInfo, "FileSource", ""); in TEST()
62 test_btif_config_cache.SetString(kBtInfo, "TimeCreated", in TEST()
65 test_btif_config_cache.SetString(kBtMetrics, "Salt256Bit", in TEST()
68 test_btif_config_cache.SetString(kBtAdapter, "Address", kBtLocalAddr); in TEST()
72 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
79 test_btif_config_cache.SetString(kBtAddr2, "Name", "Headset_2"); in TEST()
83 test_btif_config_cache.SetString(kBtAddr3, "Name", "Headset_3"); in TEST()
87 test_btif_config_cache.SetString(kBtAddr4, "Name", "Headset_4"); in TEST()
105 test_btif_config_cache.SetString(kBtAddrInvalid1, "Name", "Headset_1"); in TEST()
109 test_btif_config_cache.SetString(kBtAddrInvalid1, "LinkKey", in TEST()
[all …]
/system/update_engine/payload_generator/
Dpayload_properties.cc63 properties.SetString(kPayloadPropertyJsonMetadataSignature, in GetPropertiesAsJson()
66 properties.SetString(kPayloadPropertyJsonPayloadHash, payload_hash_); in GetPropertiesAsJson()
68 properties.SetString(kPayloadPropertyJsonTargetVersion, target_version_); in GetPropertiesAsJson()
70 properties.SetString(kPayloadPropertyJsonSourceVersion, source_version_); in GetPropertiesAsJson()
80 properties.SetString(kPayloadPropertyFileSize, std::to_string(payload_size_)); in GetPropertiesAsKeyValue()
81 properties.SetString(kPayloadPropertyMetadataSize, in GetPropertiesAsKeyValue()
83 properties.SetString(kPayloadPropertyFileHash, payload_hash_); in GetPropertiesAsKeyValue()
84 properties.SetString(kPayloadPropertyMetadataHash, metadata_hash_); in GetPropertiesAsKeyValue()
Dfake_filesystem.cc54 store->SetString("PAYLOAD_MINOR_VERSION", std::to_string(minor_version_)); in LoadSettings()
/system/update_engine/
Dupdate_status_utils.cc80 key_value_store.SetString(kLastCheckedTime, in UpdateEngineStatusToString()
82 key_value_store.SetString(kProgress, base::NumberToString(status.progress)); in UpdateEngineStatusToString()
83 key_value_store.SetString(kNewSize, in UpdateEngineStatusToString()
85 key_value_store.SetString(kCurrentOp, UpdateStatusToString(status.status)); in UpdateEngineStatusToString()
86 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()
Dupdate_attempter_android_unittest.cc81 prefs_.SetString(kPrefsPreviousVersion, build_version); in TEST_F()
82 prefs_.SetString(kPrefsBootId, "oldboot"); in TEST_F()
103 prefs_.SetString(kPrefsPreviousVersion, "00001"); // Set the fake version in TEST_F()
129 prefs_.SetString(kPrefsPreviousVersion, "56789"); 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()
Dexcluder_chromeos.cc44 return prefs_->SetString(key, ""); in Exclude()
Dupdate_engine_client.cc566 last_attempt_error_store.SetString( in ProcessFlags()
568 last_attempt_error_store.SetString("ERROR_MESSAGE", in ProcessFlags()
582 eol_status_store.SetString("EOL_DATE", EolDateToString(eol_date_code)); in ProcessFlags()
Dupdate_attempter_android.cc237 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) { in ApplyPayload()
766 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
875 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
876 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdatePrefsAndReportUpdateMetricsOnReboot()
892 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
902 prefs_->SetString(kPrefsBootId, current_boot_id); in UpdatePrefsAndReportUpdateMetricsOnReboot()
903 prefs_->SetString(kPrefsPreviousVersion, current_version); in UpdatePrefsAndReportUpdateMetricsOnReboot()
Domaha_response_handler_action.cc125 !system_state_->prefs()->SetString(kPrefsUpdateCheckResponseHash, in PerformAction()
144 system_state_->prefs()->SetString(current_channel_key, in PerformAction()
Dcommon_service.cc225 if (!prefs->SetString(kPrefsOmahaCohortHint, in_cohort_hint)) { in SetCohortHint()
331 !prefs->SetString(kPrefsUpdateOverCellularTargetVersion, in SetUpdateOverCellularTarget()
Domaha_request_action_unittest.cc934 fake_prefs_.SetString(kPrefsUpdateOverCellularTargetVersion, diff_version); in TEST_F()
968 fake_prefs_.SetString(kPrefsUpdateOverCellularTargetVersion, new_version); in TEST_F()
1290 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
1291 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortHint, "old_hint")); in TEST_F()
1292 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortName, "old_name")); in TEST_F()
1314 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
1532 fake_prefs_.SetString(kPrefsOmahaCohort, "evil\nstring"); in TEST_F()
1533 fake_prefs_.SetString(kPrefsOmahaCohortHint, "evil&string\\"); in TEST_F()
1534 fake_prefs_.SetString( in TEST_F()
1595 EXPECT_CALL(prefs, SetString(kPrefsPreviousVersion, _)).Times(0); in TEST_F()
[all …]
Dimage_properties_chromeos.cc144 lsb_release.SetString(kLsbReleaseUpdateChannelKey, properties.target_channel); in StoreMutableImageProperties()
/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()
219 TEST_F(PrefsTest, SetString) { in TEST_F() argument
221 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
229 EXPECT_FALSE(prefs_.SetString(kKeyWithDots, "some value")); in TEST_F()
237 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
[all …]
Dmock_prefs.h34 MOCK_METHOD2(SetString,
Dprefs.cc56 bool PrefsBase::SetString(const string& key, const string& value) { in SetString() function in chromeos_update_engine::PrefsBase
77 return SetString(key, base::NumberToString(value)); in SetInt64()
97 return SetString(key, value ? "true" : "false"); in SetBoolean()
Dprefs_interface.h55 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;
/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/bt/btif/src/
Dbtif_config_cache.cc166 void BtifConfigCache::SetString(std::string section_name, std::string key, in SetString() function in BtifConfigCache
241 SetString(std::move(section_name), std::move(key), std::to_string(value)); in SetInt()
267 SetString(std::move(section_name), std::move(key), std::to_string(value)); in SetUint64()
288 SetString(std::move(section_name), std::move(key), value ? "true" : "false"); in SetBool()
Dbtif_config.cc300 btif_config_cache.SetString(INFO_SECTION, FILE_SOURCE, file_source); in init()
315 btif_config_cache.SetString(INFO_SECTION, FILE_TIMESTAMP, in init()
482 btif_config_cache.SetString(section, key, value); in btif_config_set_str()
546 btif_config_cache.SetString(section, key, ENCRYPTED_STR); in btif_config_get_bin()
550 btif_config_cache.SetString(section, key, *value_str); in btif_config_get_bin()
605 btif_config_cache.SetString(section, key, value_str); in btif_config_set_bin()
/system/testing/gtest_extras/
DOptions.cpp51 {"gtest_filter", {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetString}},
52 {"gtest_flagfile", {FLAG_REQUIRES_VALUE, &Options::SetString}},
64 {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE | FLAG_CHILD, &Options::SetString}},
153 bool Options::SetString(const std::string& arg, const std::string& value, bool) { in SetString() function in android::gtest_extras::Options
DOptions.h86 bool SetString(const std::string&, const std::string&, bool);
/system/bt/btif/include/
Dbtif_config_cache.h44 void SetString(std::string section_name, std::string key, std::string value);

12