/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_file_test.c | 26 static const char *policy = ""; variable 31 printf("%s : ", policy); in show_result() 126 policy = "allow_read /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 127 write_domain_policy(policy, 0); in stage_file_test() 129 write_domain_policy(policy, 1); in stage_file_test() 132 policy = "allow_write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 133 write_domain_policy(policy, 0); in stage_file_test() 135 write_domain_policy(policy, 1); in stage_file_test() 138 policy = "allow_read/write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 139 write_domain_policy(policy, 0); in stage_file_test() [all …]
|
D | tomoyo_policy_memory_test.c | 42 static const char *policy = NULL; variable 63 if (strcmp(buffer, policy)) in check_policy_common() 70 printf("BUG: Policy write error: %s %s at %d\n", policy, in check_policy_common() 191 policy = domain_testcases[j]; in domain_policy_test() 192 printf("Processing: %s\n", policy); in domain_policy_test() 194 fprintf(fp, "%s\n", policy); in domain_policy_test() 197 fprintf(fp, "delete %s\n", policy); in domain_policy_test() 201 fprintf(fp, "%s\n", policy); in domain_policy_test() 203 fprintf(fp, "delete %s\n", policy); in domain_policy_test() 300 policy = exception_testcases[j]; in exception_policy_test() [all …]
|
/external/libbrillo/policy/tests/ |
D | libpolicy_unittest.cc | 16 namespace policy { namespace 52 const DevicePolicy& policy = provider.GetDevicePolicy(); in TEST() local 56 ASSERT_TRUE(policy.GetPolicyRefreshRate(&int_value)); in TEST() 60 ASSERT_TRUE(policy.GetUserWhitelist(&list_value)); in TEST() 67 ASSERT_TRUE(policy.GetGuestModeEnabled(&bool_value)); in TEST() 71 ASSERT_TRUE(policy.GetCameraEnabled(&bool_value)); in TEST() 75 ASSERT_TRUE(policy.GetShowUserNames(&bool_value)); in TEST() 79 ASSERT_TRUE(policy.GetDataRoamingEnabled(&bool_value)); in TEST() 83 ASSERT_TRUE(policy.GetAllowNewUsers(&bool_value)); in TEST() 87 ASSERT_TRUE(policy.GetMetricsEnabled(&bool_value)); in TEST() [all …]
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_policy.py | 5 import email.policy 35 'header_factory': email.policy.EmailPolicy.header_factory, 37 'content_manager': email.policy.EmailPolicy.content_manager, 45 new_policy = email.policy.EmailPolicy() 47 email.policy.compat32: make_defaults(compat32_defaults, {}), 48 email.policy.default: make_defaults(policy_defaults, {}), 49 email.policy.SMTP: make_defaults(policy_defaults, 51 email.policy.SMTPUTF8: make_defaults(policy_defaults, 54 email.policy.HTTP: make_defaults(policy_defaults, 57 email.policy.strict: make_defaults(policy_defaults, [all …]
|
D | test_generator.py | 7 from email import policy 14 policy = policy.default variable in TestGeneratorBase 16 def msgmaker(self, msg, policy=None): argument 17 policy = self.policy if policy is None else policy 18 return self.msgfunc(msg, policy=policy) 90 g = self.genclass(s, maxheaderlen=n, policy=self.policy) 97 g = self.genclass(s, policy=self.policy.clone(max_line_length=n)) 105 policy=self.policy.clone(max_line_length=10)) 112 g = self.genclass(s, policy=self.policy.clone(refold_source='none', 120 g = self.genclass(s, policy=self.policy.clone(refold_source='all', [all …]
|
D | __init__.py | 29 policy = compat32 variable in TestEmailBase 42 return email.message_from_file(fp, policy=self.policy) 44 def _str_msg(self, string, message=None, policy=None): argument 45 if policy is None: 46 policy = self.policy 49 return email.message_from_string(string, message, policy=policy) 51 def _bytes_msg(self, bytestring, message=None, policy=None): argument 52 if policy is None: 53 policy = self.policy 56 return email.message_from_bytes(bytestring, message, policy=policy) [all …]
|
D | test_headerregistry.py | 5 from email import policy 141 self.assertEqual(h.fold(policy=policy.default), folded) 212 m = Message(policy=policy.default) 242 self.assertEqual(h.fold(policy=policy.default), folded) 769 self.assertEqual(h.fold(policy=policy.default), folded) 811 self.assertEqual(h.fold(policy=policy.default), folded) 875 self.assertEqual(h.fold(policy=policy.default), 1304 self.assertEqual(h.fold(policy=policy.default.clone(max_line_length=40)), 1494 m = Message(policy=policy.default) 1501 m = Message(policy=policy.default) [all …]
|
D | test_parser.py | 5 from email.policy import default 12 def __init__(self, policy): argument 13 self.check_policy = policy 16 MyPolicy = TestEmailBase.policy.clone(linesep='boo') 21 policy=self.MyPolicy) 29 policy=self.MyPolicy) 55 policy=default, 77 msg = parser("To: foo\n\ntest", policy=MyPolicy) 84 msg = parser("To: foo\n\ntest", Message, policy=MyPolicy)
|
/external/boringssl/src/crypto/x509v3/ |
D | v3_pci.c | 76 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci() 78 pci->proxyPolicy->policy->data); in i2r_pci() 84 ASN1_OCTET_STRING **policy) in process_pci_value() argument 115 if (!*policy) { in process_pci_value() 116 *policy = ASN1_OCTET_STRING_new(); in process_pci_value() 117 if (!*policy) { in process_pci_value() 134 tmp_data = OPENSSL_realloc((*policy)->data, in process_pci_value() 135 (*policy)->length + val_len + 1); in process_pci_value() 137 (*policy)->data = tmp_data; in process_pci_value() 138 OPENSSL_memcpy(&(*policy)->data[(*policy)->length], in process_pci_value() [all …]
|
D | pcy_data.c | 87 X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, in policy_data_new() argument 92 if (!policy && !cid) in policy_data_new() 119 ret->valid_policy = policy->policyid; in policy_data_new() 120 policy->policyid = NULL; in policy_data_new() 123 if (policy) { in policy_data_new() 124 ret->qualifier_set = policy->qualifiers; in policy_data_new() 125 policy->qualifiers = NULL; in policy_data_new()
|
/external/ltp/testcases/kernel/syscalls/get_mempolicy/ |
D | get_mempolicy01.c | 90 int policy; member 110 .policy = MPOL_DEFAULT, 117 .policy = MPOL_BIND, 124 .policy = MPOL_INTERLEAVE, 131 .policy = MPOL_PREFERRED, 138 .policy = MPOL_PREFERRED, 145 .policy = MPOL_DEFAULT, 152 .policy = MPOL_BIND, 159 .policy = MPOL_INTERLEAVE, 166 .policy = MPOL_PREFERRED, [all …]
|
/external/python/cpython3/Lib/email/ |
D | generator.py | 37 policy=None): argument 62 mangle_from_ = True if policy is None else policy.mangle_from_ 66 self.policy = policy 93 policy = msg.policy if self.policy is None else self.policy 95 policy = policy.clone(linesep=linesep) 97 policy = policy.clone(max_line_length=self.maxheaderlen) 98 self._NL = policy.linesep 106 old_gen_policy = self.policy 107 old_msg_policy = msg.policy 109 self.policy = policy [all …]
|
D | message.py | 120 def __init__(self, policy=compat32): argument 121 self.policy = policy 137 def as_string(self, unixfrom=False, maxheaderlen=0, policy=None): argument 152 policy = self.policy if policy is None else policy 157 policy=policy) 166 def as_bytes(self, unixfrom=False, policy=None): argument 175 policy = self.policy if policy is None else policy 177 g = BytesGenerator(fp, mangle_from_=False, policy=policy) 288 self.policy.handle_defect(self, defect) 399 max_count = self.policy.header_max_count(name) [all …]
|
/external/ltp/testcases/realtime/stress/pi-tests/ |
D | testpi-3.c | 101 int rc, i, j, policy, tid = gettid(); in func_nonrt() local 117 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_nonrt() 124 pthr->priority, policy, schedp.sched_priority); in func_nonrt() 129 policy = sched_getscheduler(tid); in func_nonrt() 132 policy, schedp.sched_priority); in func_nonrt() 150 int rc, i, j, policy, tid = gettid(); in func_rt() local 166 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_rt() 174 pthr->priority, policy, schedp.sched_priority); in func_rt() 184 policy = sched_getscheduler(tid); in func_rt() 187 tid, pthr->priority, i, policy, in func_rt() [all …]
|
/external/selinux/secilc/docs/ |
D | cil_introduction.md | 4 …s between one or more high level policy languages (such as the current module language) and the lo… 6 …e and produce language constructs with more features than the raw kernel policy (e.g., interfaces)… 8 …f high-level languages, encouraging the creation of more domain specific policy languages (e.g., C… 10 * Provides a semantically rich representation suitable for policy analysis, allowing the analysis o… 19 …sy to parse and to generate by high-level compilers, analysis tools, and policy generation tools. … 21 …policy that will be enforced by the kernel. That policy must be full represented so that all of th… 23 …istent one - CIL is meant for a source policy oriented world, so assume and leverage that. The onl… 25 …lute requirement. Where necessary it is assumed that manual or automated policy conversion will be… 27 …policy, but there is no reason to re-think core concepts that are working well. All changes to exi… 29 * No more M4 - the pervasive use of M4 and pre-processing in general has eased policy creation, but… [all …]
|
/external/libbrillo/ |
D | libpolicy.gypi | 8 'destination': '<(SHARED_INTERMEDIATE_DIR)/include/policy', 10 'policy/device_policy.h', 11 'policy/device_policy_impl.h', 12 'policy/libpolicy.h', 13 'policy/mock_libpolicy.h', 14 'policy/mock_device_policy.h', 15 'policy/policy_util.h', 16 'policy/resilient_policy_util.h',
|
/external/python/cpython3/Doc/library/ |
D | email.parser.rst | 42 :class:`~email.message.EmailMessage` class is embodied in the :mod:`policy` 44 necessary by implementing custom versions of the appropriate :mod:`policy` 73 .. class:: BytesFeedParser(_factory=None, *, policy=policy.compat32) 77 :attr:`~email.policy.Policy.message_factory` from the *policy*. Call 80 If *policy* is specified use the rules it specifies to update the 81 representation of the message. If *policy* is not set, use the 82 :class:`compat32 <email.policy.Compat32>` policy, which maintains backward 86 more information on what else *policy* controls, see the 87 :mod:`~email.policy` documentation. 89 Note: **The policy keyword should always be specified**; The default will [all …]
|
D | asyncio-eventloops.rst | 10 global policy. Note that this provides access to the default policy, unless an 11 alternative policy was set by calling :func:`set_event_loop_policy` earlier in 139 Event loop policies and the default policy 142 Event loop management is abstracted with a *policy* pattern, to provide maximal 144 process, a single global policy object manages the event loops available to the 145 process based on the calling context. A policy is an object implementing the 149 explicitly, since the default global policy is sufficient. 151 The default policy defines context as the current thread, and manages an event 154 event loops managed by the default policy. 157 Event loop policy interface [all …]
|
D | email.generator.rst | 23 assuming the same non-transforming :mod:`~email.policy` is used for both. That 41 policy=None) 51 defaults to the value of the :attr:`~email.policy.Policy.mangle_from_` 52 setting of the *policy* (which is ``True`` for the 53 :data:`~email.policy.compat32` policy and ``False`` for all others). 61 lines according to the *policy* settings. 63 If *policy* is specified, use that policy to control message generation. If 64 *policy* is ``None`` (the default), use the policy associated with the 67 :mod:`email.policy` for details on what *policy* controls. 71 .. versionchanged:: 3.3 Added the *policy* keyword. [all …]
|
/external/autotest/client/cros/enterprise/ |
D | enterprise_policy_base.py | 234 for policy in policies_dict: 235 value = policies_dict[policy] 237 policies_to_pop.append(policy) 239 policies_dict[policy] = encode_json_string(value) 244 policies_dict[policy] = value 245 for policy in policies_to_pop: 246 policies_dict.pop(policy) 464 for policy in user_policies: 465 self._compare_values(policy, user_policies[policy], 466 stats[policy]['value']) [all …]
|
/external/python/cpython3/Lib/email/mime/ |
D | base.py | 9 import email.policy 18 def __init__(self, _maintype, _subtype, *, policy=None, **_params): argument 25 if policy is None: 26 policy = email.policy.compat32 27 message.Message.__init__(self, policy=policy)
|
/external/desugar/java/com/google/devtools/common/options/ |
D | InvocationPolicyEnforcer.java | 81 private final FlagPolicy policy; field in InvocationPolicyEnforcer.FlagPolicyWithContext 86 FlagPolicy policy, OptionDescription description, OptionInstanceOrigin origin) { in FlagPolicyWithContext() argument 87 this.policy = policy; in FlagPolicyWithContext() 128 String flagName = flagPolicy.policy.getFlagName(); in enforce() 148 switch (flagPolicy.policy.getOperationCase()) { in enforce() 159 AllowValues allowValues = flagPolicy.policy.getAllowValues(); in enforce() 173 DisallowValues disallowValues = flagPolicy.policy.getDisallowValues(); in enforce() 193 flagPolicy.policy.getOperationCase(), flagName)); in enforce() 205 private static boolean policyApplies(FlagPolicy policy, ImmutableSet<String> applicableCommands) { in policyApplies() argument 208 if (policy.getCommandsList().isEmpty() || applicableCommands.isEmpty()) { in policyApplies() [all …]
|
/external/ltp/testcases/kernel/syscalls/mbind/ |
D | mbind01.c | 39 #define POLICY_DESC(x) .policy = x, .desc = #x 40 #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = #x" ("y")" 49 int policy; member 136 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default() 144 TEST(mbind(p, MEM_LENGTH, tc->policy, NULL, 0, tc->flags)); in test_none() 152 TEST(mbind(p, MEM_LENGTH, tc->policy, sbrk(0) + 64*1024*1024, in test_invalid_nodemask() 178 int policy, fail = 0; in do_test() local 194 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test() 200 if (tc->policy != policy) { in do_test() 202 tc->policy, policy); in do_test()
|
/external/minijail/ |
D | syscall_filter_unittest.cc | 855 FILE *write_policy_to_pipe(const char *policy, size_t len) { in write_policy_to_pipe() argument 866 ret = write(pipefd[1], &policy[i], len - i); in write_policy_to_pipe() 910 const char *policy = in TEST_F() local 913 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); in TEST_F() 926 const char *policy = in TEST_F() local 930 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); in TEST_F() 943 const char *policy = in TEST_F() local 946 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); in TEST_F() 959 const char *policy = in TEST_F() local 965 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); in TEST_F() [all …]
|
/external/autotest/client/site_tests/login_RemoteOwnership/ |
D | login_RemoteOwnership.py | 10 from autotest_lib.client.common_lib.cros import policy, session_manager 38 poldata = policy.build_policy_data(self.srcdir) 41 policy.push_policy_and_verify( 42 policy.generate_policy(self.srcdir, priv, pub, poldata), self._sm) 46 policy.push_policy_and_verify( 47 policy.generate_policy(self.srcdir, priv, pub, poldata), self._sm) 60 policy.push_policy_and_verify( 61 policy.generate_policy(self.srcdir, 64 policy=poldata,
|