/external/selinux/libsepol/tests/ |
Makefile | 11 # In order to load source policies we need to link in the checkpolicy/checkmodule parser and util code. 12 # This is less than ideal, but it makes the tests easier to maintain by allowing source policies 24 m4support := $(wildcard policies/support/*.spt) 25 testsuites := $(wildcard policies/test-*) 29 policies := $(stdpol) $(mlspol) macro 31 all: $(EXE) $(policies) 32 policies: $(policies) 45 rm -f $(policies) 46 rm -f policies/test-downgrade/policy.hi policies/test-downgrade/policy.l [all...] |
test-linker.c | 48 const char *policies[NUM_POLICIES] = { variable 63 if (test_load_policy(&linkedbase, POLICY_BASE, mls, "test-linker", policies[BASEMOD])) 66 if (test_load_policy(&basenomods, POLICY_BASE, mls, "test-linker", policies[BASEMOD])) 77 if (test_load_policy(modules[i], POLICY_MOD, mls, "test-linker", policies[i]))
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
AttributePolicy.java | 61 /** Utilities for working with attribute policies. */ 65 * An attribute policy equivalent to applying all the given policies in 69 public static final AttributePolicy join(AttributePolicy... policies) { 71 for (AttributePolicy p : policies) { 73 uniq.addAll(((JoinedAttributePolicy) p).policies); 112 final ImmutableList<AttributePolicy> policies; field in class:JoinedAttributePolicy 114 JoinedAttributePolicy(Collection<? extends AttributePolicy> policies) { 115 this.policies = ImmutableList.copyOf(policies); 120 for (AttributePolicy p : policies) { [all...] |
ElementAndAttributePolicyBasedSanitizerPolicy.java | 42 * A sanitizer policy that applies element and attribute policies to tags. 104 ElementAndAttributePolicies policies = elAndAttrPolicies.get(elementName); local 105 String adjustedElementName = applyPolicies(elementName, attrs, policies); 107 && !(attrs.isEmpty() && policies.skipIfEmpty)) { 108 writeOpenTag(policies, adjustedElementName, attrs); 116 ElementAndAttributePolicies policies) { 118 if (policies != null) { 123 = policies.attrPolicies.get(name); 140 adjustedElementName = policies.elPolicy.apply(elementName, attrs); 174 ElementAndAttributePolicies policies, String adjustedElementName [all...] |
PolicyFactory.java | 46 * policies. 56 private final ImmutableMap<String, ElementAndAttributePolicies> policies; field in class:PolicyFactory 61 ImmutableMap<String, ElementAndAttributePolicies> policies, 64 this.policies = policies; 72 out, policies, textContainers); 130 * policies where they overlap on a particular granted attribute or element 136 // Merge this and f into a map of element names to attribute policies. 138 : policies.entrySet()) { 141 ElementAndAttributePolicies q = f.policies.get(elName) [all...] |
ElementPolicy.java | 40 * Element policies are applied <strong>after</strong> 41 * {@link AttributePolicy attribute policies} so 59 /** Utilities for working with element policies. */ 64 * Given zero or more element policies, returns an element policy equivalent 67 public static final ElementPolicy join(ElementPolicy... policies) { 94 for (ElementPolicy policy : policies) {
|
HtmlPolicyBuilder.java | 48 * Conveniences for configuring policies for the {@link HtmlSanitizer}. 74 * so you can easily white-list widely used policies that don't violate the 129 * <li>Element and attribute policies are applied in the following order: 132 * Element policies come last so they can observe all the post-processed 134 * attribute policies. 135 * Element specific policies go first, so they can normalize content to 148 * binding policies to output channels is cheap so there's no need. 298 * Returns an object that lets you associate policies with the given 345 Map<String, AttributePolicy> policies = attrPolicies.get(elementName); local 346 if (policies == null) 575 Map<String, AttributePolicy> policies = e.getValue(); local [all...] |
/external/strace/xlat/ |
policies.h | 1 /* Generated by ./xlat/gen.sh from ./xlat/policies.in; do not edit. */ 17 # error static const struct xlat policies in mpers mode 22 const struct xlat policies[] = { variable in typeref:struct:xlat
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
IPolicyService.aidl | 21 boolean isActive(in Policy policies);
|
/packages/services/Car/service/src/com/android/car/ |
AudioRoutingPolicy.java | 29 * multiple policies and VEHICLE_PROPERTY_AUDIO_HW_VARIANT decide which one to use. 45 String[] policies = res.getStringArray(R.array.audioRoutingPolicy); local 47 if (policyNumber > (policies.length - 1)) { 49 policyNumber + ", num of avaiable policies:" + policies.length); 50 policy = policies[0]; 54 policy = policies[policyNumber];
|
/external/boringssl/src/crypto/x509/ |
x509_vpm.c | 143 if (param->policies) { 144 sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free); 145 param->policies = NULL; 290 if (test_x509_verify_param_copy(policies, NULL)) { 291 if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies)) 412 if (!param->policies) { 413 param->policies = sk_ASN1_OBJECT_new_null(); 414 if (!param->policies) 417 if (!sk_ASN1_OBJECT_push(param->policies, policy)) 423 STACK_OF(ASN1_OBJECT) *policies) [all...] |
/external/linux-kselftest/tools/testing/selftests/cpufreq/ |
cpufreq.sh | 30 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*") 31 for policy in $policies; do 38 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*") 39 for policy in $policies; do
|
/external/boringssl/src/crypto/x509v3/ |
pcy_cache.c | 76 CERTIFICATEPOLICIES *policies, int crit) 83 if (sk_POLICYINFO_num(policies) == 0) 88 for (i = 0; i < sk_POLICYINFO_num(policies); i++) { 89 policy = sk_POLICYINFO_value(policies, i); 115 sk_POLICYINFO_pop_free(policies, POLICYINFO_free); 144 * don't have any policies. 168 * no point continuing because the valid policies will be NULL.
|
/frameworks/av/media/libmedia/ |
IResourceManagerService.cpp | 66 virtual void config(const Vector<MediaResourcePolicy> &policies) { 69 writeToParcel(&data, policies); 123 Vector<MediaResourcePolicy> policies; local 124 readFromParcel(data, &policies); 125 config(policies);
|
/frameworks/av/media/libmedia/include/media/ |
IResourceManagerService.h | 38 virtual void config(const Vector<MediaResourcePolicy> &policies) = 0;
|
/external/autotest/client/site_tests/security_DbusOwners/ |
security_DbusOwners.py | 45 policies = xmldoc.getElementsByTagName('policy') 47 for policy in policies:
|
/external/strace/tests/ |
get_mempolicy.c | 39 # include "xlat/policies.h" 98 printxval(policies, (unsigned) *mode, "MPOL_???"); 104 printxval(policies, (unsigned) *mode, "MPOL_???");
|
/external/strace/tests-m32/ |
get_mempolicy.c | 39 # include "xlat/policies.h" 98 printxval(policies, (unsigned) *mode, "MPOL_???"); 104 printxval(policies, (unsigned) *mode, "MPOL_???");
|
/external/strace/tests-mx32/ |
get_mempolicy.c | 39 # include "xlat/policies.h" 98 printxval(policies, (unsigned) *mode, "MPOL_???"); 104 printxval(policies, (unsigned) *mode, "MPOL_???");
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
NetworkPolicyEditor.java | 43 * about which policies can coexist. This editor offers thread safety when 49 // TODO: be more robust when missing policies from service 61 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); local 65 for (NetworkPolicy policy : policies) { 79 // when we cleaned policies above, write back changes 85 final NetworkPolicy[] policies = mPolicies.toArray(new NetworkPolicy[mPolicies.size()]); local 89 write(policies); 95 public void write(NetworkPolicy[] policies) { 96 mPolicyManager.setNetworkPolicies(policies);
|
/external/ImageMagick/MagickCore/ |
policy.c | 332 % GetPolicyInfoList() returns any policies that match the specified pattern. 343 % o number_policies: returns the number of policies in the list. 352 **policies; 370 policies=(const PolicyInfo **) AcquireQuantumMemory((size_t) 371 GetNumberOfElementsInLinkedList(policy_cache)+1UL,sizeof(*policies)); 372 if (policies == (const PolicyInfo **) NULL) 384 policies[i++]=p; 388 policies[i]=(PolicyInfo *) NULL; 390 return(policies); 405 % GetPolicyList() returns any policies that match the specified pattern 344 **policies; local 416 **policies; local [all...] |
/external/strace/ |
numa.c | 75 #include "xlat/policies.h" 82 printxval64(policies, tcp->u_arg[2], "MPOL_???"); 93 printxval(policies, tcp->u_arg[0], "MPOL_???"); 109 printxval(policies, pol, "MPOL_???");
|
/frameworks/base/core/java/android/net/ |
INetworkPolicyManager.aidl | 33 /** Control UID policies. */ 45 /** Control network policies atomically. */ 46 void setNetworkPolicies(in NetworkPolicy[] policies);
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
SigningCertificateInfo.java | 48 * policies SEQUENCE OF PolicyInformation OPTIONAL 100 // format policies as a string 121 // Parse policies, if present 123 DerValue[] policies = derValue.data.getSequence(1); local 124 for (int i = 0; i < policies.length; i++) {
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
PKIX.java | 83 private Set<String> policies; field in class:PKIX.ValidatorParams 158 if (policies == null) 159 policies = params.getInitialPolicies(); 160 return policies;
|