Home
last modified time | relevance | path

Searched refs:BackoffEntry (Results 1 – 14 of 14) sorted by relevance

/external/libbrillo/brillo/
Dbackoff_entry.cc17 BackoffEntry::BackoffEntry(const BackoffEntry::Policy* const policy) in BackoffEntry() function in brillo::BackoffEntry
23 void BackoffEntry::InformOfRequest(bool succeeded) { in InformOfRequest()
53 bool BackoffEntry::ShouldRejectRequest() const { in ShouldRejectRequest()
57 base::TimeDelta BackoffEntry::GetTimeUntilRelease() const { in GetTimeUntilRelease()
64 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime()
68 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime()
72 bool BackoffEntry::CanDiscard() const { in CanDiscard()
97 void BackoffEntry::Reset() { in Reset()
108 base::TimeTicks BackoffEntry::ImplGetTimeNow() const { in ImplGetTimeNow()
112 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime()
Dbackoff_entry_unittest.cc13 BackoffEntry::Policy base_policy = { 0, 1000, 2.0, 0.0, 20000, 2000, false };
15 class TestBackoffEntry : public BackoffEntry {
18 : BackoffEntry(policy), in TestBackoffEntry()
50 BackoffEntry::Policy never_expires_policy = base_policy; in TEST()
86 BackoffEntry::Policy always_delay_policy = base_policy; in TEST()
106 BackoffEntry::Policy no_store_policy = base_policy; in TEST()
113 BackoffEntry::Policy lenient_policy = base_policy; in TEST()
116 BackoffEntry entry(&lenient_policy); in TEST()
163 BackoffEntry::Policy always_delay_policy = base_policy; in TEST()
200 BackoffEntry::Policy jittery_policy = base_policy; in TEST()
[all …]
Dbackoff_entry.h19 class BRILLO_EXPORT BackoffEntry {
60 explicit BackoffEntry(const Policy* const policy);
61 virtual ~BackoffEntry() = default;
110 DISALLOW_COPY_AND_ASSIGN(BackoffEntry);
/external/libweave/src/
Dbackoff_entry.cc16 BackoffEntry::BackoffEntry(const BackoffEntry::Policy* const policy) in BackoffEntry() function in weave::BackoffEntry
22 void BackoffEntry::InformOfRequest(bool succeeded) { in InformOfRequest()
52 bool BackoffEntry::ShouldRejectRequest() const { in ShouldRejectRequest()
56 base::TimeDelta BackoffEntry::GetTimeUntilRelease() const { in GetTimeUntilRelease()
63 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime()
67 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime()
71 bool BackoffEntry::CanDiscard() const { in CanDiscard()
96 void BackoffEntry::Reset() { in Reset()
107 base::TimeTicks BackoffEntry::ImplGetTimeNow() const { in ImplGetTimeNow()
111 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime()
Dbackoff_entry_unittest.cc14 BackoffEntry::Policy base_policy = {0, 1000, 2.0, 0.0, 20000, 2000, false};
16 class TestBackoffEntry : public BackoffEntry {
19 : BackoffEntry(policy), now_(TimeTicks()) { in TestBackoffEntry()
48 BackoffEntry::Policy never_expires_policy = base_policy; in TEST()
84 BackoffEntry::Policy always_delay_policy = base_policy; in TEST()
104 BackoffEntry::Policy no_store_policy = base_policy; in TEST()
111 BackoffEntry::Policy lenient_policy = base_policy; in TEST()
114 BackoffEntry entry(&lenient_policy); in TEST()
161 BackoffEntry::Policy always_delay_policy = base_policy; in TEST()
198 BackoffEntry::Policy jittery_policy = base_policy; in TEST()
[all …]
Dbackoff_entry.h18 class BackoffEntry {
59 explicit BackoffEntry(const Policy* const policy);
60 virtual ~BackoffEntry() {} in ~BackoffEntry()
109 DISALLOW_COPY_AND_ASSIGN(BackoffEntry);
Ddevice_registration_info.h315 std::unique_ptr<BackoffEntry::Policy> cloud_backoff_policy_;
316 std::unique_ptr<BackoffEntry> cloud_backoff_entry_;
317 std::unique_ptr<BackoffEntry> oauth2_backoff_entry_;
Ddevice_registration_info.cc247 cloud_backoff_policy_.reset(new BackoffEntry::Policy{});
255 cloud_backoff_entry_.reset(new BackoffEntry{cloud_backoff_policy_.get()});
256 oauth2_backoff_entry_.reset(new BackoffEntry{cloud_backoff_policy_.get()});
1149 std::unique_ptr<BackoffEntry> backoff_entry{ in PublishCommand()
1150 new BackoffEntry{cloud_backoff_policy_.get()}}; in PublishCommand()
/external/libweave/src/commands/
Dcloud_command_proxy.h37 std::unique_ptr<BackoffEntry> backoff_entry,
77 std::unique_ptr<BackoffEntry> cloud_backoff_entry_;
Dcloud_command_proxy_unittest.cc49 class TestBackoffEntry : public BackoffEntry {
52 : BackoffEntry{policy}, clock_{clock} { in TestBackoffEntry()
72 std::unique_ptr<BackoffEntry> backoff_entry, in CloudCommandProxyWrapper()
120 static const BackoffEntry::Policy policy{0, 1000, 2.0, 0.0, in CreateCommandInstance()
Dcloud_command_proxy.cc21 std::unique_ptr<BackoffEntry> backoff_entry, in CloudCommandProxy()
/external/libweave/src/privet/
Dcloud_delegate.cc28 const BackoffEntry::Policy register_backoff_policy = {0, 1000, 2.0, 0.2,
350 BackoffEntry backoff_entry_{&register_backoff_policy};
/external/libweave/src/notification/
Dxmpp_channel.h150 BackoffEntry backoff_entry_;
Dxmpp_channel.cc53 const BackoffEntry::Policy kDefaultBackoffPolicy = {