(60506aa8b7489d8cf60cfaa357fb224d19b62e13)
#include "qjnihelpers_p.h"
#include "qjnienvironment.h"
#include "qjniobject.h"
#include "qlist.h"
#include "qmutex.h"
#include "qsemaphore.h"
#include "qreadwritelock.h"
#include <QtCore/private/qcoreapplication_p.h>
#include <QtCore/private/qlocking_p.h>
#include <android/log.h>
#include <deque>
#include <memory>
Go to the source code of this file.
|
QT_BEGIN_NAMESPACE | Q_DECLARE_JNI_CLASS (QtInputDelegate, "org/qtproject/qt/android/QtInputDelegate") |
| Q_DECLARE_JNI_CLASS (MotionEvent, "android/view/MotionEvent") |
| Q_DECLARE_JNI_CLASS (KeyEvent, "android/view/KeyEvent") |
| Q_GLOBAL_STATIC (QSemaphore, g_waitForServiceSetupSemaphore) |
| Q_GLOBAL_STATIC (QReadWriteLock, g_updateMutex) |
static jboolean | updateNativeActivity (JNIEnv *env, jclass=nullptr) |
static jboolean | dispatchGenericMotionEvent (JNIEnv *, jclass, QtJniTypes::MotionEvent event) |
| Q_DECLARE_JNI_NATIVE_METHOD (dispatchGenericMotionEvent) |
static jboolean | dispatchKeyEvent (JNIEnv *, jclass, QtJniTypes::KeyEvent event) |
| Q_DECLARE_JNI_NATIVE_METHOD (dispatchKeyEvent) |
Q_CORE_EXPORT jobject | qt_androidActivity () |
Q_CORE_EXPORT jobject | qt_androidService () |
QT_END_NAMESPACE JNIEXPORT jint JNICALL | JNI_OnLoad (JavaVM *vm, void *reserved) |
◆ dispatchGenericMotionEvent()
jboolean dispatchGenericMotionEvent |
( |
JNIEnv * | , |
|
|
jclass | , |
|
|
QtJniTypes::MotionEvent | event ) |
|
static |
◆ dispatchKeyEvent()
jboolean dispatchKeyEvent |
( |
JNIEnv * | , |
|
|
jclass | , |
|
|
QtJniTypes::KeyEvent | event ) |
|
static |
◆ JNI_OnLoad()
◆ Q_DECLARE_JNI_CLASS() [1/3]
◆ Q_DECLARE_JNI_CLASS() [2/3]
Q_DECLARE_JNI_CLASS |
( |
MotionEvent | , |
|
|
"android/view/MotionEvent" | ) |
◆ Q_DECLARE_JNI_CLASS() [3/3]
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS |
( |
QtInputDelegate | , |
|
|
"org/qtproject/qt/android/QtInputDelegate" | ) |
◆ Q_DECLARE_JNI_NATIVE_METHOD() [1/2]
◆ Q_DECLARE_JNI_NATIVE_METHOD() [2/2]
◆ Q_GLOBAL_STATIC() [1/2]
◆ Q_GLOBAL_STATIC() [2/2]
Q_GLOBAL_STATIC |
( |
QSemaphore | , |
|
|
g_waitForServiceSetupSemaphore | ) |
◆ qt_androidActivity()
Q_CORE_EXPORT jobject qt_androidActivity |
( |
| ) |
|
◆ qt_androidService()
Q_CORE_EXPORT jobject qt_androidService |
( |
| ) |
|
◆ updateNativeActivity()
jboolean updateNativeActivity |
( |
JNIEnv * | env, |
|
|
jclass | = nullptr ) |
|
static |
◆ g_androidDeadlockProtector
◆ g_jActivity
jobject g_jActivity = nullptr |
|
static |
◆ g_javaVM
JavaVM * g_javaVM = nullptr |
|
static |
◆ g_jClassLoader
jobject g_jClassLoader = nullptr |
|
static |
◆ g_jService
jobject g_jService = nullptr |
|
static |
◆ g_onBindListener
◆ g_onBindListenerMutex
◆ g_serviceSetupLockers