diff options
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index 07d9f90a356..42ce03d4e7d 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -4390,6 +4390,8 @@ android_copy_java_string (JNIEnv *env, jstring string, size_t *length) | |||
| 4390 | JNIEXPORT void JNICALL | 4390 | JNIEXPORT void JNICALL |
| 4391 | NATIVE_NAME (beginBatchEdit) (JNIEnv *env, jobject object, jshort window) | 4391 | NATIVE_NAME (beginBatchEdit) (JNIEnv *env, jobject object, jshort window) |
| 4392 | { | 4392 | { |
| 4393 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4394 | |||
| 4393 | union android_event event; | 4395 | union android_event event; |
| 4394 | 4396 | ||
| 4395 | event.ime.type = ANDROID_INPUT_METHOD; | 4397 | event.ime.type = ANDROID_INPUT_METHOD; |
| @@ -4409,6 +4411,8 @@ NATIVE_NAME (beginBatchEdit) (JNIEnv *env, jobject object, jshort window) | |||
| 4409 | JNIEXPORT void JNICALL | 4411 | JNIEXPORT void JNICALL |
| 4410 | NATIVE_NAME (endBatchEdit) (JNIEnv *env, jobject object, jshort window) | 4412 | NATIVE_NAME (endBatchEdit) (JNIEnv *env, jobject object, jshort window) |
| 4411 | { | 4413 | { |
| 4414 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4415 | |||
| 4412 | union android_event event; | 4416 | union android_event event; |
| 4413 | 4417 | ||
| 4414 | event.ime.type = ANDROID_INPUT_METHOD; | 4418 | event.ime.type = ANDROID_INPUT_METHOD; |
| @@ -4429,6 +4433,8 @@ JNIEXPORT void JNICALL | |||
| 4429 | NATIVE_NAME (commitCompletion) (JNIEnv *env, jobject object, jshort window, | 4433 | NATIVE_NAME (commitCompletion) (JNIEnv *env, jobject object, jshort window, |
| 4430 | jstring completion_text, jint position) | 4434 | jstring completion_text, jint position) |
| 4431 | { | 4435 | { |
| 4436 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4437 | |||
| 4432 | union android_event event; | 4438 | union android_event event; |
| 4433 | unsigned short *text; | 4439 | unsigned short *text; |
| 4434 | size_t length; | 4440 | size_t length; |
| @@ -4461,6 +4467,8 @@ JNIEXPORT void JNICALL | |||
| 4461 | NATIVE_NAME (commitText) (JNIEnv *env, jobject object, jshort window, | 4467 | NATIVE_NAME (commitText) (JNIEnv *env, jobject object, jshort window, |
| 4462 | jstring commit_text, jint position) | 4468 | jstring commit_text, jint position) |
| 4463 | { | 4469 | { |
| 4470 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4471 | |||
| 4464 | union android_event event; | 4472 | union android_event event; |
| 4465 | unsigned short *text; | 4473 | unsigned short *text; |
| 4466 | size_t length; | 4474 | size_t length; |
| @@ -4494,6 +4502,8 @@ NATIVE_NAME (deleteSurroundingText) (JNIEnv *env, jobject object, | |||
| 4494 | jshort window, jint left_length, | 4502 | jshort window, jint left_length, |
| 4495 | jint right_length) | 4503 | jint right_length) |
| 4496 | { | 4504 | { |
| 4505 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4506 | |||
| 4497 | union android_event event; | 4507 | union android_event event; |
| 4498 | 4508 | ||
| 4499 | event.ime.type = ANDROID_INPUT_METHOD; | 4509 | event.ime.type = ANDROID_INPUT_METHOD; |
| @@ -4514,6 +4524,8 @@ JNIEXPORT void JNICALL | |||
| 4514 | NATIVE_NAME (finishComposingText) (JNIEnv *env, jobject object, | 4524 | NATIVE_NAME (finishComposingText) (JNIEnv *env, jobject object, |
| 4515 | jshort window) | 4525 | jshort window) |
| 4516 | { | 4526 | { |
| 4527 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4528 | |||
| 4517 | union android_event event; | 4529 | union android_event event; |
| 4518 | 4530 | ||
| 4519 | event.ime.type = ANDROID_INPUT_METHOD; | 4531 | event.ime.type = ANDROID_INPUT_METHOD; |
| @@ -4667,6 +4679,8 @@ JNIEXPORT jstring JNICALL | |||
| 4667 | NATIVE_NAME (getTextAfterCursor) (JNIEnv *env, jobject object, jshort window, | 4679 | NATIVE_NAME (getTextAfterCursor) (JNIEnv *env, jobject object, jshort window, |
| 4668 | jint length, jint flags) | 4680 | jint length, jint flags) |
| 4669 | { | 4681 | { |
| 4682 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4683 | |||
| 4670 | struct android_conversion_query_context context; | 4684 | struct android_conversion_query_context context; |
| 4671 | jstring string; | 4685 | jstring string; |
| 4672 | 4686 | ||
| @@ -4709,6 +4723,8 @@ JNIEXPORT jstring JNICALL | |||
| 4709 | NATIVE_NAME (getTextBeforeCursor) (JNIEnv *env, jobject object, jshort window, | 4723 | NATIVE_NAME (getTextBeforeCursor) (JNIEnv *env, jobject object, jshort window, |
| 4710 | jint length, jint flags) | 4724 | jint length, jint flags) |
| 4711 | { | 4725 | { |
| 4726 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4727 | |||
| 4712 | struct android_conversion_query_context context; | 4728 | struct android_conversion_query_context context; |
| 4713 | jstring string; | 4729 | jstring string; |
| 4714 | 4730 | ||
| @@ -4752,6 +4768,8 @@ NATIVE_NAME (setComposingText) (JNIEnv *env, jobject object, jshort window, | |||
| 4752 | jstring composing_text, | 4768 | jstring composing_text, |
| 4753 | jint new_cursor_position) | 4769 | jint new_cursor_position) |
| 4754 | { | 4770 | { |
| 4771 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4772 | |||
| 4755 | union android_event event; | 4773 | union android_event event; |
| 4756 | unsigned short *text; | 4774 | unsigned short *text; |
| 4757 | size_t length; | 4775 | size_t length; |
| @@ -4784,6 +4802,8 @@ JNIEXPORT void JNICALL | |||
| 4784 | NATIVE_NAME (setComposingRegion) (JNIEnv *env, jobject object, jshort window, | 4802 | NATIVE_NAME (setComposingRegion) (JNIEnv *env, jobject object, jshort window, |
| 4785 | jint start, jint end) | 4803 | jint start, jint end) |
| 4786 | { | 4804 | { |
| 4805 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4806 | |||
| 4787 | union android_event event; | 4807 | union android_event event; |
| 4788 | 4808 | ||
| 4789 | event.ime.type = ANDROID_INPUT_METHOD; | 4809 | event.ime.type = ANDROID_INPUT_METHOD; |
| @@ -4804,6 +4824,8 @@ JNIEXPORT void JNICALL | |||
| 4804 | NATIVE_NAME (setSelection) (JNIEnv *env, jobject object, jshort window, | 4824 | NATIVE_NAME (setSelection) (JNIEnv *env, jobject object, jshort window, |
| 4805 | jint start, jint end) | 4825 | jint start, jint end) |
| 4806 | { | 4826 | { |
| 4827 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4828 | |||
| 4807 | union android_event event; | 4829 | union android_event event; |
| 4808 | 4830 | ||
| 4809 | /* While IMEs want access to the entire selection, Emacs only | 4831 | /* While IMEs want access to the entire selection, Emacs only |
| @@ -4875,6 +4897,8 @@ android_get_selection (void *data) | |||
| 4875 | JNIEXPORT jintArray JNICALL | 4897 | JNIEXPORT jintArray JNICALL |
| 4876 | NATIVE_NAME (getSelection) (JNIEnv *env, jobject object, jshort window) | 4898 | NATIVE_NAME (getSelection) (JNIEnv *env, jobject object, jshort window) |
| 4877 | { | 4899 | { |
| 4900 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4901 | |||
| 4878 | struct android_get_selection_context context; | 4902 | struct android_get_selection_context context; |
| 4879 | jintArray array; | 4903 | jintArray array; |
| 4880 | jint contents[2]; | 4904 | jint contents[2]; |
| @@ -4911,6 +4935,8 @@ JNIEXPORT void JNICALL | |||
| 4911 | NATIVE_NAME (performEditorAction) (JNIEnv *env, jobject object, | 4935 | NATIVE_NAME (performEditorAction) (JNIEnv *env, jobject object, |
| 4912 | jshort window, int action) | 4936 | jshort window, int action) |
| 4913 | { | 4937 | { |
| 4938 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 4939 | |||
| 4914 | union android_event event; | 4940 | union android_event event; |
| 4915 | 4941 | ||
| 4916 | /* Undocumented behavior: performEditorAction is apparently expected | 4942 | /* Undocumented behavior: performEditorAction is apparently expected |
| @@ -5004,6 +5030,8 @@ NATIVE_NAME (getExtractedText) (JNIEnv *env, jobject ignored_object, | |||
| 5004 | jshort window, jobject request, | 5030 | jshort window, jobject request, |
| 5005 | jint flags) | 5031 | jint flags) |
| 5006 | { | 5032 | { |
| 5033 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 5034 | |||
| 5007 | struct android_get_extracted_text_context context; | 5035 | struct android_get_extracted_text_context context; |
| 5008 | static struct android_extracted_text_request_class request_class; | 5036 | static struct android_extracted_text_request_class request_class; |
| 5009 | static struct android_extracted_text_class text_class; | 5037 | static struct android_extracted_text_class text_class; |
| @@ -5106,6 +5134,8 @@ JNIEXPORT jstring JNICALL | |||
| 5106 | NATIVE_NAME (getSelectedText) (JNIEnv *env, jobject object, | 5134 | NATIVE_NAME (getSelectedText) (JNIEnv *env, jobject object, |
| 5107 | jshort window) | 5135 | jshort window) |
| 5108 | { | 5136 | { |
| 5137 | JNI_STACK_ALIGNMENT_PROLOGUE; | ||
| 5138 | |||
| 5109 | struct android_get_extracted_text_context context; | 5139 | struct android_get_extracted_text_context context; |
| 5110 | jstring string; | 5140 | jstring string; |
| 5111 | 5141 | ||