Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java129 SSLContext ctx = getContext(); in testHttpsConnection() local
136 MockWebServer webServer = createWebServer(ctx, dispatcher); in testHttpsConnection()
141 connection.setSSLSocketFactory(ctx.getSocketFactory()); in testHttpsConnection()
161 SSLContext ctx = getContext(); in testHttpsConnection_Not_Found_Response() local
169 MockWebServer webServer = createWebServer(ctx, dispatcher); in testHttpsConnection_Not_Found_Response()
174 connection.setSSLSocketFactory(ctx.getSocketFactory()); in testHttpsConnection_Not_Found_Response()
199 SSLContext ctx = getContext(); in testSetDefaultSSLSocketFactory() local
201 SSLSocketFactory socketFactory = ctx.getSocketFactory(); in testSetDefaultSSLSocketFactory()
214 MockWebServer webServer = createWebServer(ctx, dispatcher); in testSetDefaultSSLSocketFactory()
246 SSLContext ctx = getContext(); in testSetSSLSocketFactory() local
[all …]
/libcore/luni/src/main/native/
Djava_math_NativeBN.cpp451 Unique_BN_CTX ctx(BN_CTX_new()); in NativeBN_BN_gcd() local
452 if (!BN_gcd(toBigNum(r), toBigNum(a), toBigNum(b), ctx.get())) { in NativeBN_BN_gcd()
459 Unique_BN_CTX ctx(BN_CTX_new()); in NativeBN_BN_mul() local
460 if (!BN_mul(toBigNum(r), toBigNum(a), toBigNum(b), ctx.get())) { in NativeBN_BN_mul()
467 Unique_BN_CTX ctx(BN_CTX_new()); in NativeBN_BN_exp() local
468 if (!BN_exp(toBigNum(r), toBigNum(a), toBigNum(p), ctx.get())) { in NativeBN_BN_exp()
475 Unique_BN_CTX ctx(BN_CTX_new()); in NativeBN_BN_div() local
476 if (!BN_div(toBigNum(dv), toBigNum(rem), toBigNum(m), toBigNum(d), ctx.get())) { in NativeBN_BN_div()
483 Unique_BN_CTX ctx(BN_CTX_new()); in NativeBN_BN_nnmod() local
484 if (!BN_nnmod(toBigNum(r), toBigNum(a), toBigNum(m), ctx.get())) { in NativeBN_BN_nnmod()
[all …]
Dlibcore_icu_NativeConverter.cpp350 const EncoderCallbackContext* ctx = reinterpret_cast<const EncoderCallbackContext*>(rawContext); in CHARSET_ENCODER_CALLBACK() local
353 ctx->onUnmappableInput(ctx, args, codeUnits, length, codePoint, reason, status); in CHARSET_ENCODER_CALLBACK()
357 ctx->onMalformedInput(ctx, args, codeUnits, length, codePoint, reason, status); in CHARSET_ENCODER_CALLBACK()
360 delete ctx; in CHARSET_ENCODER_CALLBACK()
454 const DecoderCallbackContext* ctx = reinterpret_cast<const DecoderCallbackContext*>(rawContext); in CHARSET_DECODER_CALLBACK() local
457 ctx->onUnmappableInput(ctx, args, codeUnits, length, reason, status); in CHARSET_DECODER_CALLBACK()
461 ctx->onMalformedInput(ctx, args, codeUnits, length, reason, status); in CHARSET_DECODER_CALLBACK()
464 delete ctx; in CHARSET_DECODER_CALLBACK()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java483 URL ctx = null; in test_ConstructorLjava_net_URLLjava_lang_String() local
484 u = new URL(ctx, spec); in test_ConstructorLjava_net_URLLjava_lang_String()
489 ctx = new URL("jar:file:/a!/b"); in test_ConstructorLjava_net_URLLjava_lang_String()
490 u = new URL(ctx, spec); in test_ConstructorLjava_net_URLLjava_lang_String()
495 ctx = new URL("jar:file:/a!/b/c"); in test_ConstructorLjava_net_URLLjava_lang_String()
496 u = new URL(ctx, spec); in test_ConstructorLjava_net_URLLjava_lang_String()
501 ctx = new URL("jar:file:/a!/b/c/d"); in test_ConstructorLjava_net_URLLjava_lang_String()
502 u = new URL(ctx, spec); in test_ConstructorLjava_net_URLLjava_lang_String()
508 ctx = new URL( in test_ConstructorLjava_net_URLLjava_lang_String()
510 u = new URL(ctx, spec); in test_ConstructorLjava_net_URLLjava_lang_String()
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java449 SerialCallbackContext ctx = curContext; in defaultWriteObject() local
450 if (ctx == null) { in defaultWriteObject()
453 Object curObj = ctx.getObj(); in defaultWriteObject()
454 ObjectStreamClass curDesc = ctx.getDesc(); in defaultWriteObject()
472 SerialCallbackContext ctx = curContext; in putFields() local
473 if (ctx == null) { in putFields()
476 Object curObj = ctx.getObj(); in putFields()
477 ObjectStreamClass curDesc = ctx.getDesc(); in putFields()
DObjectInputStream.java497 SerialCallbackContext ctx = curContext; in defaultReadObject() local
498 if (ctx == null) { in defaultReadObject()
501 Object curObj = ctx.getObj(); in defaultReadObject()
502 ObjectStreamClass curDesc = ctx.getDesc(); in defaultReadObject()
536 SerialCallbackContext ctx = curContext; in readFields() local
537 if (ctx == null) { in readFields()
540 Object curObj = ctx.getObj(); in readFields()
541 ObjectStreamClass curDesc = ctx.getDesc(); in readFields()