/external/libbrillo/policy/ |
policy_util.cc | 5 #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(); 33 LOG(ERROR) << "Policy on disk could not be parsed, file: " 41 } // namespace policy
|
resilient_policy_util.h | 14 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
|
device_policy.cc | 5 #include "policy/device_policy.h" 7 namespace policy { namespace 15 } // namespace policy
|
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 we can do that [all...] |
mock_libpolicy.h | 11 #include "policy/libpolicy.h" 15 namespace policy { namespace 31 } // namespace policy
|
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
|
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 in |show_user_names| [all...] |
libpolicy.cc | 5 #include "policy/libpolicy.h" 9 #include "policy/device_policy.h" 11 #include "policy/device_policy_impl.h" 14 namespace policy { namespace 35 LOG(WARNING) << "Could not load the device policy file."; 46 DCHECK("Trying to get policy data but policy was not loaded!"); 51 } // namespace policy
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
25-3.c | 27 int policy, result; local
|
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);
|
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) {
|
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);
|
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) {
|
25-4.c | 26 int policy, result; local
|
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/ |
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");
|
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");
|
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/libbrillo/policy/tests/ |
policy_util_unittest.cc | 10 #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...] |
resilient_policy_util_unittest.cc | 14 #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/ |
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);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowStrictModeTest.java | 12 StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder().build(); local 13 StrictMode.setVmPolicy(policy); // should not result in an exception
|
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
PhoneWindowActionModeTestActivity.java | 17 package com.android.internal.policy;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
EthernetIcons.java | 17 package com.android.systemui.statusbar.policy;
|
Listenable.java | 17 package com.android.systemui.statusbar.policy;
|