Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/security/timestamp/
DTimestampToken.java76 private ObjectIdentifier policy; field in TimestampToken
119 return policy.toString(); in getPolicyID()
144 policy = tstInfo.data.getOID(); in parse()
/libcore/luni/src/main/java/libcore/net/
DNetworkSecurityPolicy.java80 public static void setInstance(NetworkSecurityPolicy policy) { in setInstance() argument
81 if (policy == null) { in setInstance()
84 instance = policy; in setInstance()
/libcore/dalvik/src/main/java/dalvik/system/
DBlockGuard.java269 public static void setThreadPolicy(@NonNull Policy policy) { in setThreadPolicy() argument
270 threadPolicy.set(Objects.requireNonNull(policy)); in setThreadPolicy()
300 public static void setVmPolicy(@NonNull VmPolicy policy) { in setVmPolicy() argument
301 vmPolicy = Objects.requireNonNull(policy); in setVmPolicy()
/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/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java84 TestNetworkSecurityPolicy policy = new TestNetworkSecurityPolicy(false); in testHostnameAwareCleartextTrafficPolicySetterAndGetter() local
85 policy.addHostMapping("localhost", true); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
86 policy.addHostMapping("example.com", false); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
87 NetworkSecurityPolicy.setInstance(policy); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()
/libcore/ojluni/src/main/java/javax/crypto/
DCryptoPolicyParser.java42 void read(Reader policy) in read() argument
/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/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java130 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in test_classLoader_exceptionDuringLoading() local
172 BlockGuard.setThreadPolicy(policy); in test_classLoader_exceptionDuringLoading()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CertSelector.java112 private CertificatePolicySet policy; field in X509CertSelector
1095 policy = null; in setPolicy()
1113 policy = new CertificatePolicySet(polIdVector); in setPolicy()
1872 if (policy != null) { in toString()
1873 sb.append(" Policy: " + policy.toString() + "\n"); in toString()
2382 if (policy == null) { in matchPolicy()
2404 if (policy != null) { in matchPolicy()
2411 if (policy.getCertPolicyIds().isEmpty()) { in matchPolicy()
2420 for (CertificatePolicyId id : policy.getCertPolicyIds()) { in matchPolicy()
/libcore/ojluni/annotations/hiddenapi/sun/security/timestamp/
DTimestampToken.java76 private sun.security.util.ObjectIdentifier policy; field in TimestampToken
/libcore/ojluni/src/main/java/sun/security/util/
DDisabledAlgorithmConstraints.java256 String policy; in Constraints() local
262 policy = constraintEntry.substring(space + 1); in Constraints()
276 for (String entry : policy.split("&")) { in Constraints()
/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/ojluni/src/test/java/util/concurrent/tck/
DScheduledExecutorSubclassTest.java818 for (Boolean policy : allBooleans) in testShutdown_cancellation()
822 final boolean effectiveDelayedPolicy = (policy != Boolean.FALSE); in testShutdown_cancellation()
823 final boolean effectivePeriodicPolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
824 final boolean effectiveRemovePolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
825 if (policy != null) { in testShutdown_cancellation()
826 p.setExecuteExistingDelayedTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
827 p.setContinueExistingPeriodicTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
828 p.setRemoveOnCancelPolicy(policy); in testShutdown_cancellation()
DScheduledExecutorTest.java765 for (Boolean policy : allBooleans) in testShutdown_cancellation()
770 final boolean effectiveDelayedPolicy = (policy != Boolean.FALSE); in testShutdown_cancellation()
771 final boolean effectivePeriodicPolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
772 final boolean effectiveRemovePolicy = (policy == Boolean.TRUE); in testShutdown_cancellation()
773 if (policy != null) { in testShutdown_cancellation()
774 p.setExecuteExistingDelayedTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
775 p.setContinueExistingPeriodicTasksAfterShutdownPolicy(policy); in testShutdown_cancellation()
776 p.setRemoveOnCancelPolicy(policy); in testShutdown_cancellation()
DJSR166TestCase.java1232 AdjustablePolicy policy = new AdjustablePolicy(permissions);
1233 Policy.setPolicy(policy);
1238 policy.addPermission(new SecurityPermission("setPolicy"));
/libcore/jsr166-tests/src/test/java/jsr166/
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()
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()
/libcore/expectations/
Dvirtualdeviceknownfailures.txt21 …description: "Virtual devices do not implement the SELinux policy (forbid hard link) asserted by t…
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf116 policy = policy_anything
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java1260 … Map<String, List<String>> responseHeaders, CookiePolicy policy) in store() argument
1262 CookieManager manager = new CookieManager(createCookieStore(), policy); in store()