Home
last modified time | relevance | path

Searched refs:policy_ (Results 1 – 25 of 49) sorted by relevance

12

/external/libbrillo/brillo/
Dbackoff_entry.cc18 : policy_(policy) { in BackoffEntry()
19 DCHECK(policy_); in BackoffEntry()
46 if (policy_->always_use_initial_delay) in InformOfRequest()
47 delay = base::TimeDelta::FromMilliseconds(policy_->initial_delay_ms); in InformOfRequest()
73 if (policy_->entry_lifetime_ms == -1) in CanDiscard()
88 return unused_since_ms >= std::max(policy_->maximum_backoff_ms, in CanDiscard()
89 policy_->entry_lifetime_ms); in CanDiscard()
94 return unused_since_ms >= policy_->entry_lifetime_ms; in CanDiscard()
114 std::max(0, failure_count_ - policy_->num_errors_to_ignore); in CalculateReleaseTime()
118 if (policy_->always_use_initial_delay) in CalculateReleaseTime()
[all …]
/external/cronet/net/base/
Dbackoff_entry.cc24 : policy_(policy), clock_(clock) { in BackoffEntry()
25 DCHECK(policy_); in BackoffEntry()
58 if (policy_->always_use_initial_delay) in InformOfRequest()
59 delay = base::Milliseconds(policy_->initial_delay_ms); in InformOfRequest()
85 if (policy_->entry_lifetime_ms == -1) in CanDiscard()
100 return unused_since_ms >= std::max(policy_->maximum_backoff_ms, in CanDiscard()
101 policy_->entry_lifetime_ms); in CanDiscard()
106 return unused_since_ms >= policy_->entry_lifetime_ms; in CanDiscard()
124 base::ClampSub(failure_count_, policy_->num_errors_to_ignore).Max(0); in CalculateReleaseTime()
128 if (policy_->always_use_initial_delay) in CalculateReleaseTime()
[all …]
/external/libchrome/components/policy/core/common/
Dexternal_data_fetcher.cc16 policy_(policy) { in ExternalDataFetcher()
21 policy_(other.policy_) { in ExternalDataFetcher()
35 first->policy_ == second->policy_; in Equals()
40 manager_->Fetch(policy_, callback); in Fetch()
Dexternal_data_fetcher.h48 const std::string policy_; variable
/external/leveldb/table/
Dfilter_block_test.cc41 TestHashFilter policy_; member in leveldb::FilterBlockTest
45 FilterBlockBuilder builder(&policy_); in TEST_F()
48 FilterBlockReader reader(&policy_, block); in TEST_F()
54 FilterBlockBuilder builder(&policy_); in TEST_F()
64 FilterBlockReader reader(&policy_, block); in TEST_F()
75 FilterBlockBuilder builder(&policy_); in TEST_F()
95 FilterBlockReader reader(&policy_, block); in TEST_F()
Dfilter_block.cc19 : policy_(policy) {} in FilterBlockBuilder()
70 policy_->CreateFilter(&tmp_keys_[0], static_cast<int>(num_keys), &result_); in GenerateFilter()
79 : policy_(policy), data_(nullptr), offset_(nullptr), num_(0), base_lg_(0) { in FilterBlockReader()
97 return policy_->KeyMayMatch(key, filter); in KeyMayMatch()
Dfilter_block.h44 const FilterPolicy* policy_; variable
59 const FilterPolicy* policy_;
/external/leveldb/util/
Dbloom_test.cc22 BloomTest() : policy_(NewBloomFilterPolicy(10)) {} in BloomTest()
24 ~BloomTest() { delete policy_; } in ~BloomTest()
39 policy_->CreateFilter(&key_slices[0], static_cast<int>(key_slices.size()), in Build()
62 return policy_->KeyMayMatch(s, filter_); in Matches()
77 const FilterPolicy* policy_; member in leveldb::BloomTest
/external/cronet/third_party/protobuf/src/google/protobuf/
Darena_impl.h118 constexpr TaggedAllocationPolicyPtr() : policy_(0) {} in TaggedAllocationPolicyPtr()
121 : policy_(reinterpret_cast<uintptr_t>(policy)) {} in TaggedAllocationPolicyPtr()
124 auto bits = policy_ & kTagsMask; in set_policy()
125 policy_ = reinterpret_cast<uintptr_t>(policy) | bits; in set_policy()
129 return reinterpret_cast<AllocationPolicy*>(policy_ & kPtrMask); in get()
132 return reinterpret_cast<const AllocationPolicy*>(policy_ & kPtrMask); in get()
153 uintptr_t get_raw() const { return policy_; } in get_raw()
171 return policy_ & kMask; in get_mask()
176 policy_ |= kMask; in set_mask()
178 policy_ &= ~kMask; in set_mask()
[all …]
/external/protobuf/src/google/protobuf/
Darena_impl.h125 constexpr TaggedAllocationPolicyPtr() : policy_(0) {} in TaggedAllocationPolicyPtr()
128 : policy_(reinterpret_cast<uintptr_t>(policy)) {} in TaggedAllocationPolicyPtr()
131 auto bits = policy_ & kTagsMask; in set_policy()
132 policy_ = reinterpret_cast<uintptr_t>(policy) | bits; in set_policy()
136 return reinterpret_cast<AllocationPolicy*>(policy_ & kPtrMask); in get()
139 return reinterpret_cast<const AllocationPolicy*>(policy_ & kPtrMask); in get()
160 uintptr_t get_raw() const { return policy_; } in get_raw()
178 return policy_ & kMask; in get_mask()
183 policy_ |= kMask; in set_mask()
185 policy_ &= ~kMask; in set_mask()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/
Dsubchannel_list.h190 LoadBalancingPolicy* policy() const { return policy_; } in policy()
218 LoadBalancingPolicy* policy_; variable
360 policy_(policy), in SubchannelList()
378 tracer_->name(), policy_, address.ToString().c_str()); in SubchannelList()
386 tracer_->name(), policy_, this, subchannels_.size(), in SubchannelList()
397 policy_, this); in ~SubchannelList()
405 tracer_->name(), policy_, this); in ShutdownLocked()
/external/cronet/net/reporting/
Dreporting_endpoint_manager_unittest.cc257 policy_.endpoint_backoff_policy.num_errors_to_ignore = 0; in ReportingEndpointManagerTest()
258 policy_.endpoint_backoff_policy.initial_delay_ms = 60000; in ReportingEndpointManagerTest()
259 policy_.endpoint_backoff_policy.multiply_factor = 2.0; in ReportingEndpointManagerTest()
260 policy_.endpoint_backoff_policy.jitter_factor = 0.0; in ReportingEndpointManagerTest()
261 policy_.endpoint_backoff_policy.maximum_backoff_ms = -1; in ReportingEndpointManagerTest()
262 policy_.endpoint_backoff_policy.entry_lifetime_ms = 0; in ReportingEndpointManagerTest()
263 policy_.endpoint_backoff_policy.always_use_initial_delay = false; in ReportingEndpointManagerTest()
268 &policy_, &clock_, &delegate_, &cache_, TestReportingRandIntCallback()); in ReportingEndpointManagerTest()
293 ReportingPolicy policy_; member in net::__anona1bef6360111::ReportingEndpointManagerTest
316 ASSERT_EQ(2.0, policy_.endpoint_backoff_policy.multiply_factor); in TEST_F()
[all …]
Dreporting_context.cc96 return store_ && policy_.persist_reports_across_restarts; in IsReportDataPersisted()
100 return store_ && policy_.persist_clients_across_restarts; in IsClientDataPersisted()
115 : policy_(policy), in ReportingContext()
Dreporting_endpoint_manager.cc40 : policy_(policy), in ReportingEndpointManagerImpl()
138 std::make_unique<BackoffEntry>(&policy_->endpoint_backoff_policy, in InformOfEndpointRequest()
147 const raw_ptr<const ReportingPolicy> policy_; member in net::__anon6a4490b70111::ReportingEndpointManagerImpl
Dreporting_context.h48 const ReportingPolicy& policy() const { return policy_; } in policy()
88 ReportingPolicy policy_;
/external/cronet/base/synchronization/
Dwaitable_event_mac.cc28 : policy_(reset_policy) { in WaitableEvent()
64 return PeekPort(receive_right_->Name(), policy_ == ResetPolicy::AUTOMATIC); in IsSignaled()
77 if (policy_ == ResetPolicy::MANUAL) { in TimedWaitImpl()
166 if (raw_waitables[triggered]->policy_ == ResetPolicy::AUTOMATIC) { in WaitMany()
206 if (event->policy_ == ResetPolicy::AUTOMATIC) { in WaitMany()
/external/cronet/net/cookies/
Dstatic_cookie_policy_unittest.cc24 void SetPolicyType(StaticCookiePolicy::Type type) { policy_.set_type(type); } in SetPolicyType()
26 return policy_.CanAccessCookies(url, in CanAccessCookies()
31 StaticCookiePolicy policy_; member in net::StaticCookiePolicyTest
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/
Dsubchannel_list.h217 LoadBalancingPolicy* policy() const { return policy_; } in policy()
253 LoadBalancingPolicy* policy_; variable
491 policy_(policy), in SubchannelList()
527 tracer_->name(), policy_, address_uri); in SubchannelList()
538 tracer_->name(), policy_, this, subchannels_.size(), subchannel, in SubchannelList()
551 policy_, this); in ~SubchannelList()
560 tracer_->name(), policy_, this); in ShutdownLocked()
/external/ImageMagick/Magick++/lib/
DFunctions.cpp55 MagickPPExport bool Magick::SetSecurityPolicy(const std::string &policy_) in SetSecurityPolicy() argument
61 status=MagickCore::SetMagickSecurityPolicy(policy_.c_str(), in SetSecurityPolicy()
/external/libchrome/base/
Dobserver_list_threadsafe.h103 : policy_(policy) {}
125 if (policy_ == ObserverListPolicy::ALL) {
222 const ObserverListPolicy policy_ = ObserverListPolicy::ALL;
Dobserver_list.h116 max_index_(list->policy_ == ObserverListPolicy::ALL in Iter()
226 explicit ObserverList(ObserverListPolicy policy) : policy_(policy) {} in ObserverList()
297 const ObserverListPolicy policy_ = ObserverListPolicy::ALL; variable
/external/cronet/base/
Dobserver_list_threadsafe.h113 : policy_(policy) {}
148 if (policy_ == ObserverListPolicy::ALL) {
265 const ObserverListPolicy policy_ = ObserverListPolicy::ALL;
Dobserver_list.h133 max_index_(list->policy_ == ObserverListPolicy::ALL in Iter()
258 : policy_(policy) { in policy_() function
380 const ObserverListPolicy policy_; variable
/external/libbrillo/policy/
Ddevice_policy_impl.cc733 if (policy_.has_policy_data_signature()) { in VerifyPolicySignature()
734 std::string policy_data = policy_.policy_data(); in VerifyPolicySignature()
735 std::string policy_data_signature = policy_.policy_data_signature(); in VerifyPolicySignature()
753 if (policy::LoadPolicyFromPath(policy_path, &policy_data_str, &policy_) != in LoadPolicyFromFile()
757 if (!policy_.has_policy_data()) { in LoadPolicyFromFile()
761 if (!policy_data_.ParseFromString(policy_.policy_data()) || in LoadPolicyFromFile()
/external/ImageMagick/Magick++/lib/Magick++/
DFunctions.h35 MagickPPExport bool SetSecurityPolicy(const std::string &policy_);

12