/system/update_engine/ |
D | download_action_android_unittest.cc | 63 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()
|
D | download_action.cc | 71 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()
|
D | metrics_utils.cc | 303 if (!prefs->GetInt64(key, &stored_value)) in GetPersistedValue()
|
/system/update_engine/cros/ |
D | omaha_request_action_unittest.cc | 1158 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 …]
|
D | download_action_chromeos.cc | 183 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()
|
D | omaha_request_action.cc | 360 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()
|
D | update_attempter.cc | 221 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()
|
D | payload_state.cc | 1007 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()
|
D | payload_state_unittest.cc | 603 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()
|
D | update_attempter_unittest.cc | 672 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/ |
D | config_cache_helper_test.cc | 89 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()
|
D | config_cache_helper.cc | 78 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()
|
D | config_cache_helper.h | 52 …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/ |
D | prefs_unittest.cc | 271 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()
|
D | mock_prefs.h | 35 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
|
D | prefs_interface.h | 60 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
|
D | fake_prefs.h | 45 bool GetInt64(const std::string& key, int64_t* value) const override;
|
D | prefs.h | 71 bool GetInt64(const std::string& key, int64_t* value) const override;
|
D | fake_prefs.cc | 75 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::FakePrefs
|
D | prefs.cc | 69 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() function in chromeos_update_engine::PrefsBase
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 1328 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/ |
D | staging_utils.cc | 129 if (SystemState::Get()->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in CalculateStagingCase()
|
D | real_updater_provider.cc | 449 if (prefs->Exists(key) && prefs->GetInt64(key, &result)) { in GetValue()
|
/system/update_engine/aosp/ |
D | update_attempter_android_unittest.cc | 101 ASSERT_TRUE(prefs_.GetInt64(kPrefsNumReboots, &reboot_count)); in TEST_F()
|
/system/core/fs_mgr/libsnapshot/ |
D | fuzz_utils.h | 138 FUZZ_DEFINE_PRIMITIVE_GETTER(int64_t, GetInt64);
|