Lines Matching refs:JniHelper
23 StatusOr<ScopedLocalRef<jclass>> JniHelper::FindClass(JNIEnv* env, in FindClass()
32 StatusOr<ScopedLocalRef<jclass>> JniHelper::GetObjectClass(JNIEnv* env, in GetObjectClass()
41 StatusOr<jmethodID> JniHelper::GetMethodID(JNIEnv* env, jclass clazz, in GetMethodID()
50 StatusOr<jmethodID> JniHelper::GetStaticMethodID(JNIEnv* env, jclass clazz, in GetStaticMethodID()
59 StatusOr<jfieldID> JniHelper::GetFieldID(JNIEnv* env, jclass clazz, in GetFieldID()
68 StatusOr<jfieldID> JniHelper::GetStaticFieldID(JNIEnv* env, jclass clazz, in GetStaticFieldID()
77 StatusOr<ScopedLocalRef<jobject>> JniHelper::GetStaticObjectField( in GetStaticObjectField()
87 StatusOr<jint> JniHelper::GetStaticIntField(JNIEnv* env, jclass class_name, in GetStaticIntField()
95 StatusOr<ScopedLocalRef<jbyteArray>> JniHelper::NewByteArray(JNIEnv* env, in NewByteArray()
104 Status JniHelper::CallVoidMethod(JNIEnv* env, jobject object, in CallVoidMethod()
115 StatusOr<bool> JniHelper::CallBooleanMethod(JNIEnv* env, jobject object, in CallBooleanMethod()
126 StatusOr<int32> JniHelper::CallIntMethod(JNIEnv* env, jobject object, in CallIntMethod()
137 StatusOr<int64> JniHelper::CallLongMethod(JNIEnv* env, jobject object, in CallLongMethod()
148 StatusOr<float> JniHelper::CallFloatMethod(JNIEnv* env, jobject object, in CallFloatMethod()
159 StatusOr<double> JniHelper::CallDoubleMethod(JNIEnv* env, jobject object, in CallDoubleMethod()
170 StatusOr<ScopedLocalRef<jintArray>> JniHelper::NewIntArray(JNIEnv* env, in NewIntArray()
179 StatusOr<ScopedLocalRef<jfloatArray>> JniHelper::NewFloatArray(JNIEnv* env, in NewFloatArray()
188 Status JniHelper::SetObjectArrayElement(JNIEnv* env, jobjectArray array, in SetObjectArrayElement()
196 StatusOr<jsize> JniHelper::GetArrayLength(JNIEnv* env, jarray array) { in GetArrayLength()
203 Status JniHelper::GetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, in GetByteArrayRegion()
211 Status JniHelper::SetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, in SetByteArrayRegion()
219 Status JniHelper::SetIntArrayRegion(JNIEnv* env, jintArray array, jsize start, in SetIntArrayRegion()
227 Status JniHelper::SetFloatArrayRegion(JNIEnv* env, jfloatArray array, in SetFloatArrayRegion()
236 StatusOr<ScopedLocalRef<jobjectArray>> JniHelper::NewObjectArray( in NewObjectArray()
246 StatusOr<ScopedLocalRef<jstring>> JniHelper::NewStringUTF(JNIEnv* env, in NewStringUTF()
258 JniHelper::GetArrayLength(env, array)); in JByteArrayToString()
260 TC3_RETURN_IF_ERROR(JniHelper::GetByteArrayRegion( in JByteArrayToString()
272 JniHelper::FindClass(env, "java/lang/String")); in JStringToUtf8String()
275 JniHelper::GetMethodID(env, string_class.get(), "getBytes", in JStringToUtf8String()
279 JniHelper::NewStringUTF(env, "UTF-8")); in JStringToUtf8String()
282 JniHelper::CallObjectMethod<jbyteArray>( in JStringToUtf8String()