Searched refs:action (Results 1 - 24 of 24) sorted by relevance

/dalvik/libcore/nio_char/src/main/java/java/nio/charset/
H A DCodingErrorAction.java27 * Denotes the action to ignore any errors.
33 * Denotes the action to fill in the output with a replacement character
40 * Denotes the action to report the encountered error in an appropriate
47 // The name of this action
48 private String action; field in class:CodingErrorAction
53 private CodingErrorAction(String action) { argument
54 this.action = action;
58 * Returns a text description of this action indication.
60 * @return a text description of this action indicatio
[all...]
H A DCharsetDecoder.java53 * further action, which includes filling the input buffer, flushing the output
108 // specify the action if malformed input error encountered
111 // specify the action if unmappable character error encountered
197 * encountered, and the action for malformed error is
201 * charset was encountered, and the action for unmappable
296 * result can be returned only if the malformed action is
303 * only if the unmappable character action is
348 CodingErrorAction action = null;
378 // set coding error handle action
379 action
[all...]
H A DCharsetEncoder.java53 * and choose further action, which includes filling the input buffer, flushing
114 // action for malformed input
117 // action for unmapped char input
297 * encountered, and the action for malformed error is
301 * charset is encountered, and the action for unmappable
392 * kind of result can be returned only if the malformed action is
470 CodingErrorAction action = malformAction;
472 action = unmapAction;
474 // If the action is IGNORE or REPLACE, we should continue
476 if (action
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DSecurityPermission.java41 * {@code name} and {@code action} list. The action list is ignored - it is
46 * @param action
49 public SecurityPermission(String name, String action) { argument
50 super(name, action);
H A DBasicPermission.java27 * have a name but no action lists. A {@code BasicPermission} is granted or it
40 * While this class ignores the action list in the
65 * name. The {@code action} parameter is ignored.
69 * @param action
76 public BasicPermission(String name, String action) { argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DPriviAction.java37 private int action; field in class:PriviAction
60 private PriviAction(int action, Object arg) { argument
61 this.action = action;
71 action = GET_SECURITY_POLICY;
85 action = SET_ACCESSIBLE;
99 action = GET_SYSTEM_PROPERTY;
115 action = GET_SYSTEM_PROPERTY;
127 switch (action) {
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DDelegatedTask.java33 private final PrivilegedExceptionAction<Void> action; field in class:DelegatedTask
38 * @param action
42 public DelegatedTask(PrivilegedExceptionAction<Void> action, HandshakeProtocol handshaker, AccessControlContext context) { argument
43 this.action = action;
54 AccessController.doPrivileged(action, context);
/dalvik/libcore/security-kernel/src/main/java/java/security/
H A DAccessController.java63 * Returns the result of executing the specified privileged action. Only the
70 * of the {@code PrivilegedAction#run()} method of the given action, it will
73 * @param action
74 * the action to be executed with privileges
75 * @return the result of executing the privileged action
77 * if the specified action is {@code null}
80 public static <T> T doPrivileged(PrivilegedAction<T> action) { argument
81 if (action == null) {
82 throw new NullPointerException("action can not be null");
84 return doPrivilegedImpl(action, nul
108 doPrivileged(PrivilegedAction<T> action, AccessControlContext context) argument
139 doPrivileged(PrivilegedExceptionAction<T> action) argument
173 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
187 doPrivilegedImpl(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
238 doPrivilegedImpl(PrivilegedAction<T> action, AccessControlContext context) argument
[all...]
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DPrivilegedActionTest.java43 MyPrivilegedAction action = new MyPrivilegedAction();
44 String result = AccessController.doPrivileged(action);
46 assertTrue("run method was not called", action.called);
H A DUnresolvedPermissionTest.java61 * Creates an Object with given name, type, action, certificates. Empty or
73 String action = "JHB ^%(*&T klj3h4";
74 UnresolvedPermission up = new UnresolvedPermission(type, name, action,
78 assertEquals("(unresolved " + type + " " + name + " " + action + ")",
93 new UnresolvedPermission(null, name, action, null);
99 up = new UnresolvedPermission("", "name", "action", null);
/dalvik/libcore/luni/src/main/java/java/net/
H A DSocketPermission.java33 * action list. The target should identify the host by either indicating the
36 * action list can be made up of one or more of the following actions separated
115 * The action list is a comma-separated list which can consists of the
122 * @param action
123 * the action string of this permission.
125 public SocketPermission(String host, String action) { argument
128 if (action == null) {
131 if (action.equals("")) { //$NON-NLS-1$
135 setActions(action);
136 actions = toCanonicalActionString(action);
358 toCanonicalActionString(String action) argument
[all...]
/dalvik/libcore/auth/src/main/java/javax/security/auth/
H A DSubject.java134 * Runs the code defined by {@code action} using the permissions granted to
139 * @param action
141 * @return the {@code Object} returned when running the {@code action}.
144 public static Object doAs(Subject subject, PrivilegedAction action) { argument
148 return doAs_PrivilegedAction(subject, action, AccessController.getContext());
152 * Run the code defined by {@code action} using the permissions granted to
158 * @param action
161 * the specific context in which the {@code action} is invoked.
164 * @return the {@code Object} returned when running the {@code action}.
167 public static Object doAsPrivileged(Subject subject, PrivilegedAction action, argument
181 doAs_PrivilegedAction(Subject subject, PrivilegedAction action, final AccessControlContext context) argument
220 doAs(Subject subject, PrivilegedExceptionAction action) argument
246 doAsPrivileged(Subject subject, PrivilegedExceptionAction action, AccessControlContext context) argument
261 doAs_PrivilegedExceptionAction(Subject subject, PrivilegedExceptionAction action, final AccessControlContext context) argument
[all...]
H A DPrivateCredentialPermission.java32 * only one action which is "read". The target name of this permission has a
56 // allowed action
69 * name {@code name} and an {@code action}. The action is always
74 * @param action
75 * the action {@code "read"}.
77 public PrivateCredentialPermission(String name, String action) { argument
79 if (READ.equalsIgnoreCase(action)) {
/dalvik/libcore/luni/src/main/java/java/io/
H A DFilePermission.java60 // "canonicalized" action list
63 // the numeric representation of this action list
64 // for implies() to check if one action list is the subset of another.
128 * order if there is more than one action.
130 * @param action
131 * the action name
134 private String toCanonicalActionString(String action) { argument
135 actions = action.trim().toLowerCase();
137 // get the numerical representation of the action list
140 // convert the mask to a canonical action lis
[all...]
/dalvik/libcore/xml/src/main/java/org/w3c/dom/ls/
H A DLSParser.java345 * node. For this action to work, the context node must be an
351 * parse operation. For this action to work, the context node must be an
358 * sibling of the context node. For this action to work the context
365 * sibling of the context node. For this action to work the context
372 * this action to work, the context node must have a parent, and the
382 * <code>action</code> arguments. When parsing the input stream, the
391 * <br> If the context node is a <code>Document</code> node and the action
416 * the context node of type <code>DOCUMENT_NODE</code>, and the action
425 * @param action This parameter describes which action shoul
454 parseWithContext(LSInput input, Node contextArg, short action) argument
[all...]
/dalvik/vm/
H A DProfile.h164 void dvmMethodTraceAdd(struct Thread* self, const Method* method, int action);
165 void dvmEmitEmulatorTrace(const Method* method, int action);
182 * Enumeration for the two "action" bits.
H A DProfile.c55 * u4 method ID | method action
669 void dvmMethodTraceAdd(Thread* self, const Method* method, int action) argument
706 methodVal = METHOD_COMBINE((u4) method, action);
727 void dvmEmitEmulatorTrace(const Method* method, int action) argument
748 * The "action" parameter is one of:
753 * a mix of Java plus native methods, we add 4 to the action if this
756 action += 4;
783 *(pMagic+action) = addr;
785 pMagic+action, addr, method->clazz->descriptor, method->name);
/dalvik/tools/dmtracedump/
H A DCreateTestTrace.c66 unsigned int action; /* 0=entry, 1=exit, 2=exception exit */ member in struct:dataRecord
173 int action; local
257 action = 0;
268 action = 1;
280 action = 1;
308 if (action == 0)
312 records[nextRecord].action = action;
429 unsigned int val = METHOD_COMBINE(pRecord->methodId, pRecord->action);
H A DTraceDump.c1275 printf("Trace (threadID action usecs class.method signature):\n");
1282 int action, printDepth; local
1293 action = METHOD_ACTION(methodVal);
1299 if (action == METHOD_TRACE_ENTER) {
1327 actionStr[action], mismatch ? '!' : ' ',
1333 actionStr[action], mismatch ? '!' : ' ',
1339 if (action != METHOD_TRACE_ENTER) {
2962 int action; local
2972 action = METHOD_ACTION(methodVal);
2996 threadId, currentTime, action, pStac
[all...]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DExecutors.java299 * {@link AccessController#doPrivileged} action setting the
301 * the selected permission settings holding within that action.
330 * <tt>Callable</tt> to an otherwise resultless action.
357 * called, runs the given privileged action and returns its result.
358 * @param action the privileged action to run
360 * @throws NullPointerException if action null
362 public static Callable<Object> callable(final PrivilegedAction action) { argument
363 if (action == null)
366 public Object call() { return action
377 callable(final PrivilegedExceptionAction action) argument
[all...]
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DThread.java171 * Holds the interrupt action for this Thread, if any.
1176 * Set the action to be executed when interruption, which is probably be
1177 * used to implement the interruptible channel. The action is null by
1179 * this action's run() method will be invoked in <code>interrupt()</code>.
1184 * @param action the action to be executed when interruption
1187 private void setInterruptAction(Runnable action) { argument
1188 this.interruptAction = action;
/dalvik/libcore/sql/src/test/java/tests/SQLite/
H A DDatabaseTest.java1790 public int authorize(int action, String arg1, String arg2, String arg3, argument
1792 Logger.global.info("DB authorization callback "+action+" "+arg1+" "+arg2+" "+arg3+" "+arg4+" ");
1794 if (action != Constants.SQLITE_SELECT || arg1.contains("private_table")) {
/dalvik/libcore/luni/src/main/native/
H A Dorg_apache_harmony_luni_platform_OSNetworkSystem.cpp118 #define SOCKERR_EACCES -251 /* permissions do not allow action on socket */
1105 * @param action SOCKOPT_GET to get an option, SOCKOPT_SET to set it
1116 static int getOrSetSocketOption(int action, int socket, int ipv4Option, argument
1138 if (action == SOCKOPT_GET) {
1145 } else if (action == SOCKOPT_SET) {
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DClassTest.java988 PrivilegedAction<?> action = new PrivilegedAction<Object>() {
1074 AccessController.doPrivileged(action, acc2);

Completed in 403 milliseconds