Home
last modified time | relevance | path

Searched refs:jniutil (Results 1 – 13 of 13) sorted by relevance

/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc79 conscrypt::jniutil::throwNullPointerException(env, "ssl_ctx == null"); in to_SSL_CTX()
88 conscrypt::jniutil::throwNullPointerException(env, "ssl == null"); in to_SSL()
97 conscrypt::jniutil::throwNullPointerException(env, "bio == null"); in to_SSL_BIO()
107 conscrypt::jniutil::throwNullPointerException(env, "ssl_session == null"); in to_SSL_SESSION()
117 conscrypt::jniutil::throwNullPointerException(env, "ssl_cipher == null"); in to_SSL_CIPHER()
126 conscrypt::jniutil::throwNullPointerException(env, "contextObject == null"); in fromContextObject()
130 env->GetLongField(contextObject, conscrypt::jniutil::nativeRef_address)); in fromContextObject()
133 conscrypt::jniutil::throwNullPointerException(env, "ref == null"); in fromContextObject()
148 conscrypt::jniutil::throwNullPointerException(env, "dest == null"); in arrayToBignum()
189 conscrypt::jniutil::throwRuntimeException(env, "Conversion to BIGNUM failed"); in arrayToBignum()
[all …]
Djniutil.cc25 namespace jniutil { namespace
145 return conscrypt::jniutil::throwException(env, "java/lang/RuntimeException", msg); in throwRuntimeException()
149 return conscrypt::jniutil::throwException(env, "java/lang/AssertionError", msg); in throwAssertionError()
153 return conscrypt::jniutil::throwException(env, "java/lang/NullPointerException", msg); in throwNullPointerException()
157 return conscrypt::jniutil::throwException(env, "java/lang/OutOfMemoryError", message); in throwOutOfMemory()
162 return conscrypt::jniutil::throwException(env, "javax/crypto/BadPaddingException", message); in throwBadPaddingException()
167 return conscrypt::jniutil::throwException(env, "java/security/SignatureException", message); in throwSignatureException()
172 return conscrypt::jniutil::throwException(env, "java/security/InvalidKeyException", message); in throwInvalidKeyException()
177 return conscrypt::jniutil::throwException( in throwIllegalBlockSizeException()
183 return conscrypt::jniutil::throwException( in throwShortBufferException()
[all …]
Djniload.cc40 conscrypt::jniutil::init(vm, env); in libconscrypt_JNI_OnLoad()
/external/conscrypt/common/src/jni/main/include/conscrypt/
Dbio_stream.h33 JNIEnv* env = jniutil::getJNIEnv(); in BioStream()
38 JNIEnv* env = jniutil::getJNIEnv(); in ~BioStream()
49 JNIEnv* env = jniutil::getJNIEnv(); in flush()
59 env->CallVoidMethod(mStream, jniutil::outputStream_flushMethod); in flush()
Dbio_input_stream.h33 return read_internal(buf, len, jniutil::inputStream_readMethod); in read()
41 int read = read_internal(buf, len - 1, jniutil::openSslInputStream_readLineMethod); in gets()
55 JNIEnv *env = jniutil::getJNIEnv(); in read_internal()
Dbio_output_stream.h31 JNIEnv* env = jniutil::getJNIEnv(); in write()
50 env->CallVoidMethod(getStream(), jniutil::outputStream_writeMethod, javaBytes.get()); in write()
DNetFd.h31 mFd = conscrypt::jniutil::jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); in isClosed()
34 conscrypt::jniutil::throwException(mEnv, "java/net/SocketException", "Socket closed"); in isClosed()
Djniutil.h28 namespace jniutil {
301 #define CHECK_ERROR_QUEUE_ON_RETURN conscrypt::jniutil::ErrorQueueChecker __checker(env)
Dapp_data.h263 e = conscrypt::jniutil::getJNIEnv(); in clearApplicationProtocolSelector()
/external/conscrypt/common/src/jni/unbundled/include/nativehelper/
Dscoped_primitive_array.h34 conscrypt::jniutil::throwNullPointerException(mEnv, nullptr); \
92 conscrypt::jniutil::throwNullPointerException(mEnv, nullptr); \
Dscoped_utf_chars.h37 conscrypt::jniutil::throwNullPointerException(env, nullptr); in ScopedUtfChars()
/external/conscrypt/android/
DCMakeLists.txt6 ../common/src/jni/main/cpp/conscrypt/jniutil.cc
/external/conscrypt/
DAndroid.bp60 "common/src/jni/main/cpp/conscrypt/jniutil.cc",