Home
last modified time | relevance | path

Searched refs:Policy (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/java/security/
DPolicy.java37 public abstract class Policy { class
42 public static Policy getPolicy() in getPolicy()
47 public static void setPolicy(Policy p) in setPolicy()
51 public static Policy getInstance(String type, Policy.Parameters params) in getInstance()
56 public static Policy getInstance(String type, in getInstance()
57 Policy.Parameters params, in getInstance()
64 public static Policy getInstance(String type, in getInstance()
65 Policy.Parameters params, in getInstance()
79 public Policy.Parameters getParameters() { in getParameters()
DPolicySpi.java92 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions()
116 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions()
/libcore/luni/src/test/java/libcore/java/security/
DPolicyTest.java28 import java.security.Policy;
38 private static class TestPolicy extends Policy {
41 private final Policy p = new TestPolicy();
45 assertNull(Policy.getInstance(null, null)); in testGetInstance_alwaysReturnNull()
46 assertNull(Policy.getInstance(null, null, (String) null)); in testGetInstance_alwaysReturnNull()
47 assertNull(Policy.getInstance(null, null, (Provider) null)); in testGetInstance_alwaysReturnNull()
49 Policy.setPolicy(p); in testGetInstance_alwaysReturnNull()
52 assertNull(Policy.getInstance(null, null)); in testGetInstance_alwaysReturnNull()
53 assertNull(Policy.getInstance(null, null, (String) null)); in testGetInstance_alwaysReturnNull()
54 assertNull(Policy.getInstance(null, null, (Provider) null)); in testGetInstance_alwaysReturnNull()
DPolicySpiTest.java28 import java.security.Policy;
67 assertEquals(Policy.UNSUPPORTED_EMPTY_COLLECTION, in testEngineGetPermissions()
69 assertEquals(Policy.UNSUPPORTED_EMPTY_COLLECTION, in testEngineGetPermissions()
/libcore/dalvik/src/main/java/dalvik/system/
DBlockGuard.java54 public interface Policy { interface in BlockGuard
195 public static final Policy LAX_POLICY = new Policy() {
221 private static ThreadLocal<Policy> threadPolicy = new ThreadLocal<Policy>() {
222 @Override protected Policy initialValue() {
240 public static @NonNull Policy getThreadPolicy() { in getThreadPolicy()
257 public static void setThreadPolicy(@NonNull Policy policy) { in setThreadPolicy()
/libcore/ojluni/src/test/javax/xml/jaxp/transform/
DTestBase.java26 import java.security.Policy;
44 Policy origPolicy;
69 origPolicy = Policy.getPolicy(); in setUp()
77 Policy.setPolicy(origPolicy); in tearDown()
DXSLTExFuncTest.java40 import java.security.Policy;
125 Policy p = new SimplePolicy(new AllPermission()); in testExtFuncNotAllowed()
126 Policy.setPolicy(p); in testExtFuncNotAllowed()
234 class SimplePolicy extends Policy {
DXPathExFuncTest.java40 import java.security.Policy;
124 Policy p = new SimplePolicy(new AllPermission()); in testExtFuncNotAllowed()
125 Policy.setPolicy(p); in testExtFuncNotAllowed()
269 class SimplePolicy extends Policy {
/libcore/ojluni/src/test/java/lang/StackWalker/
DGetCallerClassTest.java43 import java.security.Policy;
51 static final Policy DEFAULT_POLICY = Policy.getPolicy();
68 Policy.setPolicy(new Policy() { in main()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java130 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in test_classLoader_exceptionDuringLoading()
131 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in test_classLoader_exceptionDuringLoading()
DBlockGuardTest.java37 private BlockGuard.Policy oldPolicy;
308 private static class RecordingPolicy implements BlockGuard.Policy {
/libcore/ojluni/src/test/java/util/Properties/
DLoadAndStoreXML.java47 import java.security.Policy;
61 static class SimplePolicy extends Policy {
/libcore/ojluni/src/test/java/util/concurrent/tck/
DJSR166TestCase.java89 import java.security.Policy;
414 Policy.setPolicy(permissivePolicy()); in main()
1384 Policy savedPolicy = Policy.getPolicy();
1386 Policy.setPolicy(permissivePolicy());
1391 Policy.setPolicy(savedPolicy);
1394 Policy savedPolicy = Policy.getPolicy();
1396 Policy.setPolicy(policy);
1402 Policy.setPolicy(savedPolicy);
1418 public static class AdjustablePolicy extends java.security.Policy {
1447 public static Policy permissivePolicy() {
/libcore/mmodules/intracoreapi/api/intra/
Dlast-api.txt13 …tformApi @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThreadPolicy();
16 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
Dcurrent.txt57 …method @NonNull @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThreadP…
60 @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java81 @Mock private BlockGuard.Policy mockThreadPolicy;
84 private BlockGuard.Policy savedThreadPolicy;
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java27 import java.security.Policy;
1148 public static class AdjustablePolicy extends java.security.Policy {
1177 public static Policy permissivePolicy() {
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java913 final BlockGuard.Policy oldPolicy = BlockGuard.getThreadPolicy(); in testHashCodeAndEqualsDoesNotPerformNetworkIo()
914 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in testHashCodeAndEqualsDoesNotPerformNetworkIo()
/libcore/api/
Dmodule-lib-current.txt186 method @NonNull public static dalvik.system.BlockGuard.Policy getThreadPolicy();
188 method public static void setThreadPolicy(@NonNull dalvik.system.BlockGuard.Policy);
190 field public static final dalvik.system.BlockGuard.Policy LAX_POLICY;
194 public static interface BlockGuard.Policy {
Dcurrent.txt8380 public abstract class Policy {
8381 ctor public Policy();
8382 …method public static java.security.Policy getInstance(String, java.security.Policy.Parameters) thr…
8383 …method public static java.security.Policy getInstance(String, java.security.Policy.Parameters, Str…
8384 …method public static java.security.Policy getInstance(String, java.security.Policy.Parameters, jav…
8385 method public java.security.Policy.Parameters getParameters();
8388 method public static java.security.Policy getPolicy();
8393 method public static void setPolicy(java.security.Policy);
8397 public static interface Policy.Parameters {
/libcore/
Dopenjdk_java_files.bp675 "ojluni/src/main/java/java/security/Policy.java",
DEXPECTED_UPSTREAM583 ojluni/src/main/java/java/security/Policy.java,jdk11u/jdk-11.0.13-ga,src/java.base/share/classes/ja…