Searched refs:env (Results 1 - 9 of 9) sorted by relevance

/packages/apps/IM/libwbxml/src/
H A Dwbxml_jni.cpp42 JNIEnv * env; member in struct:WbxmlParsingContext
54 JNIEnv * env; member in struct:WbxmlEncodingContext
72 static jcharArray bytesToCharArray(JNIEnv * env, const char *data, int length, size_t * out_len) argument
76 jcharArray buffer = env->NewCharArray(length);
83 jchar *nativeBuffer = env->GetCharArrayElements(buffer, &copy);
85 jclass clazz = env->FindClass("java/lang/AssertionError");
86 env->ThrowNew(clazz, "Unexpected copy");
94 env->ReleaseCharArrayElements(buffer, nativeBuffer, JNI_ABORT);
113 JNIEnv * env = mContext->env; local
147 JNIEnv * env = mContext->env; local
162 JNIEnv * env = mContext->env; local
175 JNIEnv * env = mContext->env; local
201 parserStaticInitialize(JNIEnv * env, jclass clazz) argument
215 parserCreate(JNIEnv * env, jobject thisObj, jstring encoding) argument
252 parserDelete(JNIEnv * env, jobject thisObj, jint nativeParser) argument
260 parserReset(JNIEnv * env, jobject thisObj, jint nativeParser) argument
271 parserParse(JNIEnv * env, jobject thisObj, jint nativeParser, jbyteArray buf, jint len, jboolean isEnd) argument
326 JNIEnv * env = mContext->env; local
350 encoderCreate(JNIEnv * env, jobject thisObj, int publicId) argument
387 encoderDelete(JNIEnv * env, jobject thisObj, jint nativeEncoder) argument
395 encoderReset(JNIEnv * env, jobject thisObj, jint nativeEncoder) argument
406 encoderStartElement(JNIEnv * env, jobject thisObj, jint nativeEncoder, jstring name, jobjectArray atts) argument
465 encoderCharacters(JNIEnv * env, jobject thisObj, jint nativeEncoder, jstring chars) argument
505 encoderEndElement(JNIEnv * env, jobject thisObj, jint nativeEncoder) argument
560 registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* methods, int numMethods) argument
581 registerNatives(JNIEnv* env) argument
601 JNIEnv* env = NULL; local
[all...]
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp46 static void throwException(JNIEnv *env, const char* ex, const char* fmt, int data) argument
48 if (jclass cls = env->FindClass(ex)) {
51 env->ThrowNew(cls, msg);
52 env->DeleteLocalRef(cls);
57 (JNIEnv *env, jobject object, jobject assetManager, jstring resourceString,
61 AssetManager *am = (AssetManager*) env->GetIntField(assetManager, sAssetManagerNativeField);
66 const char *resourcePath = env->GetStringUTFChars(resourceString, NULL);
71 env->ReleaseStringUTFChars(resourceString, resourcePath);
78 env->ReleaseStringUTFChars(resourceString, resourcePath);
83 env
56 latinime_BinaryDictionary_open(JNIEnv *env, jobject object, jobject assetManager, jstring resourceString, jint typedLetterMultiplier, jint fullWordMultiplier) argument
89 latinime_BinaryDictionary_getSuggestions( JNIEnv *env, jobject object, jint dict, jintArray inputArray, jint arraySize, jcharArray outputArray, jintArray frequencyArray, jint maxWordLength, jint maxWords, jint maxAlternatives, jint skipPos, jintArray nextLettersArray, jint nextLettersSize) argument
117 latinime_BinaryDictionary_isValidWord(JNIEnv *env, jobject object, jint dict, jcharArray wordArray, jint wordLength) argument
130 latinime_BinaryDictionary_close(JNIEnv *env, jobject object, jint dict) argument
148 registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int numMethods) argument
167 registerNatives(JNIEnv *env) argument
203 JNIEnv* env = NULL; local
[all...]
/packages/inputmethods/PinyinIME/jni/android/
H A Dcom_android_inputmethod_pinyin_PinyinDecoderService.cpp48 JNIEXPORT jboolean JNICALL nativeImOpenDecoder(JNIEnv* env, jclass jclazz, argument
51 jbyte *fsd = (*env).GetByteArrayElements(fn_sys_dict, 0);
52 jbyte *fud = (*env).GetByteArrayElements(fn_usr_dict, 0);
59 (*env).ReleaseByteArrayElements(fn_sys_dict, fsd, 0);
60 (*env).ReleaseByteArrayElements(fn_usr_dict, fud, 0);
65 JNIEXPORT jboolean JNICALL nativeImOpenDecoderFd(JNIEnv* env, jclass jclazz, argument
70 jint fd = env->GetIntField(fd_sys_dict, gFileDescriptorOffsets.mDescriptor);
71 jbyte *fud = (*env).GetByteArrayElements(fn_usr_dict, 0);
81 (*env).ReleaseByteArrayElements(fn_usr_dict, fud, 0);
86 JNIEXPORT void JNICALL nativeImSetMaxLens(JNIEnv* env, jclas argument
94 nativeImCloseDecoder(JNIEnv* env, jclass jclazz) argument
99 nativeImSearch(JNIEnv* env, jclass jclazz, jbyteArray pybuf, jint pylen) argument
113 nativeImDelSearch(JNIEnv* env, jclass jclazz, jint pos, jboolean is_pos_in_splid, jboolean clear_fixed_this_step) argument
119 nativeImResetSearch(JNIEnv* env, jclass jclazz) argument
124 nativeImAddLetter(JNIEnv *env, jclass clazz, jbyte ch) argument
128 nativeImGetPyStr(JNIEnv* env, jclass jclazz, jboolean decoded) argument
149 nativeImGetPyStrLen(JNIEnv* env, jclass jclazz, jboolean decoded) argument
159 nativeImGetSplStart(JNIEnv* env, jclass jclazz) argument
178 nativeImGetChoice(JNIEnv *env, jclass clazz, jint candidateId) argument
190 nativeImChoose(JNIEnv *env, jclass clazz, jint choice_id) argument
195 nativeImCancelLastChoice(JNIEnv *env, jclass clazz) argument
199 nativeImGetFixedLen(JNIEnv *env, jclass clazz) argument
203 nativeImCancelInput(JNIEnv *env, jclass clazz) argument
210 nativeImFlushCache(JNIEnv *env, jclass clazz) argument
215 nativeImGetPredictsNum(JNIEnv *env, jclass clazz, jstring fixed_str) argument
236 nativeImGetPredictItem(JNIEnv *env, jclass clazz, jint predict_no) argument
249 nativeSyncBegin(JNIEnv *env, jclass clazz, jbyteArray dict_file) argument
262 nativeSyncFinish(JNIEnv *env, jclass clazz) argument
267 nativeSyncGetCapacity(JNIEnv *env, jclass clazz) argument
271 nativeSyncPutLemmas(JNIEnv *env, jclass clazz, jstring tomerge) argument
284 nativeSyncGetLemmas(JNIEnv *env, jclass clazz) argument
294 nativeSyncGetLastCount(JNIEnv *env, jclass clazz) argument
298 nativeSyncGetTotalCount(JNIEnv *env, jclass clazz) argument
302 nativeSyncClearLastGot(JNIEnv *env, jclass clazz) argument
377 registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int numMethods) argument
403 registerNatives(JNIEnv* env) argument
420 JNIEnv* env = NULL; local
[all...]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
H A DOpenWnnDictionaryImplJni.c58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) argument
62 src = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, srcJ, NULL ) );
129 ( *env )->ReleaseStringUTFChars( env, srcJ, ( const char* )src );
136 static int convertNjCharToString( JNIEnv* env, jstring* dstJ, NJ_CHAR* src, int maxChars ) argument
194 *dstJ = ( *env )->NewStringUTF( env, dst );
206 (JNIEnv *env, jobject obj, jstring dicLibPathJ)
226 ( dicLibPath = ( *env )
205 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork(JNIEnv *env, jobject obj, jstring dicLibPathJ) argument
284 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_freeWnnWork(JNIEnv *env, jobject obj, jlong wnnWork) argument
310 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearDictionaryParameters(JNIEnv *env, jobject obj, jlong wnnWork) argument
340 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter(JNIEnv *env, jobject obj, jlong wnnWork, jint index, jint base, jint high) argument
384 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord(JNIEnv *env, jobject obj, jlong wnnWork, jint operation, jint order, jstring keyString) argument
452 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord(JNIEnv *env, jclass obj, jlong wnnWork, jint length) argument
496 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getStroke(JNIEnv *env, jobject obj, jlong wnnWork) argument
529 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getCandidate(JNIEnv *env, jobject obj, jlong wnnWork) argument
562 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getFrequency(JNIEnv *env, jobject obj, jlong wnnWork) argument
586 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearApproxPatterns(JNIEnv *env, jobject obj, jlong wnnWork) argument
615 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jlong wnnWork, jstring srcJ, jstring dstJ) argument
667 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JI(JNIEnv *env, jclass obj, jlong wnnWork, jint approxPattern) argument
726 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getLeftPartOfSpeech(JNIEnv *env, jclass obj, jlong wnnWork) argument
745 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getRightPartOfSpeech(JNIEnv *env, jclass obj, jlong wnnWork) argument
764 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearResult(JNIEnv *env, jclass obj, jlong wnnWork) argument
785 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setLeftPartOfSpeech(JNIEnv *env, jclass obj, jlong wnnWork, jint leftPartOfSpeech) argument
819 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setRightPartOfSpeech(JNIEnv *env, jclass obj, jlong wnnWork, jint rightPartOfSpeech) argument
853 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setStroke(JNIEnv *env, jclass obj, jlong wnnWork, jstring stroke) argument
888 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setCandidate(JNIEnv *env, jclass obj, jlong wnnWork, jstring candidate) argument
923 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_selectWord(JNIEnv *env, jclass obj, jlong wnnWork) argument
944 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getLeftPartOfSpeechSpecifiedType(JNIEnv *env, jclass obj, jlong wnnWork, jint type) argument
998 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getRightPartOfSpeechSpecifiedType(JNIEnv *env, jclass obj, jlong wnnWork, jint type) argument
1052 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getConnectArray(JNIEnv *env, jclass obj, jlong wnnWork, jint leftPartOfSpeech) argument
1121 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNumberOfLeftPOS(JNIEnv *env, jclass obj, jlong wnnWork) argument
1148 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNumberOfRightPOS(JNIEnv *env, jclass obj, jlong wnnWork) argument
1175 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern(JNIEnv *env, jclass obj, jlong wnnWork, jstring srcJ) argument
1233 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray(JNIEnv *env, jclass obj, jlong wnnWork, jstring keyStringJ, jint maxBindsOfQuery, jint maxPatternOfApprox) argument
1339 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createQueryStringBase(JNIEnv *env, jclass obj, jlong wnnWork, jint maxBindsOfQuery, jint maxPatternOfApprox, jstring keyColumnNameJ) argument
[all...]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSoftKeyboardView.java244 Environment env = Environment.getInstance();
255 textSize = env
286 desired_width = mSoftKeyDown.width() + env.getKeyBalloonWidthPlus();
288 + env.getKeyBalloonHeightPlus();
289 textSize = env
405 Environment env = Environment.getInstance();
406 mNormalKeyTextSize = env.getKeyTextSize(false);
407 mFunctionKeyTextSize = env.getKeyTextSize(true);
H A DCandidatesContainer.java231 Environment env = Environment.getInstance();
232 int measuredWidth = env.getScreenWidth();
234 measuredHeight += env.getHeightForCandidates();
H A DSoftKeyboard.java248 Environment env = Environment.getInstance();
249 return (int) (mKeyXMargin * mSkbCoreWidth * env.getKeyXMarginFactor());
253 Environment env = Environment.getInstance();
254 return (int) (mKeyYMargin * mSkbCoreHeight * env.getKeyYMarginFactor());
H A DPinyinIME.java213 Environment env = Environment.getInstance();
216 Log.d(TAG, "--last config: " + env.getConfiguration().toString());
223 env.onConfigurationChanged(newConfig, this);
H A DSkbContainer.java415 Environment env = Environment.getInstance();
416 int measuredWidth = env.getScreenWidth();
418 measuredHeight += env.getSkbHeight();

Completed in 182 milliseconds