/system/update_engine/common/ |
D | prefs_unittest.cc | 132 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()
|
D | mock_prefs.h | 35 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
|
D | prefs_interface.h | 59 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
|
D | fake_prefs.h | 44 bool GetInt64(const std::string& key, int64_t* value) const override;
|
D | prefs.h | 65 bool GetInt64(const std::string& key, int64_t* value) const override;
|
D | fake_prefs.cc | 73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::FakePrefs
|
D | prefs.cc | 47 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::PrefsBase
|
/system/update_engine/ |
D | omaha_request_action_unittest.cc | 705 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 …]
|
D | update_attempter_unittest.cc | 226 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()
|
D | payload_state.cc | 793 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()
|
D | update_attempter.cc | 192 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()
|
D | omaha_request_action.cc | 540 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()
|
D | update_attempter_android.cc | 499 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()
|
D | payload_state_unittest.cc | 604 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()
|
D | metrics_utils.cc | 273 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) { in WallclockDurationHelper()
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 1680 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()
|
D | delta_performer_integration_test.cc | 702 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _)) in ApplyDeltaFile()
|
/system/core/libcutils/tests/ |
D | PropertiesTest.cpp | 266 TEST_F(PropertiesTest, GetInt64) { in TEST_F() argument
|