Home
last modified time | relevance | path

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

/system/update_engine/cros/
Dpayload_state_unittest.cc119 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
120 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST_F()
122 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST_F()
124 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST_F()
125 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST_F()
126 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST_F()
128 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST_F()
130 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST_F()
132 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST_F()
134 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST_F()
[all …]
Dpayload_state.cc914 prefs_->SetInt64(kPrefsFullPayloadAttemptNumber, in SetFullPayloadAttemptNumber()
921 prefs_->SetInt64(kPrefsUpdateStatePayloadIndex, payload_index_); in SetPayloadIndex()
941 prefs_->SetInt64(kPrefsCurrentUrlIndex, url_index_); in SetUrlIndex()
958 prefs_->SetInt64(kPrefsWallClockScatteringWaitPeriod, in SetScatteringWaitPeriod()
974 prefs_->SetInt64(kPrefsWallClockStagingWaitPeriod, in SetStagingWaitPeriod()
988 prefs_->SetInt64(kPrefsUrlSwitchCount, url_switch_count_); in SetUrlSwitchCount()
999 prefs_->SetInt64(kPrefsCurrentUrlFailureCount, url_failure_count_); in SetUrlFailureCount()
1024 prefs_->SetInt64(kPrefsBackoffExpiryTime, in SetBackoffExpiryTime()
1151 prefs_->SetInt64(kPrefsUpdateDurationUptime, in SetUpdateDurationUptimeExtended()
1194 prefs_->SetInt64(prefs_key, current_bytes_downloaded); in SetCurrentBytesDownloaded()
[all …]
Domaha_request_action_unittest.cc933 fake_prefs_->SetInt64(kPrefsUpdateOverCellularTargetSize, diff_size); in TEST_F()
967 fake_prefs_->SetInt64(kPrefsUpdateOverCellularTargetSize, new_size); in TEST_F()
1210 ASSERT_TRUE(fake_prefs_->SetInt64(kPrefsUpdateCheckCount, 5)); in TEST_F()
1232 ASSERT_TRUE(fake_prefs_->SetInt64(kPrefsUpdateCheckCount, 5)); in TEST_F()
1247 ASSERT_TRUE(fake_prefs_->SetInt64(kPrefsWallClockStagingWaitPeriod, 6)); in TEST_F()
1924 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in PingTest()
1968 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
1993 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
2019 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F()
2030 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)) in TEST_F()
[all …]
Dupdate_attempter_unittest.cc654 prefs_->SetInt64(kPrefsDeltaUpdateFailures, in TEST_F()
658 prefs_->SetInt64(kPrefsDeltaUpdateFailures, in TEST_F()
669 EXPECT_TRUE(prefs_->SetInt64(kPrefsDeltaUpdateFailures, -1)); in TEST_F()
679 EXPECT_TRUE(prefs_->SetInt64(kPrefsDeltaUpdateFailures, in TEST_F()
1103 EXPECT_TRUE(fake_prefs->SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart()
1133 EXPECT_TRUE(fake_prefs->SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart()
1159 fake_prefs->SetInt64(kPrefsWallClockScatteringWaitPeriod, initial_value)); in NoScatteringDoneDuringManualUpdateTestStart()
1160 EXPECT_TRUE(fake_prefs->SetInt64(kPrefsUpdateCheckCount, initial_value)); in NoScatteringDoneDuringManualUpdateTestStart()
1197 prefs_->SetInt64(kPrefsWallClockScatteringWaitPeriod, initial_value)); in SetUpStagingTest()
1198 EXPECT_TRUE(prefs_->SetInt64(kPrefsUpdateCheckCount, initial_value)); in SetUpStagingTest()
[all …]
Dupdate_attempter.cc245 SystemState::Get()->prefs()->SetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics()
600 prefs_->SetInt64(kPrefsWallClockStagingWaitPeriod, in CalculateStagingParams()
659 if (!prefs_->SetInt64(ping_active_key, kPingActiveValue)) { in SetDlcActiveValue()
1019 prefs_->SetInt64(kPrefsUpdateCompletedBootTime, value); in WriteUpdateCompletedMarker()
1128 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); in ProcessingDoneInternal()
1616 prefs_->SetInt64(kPrefsDeltaUpdateFailures, ++delta_failures); in MarkDeltaUpdateFailure()
1686 if (prefs_->SetInt64(kPrefsUpdateCheckCount, update_check_count_value)) { in DecrementUpdateCheckCount()
Domaha_request_action.cc487 if (!prefs->SetInt64(active_key, kPingInactiveValue)) in StorePingReply()
589 prefs->SetInt64(kPrefsLastActivePingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
590 prefs->SetInt64(kPrefsLastRollCallPingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
1362 if (!SystemState::Get()->prefs()->SetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1419 if (!prefs->SetInt64(kPrefsInstallDateDays, install_date_days)) in PersistInstallDate()
1767 if (SystemState::Get()->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
Dcommon_service.cc324 !prefs->SetInt64(kPrefsUpdateOverCellularTargetSize, target_size)) { in SetUpdateOverCellularTarget()
Dmetrics_reporter_omaha.cc571 if (!SystemState::Get()->prefs()->SetInt64(state_variable_key, in WallclockDurationHelper()
/system/update_engine/aosp/
Dupdate_attempter_android_unittest.cc84 prefs_.SetInt64(kPrefsNumReboots, 1); in TEST_F()
85 prefs_.SetInt64(kPrefsPreviousSlot, 1); in TEST_F()
107 prefs_.SetInt64(kPrefsPayloadAttemptNumber, 1); in TEST_F()
108 prefs_.SetInt64(kPrefsSystemUpdatedMarker, 23456); in TEST_F()
130 prefs_.SetInt64(kPrefsNumReboots, 3); in TEST_F()
131 prefs_.SetInt64(kPrefsPayloadAttemptNumber, 2); in TEST_F()
133 prefs_.SetInt64(kPrefsUpdateBootTimestampStart, 10000); in TEST_F()
134 prefs_.SetInt64(kPrefsUpdateTimestampStart, 12345); in TEST_F()
Dupdate_attempter_android.cc557 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); in ProcessingDone()
646 prefs_->SetInt64(kPrefsCurrentBytesDownloaded, in BytesReceived()
648 prefs_->SetInt64(kPrefsTotalBytesDownloaded, in BytesReceived()
727 prefs_->SetInt64(kPrefsTotalBytesDownloaded, 0); in TerminateUpdateAndNotify()
900 prefs_->SetInt64(std::string{kPrefsPreviousSlot}, in UpdatePrefsAndReportUpdateMetricsOnReboot()
931 prefs_->SetInt64(std::string{kPrefsPreviousSlot}, in UpdatePrefsAndReportUpdateMetricsOnReboot()
/system/update_engine/common/
Dprefs_unittest.cc314 TEST_F(PrefsTest, SetInt64) { in TEST_F() argument
315 EXPECT_TRUE(prefs_.SetInt64(kKey, -123)); in TEST_F()
323 EXPECT_FALSE(prefs_.SetInt64(kKeyWithSpaces, 20)); in TEST_F()
328 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::max())); in TEST_F()
336 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::min())); in TEST_F()
404 ASSERT_TRUE(prefs_.SetInt64(kKey, 8)); in TEST_F()
413 ASSERT_TRUE(prefs_.SetInt64(kKey, 0)); in TEST_F()
429 ASSERT_TRUE(prefs_.SetInt64(key1, 0)); in TEST_F()
430 ASSERT_TRUE(prefs_.SetInt64(key2, 0)); in TEST_F()
599 EXPECT_TRUE(prefs_.SetInt64(kKey, 1234)); in TEST_F()
[all …]
Dmock_prefs.h36 MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value));
Dprefs_interface.h64 virtual bool SetInt64(const std::string& key, const int64_t value) = 0;
Dfake_prefs.h46 bool SetInt64(const std::string& key, const int64_t value) override;
Dprefs.h72 bool SetInt64(const std::string& key, const int64_t value) override;
Dfake_prefs.cc79 bool FakePrefs::SetInt64(const string& key, const int64_t value) { in SetInt64() function in chromeos_update_engine::FakePrefs
Dprefs.cc78 bool PrefsBase::SetInt64(const string& key, const int64_t value) { in SetInt64() function in chromeos_update_engine::PrefsBase
/system/update_engine/
Dmetrics_utils.cc317 prefs->SetInt64(kPrefsNumReboots, num_reboots); in SetNumReboots()
325 prefs->SetInt64(kPrefsPayloadAttemptNumber, payload_attempt_number); in SetPayloadAttemptNumber()
333 prefs->SetInt64(kPrefsSystemUpdatedMarker, in SetSystemUpdatedMarker()
341 prefs->SetInt64(kPrefsUpdateTimestampStart, in SetUpdateTimestampStart()
350 prefs->SetInt64(kPrefsUpdateBootTimestampStart, in SetUpdateBootTimestampStart()
/system/bt/gd/storage/
Dconfig_cache_helper_test.cc87 ConfigCacheHelper(config).SetInt64("A", "B", num); in TEST()
91 ConfigCacheHelper(config).SetInt64("A", "B", -1 * num); in TEST()
118 ConfigCacheHelper(config).SetInt64("A", "B", num); in TEST()
Dconfig_cache_helper.cc74 void ConfigCacheHelper::SetInt64(const std::string& section, const std::string& property, int64_t v… in SetInt64() function in bluetooth::storage::ConfigCacheHelper
Dconfig_cache_helper.h51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value);
/system/update_engine/payload_consumer/
Ddelta_performer.cc466 !prefs_->SetInt64(kPrefsManifestMetadataSize, metadata_size_)) in Write()
469 !prefs_->SetInt64(kPrefsManifestSignatureSize, in Write()
1374 TEST_AND_RETURN_FALSE(prefs->SetInt64(kPrefsUpdateStateNextOperation, in ResetUpdateProgress()
1377 prefs->SetInt64(kPrefsUpdateStateNextDataOffset, -1); in ResetUpdateProgress()
1378 prefs->SetInt64(kPrefsUpdateStateNextDataLength, 0); in ResetUpdateProgress()
1382 prefs->SetInt64(kPrefsManifestMetadataSize, -1); in ResetUpdateProgress()
1383 prefs->SetInt64(kPrefsManifestSignatureSize, -1); in ResetUpdateProgress()
1384 prefs->SetInt64(kPrefsResumedUpdateFailures, 0); in ResetUpdateProgress()
1434 prefs_->SetInt64(kPrefsUpdateStateNextDataOffset, buffer_offset_)); in CheckpointUpdateProgress()
1448 prefs_->SetInt64(kPrefsUpdateStateNextDataLength, op.data_length())); in CheckpointUpdateProgress()
[all …]
Ddelta_performer_integration_test.cc724 ON_CALL(prefs, SetInt64(kPrefsManifestMetadataSize, -1)) in ApplyDeltaFile()
726 ON_CALL(prefs, SetInt64(kPrefsUpdateCheckResponseHash, -1)) in ApplyDeltaFile()
738 EXPECT_CALL(prefs, SetInt64(_, -1)).WillRepeatedly(Return(true)); in ApplyDeltaFile()
739 EXPECT_CALL(prefs, SetInt64(_, 0)).WillRepeatedly(Return(true)); in ApplyDeltaFile()
741 EXPECT_CALL(prefs, SetInt64(kPrefsManifestMetadataSize, state->metadata_size)) in ApplyDeltaFile()
745 SetInt64(kPrefsManifestSignatureSize, state->metadata_signature_size)) in ApplyDeltaFile()
747 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextOperation, _)) in ApplyDeltaFile()
751 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataOffset, _)) in ApplyDeltaFile()
753 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataLength, _)) in ApplyDeltaFile()
/system/update_engine/update_manager/
Dstaging_utils_unittest.cc59 EXPECT_TRUE(FakeSystemState::Get()->fake_prefs()->SetInt64( in SetPersistedStagingVal()
Dreal_updater_provider_unittest.cc453 fake_prefs->SetInt64( in TEST_F()
460 fake_prefs->SetInt64( in TEST_F()