Searched refs:GetInt64 (Results 1 - 19 of 19) sorted by relevance

/system/update_engine/common/
H A Dmock_prefs.h35 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
H A Dprefs_unittest.cc132 TEST_F(PrefsTest, GetInt64) {
135 EXPECT_TRUE(prefs_.GetInt64(kKey, &value));
142 EXPECT_FALSE(prefs_.GetInt64(kKey, &value));
149 EXPECT_TRUE(prefs_.GetInt64(kKey, &value));
157 EXPECT_TRUE(prefs_.GetInt64(kKey, &value));
164 EXPECT_TRUE(prefs_.GetInt64(kKey, &value));
170 EXPECT_FALSE(prefs_.GetInt64("random-key", &value));
349 EXPECT_FALSE(prefs_.GetInt64(kKey, &value));
353 EXPECT_TRUE(prefs_.GetInt64(kKey, &value));
H A Dprefs_interface.h59 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
H A Dfake_prefs.h44 bool GetInt64(const std::string& key, int64_t* value) const override;
H A Dfake_prefs.cc73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { function in class:chromeos_update_engine::FakePrefs
H A Dprefs.h65 bool GetInt64(const std::string& key, int64_t* value) const override;
H A Dprefs.cc47 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { function in class:chromeos_update_engine::PrefsBase
/system/update_engine/
H A Domaha_request_action_unittest.cc970 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count));
998 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count));
1043 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count));
1735 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1743 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1745 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _))
1747 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _))
1783 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1789 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _))
1791 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDa
[all...]
H A Dupdate_attempter_unittest.cc208 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0);
219 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _))
315 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0);
365 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _))
369 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _))
375 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _))
381 EXPECT_CALL(*prefs_, GetInt64(_, _)).Times(0);
387 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _))
864 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCount, &new_value));
875 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCoun
[all...]
H A Dpayload_state.cc957 if (!prefs_->GetInt64(kPrefsBackoffExpiryTime, &stored_value))
998 } else if (!prefs_->GetInt64(kPrefsUpdateTimestampStart, &stored_value)) {
1046 } else if (!prefs_->GetInt64(kPrefsUpdateDurationUptime, &stored_value)) {
1236 if (!prefs_->GetInt64(kPrefsTargetVersionInstalledFrom, &installed_from)) {
1251 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) {
1280 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt))
1300 if (prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt))
H A Dmetrics_utils.cc280 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) {
321 if (!prefs->GetInt64(key, &stored_value))
H A Dupdate_attempter.cc180 system_state_->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt,
485 if (prefs_->GetInt64(kPrefsWallClockWaitPeriod, &wait_period_in_secs) &&
1344 prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) &&
1355 if (!prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) ||
1410 if (prefs_->GetInt64(kPrefsUpdateCheckCount, &update_check_count_value)) {
1528 prefs_->GetInt64(kPrefsUpdateCompletedBootTime, &boot_time));
H A Domaha_request_action.cc636 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) {
691 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) {
1295 system_state_->prefs()->GetInt64(kPrefsManifestMetadataSize,
1298 system_state_->prefs()->GetInt64(kPrefsManifestSignatureSize,
1301 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset,
1304 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataLength,
1391 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt,
1492 if (!system_state_->prefs()->GetInt64(kPrefsUpdateCheckCount,
H A Dupdate_attempter_android_unittest.cc92 EXPECT_TRUE(prefs_.GetInt64(kPrefsNumReboots, &reboot_count));
H A Dpayload_state_unittest.cc608 EXPECT_CALL(*prefs2, GetInt64(_, _)).Times(AtLeast(1));
609 EXPECT_CALL(*prefs2, GetInt64(kPrefsPayloadAttemptNumber, _))
611 EXPECT_CALL(*prefs2, GetInt64(kPrefsFullPayloadAttemptNumber, _))
613 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlIndex, _))
615 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlFailureCount, _))
617 EXPECT_CALL(*prefs2, GetInt64(kPrefsUrlSwitchCount, _))
1151 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0);
/system/update_engine/payload_consumer/
H A Ddownload_action.cc187 if (prefs_->GetInt64(kPrefsUpdateStatePayloadIndex, &payload_index) &&
218 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size);
219 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size);
226 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset);
H A Ddelta_performer.cc1617 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) &&
1631 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) &&
1637 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) &&
1647 if (!(prefs->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) &&
1652 if (!(prefs->GetInt64(kPrefsManifestSignatureSize,
1717 if (!prefs_->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) ||
1727 TEST_AND_RETURN_FALSE(prefs_->GetInt64(kPrefsUpdateStateNextDataOffset,
1753 TEST_AND_RETURN_FALSE(prefs_->GetInt64(kPrefsManifestMetadataSize,
1760 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size) &&
1770 if (prefs_->GetInt64(kPrefsResumedUpdateFailure
[all...]
H A Ddelta_performer_integration_test.cc702 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _))
/system/core/libcutils/tests/
H A DPropertiesTest.cpp266 TEST_F(PropertiesTest, GetInt64) {

Completed in 253 milliseconds