Searched defs:policy (Results 1 - 25 of 258) sorted by relevance

1234567891011

/external/libbrillo/policy/
H A Dresilient_policy_util.h14 namespace policy { namespace
16 // Returns a map from policy file index to absolute path. The default policy
22 // Returns the path to policy file corresponding to |index| value, based on
23 // the path of the default policy given by |default_policy_path|. Doesn't check
31 // policy file. If successful, the |index_out| contains the index of the file as
38 } // namespace policy
H A Ddevice_policy.cc5 #include "policy/device_policy.h"
7 namespace policy { namespace
15 } // namespace policy
H A Dmock_device_policy.h14 #include "policy/device_policy.h"
18 namespace policy { namespace
21 // subsystems for tests. It allows to mock out the reading of a real policy
22 // file and to simulate different policy values.
24 // // Prepare the action that would return a predefined policy value:
31 // policy::MockDevicePolicy* device_policy = new policy::MockDevicePolicy();
36 // // This example needs to simulate the Metrics Enabled policy being set.
40 // policy::PolicyProvider provider(device_policy);
42 // // In a test that needs other value of that policy w
[all...]
H A Dmock_libpolicy.h11 #include "policy/libpolicy.h"
15 namespace policy { namespace
31 } // namespace policy
H A Dlibpolicy.h15 namespace policy { namespace
21 // If there is a policy on disk at creation time, we will load it at verify
37 // Returns a value from the device policy cache.
46 } // namespace policy
H A Dpolicy_util.cc5 #include "policy/policy_util.h"
10 namespace policy { namespace
23 PLOG(ERROR) << "Could not read policy off disk at " << policy_path.value();
28 LOG(ERROR) << "Empty policy file at " << policy_path.value();
41 } // namespace policy
H A Ddevice_policy.h18 namespace policy { namespace
21 // It is also responsible for loading the policy blob from disk and verifying
24 // This class defines the interface for querying device policy on ChromeOS.
41 // Load the signed policy off of disk into |policy_|.
42 // Returns true unless there is a policy on disk and loading it fails.
45 // Writes the value of the DevicePolicyRefreshRate policy in |rate|. Returns
49 // Writes the value of the UserWhitelist policy in |user_whitelist|. Returns
54 // Writes the value of the GuestModeEnabled policy in |guest_mode_enabled|.
58 // Writes the value of the CameraEnabled policy in |camera_enabled|. Returns
62 // Writes the value of the ShowUserNamesOnSignIn policy i
[all...]
/external/libunwind/src/mi/
H A DGset_caching_policy.c29 unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy) argument
35 if (policy == UNW_CACHE_PER_THREAD)
36 policy = UNW_CACHE_GLOBAL;
39 if (policy == as->caching_policy)
42 as->caching_policy = policy;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D25-3.c27 int policy, result; local
H A D23-1.c13 * scheduling policy.
21 int policy, invalid_priority, old_priority; local
30 policy = sched_getscheduler(0);
31 if (policy == -1) {
36 invalid_priority = sched_get_priority_max(policy);
H A D23-2.c13 * policy.
27 int policy, invalid_priority, old_priority; local
36 policy = sched_getscheduler(0);
37 if (policy == -1) {
40 } else if (policy != SCHED_SPORADIC) {
H A D25-1.c13 * scheduling policy.
22 int policy, invalid_priority, result; local
25 policy = sched_getscheduler(0);
26 if (policy == -1) {
31 invalid_priority = sched_get_priority_max(policy);
H A D25-2.c13 * the sporadic server policy.
28 int policy, invalid_priority, result; local
31 policy = sched_getscheduler(0);
32 if (policy == -1) {
35 } else if (policy != SCHED_SPORADIC) {
H A D25-4.c26 int policy, result; local
H A D5-1.c11 * Test that the scheduling policy and scheduling parameters are set for
22 int result, new_priority, old_priority, max_prio, policy; local
30 policy = sched_getscheduler(getpid());
31 if (policy == -1) {
37 max_prio = sched_get_priority_max(policy);
40 sched_get_priority_min(policy) : max_prio;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D19-3.c28 int policy, result; local
55 ("This process does not have the permission to set its own scheduling policy.\nTry to launch this test as root.\n");
H A D19-4.c29 int policy, result; local
50 ("This process does not have the permission to set its own scheduling policy.\nTry to launch this test as root.\n");
H A D17-3.c11 * Test that the policy and scheduling parameters remain unchanged when the
16 * 1. Get the old policy and priority.
18 * 3. Check that the policy and priority have not changed.
33 int policy, result; local
80 printf("The policy has changed\n");
/external/libbrillo/policy/tests/
H A Dpolicy_util_unittest.cc10 #include "policy/policy_util.h"
14 namespace policy { namespace
16 // Test LoadPolicyFromPath returns correct values and has policy data when
23 base::FilePath invalid_policy_data_path(temp_dir.path().Append("policy"));
24 base::FilePath inexistent_file(temp_dir.path().Append("policy.1"));
25 base::FilePath good_policy_data_path(temp_dir.path().Append("policy.2"));
32 // Create the file with good policy data.
43 enterprise_management::PolicyFetchResponse policy; local
46 LoadPolicyFromPath(invalid_policy_data_path, &policy_data_str, &policy));
48 LoadPolicyFromPath(inexistent_file, &policy_data_str, &policy));
[all...]
H A Dresilient_policy_util_unittest.cc14 #include "policy/resilient_policy_util.h"
18 const char kDefaultResilientPolicyFilePath[] = "policy";
26 namespace policy { namespace
28 // Test that the policy files from the folder are identified correctly.
34 base::FilePath file0(temp_dir.path().Append("policy"));
35 base::FilePath file1(temp_dir.path().Append("policy.12"));
36 base::FilePath file2(temp_dir.path().Append("policy.2"));
37 base::FilePath file3(temp_dir.path().Append("policy.30"));
58 } // namespace policy
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
H A D1-1.c9 * policy and scheduling parameters for the thread whose thread ID is
11 * policy and param, respectively. The priority value returned from
32 int policy; local
35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam);
/external/python/cpython3/Lib/email/mime/
H A Dbase.py9 import email.policy namespace
19 def __init__(self, _maintype, _subtype, *, policy=None, **_params):
26 if policy is None:
27 policy = email.policy.compat32
28 message.Message.__init__(self, policy=policy)
/external/boringssl/src/crypto/x509v3/
H A Dpcy_data.c80 * Create a data based on an existing policy. If 'id' is NULL use the oid in
81 * the policy, otherwise use 'id'. This behaviour covers the two types of
87 X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, argument
92 if (!policy && !cid)
119 ret->valid_policy = policy->policyid;
120 policy->policyid = NULL;
123 if (policy) {
124 ret->qualifier_set = policy->qualifiers;
125 policy->qualifiers = NULL;
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
H A DScheduledTrial.java28 private final TrialSchedulingPolicy policy; field in class:ScheduledTrial
31 TrialSchedulingPolicy policy) {
34 this.policy = policy;
37 TrialSchedulingPolicy policy() { method in class:ScheduledTrial
38 return policy;
30 ScheduledTrial(Experiment experiment, TrialRunLoop runLoop, TrialSchedulingPolicy policy) argument
/external/desugar/java/com/google/devtools/common/options/
H A DInvocationPolicyParser.java30 * Parses InvocationPolicy in either of the accepted formats. Returns an empty policy if no policy
36 public static InvocationPolicy parsePolicy(String policy) throws OptionsParsingException { argument
37 if (Strings.isNullOrEmpty(policy)) {
43 // First try decoding the policy as a base64 encoded binary proto.
45 BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(policy)));
47 // If the flag value can't be decoded from base64, try decoding the policy as a text
50 TextFormat.merge(policy, builder);
54 throw new OptionsParsingException("Malformed value of --invocation_policy: " + policy, e);

Completed in 2238 milliseconds

1234567891011