… | |
… | |
484 | } |
484 | } |
485 | //DBG // dbg(0,"l meth %p\n", *ret); |
485 | //DBG // dbg(0,"l meth %p\n", *ret); |
486 | return 1; |
486 | return 1; |
487 | } |
487 | } |
488 | |
488 | |
|
|
489 | |
|
|
490 | void send_alert_to_java(int id, const char *text); |
|
|
491 | void android_DrawMapPreview_target(int x, int y); |
|
|
492 | void android_DrawMapPreview_text(int x, int y, char *text, int size, int dx, int dy); |
|
|
493 | void android_DrawMapPreview_polyline(struct point *p, int count, int type); |
|
|
494 | void android_DrawPreview_polyline(struct point *p, int count, int type, const char* item_type); |
|
|
495 | |
|
|
496 | |
489 | // #include <signal.h> |
497 | // #include <signal.h> |
490 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("-O0"))); |
498 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("-O0"))); |
491 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("O0"))); |
499 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("O0"))); |
492 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) |
500 | Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) |
493 | { |
501 | { |
… | |
… | |
1171 | // -works- (*jnienv2)->CallStaticObjectMethod(jnienv2, NavitGraphicsClass2, return_generic_int, id, i); |
1179 | // -works- (*jnienv2)->CallStaticObjectMethod(jnienv2, NavitGraphicsClass2, return_generic_int, id, i); |
1172 | //DBG // dbg(0,"xa2\n"); |
1180 | //DBG // dbg(0,"xa2\n"); |
1173 | } |
1181 | } |
1174 | |
1182 | |
1175 | |
1183 | |
1176 | |
|
|
1177 | JNIEXPORT void JNICALL |
|
|
1178 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius) |
|
|
1179 | { |
|
|
1180 | COFFEE_TRY_JNI(env, Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(env, thiz, id, partial, str, str_town, str_hn, search_flags, search_country, latlon, radius)); |
|
|
1181 | } |
|
|
1182 | |
|
|
1183 | |
|
|
1184 | JNIEXPORT void JNICALL |
1184 | JNIEXPORT void JNICALL |
1185 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius) |
1185 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius) |
1186 | { |
1186 | { |
1187 | #ifdef NAVIT_FUNC_CALLS_DEBUG_PRINT |
1187 | #ifdef NAVIT_FUNC_CALLS_DEBUG_PRINT |
1188 | dbg(0,"+#+:enter\n"); |
1188 | dbg(0,"+#+:enter\n"); |
… | |
… | |
1312 | search_full_world(s, partial, search_flags, &my_jni_object, &g7, radius); |
1312 | search_full_world(s, partial, search_flags, &my_jni_object, &g7, radius); |
1313 | } |
1313 | } |
1314 | } |
1314 | } |
1315 | |
1315 | |
1316 | (*env)->ReleaseStringUTFChars(env, str, s); |
1316 | (*env)->ReleaseStringUTFChars(env, str, s); |
|
|
1317 | } |
|
|
1318 | |
|
|
1319 | |
|
|
1320 | JNIEXPORT void JNICALL |
|
|
1321 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius) |
|
|
1322 | { |
|
|
1323 | COFFEE_TRY_JNI(env, Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(env, thiz, id, partial, str, str_town, str_hn, search_flags, search_country, latlon, radius)); |
1317 | } |
1324 | } |
1318 | |
1325 | |
1319 | JNIEXPORT jint JNICALL |
1326 | JNIEXPORT jint JNICALL |
1320 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackDestinationValid(JNIEnv* env, jobject thiz) |
1327 | Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackDestinationValid(JNIEnv* env, jobject thiz) |
1321 | { |
1328 | { |