Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/main/java/libcore/net/
DNetworkSecurityPolicy.java37 public static void setInstance(NetworkSecurityPolicy policy) { in setInstance() argument
38 if (policy == null) { in setInstance()
41 instance = policy; in setInstance()
/libcore/dalvik/src/main/java/dalvik/system/
DBlockGuard.java148 public static void setThreadPolicy(Policy policy) { in setThreadPolicy() argument
149 if (policy == null) { in setThreadPolicy()
152 threadPolicy.set(policy); in setThreadPolicy()
/libcore/ojluni/src/main/java/sun/security/timestamp/
DTimestampToken.java76 private ObjectIdentifier policy; field in TimestampToken
140 policy = tstInfo.data.getOID(); in parse()
/libcore/ojluni/src/main/java/sun/net/
DProgressMonitor.java57 public static synchronized void setMeteringPolicy(ProgressMeteringPolicy policy) { in setMeteringPolicy() argument
58 if (policy != null) in setMeteringPolicy()
59 meteringPolicy = policy; in setMeteringPolicy()
/libcore/ojluni/src/main/java/javax/crypto/
DCryptoPolicyParser.java40 void read(Reader policy) in read() argument
/libcore/luni/src/test/java/libcore/net/
DNetworkSecurityPolicyTest.java82 TestNetworkSecurityPolicy policy = new TestNetworkSecurityPolicy(false); in testHostnameAwareCleartextTrafficPolicySetterAndGetter() local
83 policy.addHostMapping("localhost", true); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
84 policy.addHostMapping("example.com", false); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
85 NetworkSecurityPolicy.setInstance(policy); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
/libcore/ojluni/src/main/java/sun/security/x509/
DCertificatePoliciesExtension.java151 PolicyInformation policy = new PolicyInformation(seq); in CertificatePoliciesExtension() local
152 certPolicies.add(policy); in CertificatePoliciesExtension()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CertSelector.java113 private CertificatePolicySet policy; field in X509CertSelector
1096 policy = null; in setPolicy()
1114 policy = new CertificatePolicySet(polIdVector); in setPolicy()
1877 if (policy != null) { in toString()
1878 sb.append(" Policy: " + policy.toString() + "\n"); in toString()
2389 if (policy == null) { in matchPolicy()
2411 if (policy != null) { in matchPolicy()
2418 if (policy.getCertPolicyIds().isEmpty()) { in matchPolicy()
2427 for (CertificatePolicyId id : policy.getCertPolicyIds()) { in matchPolicy()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPolicyNodeImpl.java414 for (String policy : getExpectedPolicies()) { in asString()
415 sb.append(policyToString(policy)); in asString()
DPolicyChecker.java620 for (String policy : initial) { in rewriteLeafNodes()
621 Set<String> expectedPolicies = Collections.singleton(policy); in rewriteLeafNodes()
622 PolicyNodeImpl node = new PolicyNodeImpl(parentNode, policy, in rewriteLeafNodes()
/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorTest.java744 for (Boolean policy : allBooleans) in testShutdown_cancellation()
749 final boolean effectiveDelayedPolicy = (policy != Boolean.FALSE); in testShutdown_cancellation()
750 final boolean effectivePeriodicPolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
751 final boolean effectiveRemovePolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
752 if (policy != null) { in testShutdown_cancellation()
753 p.setExecuteExistingDelayedTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
754 p.setContinueExistingPeriodicTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
755 p.setRemoveOnCancelPolicy(policy); in testShutdown_cancellation()
DScheduledExecutorSubclassTest.java796 for (Boolean policy : allBooleans) in testShutdown_cancellation()
800 final boolean effectiveDelayedPolicy = (policy != Boolean.FALSE); in testShutdown_cancellation()
801 final boolean effectivePeriodicPolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
802 final boolean effectiveRemovePolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
803 if (policy != null) { in testShutdown_cancellation()
804 p.setExecuteExistingDelayedTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
805 p.setContinueExistingPeriodicTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
806 p.setRemoveOnCancelPolicy(policy); in testShutdown_cancellation()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf116 policy = policy_anything
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java1270 … Map<String, List<String>> responseHeaders, CookiePolicy policy) in store() argument
1272 CookieManager manager = new CookieManager(createCookieStore(), policy); in store()