Lines Matching refs:env
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()
210 env->NewStringUTF(val->string)); in term_settermprop()
212 return env->CallIntMethod(term->getCallbacks(), setTermPropIntMethod, prop, val->color.red, in term_settermprop()
234 JNIEnv* env = AndroidRuntime::getJNIEnv(); in term_bell() local
235 return env->CallIntMethod(term->getCallbacks(), bellMethod); in term_bell()
272 JNIEnv* env = AndroidRuntime::getJNIEnv(); in Terminal() local
273 mCallbacks = env->NewGlobalRef(callbacks); in Terminal()
298 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~Terminal() local
299 env->DeleteGlobalRef(mCallbacks); in ~Terminal()
553 static jlong com_android_terminal_Terminal_nativeInit(JNIEnv* env, jclass clazz, jobject callbacks)… in com_android_terminal_Terminal_nativeInit() argument
557 static jint com_android_terminal_Terminal_nativeDestroy(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeDestroy() argument
563 static jint com_android_terminal_Terminal_nativeRun(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeRun() argument
568 static jint com_android_terminal_Terminal_nativeResize(JNIEnv* env, in com_android_terminal_Terminal_nativeResize() argument
593 static jint com_android_terminal_Terminal_nativeGetCellRun(JNIEnv* env, in com_android_terminal_Terminal_nativeGetCellRun() argument
598 jcharArray dataArray = (jcharArray) env->GetObjectField(run, cellRunDataField); in com_android_terminal_Terminal_nativeGetCellRun()
599 ScopedCharArrayRW data(env, dataArray); in com_android_terminal_Terminal_nativeGetCellRun()
618 env->SetIntField(run, cellRunFgField, toArgb(cell.fg)); in com_android_terminal_Terminal_nativeGetCellRun()
619 env->SetIntField(run, cellRunBgField, toArgb(cell.bg)); in com_android_terminal_Terminal_nativeGetCellRun()
649 env->SetIntField(run, cellRunDataSizeField, dataSize); in com_android_terminal_Terminal_nativeGetCellRun()
650 env->SetIntField(run, cellRunColSizeField, colSize); in com_android_terminal_Terminal_nativeGetCellRun()
655 static jint com_android_terminal_Terminal_nativeGetRows(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetRows() argument
660 static jint com_android_terminal_Terminal_nativeGetCols(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetCols() argument
665 static jint com_android_terminal_Terminal_nativeGetScrollRows(JNIEnv* env, jclass clazz, jlong ptr)… in com_android_terminal_Terminal_nativeGetScrollRows() argument
670 static jboolean com_android_terminal_Terminal_nativeDispatchCharacter(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchCharacter() argument
676 static jboolean com_android_terminal_Terminal_nativeDispatchKey(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchKey() argument
695 int register_com_android_terminal_Terminal(JNIEnv* env) { in register_com_android_terminal_Terminal() argument
696 ScopedLocalRef<jclass> localClass(env, in register_com_android_terminal_Terminal()
697 env->FindClass("com/android/terminal/TerminalCallbacks")); in register_com_android_terminal_Terminal()
699 android::terminalCallbacksClass = reinterpret_cast<jclass>(env->NewGlobalRef(localClass.get())); in register_com_android_terminal_Terminal()
701 android::damageMethod = env->GetMethodID(terminalCallbacksClass, "damage", "(IIII)I"); in register_com_android_terminal_Terminal()
702 android::moveRectMethod = env->GetMethodID(terminalCallbacksClass, "moveRect", "(IIIIIIII)I"); in register_com_android_terminal_Terminal()
703 android::moveCursorMethod = env->GetMethodID(terminalCallbacksClass, "moveCursor", in register_com_android_terminal_Terminal()
705 android::setTermPropBooleanMethod = env->GetMethodID(terminalCallbacksClass, in register_com_android_terminal_Terminal()
707 android::setTermPropIntMethod = env->GetMethodID(terminalCallbacksClass, "setTermPropInt", in register_com_android_terminal_Terminal()
709 android::setTermPropStringMethod = env->GetMethodID(terminalCallbacksClass, "setTermPropString", in register_com_android_terminal_Terminal()
711 android::setTermPropColorMethod = env->GetMethodID(terminalCallbacksClass, "setTermPropColor", in register_com_android_terminal_Terminal()
713 android::bellMethod = env->GetMethodID(terminalCallbacksClass, "bell", "()I"); in register_com_android_terminal_Terminal()
715 ScopedLocalRef<jclass> cellRunLocal(env, in register_com_android_terminal_Terminal()
716 env->FindClass("com/android/terminal/Terminal$CellRun")); in register_com_android_terminal_Terminal()
717 cellRunClass = reinterpret_cast<jclass>(env->NewGlobalRef(cellRunLocal.get())); in register_com_android_terminal_Terminal()
718 cellRunDataField = env->GetFieldID(cellRunClass, "data", "[C"); in register_com_android_terminal_Terminal()
719 cellRunDataSizeField = env->GetFieldID(cellRunClass, "dataSize", "I"); in register_com_android_terminal_Terminal()
720 cellRunColSizeField = env->GetFieldID(cellRunClass, "colSize", "I"); in register_com_android_terminal_Terminal()
721 cellRunFgField = env->GetFieldID(cellRunClass, "fg", "I"); in register_com_android_terminal_Terminal()
722 cellRunBgField = env->GetFieldID(cellRunClass, "bg", "I"); in register_com_android_terminal_Terminal()
724 return jniRegisterNativeMethods(env, "com/android/terminal/Terminal", in register_com_android_terminal_Terminal()