Home
last modified time | relevance | path

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

12

/system/update_engine/
Ddownload_action_android_unittest.cc63 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStatePayloadIndex, _)) in TEST_F()
65 EXPECT_CALL(prefs, GetInt64(kPrefsManifestMetadataSize, _)) in TEST_F()
67 EXPECT_CALL(prefs, GetInt64(kPrefsManifestSignatureSize, _)) in TEST_F()
69 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextDataOffset, _)) in TEST_F()
127 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStatePayloadIndex, _)) in TEST_F()
129 EXPECT_CALL(prefs, GetInt64(kPrefsManifestMetadataSize, _)) in TEST_F()
131 EXPECT_CALL(prefs, GetInt64(kPrefsManifestSignatureSize, _)) in TEST_F()
134 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextDataOffset, _)) in TEST_F()
138 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _)) in TEST_F()
140 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStatePayloadIndex, _)) in TEST_F()
Ddownload_action.cc71 if (prefs_->GetInt64(kPrefsUpdateStatePayloadIndex, &payload_index) && in PerformAction()
143 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size); in StartDownloading()
144 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size); in StartDownloading()
166 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset); in StartDownloading()
Dmetrics_utils.cc303 if (!prefs->GetInt64(key, &stored_value)) in GetPersistedValue()
/system/update_engine/cros/
Domaha_request_action_unittest.cc1158 ASSERT_TRUE(fake_prefs_->GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1177 ASSERT_TRUE(fake_prefs_->GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1214 ASSERT_TRUE(fake_prefs_->GetInt64(kPrefsUpdateCheckCount, &count)); in TEST_F()
1922 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in PingTest()
1930 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in PingTest()
1932 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in PingTest()
1934 EXPECT_CALL(prefs, GetInt64(kPrefsLastRollCallPingDay, _)) in PingTest()
1966 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _)) in TEST_F()
1972 EXPECT_CALL(prefs, GetInt64(kPrefsInstallDateDays, _)) in TEST_F()
1974 EXPECT_CALL(prefs, GetInt64(kPrefsLastActivePingDay, _)) in TEST_F()
[all …]
Ddownload_action_chromeos.cc183 if (prefs_->GetInt64(kPrefsUpdateStatePayloadIndex, &payload_index) && in PerformAction()
256 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size); in StartDownloading()
257 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size); in StartDownloading()
280 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset); in StartDownloading()
Domaha_request_action.cc360 if (SystemState::Get()->prefs()->GetInt64(key, &last_ping) && in CalculatePingDays()
413 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
1173 if (SystemState::Get()->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1176 SystemState::Get()->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1179 SystemState::Get()->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1182 SystemState::Get()->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1280 if (SystemState::Get()->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in IsWallClockBasedWaitingSatisfied()
1343 if (!SystemState::Get()->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1613 !prefs->GetInt64(kPrefsUpdateOverCellularTargetSize, &target_size)) { in IsUpdateAllowedOverCellularByPrefs()
1744 if (SystemState::Get()->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
Dupdate_attempter.cc221 SystemState::Get()->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics()
493 if (prefs_->GetInt64(kPrefsWallClockScatteringWaitPeriod, in CalculateScatteringParams()
678 if (SystemState::Get()->prefs()->GetInt64(metadata_key, &value)) in GetPingMetadata()
714 if (!prefs_->GetInt64(ping_active_key, &dlc_params.ping_active) || in CalculateDlcParams()
1601 prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) && in DisableDeltaUpdateIfNeeded()
1612 if (!prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) || in MarkDeltaUpdateFailure()
1667 if (prefs_->GetInt64(kPrefsUpdateCheckCount, &update_check_count_value)) { in DecrementUpdateCheckCount()
1801 prefs_->GetInt64(kPrefsUpdateCompletedBootTime, &boot_time)); in GetBootTimeAtUpdate()
1844 if (SystemState::Get()->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in ReportTimeToUpdateAppliedMetric()
Dpayload_state.cc1007 if (!prefs_->GetInt64(kPrefsBackoffExpiryTime, &stored_value)) in LoadBackoffExpiryTime()
1044 } else if (!prefs_->GetInt64(kPrefsUpdateTimestampStart, &stored_value)) { in LoadUpdateTimestampStart()
1089 } else if (!prefs_->GetInt64(kPrefsUpdateDurationUptime, &stored_value)) { in LoadUpdateDurationUptime()
1289 if (!prefs_->GetInt64(kPrefsTargetVersionInstalledFrom, &installed_from)) { in ReportFailedBootIfNeeded()
1305 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) { in ReportFailedBootIfNeeded()
1334 if (!prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ExpectRebootInNewVersion()
1354 if (prefs_->GetInt64(kPrefsTargetVersionAttempt, &target_attempt)) in ResetUpdateStatus()
Dpayload_state_unittest.cc603 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(AtLeast(1)); in TEST_F()
604 EXPECT_CALL(*prefs, GetInt64(kPrefsPayloadAttemptNumber, _)) in TEST_F()
606 EXPECT_CALL(*prefs, GetInt64(kPrefsFullPayloadAttemptNumber, _)) in TEST_F()
608 EXPECT_CALL(*prefs, GetInt64(kPrefsCurrentUrlIndex, _)) in TEST_F()
610 EXPECT_CALL(*prefs, GetInt64(kPrefsCurrentUrlFailureCount, _)) in TEST_F()
612 EXPECT_CALL(*prefs, GetInt64(kPrefsUrlSwitchCount, _)).Times(AtLeast(1)); in TEST_F()
1161 EXPECT_CALL(*prefs, GetInt64(_, _)).Times(0); in TEST_F()
Dupdate_attempter_unittest.cc672 EXPECT_TRUE(prefs_->GetInt64(kPrefsDeltaUpdateFailures, &value)); in TEST_F()
676 EXPECT_TRUE(prefs_->GetInt64(kPrefsDeltaUpdateFailures, &value)); in TEST_F()
682 EXPECT_TRUE(prefs_->GetInt64(kPrefsDeltaUpdateFailures, &value)); in TEST_F()
1125 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
1136 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
1229 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsUpdateCheckCount, &update_count)); in StagingSetsPrefsAndTurnsOffScatteringStart()
1231 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsWallClockStagingWaitPeriod, in StagingSetsPrefsAndTurnsOffScatteringStart()
2409 EXPECT_TRUE(FakeSystemState::Get()->prefs()->GetInt64(active_key, &temp_int)); in TEST_F()
2420 EXPECT_TRUE(FakeSystemState::Get()->prefs()->GetInt64(active_key, &temp_int)); in TEST_F()
/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/common/
Dprefs_unittest.cc271 TEST_F(PrefsTest, GetInt64) { in TEST_F() argument
274 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
281 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
289 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
298 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
305 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
311 EXPECT_FALSE(prefs_.GetInt64("random-key", &value)); in TEST_F()
597 EXPECT_FALSE(prefs_.GetInt64(kKey, &value)); in TEST_F()
601 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.h60 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
Dfake_prefs.h45 bool GetInt64(const std::string& key, int64_t* value) const override;
Dprefs.h71 bool GetInt64(const std::string& key, int64_t* value) const override;
Dfake_prefs.cc75 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::FakePrefs
Dprefs.cc69 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::PrefsBase
/system/update_engine/payload_consumer/
Ddelta_performer.cc1328 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) && in CanResumeUpdate()
1341 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) && in CanResumeUpdate()
1347 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in CanResumeUpdate()
1357 if (!(prefs->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) && in CanResumeUpdate()
1362 if (!(prefs->GetInt64(kPrefsManifestSignatureSize, in CanResumeUpdate()
1471 if (!prefs_->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) || in PrimeUpdateState()
1481 prefs_->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in PrimeUpdateState()
1503 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) && in PrimeUpdateState()
1509 prefs_->GetInt64(kPrefsManifestSignatureSize, &manifest_signature_size) && in PrimeUpdateState()
1519 if (prefs_->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures)) { in PrimeUpdateState()
/system/update_engine/update_manager/
Dstaging_utils.cc129 if (SystemState::Get()->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in CalculateStagingCase()
Dreal_updater_provider.cc449 if (prefs->Exists(key) && prefs->GetInt64(key, &result)) { in GetValue()
/system/update_engine/aosp/
Dupdate_attempter_android_unittest.cc101 ASSERT_TRUE(prefs_.GetInt64(kPrefsNumReboots, &reboot_count)); in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dfuzz_utils.h138 FUZZ_DEFINE_PRIMITIVE_GETTER(int64_t, GetInt64);

12