/external/libbrillo/policy/ |
H A D | device_policy.cc | 5 #include "policy/device_policy.h" 7 namespace policy { namespace 15 } // namespace policy
|
H A D | mock_device_policy.h | 14 #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 D | mock_libpolicy.h | 11 #include "policy/libpolicy.h" 15 namespace policy { namespace 31 } // namespace policy
|
H A D | libpolicy.h | 15 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 D | device_policy.h | 18 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...] |
H A D | device_policy_impl.h | 17 #include "policy/device_policy.h" 21 namespace policy { namespace 25 // Before serving it to the users this class verifies that the policy is valid 26 // against its signature and the owner's key and also that the policy files 67 // Verifies that the policy files are owned by root and exist. 74 // Verifies that the policy signature is correct. 83 } // namespace policy
|
H A D | libpolicy.cc | 5 #include "policy/libpolicy.h" 9 #include "policy/device_policy.h" 11 #include "policy/device_policy_impl.h" 14 namespace policy { namespace 37 LOG(WARNING) << "Could not load the device policy file."; 48 DCHECK("Trying to get policy data but policy was not loaded!"); 53 } // namespace policy
|
/external/libunwind/src/mi/ |
H A D | Gset_caching_policy.c | 29 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 D | 25-3.c | 27 int policy, result; local
|
H A D | 23-1.c | 13 * 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 D | 23-2.c | 13 * 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 D | 25-1.c | 13 * 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 D | 25-2.c | 13 * 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 D | 25-4.c | 26 int policy, result; local
|
H A D | 5-1.c | 11 * 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 D | 19-3.c | 28 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 D | 19-4.c | 29 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 D | 17-3.c | 11 * 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
H A D | 1-1.c | 9 * 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);
|
H A D | 1-2.c | 9 * policy and scheduling parameters for the thread whose thread ID is 11 * policy and param, respectively. The priority value returned from 33 int policy, priority, policy_1; local 36 policy = SCHED_FIFO; 37 priority = sched_get_priority_min(policy); 40 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 51 if (policy_1 != policy) { 52 printf("Failed: policys: %u != %u\n", policy_1, policy);
|
/external/boringssl/src/crypto/x509v3/ |
H A D | pcy_data.c | 80 * 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 D | ScheduledTrial.java | 28 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/ |
H A D | 5-1.c | 30 int set_policy(char *label, int policy) argument 43 rc = pthread_attr_setschedpolicy(&attr, policy);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
H A D | 1-1.c | 19 int policy, priority, policy_1; local 22 policy = SCHED_FIFO; 23 priority = sched_get_priority_min(policy); 26 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 36 //printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); 37 if (policy_1 != policy || sparam.sched_priority != priority) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/ |
H A D | 1-1.c | 9 * policy and scheduling parameters for the thread whose thread ID is 11 * policy and param, respectively. The priority value returned from 29 int policy, priority, policy_1; local 32 policy = SCHED_FIFO; 33 priority = sched_get_priority_min(policy); 36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 46 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); 47 if (policy_1 != policy || sparam.sched_priority != priority) { 63 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority);
|