/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 45 static jlong latinime_BinaryDictionary_open(JNIEnv *env, jclass clazz, jstring sourceDir, in latinime_BinaryDictionary_open() argument 49 const jsize sourceDirUtf8Length = env->GetStringUTFLength(sourceDir); in latinime_BinaryDictionary_open() 55 env->GetStringUTFRegion(sourceDir, 0, env->GetStringLength(sourceDir), sourceDirChars); in latinime_BinaryDictionary_open() 66 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy)); in latinime_BinaryDictionary_open() 71 static jlong latinime_BinaryDictionary_createOnMemory(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_createOnMemory() argument 74 const jsize localeUtf8Length = env->GetStringUTFLength(locale); in latinime_BinaryDictionary_createOnMemory() 76 env->GetStringUTFRegion(locale, 0, env->GetStringLength(locale), localeChars); in latinime_BinaryDictionary_createOnMemory() 80 const int keyCount = env->GetArrayLength(attributeKeyStringArray); in latinime_BinaryDictionary_createOnMemory() 81 const int valueCount = env->GetArrayLength(attributeValueStringArray); in latinime_BinaryDictionary_createOnMemory() 86 JniDataUtils::constructAttributeMap(env, attributeKeyStringArray, in latinime_BinaryDictionary_createOnMemory() [all …]
|
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 32 static jboolean latinime_BinaryDictionaryUtils_createEmptyDictFile(JNIEnv *env, jclass clazz, in latinime_BinaryDictionaryUtils_createEmptyDictFile() argument 35 const jsize filePathUtf8Length = env->GetStringUTFLength(filePath); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 37 env->GetStringUTFRegion(filePath, 0, env->GetStringLength(filePath), filePathChars); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 40 const jsize localeUtf8Length = env->GetStringUTFLength(locale); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 42 env->GetStringUTFRegion(locale, 0, env->GetStringLength(locale), localeChars); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 47 const int keyCount = env->GetArrayLength(attributeKeyStringArray); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 48 const int valueCount = env->GetArrayLength(attributeValueStringArray); in latinime_BinaryDictionaryUtils_createEmptyDictFile() 53 JniDataUtils::constructAttributeMap(env, attributeKeyStringArray, in latinime_BinaryDictionaryUtils_createEmptyDictFile() 59 static jfloat latinime_BinaryDictionaryUtils_calcNormalizedScore(JNIEnv *env, jclass clazz, in latinime_BinaryDictionaryUtils_calcNormalizedScore() argument 61 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionaryUtils_calcNormalizedScore() [all …]
|
D | jni_common.cpp | 31 JNIEnv *env = 0; in JNI_OnLoad() local 33 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad() 37 ASSERT(env); in JNI_OnLoad() 38 if (!env) { in JNI_OnLoad() 42 if (!latinime::register_BinaryDictionary(env)) { in JNI_OnLoad() 46 if (!latinime::register_BinaryDictionaryUtils(env)) { in JNI_OnLoad() 50 if (!latinime::register_DicTraverseSession(env)) { in JNI_OnLoad() 54 if (!latinime::register_ProximityInfo(env)) { in JNI_OnLoad() 63 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, in registerNativeMethods() argument 65 jclass clazz = env->FindClass(className); in registerNativeMethods() [all …]
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpegstream.cpp | 31 static jint OutputStream_setup(JNIEnv* env, jobject thiz, jobject out, in OutputStream_setup() argument 34 jclass thisClass = env->GetObjectClass(thiz); in OutputStream_setup() 35 if (env->ExceptionCheck() || thisClass == NULL) { in OutputStream_setup() 39 jfieldID fidNumber = env->GetFieldID(thisClass, "JNIPointer", "J"); in OutputStream_setup() 40 if (NULL == fidNumber || env->ExceptionCheck()) { in OutputStream_setup() 69 int32_t errorFlag = w_ptr->setup(env, out, w, h, fmt, q); in OutputStream_setup() 70 if (env->ExceptionCheck() || errorFlag != J_SUCCESS) { in OutputStream_setup() 76 env->SetLongField(thiz, fidNumber, reinterpret_cast<jlong>(w_ptr)); in OutputStream_setup() 77 if (env->ExceptionCheck()) { in OutputStream_setup() 84 static jint InputStream_setup(JNIEnv* env, jobject thiz, jobject dimens, in InputStream_setup() argument [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 73 void checkAndClearExceptionFromCallback(JNIEnv* env, in checkAndClearExceptionFromCallback() argument 75 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 77 LOGE_EX(env); in checkAndClearExceptionFromCallback() 78 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 83 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 84 if (callbackEnv != env || callbackEnv == NULL) { in checkCallbackThread() 85 ALOGE("Callback env check fail: env: %p, callback: %p", env, callbackEnv); in checkCallbackThread() 519 JNIEnv *env; in set_wake_alarm_callout() local 521 jint status = vm->GetEnv((void **)&env, JNI_VERSION_1_6); in set_wake_alarm_callout() 528 if (status == JNI_EDETACHED && vm->AttachCurrentThread(&env, &sAttachArgs) != 0) { in set_wake_alarm_callout() [all …]
|
D | com_android_bluetooth_gatt.cpp | 127 static void jstr2bdaddr(JNIEnv* env, bt_bdaddr_t *bda, jstring address) in jstr2bdaddr() argument 129 const char* c_bda = env->GetStringUTFChars(address, NULL); in jstr2bdaddr() 133 env->ReleaseStringUTFChars(address, c_bda); in jstr2bdaddr() 208 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 209 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 865 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 869 method_onClientRegistered = env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative() 870 method_onScanResult = env->GetMethodID(clazz, "onScanResult", "(Ljava/lang/String;I[B)V"); in classInitNative() 871 method_onConnected = env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative() 872 method_onDisconnected = env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 66 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 67 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 401 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 403 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 404 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 405 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative() 406 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative() 407 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative() 408 method_onVolumeChanged = env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative() 409 method_onDialCall = env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;[B)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 66 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 67 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 279 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 280 … method_onConnectionStateChanged = env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative() 281 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 282 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative() 283 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I)V"); in classInitNative() 284 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I)V"); in classInitNative() 285 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I)V"); in classInitNative() 286 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hid.cpp | 55 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 56 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 198 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 199 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative() 200 method_onGetProtocolMode = env->GetMethodID(clazz, "onGetProtocolMode", "([BI)V"); in classInitNative() 201 method_onGetReport = env->GetMethodID(clazz, "onGetReport", "([B[BI)V"); in classInitNative() 202 method_onHandshake = env->GetMethodID(clazz, "onHandshake", "([BI)V"); in classInitNative() 203 method_onVirtualUnplug = env->GetMethodID(clazz, "onVirtualUnplug", "([BI)V"); in classInitNative() 208 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 225 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() [all …]
|
D | com_android_bluetooth_avrcp.cpp | 47 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 48 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 182 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 184 env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative() 186 env->GetMethodID(clazz, "getPlayStatus", "()V"); in classInitNative() 189 env->GetMethodID(clazz, "getElementAttr", "(B[I)V"); in classInitNative() 192 env->GetMethodID(clazz, "registerNotification", "(II)V"); in classInitNative() 195 env->GetMethodID(clazz, "volumeChangeCallback", "(II)V"); in classInitNative() 198 env->GetMethodID(clazz, "handlePassthroughCmd", "(II)V"); in classInitNative() 203 static void initNative(JNIEnv *env, jobject object) { in initNative() argument [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 54 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 430 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 432 env->GetMethodID(clazz, "handlePassthroughRsp", "(II)V"); in classInitNative() 435 env->GetMethodID(clazz, "handleGroupNavigationRsp", "(II)V"); in classInitNative() 438 env->GetMethodID(clazz, "onConnectionStateChanged", "(Z[B)V"); in classInitNative() 441 env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative() 444 env->GetMethodID(clazz, "setPlayerAppSettingRsp", "([BB)V"); in classInitNative() 447 env->GetMethodID(clazz, "handlePlayerAppSetting", "([B[BI)V"); in classInitNative() 450 env->GetMethodID(clazz, "onPlayerAppSettingChanged", "([B[BI)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 46 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 47 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 126 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 128 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 131 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 134 env->GetMethodID(clazz, "onAudioConfigChanged", "([BII)V"); in classInitNative() 139 static void initNative(JNIEnv *env, jobject object) { in initNative() argument 156 env->DeleteGlobalRef(mCallbacksObj); in initNative() 172 mCallbacksObj = env->NewGlobalRef(object); in initNative() 175 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument [all …]
|
D | com_android_bluetooth_hdp.cpp | 46 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 47 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread() 48 ALOGE("Callback env check fail: env: %p, callback: %p", env, sCallbackEnv); in checkCallbackThread() 100 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 101 method_onAppRegistrationState = env->GetMethodID(clazz, "onAppRegistrationState", "(II)V"); in classInitNative() 102 method_onChannelStateChanged = env->GetMethodID(clazz, "onChannelStateChanged", in classInitNative() 107 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 124 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 140 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 143 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument [all …]
|
D | com_android_bluetooth_a2dp.cpp | 45 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 46 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 103 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 105 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 108 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 113 static void initNative(JNIEnv *env, jobject object) { in initNative() argument 130 env->DeleteGlobalRef(mCallbacksObj); in initNative() 146 mCallbacksObj = env->NewGlobalRef(object); in initNative() 149 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument 163 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [all …]
|
D | com_android_bluetooth_sdp.cpp | 72 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 73 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread() 74 ALOGE("Callback env check fail: env: %p, callback: %p", env, sCallbackEnv); in checkCallbackThread() 80 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 99 sCallbacksObj = env->NewGlobalRef(object); in initializeNative() 102 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 105 method_sdpRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 110 method_sdpMasRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 114 method_sdpMnsRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 118 method_sdpPseRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() [all …]
|
D | com_android_bluetooth_pan.cpp | 54 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 96 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 97 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", in classInitNative() 99 method_onControlStateChanged = env->GetMethodID(clazz, "onControlStateChanged", in classInitNative() 106 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 124 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 134 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 142 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 149 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument [all …]
|
D | com_android_bluetooth.h | 28 void checkAndClearExceptionFromCallback(JNIEnv* env, 35 int register_com_android_bluetooth_hfp(JNIEnv* env); 37 int register_com_android_bluetooth_hfpclient(JNIEnv* env); 39 int register_com_android_bluetooth_a2dp(JNIEnv* env); 41 int register_com_android_bluetooth_a2dp_sink(JNIEnv* env); 43 int register_com_android_bluetooth_avrcp(JNIEnv* env); 45 int register_com_android_bluetooth_avrcp_controller(JNIEnv* env); 47 int register_com_android_bluetooth_hid(JNIEnv* env); 49 int register_com_android_bluetooth_hdp(JNIEnv* env); 51 int register_com_android_bluetooth_pan(JNIEnv* env); [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 26 /* static */ void JniDataUtils::outputWordProperty(JNIEnv *const env, in outputWordProperty() argument 33 JniDataUtils::outputCodePoints(env, outCodePoints, 0 /* start */, in outputWordProperty() 41 env->SetBooleanArrayRegion(outFlags, 0 /* start */, NELEMS(flags), flags); in outputWordProperty() 45 env->SetIntArrayRegion(outProbabilityInfo, 0 /* start */, NELEMS(probabilityInfo), in outputWordProperty() 48 jclass integerClass = env->FindClass("java/lang/Integer"); in outputWordProperty() 49 jmethodID intToIntegerConstructorId = env->GetMethodID(integerClass, "<init>", "(I)V"); in outputWordProperty() 50 jclass arrayListClass = env->FindClass("java/util/ArrayList"); in outputWordProperty() 51 jmethodID addMethodId = env->GetMethodID(arrayListClass, "add", "(Ljava/lang/Object;)Z"); in outputWordProperty() 54 jclass intArrayClass = env->FindClass("[I"); in outputWordProperty() 57 jobjectArray prevWordWordCodePointsArray = env->NewObjectArray( in outputWordProperty() [all …]
|
D | jni_data_utils.h | 34 static void jintarrayToVector(JNIEnv *env, jintArray array, std::vector<int> *const outVector) { in jintarrayToVector() argument 39 const jsize arrayLength = env->GetArrayLength(array); in jintarrayToVector() 41 env->GetIntArrayRegion(array, 0 /* start */, arrayLength, outVector->data()); in jintarrayToVector() 44 static DictionaryHeaderStructurePolicy::AttributeMap constructAttributeMap(JNIEnv *env, in constructAttributeMap() argument 47 const int keyCount = env->GetArrayLength(attributeKeyStringArray); in constructAttributeMap() 50 env->GetObjectArrayElement(attributeKeyStringArray, i)); in constructAttributeMap() 51 const jsize keyUtf8Length = env->GetStringUTFLength(keyString); in constructAttributeMap() 53 env->GetStringUTFRegion(keyString, 0, env->GetStringLength(keyString), keyChars); in constructAttributeMap() 54 env->DeleteLocalRef(keyString); in constructAttributeMap() 60 env->GetObjectArrayElement(attributeValueStringArray, i)); in constructAttributeMap() [all …]
|
D | log_utils.cpp | 25 /* static */ void LogUtils::logToJava(JNIEnv *const env, const char *const format, ...) { in logToJava() argument 27 const jclass androidUtilLogClass = env->FindClass("android/util/Log"); in logToJava() 34 env->ExceptionClear(); in logToJava() 37 const jmethodID logDotIMethodId = env->GetStaticMethodID(androidUtilLogClass, "i", in logToJava() 40 env->ExceptionClear(); in logToJava() 41 if (androidUtilLogClass) env->DeleteLocalRef(androidUtilLogClass); in logToJava() 44 const jstring javaTag = env->NewStringUTF(TAG); in logToJava() 57 javaString = env->NewStringUTF(fixedSizeCString); in logToJava() 64 javaString = env->NewStringUTF(variableSizeCString); in logToJava() 67 env->CallStaticIntMethod(androidUtilLogClass, logDotIMethodId, javaTag, javaString); in logToJava() [all …]
|
/packages/services/Car/service/jni/ |
D | com_android_car_CarCameraService.cpp | 33 (JNIEnv *env, jobject obj) in com_android_car_CarCameraService_nativeOpen() argument 51 (JNIEnv *env, jobject, jlong dev) in com_android_car_CarCameraService_nativeClose() argument 66 (JNIEnv *env, jobject, jlong mod) in com_android_car_CarCameraService_nativeGetSupportedCameras() argument 77 outArray = env->NewIntArray(numCameras); in com_android_car_CarCameraService_nativeGetSupportedCameras() 84 env->SetIntArrayRegion(outArray, 0, numCameras, (jint*)camera_list); in com_android_car_CarCameraService_nativeGetSupportedCameras() 94 (JNIEnv *env, jobject, jlong mod, jint cameraType) in com_android_car_CarCameraService_nativeGetDevice() argument 119 (JNIEnv *env, jobject, jlong dev) in com_android_car_CarCameraService_nativeGetCapabilities() argument 146 (JNIEnv *env, jobject, jlong dev) in com_android_car_CarCameraService_nativeGetCameraCrop() argument 157 jclass cls = env->FindClass("android/graphics/Rect"); in com_android_car_CarCameraService_nativeGetCameraCrop() 158 jmethodID midInit = env->GetMethodID(cls, "<init>", "(IIII)V"); in com_android_car_CarCameraService_nativeGetCameraCrop() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
D | OpenWnnDictionaryImplJni.c | 58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) in convertStringToNjChar() argument 62 src = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, srcJ, NULL ) ); in convertStringToNjChar() 129 ( *env )->ReleaseStringUTFChars( env, srcJ, ( const char* )src ); in convertStringToNjChar() 136 static int convertNjCharToString( JNIEnv* env, jstring* dstJ, NJ_CHAR* src, int maxChars ) in convertNjCharToString() argument 194 *dstJ = ( *env )->NewStringUTF( env, dst ); in convertNjCharToString() 206 (JNIEnv *env, jobject obj, jstring dicLibPathJ) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() argument 226 ( dicLibPath = ( *env )->GetStringUTFChars( env, dicLibPathJ, 0 ) ) == NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() 232 ( *env )->ReleaseStringUTFChars( env, dicLibPathJ, dicLibPath ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() 285 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_freeWnnWork() argument 311 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearDictionaryParameters() argument [all …]
|
/packages/apps/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 167 JNIEnv* env = AndroidRuntime::getJNIEnv(); in term_damage() local 168 return env->CallIntMethod(term->getCallbacks(), damageMethod, rect.start_row, rect.end_row, in term_damage() 178 JNIEnv* env = AndroidRuntime::getJNIEnv(); in term_moverect() local 179 return env->CallIntMethod(term->getCallbacks(), moveRectMethod, in term_moverect() 190 JNIEnv* env = AndroidRuntime::getJNIEnv(); in term_movecursor() local 191 return env->CallIntMethod(term->getCallbacks(), moveCursorMethod, pos.row, in term_movecursor() 201 JNIEnv* env = AndroidRuntime::getJNIEnv(); in term_settermprop() local 204 return env->CallIntMethod(term->getCallbacks(), setTermPropBooleanMethod, prop, in term_settermprop() 207 return env->CallIntMethod(term->getCallbacks(), setTermPropIntMethod, prop, val->number); in term_settermprop() 209 return env->CallIntMethod(term->getCallbacks(), setTermPropStringMethod, prop, in term_settermprop() [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | gradient.c | 27 redGradientArray = (*env)->GetIntArrayElements(env, redGradient, NULL); in JNIFUNCF() 29 greenGradientArray = (*env)->GetIntArrayElements(env, greenGradient, NULL); in JNIFUNCF() 31 blueGradientArray = (*env)->GetIntArrayElements(env, blueGradient, NULL); in JNIFUNCF() 33 AndroidBitmap_lockPixels(env, bitmap, (void**) &destination); in JNIFUNCF() 58 (*env)->ReleaseIntArrayElements(env, redGradient, redGradientArray, 0); in JNIFUNCF() 60 (*env)->ReleaseIntArrayElements(env, greenGradient, greenGradientArray, 0); in JNIFUNCF() 62 (*env)->ReleaseIntArrayElements(env, blueGradient, blueGradientArray, 0); in JNIFUNCF() 63 AndroidBitmap_unlockPixels(env, bitmap); in JNIFUNCF()
|
/packages/apps/TV/usbtuner/jni/ |
D | DvbManager.cpp | 40 DvbManager::DvbManager(JNIEnv *env, jobject) in DvbManager() argument 46 jclass clazz = env->FindClass( in DvbManager() 48 mOpenDvbFrontEndMethodID = env->GetMethodID( in DvbManager() 50 mOpenDvbDemuxMethodID = env->GetMethodID( in DvbManager() 52 mOpenDvbDvrMethodID = env->GetMethodID( in DvbManager() 69 int DvbManager::tune(JNIEnv *env, jobject thiz, in tune() argument 85 if (openDvbFe(env, thiz) != 0) { in tune() 118 openDvbDvr(env, thiz); in tune() 132 int DvbManager::openDvbFeFromSystemApi(JNIEnv *env, jobject thiz) { in openDvbFeFromSystemApi() argument 133 int fd = (int) env->CallIntMethod(thiz, mOpenDvbFrontEndMethodID); in openDvbFeFromSystemApi() [all …]
|