/libcore/ojluni/src/main/java/java/security/ |
D | Policy.java | 37 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()
|
D | PolicySpi.java | 92 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions() 116 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | PolicyTest.java | 28 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()
|
D | PolicySpiTest.java | 28 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/ |
D | BlockGuard.java | 54 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/ |
D | TestBase.java | 26 import java.security.Policy; 44 Policy origPolicy; 69 origPolicy = Policy.getPolicy(); in setUp() 77 Policy.setPolicy(origPolicy); in tearDown()
|
D | XSLTExFuncTest.java | 40 import java.security.Policy; 125 Policy p = new SimplePolicy(new AllPermission()); in testExtFuncNotAllowed() 126 Policy.setPolicy(p); in testExtFuncNotAllowed() 234 class SimplePolicy extends Policy {
|
D | XPathExFuncTest.java | 40 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/ |
D | GetCallerClassTest.java | 43 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/ |
D | PathClassLoaderTest.java | 130 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in test_classLoader_exceptionDuringLoading() 131 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in test_classLoader_exceptionDuringLoading()
|
D | BlockGuardTest.java | 37 private BlockGuard.Policy oldPolicy; 308 private static class RecordingPolicy implements BlockGuard.Policy {
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | LoadAndStoreXML.java | 47 import java.security.Policy; 61 static class SimplePolicy extends Policy {
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | JSR166TestCase.java | 89 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/ |
D | last-api.txt | 13 …tformApi @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThreadPolicy(); 16 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
|
D | current.txt | 57 …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/ |
D | BlockGuardOsTest.java | 81 @Mock private BlockGuard.Policy mockThreadPolicy; 84 private BlockGuard.Policy savedThreadPolicy;
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 27 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/ |
D | URLTest.java | 913 final BlockGuard.Policy oldPolicy = BlockGuard.getThreadPolicy(); in testHashCodeAndEqualsDoesNotPerformNetworkIo() 914 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in testHashCodeAndEqualsDoesNotPerformNetworkIo()
|
/libcore/api/ |
D | module-lib-current.txt | 186 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 {
|
D | current.txt | 8380 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/ |
D | openjdk_java_files.bp | 675 "ojluni/src/main/java/java/security/Policy.java",
|
D | EXPECTED_UPSTREAM | 583 ojluni/src/main/java/java/security/Policy.java,jdk11u/jdk-11.0.13-ga,src/java.base/share/classes/ja…
|