Home
last modified time | relevance | path

Searched refs:PrivilegedAction (Results 1 – 15 of 15) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java23 import java.security.PrivilegedAction;
38 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()
49 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction()
58 final PrivilegedAction<String> action = new ReusableAction("line.separator"); in timeReusedAction()
64 private static final class ReusableAction implements PrivilegedAction<String> {
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DPrivilegedActionTest.java6 import java.security.PrivilegedAction;
14 private class MyPrivilegedAction implements PrivilegedAction<String> {
23 private class MyPrivilegedAction2 implements PrivilegedAction<String> {
/libcore/luni/src/main/java/java/security/
DAccessController.java44 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged()
51 public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context) { in doPrivileged()
78 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner()
DPrivilegedAction.java23 public interface PrivilegedAction<T> { interface
/libcore/luni/src/test/java/libcore/java/security/
DAccessControllerTest.java24 import java.security.PrivilegedAction;
50 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()
56 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()
/libcore/support/src/test/java/tests/support/
DSupport_ProviderTrust.java21 import java.security.PrivilegedAction;
53 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
DSupport_TestProvider.java21 import java.security.PrivilegedAction;
52 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java24 import java.security.PrivilegedAction;
56 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAs_01()
57 PrivilegedAction<Object> paNull = null; in test_doAs_01()
124 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAsPrivileged_01()
125 PrivilegedAction<Object> paNull = null; in test_doAsPrivileged_01()
245 class myPrivilegedAction implements PrivilegedAction <Object> {
/libcore/luni/src/main/java/javax/security/auth/
DSubject.java29 import java.security.PrivilegedAction;
145 public static <T> T doAs(Subject subject, PrivilegedAction<T> action) { in doAs()
165 public static <T> T doAsPrivileged(Subject subject, PrivilegedAction<T> action, in doAsPrivileged()
176 private static <T> T doAs_PrivilegedAction(Subject subject, PrivilegedAction<T> action, in doAs_PrivilegedAction()
190 PrivilegedAction dccAction = new PrivilegedAction() { in doAs_PrivilegedAction()
264PrivilegedAction<AccessControlContext> dccAction = new PrivilegedAction<AccessControlContext>() { in doAs_PrivilegedExceptionAction()
476 PrivilegedAction<DomainCombiner> action = new PrivilegedAction<DomainCombiner>() { in getSubject()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java12 import java.security.PrivilegedAction;
369 public static Callable<Object> callable(final PrivilegedAction<?> action) { in callable()
564 AccessController.doPrivileged(new PrivilegedAction<Void>() {
DForkJoinPool.java3243 (new java.security.PrivilegedAction<ForkJoinPool>() {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactorySpiTest.java131 AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() { in MyProvider()
/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java531 Callable c = Executors.callable(new PrivilegedAction() { in testCallable3()
570 Callable c = Executors.callable((PrivilegedAction) null); in testCallableNPE3()
DForkJoinPoolTest.java33 import java.security.PrivilegedAction;
481 final Callable callable = Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction()
DAbstractExecutorServiceTest.java94 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction()