Home
last modified time | relevance | path

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

/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 …]
Dbackoff_entry.h108 const Policy* const policy_; variable
/external/webrtc/webrtc/base/
Dwinfirewall.cc31 WinFirewall::WinFirewall() : mgr_(NULL), policy_(NULL), profile_(NULL) { in WinFirewall()
51 hr = mgr_->get_LocalPolicy(&policy_); in Initialize()
52 if (SUCCEEDED(hr) && (policy_ != NULL)) in Initialize()
53 hr = policy_->get_CurrentProfile(&profile_); in Initialize()
62 RELEASE(policy_); in Shutdown()
Dwinfirewall.h48 INetFwPolicy* policy_; variable
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsandbox_bpf.cc124 : proc_fd_(), sandbox_has_started_(false), policy_(policy) { in SandboxBPF()
149 DCHECK(policy_); in StartSandbox()
221 DCHECK(policy_); in AssembleFilter()
223 bpf_dsl::PolicyCompiler compiler(policy_.get(), Trap::Registry()); in AssembleFilter()
254 policy_.reset(); in InstallFilter()
Dsandbox_bpf.h108 std::unique_ptr<bpf_dsl::Policy> policy_; variable
/external/libchrome/sandbox/linux/bpf_dsl/
Dpolicy_compiler.cc91 : policy_(policy), in PolicyCompiler()
96 has_unsafe_traps_(HasUnsafeTraps(policy_)) { in PolicyCompiler()
104 CHECK(policy_->InvalidSyscall()->IsDeny()) in Compile()
112 CHECK(policy_->EvaluateSyscall(sysnum)->IsAllow()) in Compile()
227 const CodeGen::Node invalid_node = CompileResult(policy_->InvalidSyscall()); in FindRanges()
231 ? CompileResult(policy_->EvaluateSyscall(old_sysnum)) in FindRanges()
237 ? CompileResult(policy_->EvaluateSyscall(static_cast<int>(sysnum))) in FindRanges()
Dpolicy_compiler.h139 const Policy* policy_; variable
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process.cc42 policy_(denied_errno, permissions) { in BrokerProcess()
78 broker_client_.reset(new BrokerClient(policy_, std::move(ipc_writer), in Init()
88 BrokerHost broker_host(policy_, std::move(ipc_reader)); in Init()
Dbroker_process.h84 syscall_broker::BrokerPolicy policy_; // The sandboxing policy. variable
/external/libbrillo/policy/
Ddevice_policy_impl.cc116 if (!policy_.ParseFromString(polstr) || !policy_.has_policy_data()) { in LoadPolicy()
120 policy_data_.ParseFromString(policy_.policy_data()); in LoadPolicy()
447 if (policy_.has_policy_data_signature()) { in VerifyPolicySignature()
448 std::string policy_data = policy_.policy_data(); in VerifyPolicySignature()
449 std::string policy_data_signature = policy_.policy_data_signature(); in VerifyPolicySignature()
Ddevice_policy_impl.h77 enterprise_management::PolicyFetchResponse policy_; variable
/external/protobuf/conformance/third_party/jsoncpp/
Djsoncpp.cpp2637 storage_.policy_ = allocate & 0x3; in CZString()
2642 : cstr_(other.storage_.policy_ != noDuplication && other.cstr_ != 0 in CZString()
2645 storage_.policy_ = (other.cstr_ in CZString()
2646 ? (static_cast<DuplicationPolicy>(other.storage_.policy_) == noDuplication in CZString()
2648 : static_cast<DuplicationPolicy>(other.storage_.policy_)); in CZString()
2660 if (cstr_ && storage_.policy_ == duplicate) in ~CZString()
2703 bool Value::CZString::isStaticString() const { return storage_.policy_ == noDuplication; } in isStaticString()
Djson.h617 unsigned policy_: 2; member