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

12

/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLCipherContext.java20 private final long context; field in class:OpenSSLCipherContext
27 this.context = ctx;
33 NativeCrypto.EVP_CIPHER_CTX_cleanup(context);
40 return context;
H A DOpenSSLDigestContext.java20 private final long context; field in class:OpenSSLDigestContext
27 this.context = ctx;
33 NativeCrypto.EVP_MD_CTX_destroy(context);
40 return context;
H A DSSLSessionImpl.java52 SSLSessionContext context; field in class:SSLSessionImpl
171 return context;
187 context = null;
191 if (isValid && context != null && context.getSessionTimeout() != 0
192 && lastAccessedTime + context.getSessionTimeout() > System.currentTimeMillis()) {
H A DOpenSSLSessionImpl.java56 * Class constructor creates an SSL session context given the appropriate
136 * here is to mean that a new connection with the same SSL context data was
329 * Returns the context to which the actual SSL session is bound. A SSL
330 * context consists of (1) a possible delegate, (2) a provider and (3) a
332 * @return the SSL context used for this session, or null if it is
346 SSLSessionContext context = sessionContext;
348 && context != null
349 && context.getSessionTimeout() != 0
350 && getCreationTime() + (context.getSessionTimeout() * 1000)
/libcore/crypto/src/test/java/org/conscrypt/
H A DClientSessionContextTest.java29 ClientSessionContext context = new ClientSessionContext();
33 context.putSession(a);
34 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b });
36 context.putSession(b);
37 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[0]);
41 ClientSessionContext context = new ClientSessionContext();
47 context.putSession(a);
48 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b, c, d });
50 context.putSession(b);
51 assertSessionContextContents(context, ne
84 assertSessionContextContents(ClientSessionContext context, SSLSession[] contains, SSLSession[] exludes) argument
[all...]
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java23 * Exception which carries around structured context.
26 /** {@code non-null;} human-oriented context of the exception */
27 private StringBuffer context; field in class:ExceptionWithContext
30 * Augments the given exception with the given context, and return the
36 * @param str {@code non-null;} context to add
82 String ctx = ((ExceptionWithContext) cause).context.toString();
83 context = new StringBuffer(ctx.length() + 200);
84 context.append(ctx);
86 context = new StringBuffer(200);
94 out.println(context);
[all...]
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLSessionContextTest.java23 SSLContext context = SSLContext.getInstance("TLS");
24 context.init(null, null, null);
25 SSLSessionContext sc = context
47 SSLContext context = SSLContext.getInstance("TLS");
48 context.init(null, null, null);
49 SSLSessionContext sc = context
70 SSLContext context = SSLContext.getInstance("TLS");
71 context.init(null, null, null);
72 SSLSessionContext sc = context
88 SSLContext context
[all...]
H A DSSLServerSocketTest.java409 SSLContext context = SSLContext.getInstance("TLS");
410 context.init(getKeyManagers(), null, null);
411 SSLServerSocket sss = (SSLServerSocket) context.getServerSocketFactory()
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLServerSocketFactory.java61 SSLContext context;
63 context = SSLContext.getDefault();
65 context = null;
67 if (context != null) {
68 defaultServerSocketFactory = context.getServerSocketFactory();
H A DSSLSocketFactory.java64 SSLContext context;
66 context = SSLContext.getDefault();
68 context = null;
70 if (context != null) {
71 defaultSocketFactory = context.getSocketFactory();
/libcore/luni/src/main/java/java/security/
H A DAccessControlContext.java42 public AccessControlContext(ProtectionDomain[] context) { } argument
H A DAccessController.java51 public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context) { argument
71 public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) throws PrivilegedActionException { argument
/libcore/luni/src/test/java/libcore/xml/
H A DJaxenXPathTestSuite.java74 * <context .../>
75 * <context .../>
76 * <context .../>
79 * <context .../>
92 for (final Element context : elementsOf(document.getElementsByTagName("context"))) {
93 contextToTestSuite(result, url, inputSource, context);
101 * Populates the test suite with tests from the given XML context element.
107 * Each context element has this structure:
109 * <context selec
150 createFromTest( final XPath xpath, final Context context, final Element element) argument
202 createFromValueOf( final XPath xpath, final Context context, final Element element) argument
249 private final Context context; field in class:JaxenXPathTestSuite.XPathTest
252 XPathTest(Context context, String select) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DURL.java129 * Creates a new URL by resolving {@code spec} relative to {@code context}.
131 * @param context the URL to which {@code spec} is relative, or null for
132 * no context in which case {@code spec} must be an absolute URL.
136 public URL(URL context, String spec) throws MalformedURLException { argument
137 this(context, spec, null);
141 * Creates a new URL by resolving {@code spec} relative to {@code context}.
143 * @param context the URL to which {@code spec} is relative, or null for
144 * no context in which case {@code spec} must be an absolute URL.
150 public URL(URL context, String spec, URLStreamHandler handler) throws MalformedURLException { argument
162 // If the context UR
[all...]
/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...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLSocketPair.java71 public static SSLSocket[] connect (final TestSSLContext context, argument
76 context.clientContext.getSocketFactory().createSocket(context.host, context.port);
77 final SSLSocket server = (SSLSocket) context.serverSocket.accept();
H A DTestSSLContext.java207 SSLContext context = SSLContext.getInstance(protocol, provider);
208 context.init(keyManagers, trustManagers, new SecureRandom());
209 return context;
/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java48 public void checkConnect(String host, int port, Object context) { } argument
83 public void checkRead(String file, Object context) { } argument
151 public void checkPermission(Permission permission, Object context) { } argument
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java346 String context,
356 // if the context is attribute, then use case-insentive comparison
358 if ("attribute".equals(context)) {
398 String context,
404 if ("attribute".equals(context)) {
429 String context,
435 if ("attribute".equals(context)) {
576 String context,
582 if ("attribute".equals(context)) {
830 public boolean equalsAutoCase(String context, Strin argument
345 assertEqualsAutoCase( String context, String assertID, String expected, String actual) argument
397 assertEqualAutoCase( String context, String assertID, Collection expected, Collection actual) argument
428 assertEqualsAutoCase( String context, String assertID, List expected, List actual) argument
575 assertNotEqualsAutoCase( String context, String assertID, String expected, String actual) argument
851 equalsAutoCase(String context, Collection expected, Collection actual) argument
873 equalsAutoCase(String context, List expected, List actual) argument
[all...]
/libcore/luni/src/main/java/javax/security/auth/
H A DSubject.java152 * specific context.
158 * @param context
159 * the specific context in which the {@code action} is invoked.
166 AccessControlContext context) {
167 if (context == null) {
171 return doAs_PrivilegedAction(subject, action, context);
174 // instantiates a new context and passes it to AccessController
177 final AccessControlContext context) {
192 return new AccessControlContext(context, combiner);
222 * specific context
165 doAsPrivileged(Subject subject, PrivilegedAction<T> action, AccessControlContext context) argument
176 doAs_PrivilegedAction(Subject subject, PrivilegedAction<T> action, final AccessControlContext context) argument
237 doAsPrivileged(Subject subject, PrivilegedExceptionAction<T> action, AccessControlContext context) argument
249 doAs_PrivilegedExceptionAction(Subject subject, PrivilegedExceptionAction<T> action, final AccessControlContext context) argument
472 getSubject(final AccessControlContext context) argument
[all...]
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp451 * @param data parsing context
575 char* context = NULL; local
576 char* a = strtok_r(mCopy, "|", &context);
577 char* b = strtok_r(NULL, "|", &context);
578 char* c = strtok_r(NULL, "|", &context);
604 * @param data parsing context
645 * @param data parsing context
670 * @param data parsing context
682 * @param data parsing context
692 * @param data parsing context
867 handleExternalEntity(XML_Parser parser, const char* context, const char*, const char* systemId, const char* publicId) argument
1019 ParsingContext* context = toParsingContext(parser); local
1076 ParsingContext* context = toParsingContext(parser); local
1100 ParsingContext* context = toParsingContext(toXMLParser(address)); local
1113 ParsingContext* context = toParsingContext(toXMLParser(address)); local
1126 ParsingContext* context = toParsingContext(toXMLParser(address)); local
[all...]
H A Dlibcore_icu_NativeConverter.cpp371 const EncoderCallbackContext* context = reinterpret_cast<const EncoderCallbackContext*>(rawContext); local
373 ucnv_cbFromUWriteBytes(fromArgs, context->replacementBytes, context->replacementByteCount, 0, err);
420 // The icu4c UCNV_FROM_U_CALLBACK_SKIP callback requires that the context is NULL, which is
431 const DecoderCallbackContext* context = reinterpret_cast<const DecoderCallbackContext*>(rawContext); local
433 ucnv_cbToUWriteUChars(toArgs,context->replacementChars, context->replacementCharCount, 0, err);
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationAccess.java608 private static Class<? extends Annotation> getAnnotationClass(Class<?> context, Dex dex, argument
613 (Class<? extends Annotation>) context.getDexCacheType(dex, typeIndex);
623 private static AccessibleObject indexToMethod(Class<?> context, Dex dex, int methodIndex) { argument
625 context.getDexCacheType(dex, dex.declaringClassIndexFromMethodIndex(methodIndex));
626 String name = context.getDexCacheString(dex, dex.nameIndexFromMethodIndex(methodIndex));
630 parametersArray[i] = context.getDexCacheType(dex, types[i]);
642 private static List<Annotation> annotationSetToAnnotations(Class<?> context, int offset) { argument
647 Dex dex = context.getDex();
660 getAnnotationClass(context, dex, annotation.getTypeIndex());
662 result.add(toAnnotationInstance(context, de
668 toAnnotationInstance(Class<?> context, Class<A> annotationClass, com.android.dex.Annotation annotation) argument
674 toAnnotationInstance(Class<?> context, Dex dex, Class<A> annotationClass, EncodedValueReader reader) argument
698 decodeValue(Class<?> context, Class<?> type, Dex dex, EncodedValueReader reader) argument
[all...]
/libcore/luni/src/main/java/java/awt/font/
H A DNumericShaper.java115 * range constant value. Also script ranges, context names and digits low
231 * context dependent digit. European digits starts from 0x0030 hence
232 * context dependent unicode digit value equals to
261 // Set of context names used in toString method
415 // index of context range (Serialization support)
427 // index of the default context
428 /** The default context index. */
435 // uses for non-context dependent case only
443 * @param defaultContext default context range
457 * Returns script index of the specified context rang
665 shape(char[] text, int start, int count, int context) argument
[all...]
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java16 * and its class used for loading (no class loader - on J2ME no access to context class loaders)
36 /** used as default class to server as context class in newInstance() */
250 public static XmlPullParserFactory newInstance (String classNames, Class context) argument
254 if (context == null) {
255 //NOTE: make sure context uses the same class loader as API classes
256 // this is the best we can do without having access to context classloader in J2ME
258 context = referenceContextClass;
265 InputStream is = context.getResourceAsStream (RESOURCE_NAME);

Completed in 6084 milliseconds

12