/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/Bluetooth/jni/ |
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() 210 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 211 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 853 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 857 method_onClientRegistered = env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative() 858 method_onScanResult = env->GetMethodID(clazz, "onScanResult", "(Ljava/lang/String;I[B)V"); in classInitNative() 859 method_onConnected = env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative() 860 method_onDisconnected = env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 66 void checkAndClearExceptionFromCallback(JNIEnv* env, in checkAndClearExceptionFromCallback() argument 68 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 70 LOGE_EX(env); in checkAndClearExceptionFromCallback() 71 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 76 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 77 if (callbackEnv != env || callbackEnv == NULL) { in checkCallbackThread() 78 ALOGE("Callback env check fail: env: %p, callback: %p", env, callbackEnv); in checkCallbackThread() 495 JNIEnv *env; in set_wake_alarm_callout() local 497 jint status = vm->GetEnv((void **)&env, JNI_VERSION_1_6); in set_wake_alarm_callout() 504 if (status == JNI_EDETACHED && vm->AttachCurrentThread(&env, &sAttachArgs) != 0) { in set_wake_alarm_callout() [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 409 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 410 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 411 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative() 412 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative() 413 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative() 414 method_onVolumeChanged = env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative() 415 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 203 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative() 204 method_onGetProtocolMode = env->GetMethodID(clazz, "onGetProtocolMode", "([BI)V"); in classInitNative() 205 method_onGetReport = env->GetMethodID(clazz, "onGetReport", "([B[BI)V"); in classInitNative() 206 method_onHandshake = env->GetMethodID(clazz, "onHandshake", "([BI)V"); in classInitNative() 207 method_onVirtualUnplug = env->GetMethodID(clazz, "onVirtualUnplug", "([BI)V"); in classInitNative() 233 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 250 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_sdp.cpp | 74 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 75 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread() 76 ALOGE("Callback env check fail: env: %p, callback: %p", env, sCallbackEnv); in checkCallbackThread() 82 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument 102 sCallbacksObj = env->NewGlobalRef(object); in initializeNative() 105 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 108 method_sdpRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 113 method_sdpMasRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 117 method_sdpMnsRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() 121 method_sdpPseRecordFoundCallback = env->GetMethodID(clazz, in classInitNative() [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_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 132 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 135 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 138 env->GetMethodID(clazz, "onAudioConfigChanged", "([BII)V"); in classInitNative() 143 static void initNative(JNIEnv *env, jobject object) { in initNative() argument 160 env->DeleteGlobalRef(mCallbacksObj); in initNative() 176 mCallbacksObj = env->NewGlobalRef(object); in initNative() 179 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() 137 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 145 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 152 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 43 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local 44 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread() 94 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 96 env->GetMethodID(clazz, "handlePassthroughRsp", "(II)V"); in classInitNative() 99 env->GetMethodID(clazz, "onConnectionStateChanged", "(Z[B)V"); in classInitNative() 104 static void initNative(JNIEnv *env, jobject object) { in initNative() argument 121 env->DeleteGlobalRef(mCallbacksObj); in initNative() 138 mCallbacksObj = env->NewGlobalRef(object); in initNative() 141 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument 155 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [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/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/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/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/FMRadio/jni/fmr/ |
D | libfm_jni.cpp | 28 jboolean openDev(JNIEnv *env, jobject thiz) in openDev() argument 38 jboolean closeDev(JNIEnv *env, jobject thiz) in closeDev() argument 48 jboolean powerUp(JNIEnv *env, jobject thiz, jfloat freq) in powerUp() argument 61 jboolean powerDown(JNIEnv *env, jobject thiz, jint type) in powerDown() argument 71 jboolean tune(JNIEnv *env, jobject thiz, jfloat freq) in tune() argument 83 jfloat seek(JNIEnv *env, jobject thiz, jfloat freq, jboolean isUp) //jboolean isUp; in seek() argument 109 jshortArray autoScan(JNIEnv *env, jobject thiz) in autoScan() argument 126 scanChlarray = env->NewShortArray(chl_cnt); in autoScan() 127 env->SetShortArrayRegion(scanChlarray, 0, chl_cnt, (const jshort*)&ScanTBL[0]); in autoScan() 146 jshort readRds(JNIEnv *env, jobject thiz) in readRds() argument [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 …]
|
/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 …]
|
/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()
|