Home
last modified time | relevance | path

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

/system/update_engine/
Domaha_request_action_unittest.cc1159 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1178 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1215 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1807 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in PingTest()
1815 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in PingTest()
1817 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in PingTest()
1819 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _)) in PingTest()
1851 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in TEST_F()
1857 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in TEST_F()
1859 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in TEST_F()
[all …]
Domaha_request_action.cc298 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) { in CalculatePingDays()
353 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
1141 system_state_->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1144 system_state_->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1147 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1150 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1246 if (system_state_->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in IsWallClockBasedWaitingSatisfied()
1307 if (!system_state_->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1569 !prefs->GetInt64(kPrefsUpdateOverCellularTargetSize, &target_size)) { in IsUpdateAllowedOverCellularByPrefs()
1699 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
Dupdate_attempter.cc190 system_state_->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics()
535 if (prefs_->GetInt64(kPrefsWallClockScatteringWaitPeriod, in CalculateScatteringParams()
708 if (system_state_->prefs()->GetInt64(metadata_key, &value)) in GetPingMetadata()
745 if (!prefs->GetInt64(ping_active_key, &dlc_params.ping_active) || in CalculateDlcParams()
1647 prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) && in DisableDeltaUpdateIfNeeded()
1658 if (!prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) || in MarkDeltaUpdateFailure()
1714 if (prefs_->GetInt64(kPrefsUpdateCheckCount, &update_check_count_value)) { in DecrementUpdateCheckCount()
1833 prefs_->GetInt64(kPrefsUpdateCompletedBootTime, &boot_time)); in GetBootTimeAtUpdate()
1875 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in ReportTimeToUpdateAppliedMetric()
Dpayload_state.cc1013 if (!prefs_->GetInt64(kPrefsBackoffExpiryTime, &stored_value)) in LoadBackoffExpiryTime()
1054 } else if (!prefs_->GetInt64(kPrefsUpdateTimestampStart, &stored_value)) { in LoadUpdateTimestampStart()
1101 } else if (!prefs_->GetInt64(kPrefsUpdateDurationUptime, &stored_value)) { in LoadUpdateDurationUptime()
1309 if (!prefs_->GetInt64(kPrefsTargetVersionInstalledFrom, &installed_from)) { in ReportFailedBootIfNeeded()
1324 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) { in ReportFailedBootIfNeeded()
1353 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ExpectRebootInNewVersion()
1373 if (prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ResetUpdateStatus()
Dupdate_attempter_unittest.cc529 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); in TEST_F()
540 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
635 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); in TEST_F()
684 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
688 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
694 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
700 EXPECT_CALL(*prefs_, GetInt64(_, _)).Times(0); in TEST_F()
706 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) in TEST_F()
1172 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
1183 EXPECT_TRUE(fake_prefs.GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
[all …]
Dmetrics_utils.cc301 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) { in WallclockDurationHelper()
342 if (!prefs->GetInt64(key, &stored_value)) in GetPersistedValue()
Dpayload_state_unittest.cc600 EXPECT_CALL(*prefs2, GetInt64(_, _)).Times(AtLeast(1)); in TEST()
601 EXPECT_CALL(*prefs2, GetInt64(kPrefsPayloadAttemptNumber, _)) in TEST()
603 EXPECT_CALL(*prefs2, GetInt64(kPrefsFullPayloadAttemptNumber, _)) in TEST()
605 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlIndex, _)) in TEST()
607 EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlFailureCount, _)) in TEST()
609 EXPECT_CALL(*prefs2, GetInt64(kPrefsUrlSwitchCount, _)).Times(AtLeast(1)); in TEST()
1176 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0); in TEST()
Dupdate_attempter_android_unittest.cc98 EXPECT_TRUE(prefs_.GetInt64(kPrefsNumReboots, &reboot_count)); in TEST_F()
/system/update_engine/common/
Dprefs_unittest.cc254 TEST_F(PrefsTest, GetInt64) { in TEST_F() argument
257 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
264 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
272 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
281 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
288 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
294 EXPECT_FALSE(prefs_.GetInt64("random-key", &value)); in TEST_F()
515 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
519 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
Dmock_prefs.h36 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
Dprefs_interface.h60 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.h70 bool GetInt64(const std::string& key, int64_t* value) const override;
Dfake_prefs.cc74 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::FakePrefs
Dprefs.cc67 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::PrefsBase
/system/bt/gd/storage/
Dconfig_cache_helper_test.cc89 ASSERT_THAT(ConfigCacheHelper(config).GetInt64("A", "B"), Optional(Eq(int64_t(num)))); in TEST()
94 ASSERT_THAT(ConfigCacheHelper(config).GetInt64("A", "B"), Optional(Eq(-1 * num))); in TEST()
98 ASSERT_THAT(ConfigCacheHelper(config).GetInt64("A", "B"), Optional(Eq(int64_t(0)))); in TEST()
Dconfig_cache_helper.cc78 std::optional<int64_t> ConfigCacheHelper::GetInt64(const std::string& section, const std::string& p… in GetInt64() function in bluetooth::storage::ConfigCacheHelper
95 auto large_value = GetInt64(section, property); in GetInt()
Dconfig_cache_helper.h52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c…
60 auto value = GetInt64(section, property); in Get()
/system/update_engine/payload_consumer/
Ddownload_action.cc182 if (prefs_->GetInt64(kPrefsUpdateStatePayloadIndex, &payload_index) && in PerformAction()
255 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size); in StartDownloading()
256 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size); in StartDownloading()
279 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset); in StartDownloading()
Ddelta_performer.cc1784 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) && in CanResumeUpdate()
1797 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) && in CanResumeUpdate()
1803 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in CanResumeUpdate()
1813 if (!(prefs->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) && in CanResumeUpdate()
1818 if (!(prefs->GetInt64(kPrefsManifestSignatureSize, in CanResumeUpdate()
1898 if (!prefs_->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) || in PrimeUpdateState()
1908 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in PrimeUpdateState()
1930 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) && in PrimeUpdateState()
1936 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size) && in PrimeUpdateState()
1946 if (prefs_->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures)) { in PrimeUpdateState()
Ddelta_performer_integration_test.cc731 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _)) in ApplyDeltaFile()
/system/update_engine/update_manager/
Dstaging_utils.cc131 if (prefs->GetInt64(kPrefsWallClockStagingWaitPeriod, &wait_period_in_days) && in CalculateStagingCase()
/system/core/fs_mgr/libsnapshot/
Dfuzz_utils.h138 FUZZ_DEFINE_PRIMITIVE_GETTER(int64_t, GetInt64);