Home
last modified time | relevance | path

Searched refs:JniHelper (Results 1 – 19 of 19) sorted by relevance

/external/libtextclassifier/native/annotator/
Dannotator_jni_common.cc31 JniHelper::GetArrayLength(env, jentity_types)); in EntityTypesFromJObject()
35 JniHelper::GetObjectArrayElement<jstring>(env, jentity_types, i)); in EntityTypesFromJObject()
51 JniHelper::FindClass(env, class_name.c_str())); in FromJavaOptionsInternal()
56 JniHelper::GetMethodID(env, options_class.get(), "getLocale", in FromJavaOptionsInternal()
60 JniHelper::CallObjectMethod<jstring>(env, joptions, get_locale)); in FromJavaOptionsInternal()
64 JniHelper::GetMethodID(env, options_class.get(), in FromJavaOptionsInternal()
68 JniHelper::CallLongMethod(env, joptions, get_reference_time_method)); in FromJavaOptionsInternal()
73 JniHelper::GetMethodID(env, options_class.get(), "getReferenceTimezone", in FromJavaOptionsInternal()
76 JniHelper::CallObjectMethod<jstring>( in FromJavaOptionsInternal()
81 JniHelper::GetMethodID(env, options_class.get(), in FromJavaOptionsInternal()
[all …]
Dannotator_jni.cc57 using libtextclassifier3::JniHelper;
135 JniHelper::NewStringUTF(env, classification_result.collection.c_str())); in ClassificationResultWithIntentsToJObject()
141 JniHelper::NewObject( in ClassificationResultWithIntentsToJObject()
152 JniHelper::NewByteArray( in ClassificationResultWithIntentsToJObject()
154 TC3_RETURN_IF_ERROR(JniHelper::SetByteArrayRegion( in ClassificationResultWithIntentsToJObject()
164 JniHelper::NewStringUTF( in ClassificationResultWithIntentsToJObject()
172 JniHelper::NewStringUTF( in ClassificationResultWithIntentsToJObject()
180 JniHelper::NewStringUTF( in ClassificationResultWithIntentsToJObject()
188 JniHelper::NewStringUTF( in ClassificationResultWithIntentsToJObject()
196 JniHelper::NewStringUTF( in ClassificationResultWithIntentsToJObject()
[all …]
/external/libtextclassifier/native/utils/java/
Djni-helper.cc23 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()
[all …]
Djni-cache.cc57 JniHelper::FindClass(env, NAME)); \
68 JniHelper::FindClass(env, NAME); \
78 JniHelper::GetMethodID(env, result->CLASS##_class.get(), NAME, \
91 if (StatusOr<jmethodID> status_or_method_id = JniHelper::METHOD_NAME( \
101 JniHelper::GetStaticMethodID(env, result->CLASS##_class.get(), NAME, \
109 JniHelper::GetStaticFieldID(env, result->CLASS##_class.get(), NAME, \
113 JniHelper::GetStaticObjectField(env, result->CLASS##_class.get(), \
124 JniHelper::GetStaticFieldID( \
128 JniHelper::GetStaticIntField(env, result->CLASS##_class.get(), \
148 JniHelper::NewStringUTF(env, "UTF-8")); in Create()
[all …]
Djni-helper.h71 class JniHelper {
162 StatusOr<ScopedLocalRef<T>> JniHelper::GetObjectArrayElement(JNIEnv* env, in GetObjectArrayElement()
174 StatusOr<T> JniHelper::CallStaticIntMethod(JNIEnv* env, in CallStaticIntMethod()
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-helper.cc21 StatusOr<ScopedLocalRef<jclass>> JniHelper::FindClass(JNIEnv* env, in FindClass()
30 StatusOr<ScopedLocalRef<jclass>> JniHelper::GetObjectClass(JNIEnv* env, in GetObjectClass()
39 StatusOr<jmethodID> JniHelper::GetMethodID(JNIEnv* env, jclass clazz, in GetMethodID()
48 StatusOr<jmethodID> JniHelper::GetStaticMethodID(JNIEnv* env, jclass clazz, in GetStaticMethodID()
57 StatusOr<jfieldID> JniHelper::GetFieldID(JNIEnv* env, jclass clazz, in GetFieldID()
66 StatusOr<jfieldID> JniHelper::GetStaticFieldID(JNIEnv* env, jclass clazz, in GetStaticFieldID()
75 StatusOr<ScopedLocalRef<jobject>> JniHelper::GetStaticObjectField( in GetStaticObjectField()
85 StatusOr<jint> JniHelper::GetStaticIntField(JNIEnv* env, jclass class_name, in GetStaticIntField()
93 StatusOr<ScopedLocalRef<jbyteArray>> JniHelper::NewByteArray(JNIEnv* env, in NewByteArray()
102 Status JniHelper::CallVoidMethod(JNIEnv* env, jobject object, in CallVoidMethod()
[all …]
Djni-helper.h69 class JniHelper {
160 StatusOr<ScopedLocalRef<T>> JniHelper::GetObjectArrayElement(JNIEnv* env, in GetObjectArrayElement()
172 StatusOr<T> JniHelper::CallStaticIntMethod(JNIEnv* env, in CallStaticIntMethod()
/external/libtextclassifier/native/actions/
Dactions_jni.cc132 auto status_or_action_class = JniHelper::FindClass( in ActionSuggestionsToJObject()
142 auto status_or_result_class = JniHelper::FindClass( in ActionSuggestionsToJObject()
152 auto status_or_slot_class = JniHelper::FindClass( in ActionSuggestionsToJObject()
163 JniHelper::GetMethodID( in ActionSuggestionsToJObject()
170 JniHelper::GetMethodID(env, slot_class.get(), "<init>", in ActionSuggestionsToJObject()
174 JniHelper::NewObjectArray(env, action_response.actions.size(), in ActionSuggestionsToJObject()
192 JniHelper::NewByteArray( in ActionSuggestionsToJObject()
194 TC3_RETURN_IF_ERROR(JniHelper::SetByteArrayRegion( in ActionSuggestionsToJObject()
223 JniHelper::NewStringUTF(env, action_response.actions[i].type.c_str())); in ActionSuggestionsToJObject()
228 JniHelper::NewObjectArray( in ActionSuggestionsToJObject()
[all …]
/external/libtextclassifier/native/utils/intents/
Djni.cc34 JniHelper::FindClass(env, NAME)); \
41 JniHelper::GetMethodID(env, handler->CLASS.get(), NAME, SIGNATURE));
110 JniHelper::NewObject(jni_cache_->GetEnv(), integer_class_.get(), in AsInteger()
125 JniHelper::NewObjectArray(jni_cache_->GetEnv(), values.size(), in AsStringArray()
131 TC3_RETURN_IF_ERROR(JniHelper::SetObjectArrayElement( in AsStringArray()
146 JniHelper::NewFloatArray(jni_cache_->GetEnv(), values.size())); in AsFloatArray()
148 TC3_RETURN_IF_ERROR(JniHelper::SetFloatArrayRegion( in AsFloatArray()
162 JniHelper::NewIntArray(jni_cache_->GetEnv(), values.size())); in AsIntArray()
164 TC3_RETURN_IF_ERROR(JniHelper::SetIntArrayRegion( in AsIntArray()
178 return JniHelper::NewObject(env, named_variant_class_.get(), in AsNamedVariant()
[all …]
Djni-lua.cc68 JniHelper::NewStringUTF(jenv_, "string")); in PreallocateConstantJniStrings()
71 JniHelper::NewStringUTF(jenv_, "android")); in PreallocateConstantJniStrings()
156 JniHelper::CallObjectMethod<jstring>( in HandleAndroidCallback()
206 JniHelper::CallObjectMethod( in HandleUserRestrictionsCallback()
228 const StatusOr<bool> status_or_permission = JniHelper::CallBooleanMethod( in HandleUserRestrictionsCallback()
256 JniHelper::CallStaticObjectMethod<jstring>( in HandleUrlEncode()
289 JniHelper::CallStaticObjectMethod(jenv_, jni_cache_->uri_class.get(), in ParseUri()
309 JniHelper::CallObjectMethod<jstring>( in HandleUrlSchema()
341 JniHelper::CallObjectMethod<jstring>( in HandleUrlHost()
430 StatusOr<int> status_or_resource_id = JniHelper::CallIntMethod( in HandleAndroidStringResources()
[all …]
Dintent-generator-test-lib.cc163 JniHelper::NewStringUTF(GetJenv(), "en-US").ValueOrDie().get(), in TEST_F()
189 JniHelper::NewStringUTF(GetJenv(), "en-US").ValueOrDie().get(), in TEST_F()
/external/libtextclassifier/native/utils/calendar/
Dcalendar-javaicu.cc30 return JniHelper::CallVoidMethod(jenv, calendar, jni_cache->calendar_add, in CalendarAdd()
40 JniHelper::CallIntMethod(jenv, calendar, jni_cache->calendar_get, field)); in CalendarGet()
47 return JniHelper::CallVoidMethod(jenv, calendar, jni_cache->calendar_set, in CalendarSet()
90 JniHelper::NewStringUTF(jenv_, time_zone.c_str())); in Initialize()
93 JniHelper::CallStaticObjectMethod(jenv_, jni_cache_->timezone_class.get(), in Initialize()
106 JniHelper::NewStringUTF(jenv_, locale.c_str())); in Initialize()
110 JniHelper::CallStaticObjectMethod(jenv_, jni_cache_->locale_class.get(), in Initialize()
117 JniHelper::NewStringUTF(jenv_, GetFirstBcp47Tag(locale).c_str())); in Initialize()
120 java_locale, JniHelper::NewObject(jenv_, jni_cache_->locale_class.get(), in Initialize()
131 calendar_, JniHelper::CallStaticObjectMethod( in Initialize()
[all …]
/external/libtextclassifier/native/lang_id/
Dlang-id_jni.cc30 using libtextclassifier3::JniHelper;
46 JniHelper::FindClass( in LangIdResultToJObjectArray()
50 JniHelper::GetMethodID(env, result_class.get(), "<init>", in LangIdResultToJObjectArray()
54 JniHelper::NewObjectArray(env, lang_id_predictions.size(), in LangIdResultToJObjectArray()
59 JniHelper::NewStringUTF(env, lang_id_predictions[i].first.c_str())); in LangIdResultToJObjectArray()
62 JniHelper::NewObject( in LangIdResultToJObjectArray()
66 JniHelper::SetObjectArrayElement(env, results.get(), i, result.get()); in LangIdResultToJObjectArray()
/external/icing/icing/jni/
Djni-cache.cc42 libtextclassifier3::JniHelper::FindClass(env, NAME), nullptr); \
54 status_or_class = libtextclassifier3::JniHelper::FindClass(env, NAME); \
98 libtextclassifier3::JniHelper::GetStaticObjectField( \
145 libtextclassifier3::JniHelper::NewStringUTF(env, "UTF-8"), nullptr); in Create()
203 libtextclassifier3::JniHelper::NewByteArray(jenv, utf8_text_size_bytes)); in ConvertToJavaString()
210 libtextclassifier3::JniHelper::NewObject<jstring>( in ConvertToJavaString()
/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-break-iterator.cc69 libtextclassifier3::JniHelper::NewObject( in Create()
79 libtextclassifier3::JniHelper::NewObject( in Create()
90 ICING_RETURN_IF_ERROR(libtextclassifier3::JniHelper::CallVoidMethod( in Create()
157 libtextclassifier3::JniHelper::CallObjectMethod<jintArray>( in FetchNextBatch()
/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.cc90 JniHelper::CallIntMethod(jenv, text_java.get(), in Length()
93 return JniHelper::CallIntMethod(jenv, text_java.get(), in Length()
175 JniHelper::CallStaticObjectMethod( in LockedInitializeIfNotAlready()
208 JniHelper::CallObjectMethod(env, pattern_.get(), in Matcher()
421 JniHelper::CallObjectMethod<jstring>(jenv, matcher_.get(), in Group()
449 JniHelper::CallObjectMethod<jstring>( in Group()
502 JniHelper::CallStaticObjectMethod( in BreakIterator()
514 JniHelper::CallVoidMethod(jenv, iterator_.get(), in BreakIterator()
Dunilib-javaicu.h214 JniHelper::CallStaticIntMethod<T>( in ParseInt()
/external/webrtc/sdk/android/src/java/org/webrtc/
DJniHelper.java20 class JniHelper { class
/external/webrtc/sdk/android/
DBUILD.gn168 "src/java/org/webrtc/JniHelper.java",
1273 "src/java/org/webrtc/JniHelper.java",