Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/security/
DAccessController.java44 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged() argument
45 return action.run(); in doPrivileged()
51 public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context) { in doPrivileged() argument
52 return action.run(); in doPrivileged()
58 …public static <T> T doPrivileged(PrivilegedExceptionAction<T> action) throws PrivilegedActionExcep… in doPrivileged() argument
60 return action.run(); in doPrivileged()
71 …public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context… in doPrivileged() argument
72 return doPrivileged(action); in doPrivileged()
78 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner() argument
79 return action.run(); in doPrivilegedWithCombiner()
[all …]
DSecurityPermission.java26 public SecurityPermission(String name, String action) { super("", ""); } in SecurityPermission() argument
DBasicPermission.java28 public BasicPermission(String name, String action) { super(""); } in BasicPermission() argument
/libcore/luni/src/main/java/java/nio/charset/
DCodingErrorAction.java48 private String action; field in CodingErrorAction
53 private CodingErrorAction(String action) { in CodingErrorAction() argument
54 this.action = action; in CodingErrorAction()
64 return "Action: " + this.action; in toString()
DCharsetDecoder.java324 CodingErrorAction action = in decode() local
326 if (action == CodingErrorAction.REPORT) { in decode()
328 } else if (action == CodingErrorAction.REPLACE) { in decode()
DCharsetEncoder.java386 CodingErrorAction action = in encode() local
388 if (action == CodingErrorAction.REPORT) { in encode()
390 } else if (action == CodingErrorAction.REPLACE) { in encode()
/libcore/luni/src/main/java/javax/security/auth/
DSubject.java145 public static <T> T doAs(Subject subject, PrivilegedAction<T> action) { in doAs() argument
146 return doAs_PrivilegedAction(subject, action, AccessController.getContext()); in doAs()
165 public static <T> T doAsPrivileged(Subject subject, PrivilegedAction<T> action, in doAsPrivileged() argument
168 return doAs_PrivilegedAction(subject, action, new AccessControlContext( in doAsPrivileged()
171 return doAs_PrivilegedAction(subject, action, context); in doAsPrivileged()
176 private static <T> T doAs_PrivilegedAction(Subject subject, PrivilegedAction<T> action, in doAs_PrivilegedAction() argument
198 return AccessController.doPrivileged(action, newContext); in doAs_PrivilegedAction()
214 public static <T> T doAs(Subject subject, PrivilegedExceptionAction<T> action) in doAs() argument
216 return doAs_PrivilegedExceptionAction(subject, action, AccessController.getContext()); in doAs()
238 PrivilegedExceptionAction<T> action, AccessControlContext context) in doAsPrivileged() argument
[all …]
DPrivateCredentialPermission.java32 public PrivateCredentialPermission(String name, String action) { super(""); } in PrivateCredentialPermission() argument
/libcore/luni/src/main/java/libcore/icu/
DNativeConverter.java43 private static int translateCodingErrorAction(CodingErrorAction action) { in translateCodingErrorAction() argument
44 if (action == CodingErrorAction.REPORT) { in translateCodingErrorAction()
46 } else if (action == CodingErrorAction.IGNORE) { in translateCodingErrorAction()
48 } else if (action == CodingErrorAction.REPLACE) { in translateCodingErrorAction()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DPrivilegedActionTest.java34 MyPrivilegedAction action = new MyPrivilegedAction(); in testRun() local
35 String result = AccessController.doPrivileged(action); in testRun()
37 assertTrue("run method was not called", action.called); in testRun()
/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java58 final PrivilegedAction<String> action = new ReusableAction("line.separator"); in timeReusedAction() local
60 String lineSeparator = AccessController.doPrivileged(action); in timeReusedAction()
DR.java1293 public static final int action = 0; field in R
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java369 public static Callable<Object> callable(final PrivilegedAction<?> action) { in callable() argument
370 if (action == null) in callable()
373 public Object call() { return action.run(); }}; in callable()
384 public static Callable<Object> callable(final PrivilegedExceptionAction<?> action) {
385 if (action == null)
388 public Object call() throws Exception { return action.run(); }};
/libcore/luni/src/main/java/java/net/
DSocketPermission.java27 public SocketPermission(String host, String action) { super(""); } in SocketPermission() argument
/libcore/luni/src/main/java/org/w3c/dom/ls/
DLSParser.java456 short action) in parseWithContext() argument