Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 | |
Q_GLOBAL_STATIC (QSemaphore, g_waitForServiceSetupSemaphore) | |
Q_GLOBAL_STATIC (QReadWriteLock, g_updateMutex) | |
static jboolean | updateNativeActivity (JNIEnv *env, jclass=nullptr) |
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) |
QT_END_NAMESPACE JNIEXPORT jint JNICALL JNI_OnLoad | ( | JavaVM * | vm, |
void * | reserved ) |
Definition at line 353 of file qjnihelpers.cpp.
References QtAndroidPrivate::initJNI(), logTag, Q_UNUSED, and ret.
Q_GLOBAL_STATIC | ( | QReadWriteLock | , |
g_updateMutex | ) |
Q_GLOBAL_STATIC | ( | QSemaphore | , |
g_waitForServiceSetupSemaphore | ) |
Q_CORE_EXPORT jobject qt_androidActivity | ( | ) |
Definition at line 260 of file qjnihelpers.cpp.
References g_jActivity.
Referenced by QAndroidPlatformNativeInterface::nativeResourceForIntegration().
Q_CORE_EXPORT jobject qt_androidService | ( | ) |
Definition at line 273 of file qjnihelpers.cpp.
References g_jService.
Referenced by QAndroidPlatformNativeInterface::nativeResourceForIntegration().
|
static |
Definition at line 43 of file qjnihelpers.cpp.
References g_jActivity.
Referenced by QtAndroidPrivate::initJNI().
|
static |
Definition at line 339 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::acquireAndroidDeadlockProtector(), and QtAndroidPrivate::releaseAndroidDeadlockProtector().
|
static |
Definition at line 32 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::activity(), QtAndroidPrivate::context(), QtAndroidPrivate::initJNI(), qt_androidActivity(), and updateNativeActivity().
|
static |
Definition at line 31 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::initJNI(), and QtAndroidPrivate::javaVM().
|
static |
Definition at line 34 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::classLoader(), and QtAndroidPrivate::initJNI().
|
static |
Definition at line 33 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::context(), QtAndroidPrivate::initJNI(), qt_androidService(), and QtAndroidPrivate::service().
|
static |
Definition at line 36 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::callOnBindListener(), and QtAndroidPrivate::setOnBindListener().
|
static |
Definition at line 37 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::callOnBindListener(), and QtAndroidPrivate::setOnBindListener().
|
static |
Definition at line 39 of file qjnihelpers.cpp.
Referenced by QtAndroidPrivate::acuqireServiceSetup(), and QtAndroidPrivate::setOnBindListener().