Searched refs:context (Results 1 - 25 of 99) sorted by relevance

1234

/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/
H A DDTMAxisTraverser.java48 * By the nature of the stateless traversal, the context node can not be
55 * @param context The context node of this traversal. This is the point
59 public int first(int context) argument
61 return next(context, context);
65 * By the nature of the stateless traversal, the context node can not be
72 * @param context The context node of this traversal. This is the point
78 public int first(int context, in argument
97 next(int context, int current) argument
115 next(int context, int current, int extendedTypeID) argument
[all...]
/dalvik/libdex/
H A Dsha1.h15 void SHA1Init(SHA1_CTX* context);
16 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
18 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
H A Dsha1.c25 void SHA1Update(SHA1_CTX* context, unsigned char* data,
28 void SHA1Update(SHA1_CTX* context, unsigned char* data,
151 /* Copy context->state[] to working vars */
186 /* Add the working vars back into context.state[] */
199 /* SHA1Init - Initialize new context */
201 void SHA1Init(SHA1_CTX* context) argument
204 context->state[0] = 0x67452301;
205 context->state[1] = 0xEFCDAB89;
206 context->state[2] = 0x98BADCFE;
207 context
215 SHA1Update(SHA1_CTX* context, const unsigned char* data, unsigned long len) argument
241 SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context) argument
285 SHA1_CTX context; local
[all...]
/dalvik/libcore/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
H A DClientSessionContextTest.java29 ClientSessionContext context = new ClientSessionContext(null, null);
34 context.putSession(a);
35 context.putSession(b);
37 assertSame(a, context.getSession("a".getBytes()));
38 assertSame(b, context.getSession("b".getBytes()));
40 assertSame(a, context.getSession("a", 443));
41 assertSame(b, context.getSession("b", 443));
43 assertEquals(2, context.sessions.size());
46 Enumeration ids = context.getIds();
48 sessions.add(context
[all...]
/dalvik/libcore/security-kernel/src/main/java/java/security/
H A DAccessControlContext.java47 // - 'context' can not be null
50 ProtectionDomain[] context; field in class:AccessControlContext
86 this.context = acc.context;
94 * @param context
96 * checks in the context of this {@code AccessControlContext}
98 * if {@code context} is {@code null}
101 public AccessControlContext(ProtectionDomain[] context) { argument
102 if (context == null) {
103 throw new NullPointerException("context ca
[all...]
H A DAccessController.java58 * reference to the latest context passed to the doPrivileged() call.
91 * {@code ProtectionDomain}s of the given context are checked to be granted
100 * @param context
109 AccessControlContext context) {
113 return doPrivilegedImpl(action, context);
151 * {@code ProtectionDomain}s of the given context are checked to be granted
163 * @param context
174 AccessControlContext context) throws PrivilegedActionException {
178 return doPrivilegedImpl(action, context);
183 * context int
108 doPrivileged(PrivilegedAction<T> action, AccessControlContext context) 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/dx/src/com/android/dx/util/
H A DExceptionWithContext.java23 * Exception which carries around structured context.
27 /** {@code non-null;} human-oriented context of the exception */
28 private StringBuffer context; field in class:ExceptionWithContext
31 * Augments the given exception with the given context, and return the
37 * @param str {@code non-null;} context to add
83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
87 context = new StringBuffer(200);
95 out.println(context);
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/ref/
H A DDTMDefaultBaseTraversers.java206 * @param context The context node if this iteration.
211 public int next(int context, int current) argument
220 * @param context The context node of this iteration.
226 public int next(int context, int current, int expandedTypeID) argument
248 * By the nature of the stateless traversal, the context node can not be
252 * @param context The context node of this traversal.
256 public int first(int context) argument
273 first(int context, int expandedTypeID) argument
294 next(int context, int current) argument
310 next(int context, int current, int expandedTypeID) argument
408 first(int context) argument
427 first(int context, int expandedTypeID) argument
460 next(int context, int current) argument
475 next(int context, int current, int expandedTypeID) argument
679 first(int context, int expandedTypeID) argument
701 next(int context, int current) argument
730 next(int context, int current, int expandedTypeID) argument
785 first(int context) argument
805 next(int context, int current) argument
840 first(int context) argument
878 first(int context, int expandedTypeID) argument
926 next(int context, int current) argument
958 next(int context, int current, int expandedTypeID) argument
994 next(int context, int current) argument
1009 next(int context, int current, int expandedTypeID) argument
1036 next(int context, int current) argument
1054 next(int context, int current, int expandedTypeID) argument
1087 next(int context, int current) argument
1105 next(int context, int current, int expandedTypeID) argument
1141 first(int context) argument
1183 next(int context, int current) argument
1201 next(int context, int current, int expandedTypeID) argument
1245 next(int context, int current) argument
1274 next(int context, int current, int expandedTypeID) argument
1309 next(int context, int current) argument
1337 next(int context, int current, int expandedTypeID) argument
1370 next(int context, int current) argument
1385 next(int context, int current, int expandedTypeID) argument
1413 first(int context) argument
1430 first(int context, int expandedTypeID) argument
1443 next(int context, int current) argument
1458 next(int context, int current, int expandedTypeID) argument
1477 first(int context) argument
1490 first(int context, int expandedTypeID) argument
1504 next(int context, int current) argument
1530 next(int context, int current, int expandedTypeID) argument
1564 first(int context, int expandedTypeID) argument
1579 next(int context, int current) argument
1594 next(int context, int current, int expandedTypeID) argument
1638 first(int context) argument
1657 first(int context, int expandedTypeID) argument
1709 first(int context) argument
1728 first(int context, int expandedTypeID) argument
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DDelegatedTask.java34 private final AccessControlContext context; field in class:DelegatedTask
40 * @param context
42 public DelegatedTask(PrivilegedExceptionAction<Void> action, HandshakeProtocol handshaker, AccessControlContext context) { argument
45 this.context = context;
54 AccessController.doPrivileged(action, context);
/dalvik/libcore/xml/src/main/java/org/apache/xpath/functions/
H A DFuncLocalPart.java39 * @param xctxt The current execution context.
47 int context = getArg0AsNode(xctxt);
48 if(DTM.NULL == context)
50 DTM dtm = xctxt.getDTM(context);
51 String s = (context != DTM.NULL) ? dtm.getLocalName(context) : "";
H A DFuncNamespace.java39 * @param xctxt The current execution context.
47 int context = getArg0AsNode(xctxt);
50 if(context != DTM.NULL)
52 DTM dtm = xctxt.getDTM(context);
53 int t = dtm.getNodeType(context);
56 s = dtm.getNamespaceURI(context);
64 s = dtm.getNodeName(context);
68 s = dtm.getNamespaceURI(context);
H A DFuncQname.java39 * @param xctxt The current execution context.
47 int context = getArg0AsNode(xctxt);
50 if (DTM.NULL != context)
52 DTM dtm = xctxt.getDTM(context);
53 String qname = dtm.getNodeNameX(context);
H A DFuncUnparsedEntityURI.java38 * @param xctxt The current execution context.
47 int context = xctxt.getCurrentNode();
48 DTM dtm = xctxt.getDTM(context);
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DSSLSessionContextTest.java43 SSLContext context = SSLContext.getInstance("TLS");
44 context.init(null, null, null);
45 SSLSessionContext sc = context
81 SSLContext context = SSLContext.getInstance("TLS");
82 context.init(null, null, null);
83 SSLSessionContext sc = context
110 SSLContext context = SSLContext.getInstance("TLS");
111 context.init(null, null, null);
112 SSLSessionContext sc = context
134 SSLContext context
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xpath/patterns/
H A DFunctionPattern.java92 * @param xctxt XPath runtime context.
102 public XObject execute(XPathContext xctxt, int context) argument
106 DTMIterator nl = m_functionExpr.asIterator(xctxt, context);
115 score = (n == context) ? SCORE_OTHER : SCORE_NONE;
119 context = n;
135 * @param xctxt XPath runtime context.
145 public XObject execute(XPathContext xctxt, int context, argument
150 DTMIterator nl = m_functionExpr.asIterator(xctxt, context);
159 score = (n == context) ? SCORE_OTHER : SCORE_NONE;
163 context
[all...]
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/
H A DJaxenXPathTestSuite.java85 * <context .../>
86 * <context .../>
87 * <context .../>
90 * <context .../>
103 for (final Element context : elementsOf(document.getElementsByTagName("context"))) {
104 contextToTestSuite(result, url, inputSource, context);
112 * Populates the test suite with tests from the given XML context element.
118 * Each context element has this structure:
120 * <context selec
161 createFromTest( final XPath xpath, final Context context, final Element element) argument
213 createFromValueOf( final XPath xpath, final Context context, final Element element) argument
260 private final Context context; field in class:JaxenXPathTestSuite.XPathTest
263 XPathTest(Context context, String select) argument
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/
H A DSecurityUtils.java67 * @throws SecurityException if a context for the passed
70 * @throws Error if context is null AND if null context is already stored
73 public static void putContext(Thread thread, AccessControlContext context) argument
82 if (context == null) {
88 ACC_CACHE.put(thread, context);
95 * by the VM which does not have inherited context.<br>
/dalvik/libcore/xml/src/main/java/org/apache/xpath/operations/
H A DVariableSafeAbsRef.java33 * be used in some situations where the document context may have changed.
38 * to make sure the document context of the referenced variable is the same as
39 * the current document context, and, if it is not, execute the referenced variable's
40 * expression with the current context instead.
52 * @param xctxt The runtime execution context.
63 int context = xctxt.getContextNode();
65 dtmMgr.getDTM(context).getDocument())
68 xns = (XNodeSet)expr.asIterator(xctxt, context);
/dalvik/tests/060-reflection-security/src/
H A DEnforcer.java61 public void checkPermission(Permission perm, Object context) { argument
62 System.out.println("checkPermission: " + perm + ", " + context);
64 super.checkPermission(perm, context);
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/
H A DPrefixResolver.java35 * the PrefixResolver holds its own namespace context, or is a namespace
36 * context itself.
41 * is undeclared in this context.
46 * Given a namespace, get the corresponding prefix, based on the context node.
49 * @param context The node context from which to look up the URI.
52 * is undeclared in this context.
54 String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context); argument
67 * may not accurately reflect that context information.
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAttributeFactory.java30 * depending on the context and name.
33 /** context for attributes on class files */
36 /** context for attributes on fields */
39 /** context for attributes on methods */
42 /** context for attributes on code attributes */
62 * @param context context to parse in; one of the {@code CTX_*}
69 public final Attribute parse(DirectClassFile cf, int context, int offset, argument
75 if ((context < 0) || (context >
121 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xalan/templates/
H A DElemExsltFuncResult.java55 XPathContext context = transformer.getXPathContext();
64 int sourceNode = context.getCurrentNode();
/dalvik/libcore/json/src/main/java/org/json/
H A DJSONStringer.java189 Scope context = peek();
190 if (context != nonempty && context != empty) {
195 if (context == nonempty) {
384 Scope context = peek();
385 if (context == Scope.NONEMPTY_OBJECT) { // first in object
387 } else if (context != Scope.EMPTY_OBJECT) { // not in an object!
404 Scope context = peek();
405 if (context == Scope.EMPTY_ARRAY) { // first in array
408 } else if (context
[all...]
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
H A DSSLServerSocketFactory.java69 SSLContext context = DefaultSSLContext.getContext();
70 if (context != null) {
71 defaultServerSocketFactory = context.getServerSocketFactory();
H A DSSLSocketFactory.java77 SSLContext context = DefaultSSLContext.getContext();
78 if (context != null) {
79 defaultSocketFactory = context.getSocketFactory();

Completed in 619 milliseconds

1234