/system/update_engine/ |
D | payload_state_unittest.cc | 108 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST() 109 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0)) in TEST() 111 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0)) in TEST() 113 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1)); in TEST() 114 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1)); in TEST() 115 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0)) in TEST() 117 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _)) in TEST() 119 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateDurationUptime, _)) in TEST() 121 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttps, 0)) in TEST() 123 EXPECT_CALL(*prefs, SetInt64(kCurrentBytesDownloadedFromHttp, 0)) in TEST() [all …]
|
D | payload_state.cc | 747 prefs_->SetInt64(kPrefsNumReboots, num_reboots); in SetNumReboots() 859 prefs_->SetInt64(kPrefsPayloadAttemptNumber, payload_attempt_number_); in SetPayloadAttemptNumber() 867 prefs_->SetInt64(kPrefsFullPayloadAttemptNumber, in SetFullPayloadAttemptNumber() 879 prefs_->SetInt64(kPrefsCurrentUrlIndex, url_index_); in SetUrlIndex() 897 prefs_->SetInt64(kPrefsWallClockWaitPeriod, in SetScatteringWaitPeriod() 912 prefs_->SetInt64(kPrefsUrlSwitchCount, url_switch_count_); in SetUrlSwitchCount() 924 prefs_->SetInt64(kPrefsCurrentUrlFailureCount, url_failure_count_); in SetUrlFailureCount() 951 prefs_->SetInt64(kPrefsBackoffExpiryTime, in SetBackoffExpiryTime() 1001 prefs_->SetInt64(kPrefsUpdateTimestampStart, in SetUpdateTimestampStart() 1075 prefs_->SetInt64(kPrefsUpdateDurationUptime, in SetUpdateDurationUptimeExtended() [all …]
|
D | omaha_request_action_unittest.cc | 689 ASSERT_TRUE(fake_prefs_.SetInt64(kPrefsUpdateCheckCount, 5)); in TEST_F() 1360 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in PingTest() 1409 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F() 1441 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F() 1473 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F() 1484 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)) in TEST_F() 1486 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _)) in TEST_F() 1513 EXPECT_CALL(prefs, SetInt64(kPrefsLastActivePingDay, _)).Times(0); in TEST_F() 1514 EXPECT_CALL(prefs, SetInt64(kPrefsLastRollCallPingDay, _)).Times(0); in TEST_F() 1535 EXPECT_CALL(prefs, SetInt64(_, _)).Times(AnyNumber()); in TEST_F() [all …]
|
D | update_attempter_unittest.cc | 335 EXPECT_CALL(*prefs_, SetInt64(Ne(kPrefsDeltaUpdateFailures), _)) in TEST_F() 337 EXPECT_CALL(*prefs_, SetInt64(kPrefsDeltaUpdateFailures, 1)).Times(2); in TEST_F() 338 EXPECT_CALL(*prefs_, SetInt64(kPrefsDeltaUpdateFailures, 2)); in TEST_F() 339 EXPECT_CALL(*prefs_, SetInt64(kPrefsDeltaUpdateFailures, in TEST_F() 782 EXPECT_TRUE(fake_prefs.SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart() 812 EXPECT_TRUE(fake_prefs.SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart() 838 EXPECT_TRUE(fake_prefs.SetInt64(kPrefsWallClockWaitPeriod, initial_value)); in NoScatteringDoneDuringManualUpdateTestStart() 839 EXPECT_TRUE(fake_prefs.SetInt64(kPrefsUpdateCheckCount, initial_value)); in NoScatteringDoneDuringManualUpdateTestStart()
|
D | omaha_request_action.cc | 693 prefs->SetInt64(kPrefsLastActivePingDay, daystart.ToInternalValue()); in UpdateLastPingDays() 694 prefs->SetInt64(kPrefsLastRollCallPingDay, daystart.ToInternalValue()); in UpdateLastPingDays() 1196 if (system_state_->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in IsWallClockBasedWaitingSatisfied() 1291 if (!system_state_->prefs()->SetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied() 1358 if (!prefs->SetInt64(kPrefsInstallDateDays, install_date_days)) in PersistInstallDate()
|
D | update_attempter.cc | 219 system_state_->prefs()->SetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics() 841 prefs_->SetInt64(kPrefsUpdateCompletedBootTime, value); in WriteUpdateCompletedMarker() 941 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); in ProcessingDone() 1388 prefs_->SetInt64(kPrefsDeltaUpdateFailures, ++delta_failures); in MarkDeltaUpdateFailure() 1485 if (prefs_->SetInt64(kPrefsUpdateCheckCount, update_check_count_value)) { in DecrementUpdateCheckCount()
|
D | metrics_utils.cc | 280 if (!system_state->prefs()->SetInt64(state_variable_key, in WallclockDurationHelper()
|
D | update_attempter_android.cc | 288 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); in ProcessingDone()
|
/system/update_engine/common/ |
D | prefs_unittest.cc | 174 TEST_F(PrefsTest, SetInt64) { in TEST_F() argument 175 EXPECT_TRUE(prefs_.SetInt64(kKey, -123)); in TEST_F() 183 EXPECT_FALSE(prefs_.SetInt64(kKeyWithSpaces, 20)); in TEST_F() 188 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::max())); in TEST_F() 196 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::min())); in TEST_F() 264 ASSERT_TRUE(prefs_.SetInt64(kKey, 8)); in TEST_F() 273 ASSERT_TRUE(prefs_.SetInt64(kKey, 0)); in TEST_F() 352 EXPECT_TRUE(prefs_.SetInt64(kKey, 1234)); in TEST_F()
|
D | mock_prefs.h | 36 MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value));
|
D | prefs_interface.h | 63 virtual bool SetInt64(const std::string& key, const int64_t value) = 0;
|
D | fake_prefs.h | 45 bool SetInt64(const std::string& key, const int64_t value) override;
|
D | prefs.h | 66 bool SetInt64(const std::string& key, const int64_t value) override;
|
D | fake_prefs.cc | 77 bool FakePrefs::SetInt64(const string& key, const int64_t value) { in SetInt64() function in chromeos_update_engine::FakePrefs
|
D | prefs.cc | 56 bool PrefsBase::SetInt64(const string& key, const int64_t value) { in SetInt64() function in chromeos_update_engine::PrefsBase
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 627 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestMetadataSize, in Write() 630 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestSignatureSize, in Write() 1782 TEST_AND_RETURN_FALSE(prefs->SetInt64(kPrefsUpdateStateNextOperation, in ResetUpdateProgress() 1786 prefs->SetInt64(kPrefsUpdateStateNextDataOffset, -1); in ResetUpdateProgress() 1787 prefs->SetInt64(kPrefsUpdateStateNextDataLength, 0); in ResetUpdateProgress() 1791 prefs->SetInt64(kPrefsManifestMetadataSize, -1); in ResetUpdateProgress() 1792 prefs->SetInt64(kPrefsManifestSignatureSize, -1); in ResetUpdateProgress() 1793 prefs->SetInt64(kPrefsResumedUpdateFailures, 0); in ResetUpdateProgress() 1809 TEST_AND_RETURN_FALSE(prefs_->SetInt64(kPrefsUpdateStateNextDataOffset, in CheckpointUpdateProgress() 1821 TEST_AND_RETURN_FALSE(prefs_->SetInt64(kPrefsUpdateStateNextDataLength, in CheckpointUpdateProgress() [all …]
|
D | delta_performer_integration_test.cc | 694 EXPECT_CALL(prefs, SetInt64(kPrefsManifestMetadataSize, in ApplyDeltaFile() 696 EXPECT_CALL(prefs, SetInt64(kPrefsManifestSignatureSize, 0)) in ApplyDeltaFile() 698 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextOperation, _)) in ApplyDeltaFile() 702 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataOffset, _)) in ApplyDeltaFile() 704 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataLength, _)) in ApplyDeltaFile()
|