![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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.
Namespaces | |
| namespace | QtAndroidPrivate |
| \preliminary \inmodule QtCorePrivate | |
Functions | |
| 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 eventevent) |
| Q_DECLARE_JNI_NATIVE_METHOD (dispatchGenericMotionEvent) | |
| static jboolean | dispatchKeyEvent (JNIEnv *, jclass, QtJniTypes::KeyEvent eventevent) |
| 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) |
Variables | |
| static JavaVM * | g_javaVM = nullptr |
| static jobject | g_jActivity = nullptr |
| static jobject | g_jService = nullptr |
| static jobject | g_jClassLoader = nullptr |
| static Q_CONSTINIT QtAndroidPrivate::OnBindListener * | g_onBindListener |
| static Q_CONSTINIT QBasicMutex | g_onBindListenerMutex |
| static Q_CONSTINIT QBasicAtomicInt | g_serviceSetupLockers = Q_BASIC_ATOMIC_INITIALIZER(0) |
| static Q_CONSTINIT QBasicAtomicInt | g_androidDeadlockProtector = Q_BASIC_ATOMIC_INITIALIZER(0) |
|
static |
Definition at line 165 of file qjnihelpers.cpp.
|
static |
Definition at line 184 of file qjnihelpers.cpp.
| Q_DECL_EXPORT jint JNICALL JNI_OnLoad | ( | JavaVM * | vm, |
| void * | reserved ) |
Definition at line 482 of file qjnihelpers.cpp.
| Q_DECLARE_JNI_CLASS | ( | MotionEvent | , |
| "android/view/MotionEvent" | ) |
| QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS | ( | QtInputDelegate | , |
| "org/qtproject/qt/android/QtInputDelegate" | ) |
| Q_DECLARE_JNI_NATIVE_METHOD | ( | dispatchGenericMotionEvent | ) |
| Q_DECLARE_JNI_NATIVE_METHOD | ( | dispatchKeyEvent | ) |
| Q_GLOBAL_STATIC | ( | QReadWriteLock | , |
| g_updateMutex | ) |
| Q_GLOBAL_STATIC | ( | QSemaphore | , |
| g_waitForServiceSetupSemaphore | ) |
| Q_CORE_EXPORT jobject qt_androidActivity | ( | ) |
Definition at line 367 of file qjnihelpers.cpp.
| Q_CORE_EXPORT jobject qt_androidService | ( | ) |
Definition at line 380 of file qjnihelpers.cpp.
|
static |
Definition at line 55 of file qjnihelpers.cpp.
References g_jActivity.
|
static |
Definition at line 446 of file qjnihelpers.cpp.
|
static |
Definition at line 44 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::context(), and updateNativeActivity().
|
static |
Definition at line 43 of file qjnihelpers.cpp.
|
static |
Definition at line 46 of file qjnihelpers.cpp.
|
static |
Definition at line 45 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::context().
|
static |
Definition at line 48 of file qjnihelpers.cpp.
|
static |
Definition at line 49 of file qjnihelpers.cpp.
|
static |
Definition at line 51 of file qjnihelpers.cpp.