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>.
Loading...
Searching...
No Matches
androidjnimain.cpp File Reference

(b43341f6780941beb54616734d3a7b00b59b63a5)

#include <dlfcn.h>
#include <pthread.h>
#include <qplugin.h>
#include <semaphore.h>
#include "androidcontentfileengine.h"
#include "androiddeadlockprotector.h"
#include "androidjniaccessibility.h"
#include "androidjniinput.h"
#include "androidjnimain.h"
#include "androidjnimenu.h"
#include "androidwindowembedding.h"
#include "qandroidassetsfileenginehandler.h"
#include "qandroideventdispatcher.h"
#include "qandroidplatformdialoghelpers.h"
#include "qandroidplatformintegration.h"
#include "qandroidplatformclipboard.h"
#include "qandroidplatformwindow.h"
#include <android/api-level.h>
#include <android/asset_manager_jni.h>
#include <android/bitmap.h>
#include <QtCore/private/qjnihelpers_p.h>
#include <QtCore/qbasicatomic.h>
#include <QtCore/qjnienvironment.h>
#include <QtCore/qjniobject.h>
#include <QtCore/qprocess.h>
#include <QtCore/qresource.h>
#include <QtCore/qscopeguard.h>
#include <QtCore/qthread.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qwindowsysteminterface.h>
+ Include dependency graph for androidjnimain.cpp:

Go to the source code of this file.

Namespaces

namespace  QtAndroid
 

Macros

#define FIND_AND_CHECK_CLASS(CLASS_NAME)
 
#define GET_AND_CHECK_METHOD(VAR, CLASS, METHOD_NAME, METHOD_SIGNATURE)
 
#define GET_AND_CHECK_STATIC_METHOD(VAR, CLASS, METHOD_NAME, METHOD_SIGNATURE)
 
#define GET_AND_CHECK_FIELD(VAR, CLASS, FIELD_NAME, FIELD_SIGNATURE)
 
#define GET_AND_CHECK_STATIC_FIELD(VAR, CLASS, FIELD_NAME, FIELD_SIGNATURE)
 

Typedefs

typedef int(* Main) (int, char **)
 

Functions

QBasicMutexQtAndroid::platformInterfaceMutex ()
 
void QtAndroid::setAndroidPlatformIntegration (QAndroidPlatformIntegration *androidPlatformIntegration)
 
QAndroidPlatformIntegrationQtAndroid::androidPlatformIntegration ()
 
QWindowQtAndroid::topLevelWindowAt (const QPoint &globalPos)
 
QWindowQtAndroid::windowFromId (int windowId)
 
int QtAndroid::availableWidthPixels ()
 
int QtAndroid::availableHeightPixels ()
 
double QtAndroid::scaledDensity ()
 
double QtAndroid::pixelDensity ()
 
JavaVM * QtAndroid::javaVM ()
 
AAssetManager * QtAndroid::assetManager ()
 
jclass QtAndroid::applicationClass ()
 
void QtAndroid::setSystemUiVisibility (SystemUiVisibility uiVisibility)
 
QtJniTypes::QtActivityDelegateBase QtAndroid::qtActivityDelegate ()
 
QtJniTypes::QtInputDelegate QtAndroid::qtInputDelegate ()
 
bool QtAndroid::isQtApplication ()
 
void QtAndroid::notifyAccessibilityLocationChange (uint accessibilityObjectId)
 
void QtAndroid::notifyObjectHide (uint accessibilityObjectId, uint parentObjectId)
 
void QtAndroid::notifyObjectShow (uint parentObjectId)
 
void QtAndroid::notifyObjectFocus (uint accessibilityObjectId)
 
void QtAndroid::notifyValueChanged (uint accessibilityObjectId, jstring value)
 
void QtAndroid::notifyScrolledEvent (uint accessibilityObjectId)
 
void QtAndroid::notifyNativePluginIntegrationReady (bool ready)
 
jobject QtAndroid::createBitmap (QImage img, JNIEnv *env)
 
jobject QtAndroid::createBitmap (int width, int height, QImage::Format format, JNIEnv *env)
 
jobject QtAndroid::createBitmapDrawable (jobject bitmap, JNIEnv *env)
 
const char * QtAndroid::classErrorMsgFmt ()
 
const char * QtAndroid::methodErrorMsgFmt ()
 
const char * QtAndroid::qtTagText ()
 
QString QtAndroid::deviceName ()
 
void QtAndroid::setViewVisibility (jobject view, bool visible)
 
bool QtAndroid::blockEventLoopsWhenSuspended ()
 
jobject QtAndroid::assets ()
 
static jboolean startQtAndroidPlugin (JNIEnv *env, jobject, jstring paramsString)
 
static void waitForServiceSetup (JNIEnv *env, jclass)
 
static void startQtApplication (JNIEnv *, jclass)
 
static void quitQtCoreApplication (JNIEnv *env, jclass)
 
static void quitQtAndroidPlugin (JNIEnv *env, jclass)
 
static void terminateQt (JNIEnv *env, jclass)
 
static void setDisplayMetrics (JNIEnv *, jclass, jint screenWidthPixels, jint screenHeightPixels, jint availableLeftPixels, jint availableTopPixels, jint availableWidthPixels, jint availableHeightPixels, jdouble xdpi, jdouble ydpi, jdouble scaledDensity, jdouble density, jfloat refreshRate)
 
static void updateWindow (JNIEnv *, jobject)
 
static void updateApplicationState (JNIEnv *, jobject, jint state)
 
static void handleOrientationChanged (JNIEnv *, jobject, jint newRotation, jint nativeOrientation)
 
static void handleRefreshRateChanged (JNIEnv *, jclass, jfloat refreshRate)
 
static void handleScreenAdded (JNIEnv *, jclass, jint displayId)
 
static void handleScreenChanged (JNIEnv *, jclass, jint displayId)
 
static void handleScreenRemoved (JNIEnv *, jclass, jint displayId)
 
static void handleUiDarkModeChanged (JNIEnv *, jobject, jint newUiMode)
 
static void onActivityResult (JNIEnv *, jclass, jint requestCode, jint resultCode, jobject data)
 
static void onNewIntent (JNIEnv *env, jclass, jobject data)
 
static jobject onBind (JNIEnv *, jclass, jobject intent)
 
static bool registerNatives (QJniEnvironment &env)
 
QT_END_NAMESPACE Q_DECL_EXPORT jint JNICALL JNI_OnLoad (JavaVM *vm, void *)
 

Variables

static QT_BEGIN_NAMESPACE JavaVM * m_javaVM = nullptr
 
static jclass m_applicationClass = nullptr
 
static jobject m_classLoaderObject = nullptr
 
static jmethodID m_loadClassMethodID = nullptr
 
static AAssetManager * m_assetManager = nullptr
 
static jobject m_assets = nullptr
 
static jobject m_resourcesObj = nullptr
 
static jclass m_qtActivityClass = nullptr
 
static jclass m_qtServiceClass = nullptr
 
static QtJniTypes::QtActivityDelegateBase m_activityDelegate = nullptr
 
static QtJniTypes::QtInputDelegate m_inputDelegate = nullptr
 
static int m_pendingApplicationState = -1
 
static QBasicMutex m_platformMutex
 
static jclass m_bitmapClass = nullptr
 
static jmethodID m_createBitmapMethodID = nullptr
 
static jobject m_ARGB_8888_BitmapConfigValue = nullptr
 
static jobject m_RGB_565_BitmapConfigValue = nullptr
 
static jclass m_bitmapDrawableClass = nullptr
 
static jmethodID m_bitmapDrawableConstructorMethodID = nullptr
 
static Main m_main = nullptr
 
static voidm_mainLibraryHnd = nullptr
 
static QList< QByteArraym_applicationParams
 
static sem_t m_exitSemaphore
 
static sem_t m_terminateSemaphore
 
static QAndroidPlatformIntegrationm_androidPlatformIntegration = nullptr
 
static int m_availableWidthPixels = 0
 
static int m_availableHeightPixels = 0
 
static double m_scaledDensity = 0
 
static double m_density = 1.0
 
static AndroidAssetsFileEngineHandlerm_androidAssetsFileEngineHandler = nullptr
 
static AndroidContentFileEngineHandlerm_androidContentFileEngineHandler = nullptr
 
static const char m_qtTag [] = "Qt"
 
static const char m_classErrorMsg [] = "Can't find class \"%s\""
 
static const char m_methodErrorMsg [] = "Can't find method \"%s%s\""
 
static Q_CONSTINIT QBasicAtomicInt startQtAndroidPluginCalled = Q_BASIC_ATOMIC_INITIALIZER(0)
 
static JNINativeMethod methods []
 

Macro Definition Documentation

◆ FIND_AND_CHECK_CLASS

#define FIND_AND_CHECK_CLASS ( CLASS_NAME)
Value:
clazz = env->FindClass(CLASS_NAME); \
if (!clazz) { \
__android_log_print(ANDROID_LOG_FATAL, m_qtTag, m_classErrorMsg, CLASS_NAME); \
return false; \
}
static const char m_classErrorMsg[]
static const char m_qtTag[]

Definition at line 749 of file androidjnimain.cpp.

Referenced by registerNatives(), and QtAndroidMenu::registerNatives().

◆ GET_AND_CHECK_FIELD

#define GET_AND_CHECK_FIELD ( VAR,
CLASS,
FIELD_NAME,
FIELD_SIGNATURE )
Value:
VAR = env->GetFieldID(CLASS, FIELD_NAME, FIELD_SIGNATURE); \
if (!VAR) { \
__android_log_print(ANDROID_LOG_FATAL, m_qtTag, m_methodErrorMsg, FIELD_NAME, FIELD_SIGNATURE); \
return false; \
}
static const char m_methodErrorMsg[]
#define VAR(I)

Definition at line 770 of file androidjnimain.cpp.

◆ GET_AND_CHECK_METHOD

#define GET_AND_CHECK_METHOD ( VAR,
CLASS,
METHOD_NAME,
METHOD_SIGNATURE )
Value:
VAR = env->GetMethodID(CLASS, METHOD_NAME, METHOD_SIGNATURE); \
if (!VAR) { \
__android_log_print(ANDROID_LOG_FATAL, m_qtTag, m_methodErrorMsg, METHOD_NAME, METHOD_SIGNATURE); \
return false; \
}

Definition at line 756 of file androidjnimain.cpp.

Referenced by registerNatives(), and QtAndroidMenu::registerNatives().

◆ GET_AND_CHECK_STATIC_FIELD

#define GET_AND_CHECK_STATIC_FIELD ( VAR,
CLASS,
FIELD_NAME,
FIELD_SIGNATURE )
Value:
VAR = env->GetStaticFieldID(CLASS, FIELD_NAME, FIELD_SIGNATURE); \
if (!VAR) { \
__android_log_print(ANDROID_LOG_FATAL, m_qtTag, m_methodErrorMsg, FIELD_NAME, FIELD_SIGNATURE); \
return false; \
}

Definition at line 777 of file androidjnimain.cpp.

Referenced by registerNatives(), and QtAndroidMenu::registerNatives().

◆ GET_AND_CHECK_STATIC_METHOD

#define GET_AND_CHECK_STATIC_METHOD ( VAR,
CLASS,
METHOD_NAME,
METHOD_SIGNATURE )
Value:
VAR = env->GetStaticMethodID(CLASS, METHOD_NAME, METHOD_SIGNATURE); \
if (!VAR) { \
__android_log_print(ANDROID_LOG_FATAL, m_qtTag, m_methodErrorMsg, METHOD_NAME, METHOD_SIGNATURE); \
return false; \
}

Definition at line 763 of file androidjnimain.cpp.

Referenced by registerNatives().

Typedef Documentation

◆ Main

typedef int(* Main) (int, char **)

Definition at line 71 of file androidjnimain.cpp.

Function Documentation

◆ handleOrientationChanged()

static void handleOrientationChanged ( JNIEnv * ,
jobject ,
jint newRotation,
jint nativeOrientation )
static

Definition at line 643 of file androidjnimain.cpp.

References Qt::AutoConnection, Qt::InvertedLandscapeOrientation, Qt::InvertedPortraitOrientation, QMetaObject::invokeMethod(), Qt::LandscapeOrientation, lock, m_androidPlatformIntegration, m_platformMutex, Qt::PortraitOrientation, Q_ARG, screen, and QAndroidPlatformIntegration::setScreenOrientation().

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleRefreshRateChanged()

static void handleRefreshRateChanged ( JNIEnv * ,
jclass ,
jfloat refreshRate )
static

Definition at line 682 of file androidjnimain.cpp.

References m_androidPlatformIntegration.

Referenced by registerNatives().

+ Here is the caller graph for this function:

◆ handleScreenAdded()

static void handleScreenAdded ( JNIEnv * ,
jclass ,
jint displayId )
static

Definition at line 689 of file androidjnimain.cpp.

References m_androidPlatformIntegration.

Referenced by registerNatives().

+ Here is the caller graph for this function:

◆ handleScreenChanged()

static void handleScreenChanged ( JNIEnv * ,
jclass ,
jint displayId )
static

Definition at line 696 of file androidjnimain.cpp.

References m_androidPlatformIntegration.

Referenced by registerNatives().

+ Here is the caller graph for this function:

◆ handleScreenRemoved()

static void handleScreenRemoved ( JNIEnv * ,
jclass ,
jint displayId )
static

Definition at line 703 of file androidjnimain.cpp.

References m_androidPlatformIntegration.

Referenced by registerNatives().

+ Here is the caller graph for this function:

◆ handleUiDarkModeChanged()

static void handleUiDarkModeChanged ( JNIEnv * ,
jobject ,
jint newUiMode )
static

Definition at line 710 of file androidjnimain.cpp.

References Qt::Dark, Qt::Light, and QAndroidPlatformIntegration::updateColorScheme().

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JNI_OnLoad()

◆ onActivityResult()

static void onActivityResult ( JNIEnv * ,
jclass ,
jint requestCode,
jint resultCode,
jobject data )
static

Definition at line 717 of file androidjnimain.cpp.

References QtAndroidPrivate::handleActivityResult().

+ Here is the call graph for this function:

◆ onBind()

static jobject onBind ( JNIEnv * ,
jclass ,
jobject intent )
static

Definition at line 730 of file androidjnimain.cpp.

References QtAndroidPrivate::callOnBindListener().

+ Here is the call graph for this function:

◆ onNewIntent()

static void onNewIntent ( JNIEnv * env,
jclass ,
jobject data )
static

Definition at line 725 of file androidjnimain.cpp.

References QtAndroidPrivate::handleNewIntent().

+ Here is the call graph for this function:

◆ quitQtAndroidPlugin()

static void quitQtAndroidPlugin ( JNIEnv * env,
jclass  )
static

◆ quitQtCoreApplication()

static void quitQtCoreApplication ( JNIEnv * env,
jclass  )
static

Definition at line 496 of file androidjnimain.cpp.

References Q_UNUSED, and QCoreApplication::quit().

+ Here is the call graph for this function:

◆ registerNatives()

◆ setDisplayMetrics()

static void setDisplayMetrics ( JNIEnv * ,
jclass ,
jint screenWidthPixels,
jint screenHeightPixels,
jint availableLeftPixels,
jint availableTopPixels,
jint availableWidthPixels,
jint availableHeightPixels,
jdouble xdpi,
jdouble ydpi,
jdouble scaledDensity,
jdouble density,
jfloat refreshRate )
static

Definition at line 550 of file androidjnimain.cpp.

References QRect::height(), QSize::height(), QRect::left(), lock, m_androidPlatformIntegration, m_availableHeightPixels, m_availableWidthPixels, m_density, m_platformMutex, m_scaledDensity, Q_UNUSED, qRound(), QAndroidPlatformIntegration::setDefaultDisplayMetrics(), QRect::top(), QRect::width(), and QSize::width().

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startQtAndroidPlugin()

static jboolean startQtAndroidPlugin ( JNIEnv * env,
jobject ,
jstring paramsString )
static

Definition at line 392 of file androidjnimain.cpp.

References arg, Qt::endl(), QDir::homePath(), m_androidAssetsFileEngineHandler, m_androidContentFileEngineHandler, m_androidPlatformIntegration, m_applicationParams, m_exitSemaphore, m_main, m_mainLibraryHnd, m_terminateSemaphore, Q_UNLIKELY, Q_UNUSED, qCritical, qWarning, QDir::setCurrent(), and toString().

+ Here is the call graph for this function:

◆ startQtApplication()

static void startQtApplication ( JNIEnv * ,
jclass  )
static

Definition at line 448 of file androidjnimain.cpp.

References args, i, m_applicationClass, m_applicationParams, m_exitSemaphore, m_main, m_mainLibraryHnd, m_terminateSemaphore, qEnvironmentVariableIsSet(), qInfo, QStringLiteral, qWarning, QResource::registerResource(), ret, and startQtAndroidPluginCalled.

+ Here is the call graph for this function:

◆ terminateQt()

static void terminateQt ( JNIEnv * env,
jclass  )
static

◆ updateApplicationState()

static void updateApplicationState ( JNIEnv * ,
jobject ,
jint state )
static

◆ updateWindow()

static void updateWindow ( JNIEnv * ,
jobject  )
static

Definition at line 584 of file androidjnimain.cpp.

References QWindowSystemInterface::handleExposeEvent(), QRect::height(), QCoreApplication::instance(), m_androidPlatformIntegration, QGuiApplication::topLevelWindows(), and QRect::width().

+ Here is the call graph for this function:

◆ waitForServiceSetup()

static void waitForServiceSetup ( JNIEnv * env,
jclass  )
static

Definition at line 439 of file androidjnimain.cpp.

References QtAndroid::isQtApplication(), Q_UNUSED, QtAndroidPrivate::service(), and QtAndroidPrivate::waitForServiceSetup().

+ Here is the call graph for this function:

Variable Documentation

◆ m_activityDelegate

QtJniTypes::QtActivityDelegateBase m_activityDelegate = nullptr
static

Definition at line 57 of file androidjnimain.cpp.

Referenced by QtAndroid::qtActivityDelegate().

◆ m_androidAssetsFileEngineHandler

AndroidAssetsFileEngineHandler* m_androidAssetsFileEngineHandler = nullptr
static

Definition at line 85 of file androidjnimain.cpp.

Referenced by quitQtAndroidPlugin(), startQtAndroidPlugin(), and terminateQt().

◆ m_androidContentFileEngineHandler

AndroidContentFileEngineHandler* m_androidContentFileEngineHandler = nullptr
static

Definition at line 86 of file androidjnimain.cpp.

Referenced by quitQtAndroidPlugin(), and startQtAndroidPlugin().

◆ m_androidPlatformIntegration

◆ m_applicationClass

◆ m_applicationParams

QList<QByteArray> m_applicationParams
static

Definition at line 74 of file androidjnimain.cpp.

Referenced by startQtAndroidPlugin(), and startQtApplication().

◆ m_ARGB_8888_BitmapConfigValue

jobject m_ARGB_8888_BitmapConfigValue = nullptr
static

◆ m_assetManager

AAssetManager* m_assetManager = nullptr
static

Definition at line 50 of file androidjnimain.cpp.

Referenced by QtAndroid::assetManager(), and registerNatives().

◆ m_assets

jobject m_assets = nullptr
static

Definition at line 51 of file androidjnimain.cpp.

Referenced by QtAndroid::assets(), registerNatives(), and terminateQt().

◆ m_availableHeightPixels

int m_availableHeightPixels = 0
static

Definition at line 81 of file androidjnimain.cpp.

Referenced by QtAndroid::availableHeightPixels(), and setDisplayMetrics().

◆ m_availableWidthPixels

int m_availableWidthPixels = 0
static

Definition at line 80 of file androidjnimain.cpp.

Referenced by QtAndroid::availableWidthPixels(), and setDisplayMetrics().

◆ m_bitmapClass

jclass m_bitmapClass = nullptr
static

◆ m_bitmapDrawableClass

jclass m_bitmapDrawableClass = nullptr
static

◆ m_bitmapDrawableConstructorMethodID

jmethodID m_bitmapDrawableConstructorMethodID = nullptr
static

Definition at line 69 of file androidjnimain.cpp.

Referenced by QtAndroid::createBitmapDrawable(), and registerNatives().

◆ m_classErrorMsg

const char m_classErrorMsg[] = "Can't find class \"%s\""
static

Definition at line 91 of file androidjnimain.cpp.

Referenced by QtAndroid::classErrorMsgFmt().

◆ m_classLoaderObject

jobject m_classLoaderObject = nullptr
static

Definition at line 48 of file androidjnimain.cpp.

Referenced by registerNatives(), and terminateQt().

◆ m_createBitmapMethodID

jmethodID m_createBitmapMethodID = nullptr
static

◆ m_density

double m_density = 1.0
static

Definition at line 83 of file androidjnimain.cpp.

Referenced by QtAndroid::pixelDensity(), and setDisplayMetrics().

◆ m_exitSemaphore

sem_t m_exitSemaphore
static

Definition at line 75 of file androidjnimain.cpp.

Referenced by startQtAndroidPlugin(), startQtApplication(), and terminateQt().

◆ m_inputDelegate

QtJniTypes::QtInputDelegate m_inputDelegate = nullptr
static

Definition at line 58 of file androidjnimain.cpp.

Referenced by QtAndroid::qtInputDelegate().

◆ m_javaVM

QT_BEGIN_NAMESPACE JavaVM* m_javaVM = nullptr
static

Definition at line 46 of file androidjnimain.cpp.

Referenced by QtAndroid::javaVM(), and JNI_OnLoad().

◆ m_loadClassMethodID

jmethodID m_loadClassMethodID = nullptr
static

Definition at line 49 of file androidjnimain.cpp.

Referenced by registerNatives().

◆ m_main

Main m_main = nullptr
static

◆ m_mainLibraryHnd

void* m_mainLibraryHnd = nullptr
static

Definition at line 73 of file androidjnimain.cpp.

Referenced by startQtAndroidPlugin(), and startQtApplication().

◆ m_methodErrorMsg

const char m_methodErrorMsg[] = "Can't find method \"%s%s\""
static

Definition at line 92 of file androidjnimain.cpp.

Referenced by QtAndroid::methodErrorMsgFmt().

◆ m_pendingApplicationState

int m_pendingApplicationState = -1
static

◆ m_platformMutex

◆ m_qtActivityClass

jclass m_qtActivityClass = nullptr
static

Definition at line 54 of file androidjnimain.cpp.

Referenced by QtAndroid::isQtApplication(), registerNatives(), and terminateQt().

◆ m_qtServiceClass

jclass m_qtServiceClass = nullptr
static

Definition at line 55 of file androidjnimain.cpp.

Referenced by QtAndroid::isQtApplication(), registerNatives(), and terminateQt().

◆ m_qtTag

const char m_qtTag[] = "Qt"
static

Definition at line 90 of file androidjnimain.cpp.

Referenced by QtAndroid::qtTagText().

◆ m_resourcesObj

jobject m_resourcesObj = nullptr
static

◆ m_RGB_565_BitmapConfigValue

jobject m_RGB_565_BitmapConfigValue = nullptr
static

◆ m_scaledDensity

double m_scaledDensity = 0
static

Definition at line 82 of file androidjnimain.cpp.

Referenced by QtAndroid::scaledDensity(), and setDisplayMetrics().

◆ m_terminateSemaphore

sem_t m_terminateSemaphore
static

Definition at line 75 of file androidjnimain.cpp.

Referenced by startQtAndroidPlugin(), startQtApplication(), and terminateQt().

◆ methods

JNINativeMethod methods[]
static
Initial value:
= {
{ "startQtAndroidPlugin", "(Ljava/lang/String;)Z", (void *)startQtAndroidPlugin },
{ "startQtApplication", "()V", (void *)startQtApplication },
{ "quitQtAndroidPlugin", "()V", (void *)quitQtAndroidPlugin },
{ "quitQtCoreApplication", "()V", (void *)quitQtCoreApplication },
{ "terminateQt", "()V", (void *)terminateQt },
{ "waitForServiceSetup", "()V", (void *)waitForServiceSetup },
{ "updateWindow", "()V", (void *)updateWindow },
{ "updateApplicationState", "(I)V", (void *)updateApplicationState },
{ "onActivityResult", "(IILandroid/content/Intent;)V", (void *)onActivityResult },
{ "onNewIntent", "(Landroid/content/Intent;)V", (void *)onNewIntent },
{ "onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", (void *)onBind }
}
static void waitForServiceSetup(JNIEnv *env, jclass)
static void onNewIntent(JNIEnv *env, jclass, jobject data)
static void startQtApplication(JNIEnv *, jclass)
static void updateApplicationState(JNIEnv *, jobject, jint state)
static void terminateQt(JNIEnv *env, jclass)
static jboolean startQtAndroidPlugin(JNIEnv *env, jobject, jstring paramsString)
static void quitQtAndroidPlugin(JNIEnv *env, jclass)
static void quitQtCoreApplication(JNIEnv *env, jclass)
static jobject onBind(JNIEnv *, jclass, jobject intent)
static void onActivityResult(JNIEnv *, jclass, jint requestCode, jint resultCode, jobject data)
static void updateWindow(JNIEnv *, jobject)

Definition at line 735 of file androidjnimain.cpp.

Referenced by QAndroidInputContext::QAndroidInputContext(), aggregateParameterCount(), buildMetaObject(), QV4::Runtime::CreateClass::call(), QV4::QObjectMethod::callInternal(), QV4::QObjectMethod::callInternalWithMetaTypes(), QQmlJSRegisterContent::create(), QQmlSA::MethodsPrivate::createMethods(), QV4::Heap::DECLARE_EXPORTED_HEAP_OBJECT(), QQmlJSRegisterContent::descriptiveName(), QQmlPropertyPrivate::findSignalByName(), foo(), hasMethodOrSignal(), QtAndroidPrivate::initJNI(), QAuthenticatorPrivate::isMethodSupported(), JNI_OnLoad(), QQmlJSTypeResolver::memberType(), QtAndroidPrivate::registerExtrasNatives(), QtAndroidPrivate::registerNativeInterfaceNatives(), AndroidCamera::registerNativeMethods(), AndroidMediaPlayer::registerNativeMethods(), AndroidMediaRecorder::registerNativeMethods(), AndroidSurfaceTexture::registerNativeMethods(), AndroidSurfaceHolder::registerNativeMethods(), QtAndroidInput::registerNatives(), registerNatives(), QtAndroidPrivate::registerPermissionNatives(), resolveNameInQmlScope(), QQmlJSFunctionInitializer::run(), QQmlJSTypeResolver::scopedType(), QGeoPositionInfoSourcePrivate::setPositioningMethods(), QGeoPositionInfoSource::setPreferredPositioningMethods(), QDeclarativePositionSource::setPreferredPositioningMethods(), QGeoPositionInfoSourceAndroid::setPreferredPositioningMethods(), QGeoPositionInfoSourceGeoclue2::setPreferredPositioningMethods(), QGeoPositionInfoSourceWinRT::setPreferredPositioningMethods(), QBluetoothDeviceDiscoveryAgent::start(), QBluetoothDeviceDiscoveryAgentPrivate::start(), QQmlPropertyCache::toMetaObjectBuilder(), QQmlJSImportVisitor::visit(), wrapInFunction(), and QmlTypeRegistrar::write().

◆ startQtAndroidPluginCalled

Q_CONSTINIT QBasicAtomicInt startQtAndroidPluginCalled = Q_BASIC_ATOMIC_INITIALIZER(0)
static

Definition at line 94 of file androidjnimain.cpp.

Referenced by startQtApplication(), and terminateQt().