/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 37 static jboolean latinime_BinaryDictionary_createEmptyDictFile(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_createEmptyDictFile() argument 40 const jsize filePathUtf8Length = env->GetStringUTFLength(filePath); in latinime_BinaryDictionary_createEmptyDictFile() 42 env->GetStringUTFRegion(filePath, 0, env->GetStringLength(filePath), filePathChars); in latinime_BinaryDictionary_createEmptyDictFile() 45 const int keyCount = env->GetArrayLength(attributeKeyStringArray); in latinime_BinaryDictionary_createEmptyDictFile() 46 const int valueCount = env->GetArrayLength(attributeValueStringArray); in latinime_BinaryDictionary_createEmptyDictFile() 54 env->GetObjectArrayElement(attributeKeyStringArray, i)); in latinime_BinaryDictionary_createEmptyDictFile() 55 const jsize keyUtf8Length = env->GetStringUTFLength(keyString); in latinime_BinaryDictionary_createEmptyDictFile() 57 env->GetStringUTFRegion(keyString, 0, env->GetStringLength(keyString), keyChars); in latinime_BinaryDictionary_createEmptyDictFile() 63 env->GetObjectArrayElement(attributeValueStringArray, i)); in latinime_BinaryDictionary_createEmptyDictFile() 64 const jsize valueUtf8Length = env->GetStringUTFLength(valueString); in latinime_BinaryDictionary_createEmptyDictFile() [all …]
|
D | jni_common.cpp | 33 JNIEnv *env = 0; in JNI_OnLoad() local 35 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad() 39 ASSERT(env); in JNI_OnLoad() 40 if (!env) { in JNI_OnLoad() 45 if (!latinime::register_BinaryDictionary(env)) { in JNI_OnLoad() 49 if (!latinime::register_DicTraverseSession(env)) { in JNI_OnLoad() 53 if (!latinime::register_ProximityInfo(env)) { in JNI_OnLoad() 58 if (!latinime::register_Ver3DictDecoder(env)) { in JNI_OnLoad() 67 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, in registerNativeMethods() argument 69 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 …]
|
D | stream_wrapper.cpp | 32 void StreamWrapper::updateEnv(JNIEnv *env) { in updateEnv() argument 33 if (env == NULL) { in updateEnv() 37 mEnv = env; in updateEnv() 40 bool StreamWrapper::init(JNIEnv *env, jobject stream) { in init() argument 45 mEnv = env; in init() 46 mStream = env->NewGlobalRef(stream); in init() 47 if (mStream == NULL || env->ExceptionCheck()) { in init() 52 jbyteArray tmp = env->NewByteArray(getBufferSize()); in init() 53 if (tmp == NULL || env->ExceptionCheck()){ in init() 57 mByteArray = reinterpret_cast<jbyteArray>(env->NewGlobalRef(tmp)); in init() [all …]
|
/packages/inputmethods/PinyinIME/jni/android/ |
D | com_android_inputmethod_pinyin_PinyinDecoderService.cpp | 48 JNIEXPORT jboolean JNICALL nativeImOpenDecoder(JNIEnv* env, jclass jclazz, in nativeImOpenDecoder() argument 51 jbyte *fsd = (*env).GetByteArrayElements(fn_sys_dict, 0); in nativeImOpenDecoder() 52 jbyte *fud = (*env).GetByteArrayElements(fn_usr_dict, 0); in nativeImOpenDecoder() 59 (*env).ReleaseByteArrayElements(fn_sys_dict, fsd, 0); in nativeImOpenDecoder() 60 (*env).ReleaseByteArrayElements(fn_usr_dict, fud, 0); in nativeImOpenDecoder() 65 JNIEXPORT jboolean JNICALL nativeImOpenDecoderFd(JNIEnv* env, jclass jclazz, in nativeImOpenDecoderFd() argument 70 jint fd = env->GetIntField(fd_sys_dict, gFileDescriptorOffsets.mDescriptor); in nativeImOpenDecoderFd() 71 jbyte *fud = (*env).GetByteArrayElements(fn_usr_dict, 0); in nativeImOpenDecoderFd() 81 (*env).ReleaseByteArrayElements(fn_usr_dict, fud, 0); in nativeImOpenDecoderFd() 86 JNIEXPORT void JNICALL nativeImSetMaxLens(JNIEnv* env, jclass jclazz, in nativeImSetMaxLens() argument [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 61 void checkAndClearExceptionFromCallback(JNIEnv* env, in checkAndClearExceptionFromCallback() argument 63 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 65 LOGE_EX(env); in checkAndClearExceptionFromCallback() 66 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 71 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 72 if (callbackEnv != env || callbackEnv == NULL) { in checkCallbackThread() 73 ALOGE("Callback env check fail: env: %p, callback: %p", env, callbackEnv); in checkCallbackThread() 459 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 464 env->FindClass("com/android/bluetooth/btservice/JniCallbacks"); in classInitNative() 465 sJniCallbacksField = env->GetFieldID(clazz, "mJniCallbacks", in classInitNative() [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() 191 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 192 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 645 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 649 method_onClientRegistered = env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative() 650 method_onScanResult = env->GetMethodID(clazz, "onScanResult", "(Ljava/lang/String;I[B)V"); in classInitNative() 651 method_onConnected = env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative() 652 method_onDisconnected = env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 65 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 66 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 219 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 227 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 228 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 229 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative() 230 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "()V"); in classInitNative() 231 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "()V"); in classInitNative() 232 method_onVolumeChanged = env->GetMethodID(clazz, "onVolumeChanged", "(II)V"); in classInitNative() 233 method_onDialCall = env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hid.cpp | 54 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 145 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 150 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative() 151 method_onGetProtocolMode = env->GetMethodID(clazz, "onGetProtocolMode", "([BI)V"); in classInitNative() 152 method_onVirtualUnplug = env->GetMethodID(clazz, "onVirtualUnplug", "([BI)V"); in classInitNative() 178 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 195 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 214 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 217 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument [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() 160 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 162 env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative() 164 env->GetMethodID(clazz, "getPlayStatus", "()V"); in classInitNative() 167 env->GetMethodID(clazz, "getElementAttr", "(B[I)V"); in classInitNative() 170 env->GetMethodID(clazz, "registerNotification", "(II)V"); in classInitNative() 173 env->GetMethodID(clazz, "volumeChangeCallback", "(II)V"); in classInitNative() 176 env->GetMethodID(clazz, "handlePassthroughCmd", "(II)V"); in classInitNative() 181 static void initNative(JNIEnv *env, jobject object) { in initNative() 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 105 method_onAppRegistrationState = env->GetMethodID(clazz, "onAppRegistrationState", "(II)V"); in classInitNative() 106 method_onChannelStateChanged = env->GetMethodID(clazz, "onChannelStateChanged", in classInitNative() 133 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 150 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 166 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 169 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() 102 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 108 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 111 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 137 static void initNative(JNIEnv *env, jobject object) { in initNative() argument 154 env->DeleteGlobalRef(mCallbacksObj); in initNative() 170 mCallbacksObj = env->NewGlobalRef(object); in initNative() 173 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument 188 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [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 100 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", in classInitNative() 102 method_onControlStateChanged = env->GetMethodID(clazz, "onControlStateChanged", in classInitNative() 109 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 127 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 144 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 147 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument 159 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [all …]
|
D | com_android_bluetooth.h | 27 void checkAndClearExceptionFromCallback(JNIEnv* env, 34 int register_com_android_bluetooth_hfp(JNIEnv* env); 36 int register_com_android_bluetooth_a2dp(JNIEnv* env); 38 int register_com_android_bluetooth_avrcp(JNIEnv* env); 40 int register_com_android_bluetooth_hid(JNIEnv* env); 42 int register_com_android_bluetooth_hdp(JNIEnv* env); 44 int register_com_android_bluetooth_pan(JNIEnv* env); 46 int register_com_android_bluetooth_gatt (JNIEnv* env);
|
/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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info.cpp | 33 static AK_FORCE_INLINE void safeGetOrFillZeroIntArrayRegion(JNIEnv *env, jintArray jArray, in safeGetOrFillZeroIntArrayRegion() argument 36 env->GetIntArrayRegion(jArray, 0, len, buffer); in safeGetOrFillZeroIntArrayRegion() 42 static AK_FORCE_INLINE void safeGetOrFillZeroFloatArrayRegion(JNIEnv *env, jfloatArray jArray, in safeGetOrFillZeroFloatArrayRegion() argument 45 env->GetFloatArrayRegion(jArray, 0, len, buffer); in safeGetOrFillZeroFloatArrayRegion() 51 ProximityInfo::ProximityInfo(JNIEnv *env, const jstring localeJStr, in ProximityInfo() argument 76 const jsize proximityCharsLength = env->GetArrayLength(proximityChars); in ProximityInfo() 85 const jsize localeCStrUtf8Length = env->GetStringUTFLength(localeJStr); in ProximityInfo() 91 env->GetStringUTFRegion(localeJStr, 0, env->GetStringLength(localeJStr), mLocaleStr); in ProximityInfo() 92 safeGetOrFillZeroIntArrayRegion(env, proximityChars, proximityCharsLength, in ProximityInfo() 94 safeGetOrFillZeroIntArrayRegion(env, keyXCoordinates, KEY_COUNT, mKeyXCoordinates); in ProximityInfo() [all …]
|
/packages/apps/LegacyCamera/jni/ |
D | feature_mos_jni.cpp | 278 JNIEnv* env, jobject thiz, jint width, jint height) in Java_com_android_camera_panorama_Mosaic_allocateMosaicMemory() argument 297 JNIEnv* env, jobject thiz) in Java_com_android_camera_panorama_Mosaic_freeMosaicMemory() argument 365 JNIEnv* env, jobject thiz) in Java_com_android_camera_panorama_Mosaic_setSourceImageFromGPU() argument 406 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_panorama_Mosaic_setSourceImageFromGPU() 409 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_panorama_Mosaic_setSourceImageFromGPU() 417 JNIEnv* env, jobject thiz, jbyteArray photo_data) in Java_com_android_camera_panorama_Mosaic_setSourceImage() argument 426 jbyte *pixels = env->GetByteArrayElements(photo_data, 0); in Java_com_android_camera_panorama_Mosaic_setSourceImage() 431 env->ReleaseByteArrayElements(photo_data, pixels, 0); in Java_com_android_camera_panorama_Mosaic_setSourceImage() 465 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_panorama_Mosaic_setSourceImage() 468 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_panorama_Mosaic_setSourceImage() [all …]
|
D | mosaic_renderer_jni.cpp | 463 JNIEnv * env, jobject obj); 465 JNIEnv * env, jobject obj, jint width, jint height, 468 JNIEnv * env, jobject obj, jfloatArray stMatrix); 470 JNIEnv * env, jobject obj); 472 JNIEnv * env, jobject obj); 474 JNIEnv * env, jobject obj); 476 JNIEnv * env, jobject obj, jboolean flag); 480 JNIEnv * env, jobject obj) in Java_com_android_camera_panorama_MosaicRenderer_init() argument 544 JNIEnv * env, jobject obj, jint width, jint height, jboolean isLandscapeOrientation) in Java_com_android_camera_panorama_MosaicRenderer_reset() argument 626 JNIEnv * env, jobject obj, jfloatArray stMatrix) in Java_com_android_camera_panorama_MosaicRenderer_preprocess() argument [all …]
|
/packages/apps/Camera/jni/ |
D | feature_mos_jni.cpp | 278 JNIEnv* env, jobject thiz, jint width, jint height) in Java_com_android_camera_Mosaic_allocateMosaicMemory() argument 297 JNIEnv* env, jobject thiz) in Java_com_android_camera_Mosaic_freeMosaicMemory() argument 365 JNIEnv* env, jobject thiz) in Java_com_android_camera_Mosaic_setSourceImageFromGPU() argument 406 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_Mosaic_setSourceImageFromGPU() 409 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_Mosaic_setSourceImageFromGPU() 417 JNIEnv* env, jobject thiz, jbyteArray photo_data) in Java_com_android_camera_Mosaic_setSourceImage() argument 426 jbyte *pixels = env->GetByteArrayElements(photo_data, 0); in Java_com_android_camera_Mosaic_setSourceImage() 431 env->ReleaseByteArrayElements(photo_data, pixels, 0); in Java_com_android_camera_Mosaic_setSourceImage() 465 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_Mosaic_setSourceImage() 468 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_Mosaic_setSourceImage() [all …]
|
D | mosaic_renderer_jni.cpp | 482 JNIEnv * env, jobject obj); 484 JNIEnv * env, jobject obj, jint width, jint height, 487 JNIEnv * env, jobject obj, jfloatArray stMatrix); 489 JNIEnv * env, jobject obj); 491 JNIEnv * env, jobject obj); 493 JNIEnv * env, jobject obj); 495 JNIEnv * env, jobject obj, jboolean flag); 512 JNIEnv * env, jobject obj) in Java_com_android_camera_MosaicRenderer_init() argument 582 JNIEnv * env, jobject obj, jint width, jint height, jboolean isLandscapeOrientation) in Java_com_android_camera_MosaicRenderer_reset() argument 663 JNIEnv * env, jobject obj, jfloatArray stMatrix) in Java_com_android_camera_MosaicRenderer_preprocess() argument [all …]
|
/packages/apps/Camera2/jni/ |
D | feature_mos_jni.cpp | 278 JNIEnv* env, jobject thiz, jint width, jint height) in Java_com_android_camera_Mosaic_allocateMosaicMemory() argument 297 JNIEnv* env, jobject thiz) in Java_com_android_camera_Mosaic_freeMosaicMemory() argument 365 JNIEnv* env, jobject thiz) in Java_com_android_camera_Mosaic_setSourceImageFromGPU() argument 406 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_Mosaic_setSourceImageFromGPU() 409 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_Mosaic_setSourceImageFromGPU() 417 JNIEnv* env, jobject thiz, jbyteArray photo_data) in Java_com_android_camera_Mosaic_setSourceImage() argument 426 jbyte *pixels = env->GetByteArrayElements(photo_data, 0); in Java_com_android_camera_Mosaic_setSourceImage() 431 env->ReleaseByteArrayElements(photo_data, pixels, 0); in Java_com_android_camera_Mosaic_setSourceImage() 465 jfloatArray bytes = env->NewFloatArray(11); in Java_com_android_camera_Mosaic_setSourceImage() 468 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); in Java_com_android_camera_Mosaic_setSourceImage() [all …]
|
D | mosaic_renderer_jni.cpp | 482 JNIEnv * env, jobject obj); 484 JNIEnv * env, jobject obj, jint width, jint height, 487 JNIEnv * env, jobject obj, jfloatArray stMatrix); 489 JNIEnv * env, jobject obj); 491 JNIEnv * env, jobject obj); 493 JNIEnv * env, jobject obj); 495 JNIEnv * env, jobject obj, jboolean flag); 512 JNIEnv * env, jobject obj) in Java_com_android_camera_MosaicRenderer_init() argument 582 JNIEnv * env, jobject obj, jint width, jint height, jboolean isLandscapeOrientation) in Java_com_android_camera_MosaicRenderer_reset() argument 663 JNIEnv * env, jobject obj, jfloatArray stMatrix) in Java_com_android_camera_MosaicRenderer_preprocess() argument [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()
|
D | geometry.c | 136 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF() 137 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF() 139 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF() 140 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF() 147 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF() 148 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF() 150 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF() 151 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF() 158 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF() 159 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
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 …]
|