Home
last modified time | relevance | path

Searched refs:GetInt64 (Results 1 – 18 of 18) sorted by relevance

/system/update_engine/common/
Dprefs_unittest.cc132 TEST_F(PrefsTest, GetInt64) { in TEST_F() argument
135 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
142 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
149 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
157 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
164 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
170 EXPECT_FALSE(prefs_.GetInt64("random-key", &value)); in TEST_F()
349 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
353 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
Dmock_prefs.h35 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
Dprefs_interface.h59 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
Dfake_prefs.h44 bool GetInt64(const std::string& key, int64_t* value) const override;
Dprefs.h65 bool GetInt64(const std::string& key, int64_t* value) const override;
Dfake_prefs.cc73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::FakePrefs
Dprefs.cc47 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::PrefsBase
/system/update_engine/
Domaha_request_action_unittest.cc705 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
733 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
778 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1434 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in PingTest()
1442 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in PingTest()
1444 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in PingTest()
1446 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _)) in PingTest()
1483 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in TEST_F()
1489 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in TEST_F()
1491 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in TEST_F()
[all …]
Dupdate_attempter_unittest.cc226 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); in TEST_F()
237 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
253 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); in TEST_F()
303 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
307 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
313 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
319 EXPECT_CALL(*prefs_, GetInt64(_, _)).Times(0); in TEST_F()
325 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
800 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
811 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
Dpayload_state.cc793 if (!prefs_->GetInt64(key, &stored_value)) in GetPersistedValue()
935 if (!prefs_->GetInt64(kPrefsBackoffExpiryTime, &stored_value)) in LoadBackoffExpiryTime()
976 } else if (!prefs_->GetInt64(kPrefsUpdateTimestampStart, &stored_value)) { in LoadUpdateTimestampStart()
1028 } else if (!prefs_->GetInt64(kPrefsUpdateDurationUptime, &stored_value)) { in LoadUpdateDurationUptime()
1221 if (prefs_->GetInt64(kPrefsSystemUpdatedMarker, &stored_value)) { in UpdateEngineStarted()
1247 if (!prefs_->GetInt64(kPrefsTargetVersionInstalledFrom, &installed_from)) { in ReportFailedBootIfNeeded()
1262 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) { in ReportFailedBootIfNeeded()
1298 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ExpectRebootInNewVersion()
1318 if (prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ResetUpdateStatus()
Dupdate_attempter.cc192 system_state_->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt, in UpdateAttempter()
500 if (prefs_->GetInt64(kPrefsWallClockWaitPeriod, &wait_period_in_secs) && in UpdateAttempter()
1354 prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) && in UpdateAttempter()
1365 if (!prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) || in UpdateAttempter()
1380 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size); in UpdateAttempter()
1381 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size); in UpdateAttempter()
1387 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset); in UpdateAttempter()
1447 if (prefs_->GetInt64(kPrefsUpdateCheckCount, &update_check_count_value)) { in UpdateAttempter()
1565 prefs_->GetInt64(kPrefsUpdateCompletedBootTime, &boot_time)); in UpdateAttempter()
Domaha_request_action.cc540 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) { in CalculatePingDays()
590 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
1121 system_state_->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1124 system_state_->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1127 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1130 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1212 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in IsWallClockBasedWaitingSatisfied()
1313 if (!system_state_->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
Dupdate_attempter_android.cc499 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size); in SetupDownload()
500 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size); in SetupDownload()
507 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset); in SetupDownload()
Dpayload_state_unittest.cc604 EXPECT_CALL(*prefs2, GetInt64(_, _)).Times(AtLeast(1)); in TEST()
605 EXPECT_CALL(*prefs2, GetInt64(kPrefsPayloadAttemptNumber, _)) in TEST()
607 EXPECT_CALL(*prefs2, GetInt64(kPrefsFullPayloadAttemptNumber, _)) in TEST()
609 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlIndex, _)) in TEST()
611 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlFailureCount, _)) in TEST()
613 EXPECT_CALL(*prefs2, GetInt64(kPrefsUrlSwitchCount, _)) in TEST()
1149 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0); in TEST()
Dmetrics_utils.cc273 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) { in WallclockDurationHelper()
/system/update_engine/payload_consumer/
Ddelta_performer.cc1680 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) && in CanResumeUpdate()
1694 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) && in CanResumeUpdate()
1700 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in CanResumeUpdate()
1710 if (!(prefs->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) && in CanResumeUpdate()
1715 if (!(prefs->GetInt64(kPrefsManifestSignatureSize, in CanResumeUpdate()
1780 if (!prefs_->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) || in PrimeUpdateState()
1790 TEST_AND_RETURN_FALSE(prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, in PrimeUpdateState()
1816 TEST_AND_RETURN_FALSE(prefs_->GetInt64(kPrefsManifestMetadataSize, in PrimeUpdateState()
1823 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size) && in PrimeUpdateState()
1833 if (prefs_->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures)) { in PrimeUpdateState()
Ddelta_performer_integration_test.cc702 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _)) in ApplyDeltaFile()
/system/core/libcutils/tests/
DPropertiesTest.cpp266 TEST_F(PropertiesTest, GetInt64) { in TEST_F() argument