Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
androidjnimain.cpp File Reference
#include <dlfcn.h>
#include <pthread.h>
#include <qplugin.h>
#include <semaphore.h>
#include "androidcontentfileengine.h"
#include "androiddeadlockprotector.h"
#include "androidjniaccessibility.h"
#include "androidjniclipboard.h"
#include "androidjniinput.h"
#include "androidjnimain.h"
#include "androidjnimenu.h"
#include "qandroidassetsfileenginehandler.h"
#include "qandroideventdispatcher.h"
#include "qandroidplatformdialoghelpers.h"
#include "qandroidplatformintegration.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/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)
 
int QtAndroid::availableWidthPixels ()
 
int QtAndroid::availableHeightPixels ()
 
double QtAndroid::scaledDensity ()
 
double QtAndroid::pixelDensity ()
 
JavaVM * QtAndroid::javaVM ()
 
AAssetManager * QtAndroid::assetManager ()
 
jclass QtAndroid::applicationClass ()
 
QtJniTypes::Activity QtAndroid::activity ()
 
QtJniTypes::Service QtAndroid::service ()
 
void QtAndroid::setSystemUiVisibility (SystemUiVisibility uiVisibility)
 
void QtAndroid::notifyAccessibilityLocationChange (uint accessibilityObjectId)
 
void QtAndroid::notifyObjectHide (uint accessibilityObjectId, uint parentObjectId)
 
void QtAndroid::notifyObjectFocus (uint accessibilityObjectId)
 
void QtAndroid::notifyValueChanged (uint accessibilityObjectId, jstring value)
 
void QtAndroid::notifyScrolledEvent (uint accessibilityObjectId)
 
void QtAndroid::notifyQtAndroidPluginRunning (bool running)
 
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 ()
 
jint QtAndroid::generateViewId ()
 
int QtAndroid::createSurface (AndroidSurfaceClient *client, const QRect &geometry, bool onTop, int imageDepth)
 
int QtAndroid::insertNativeView (jobject view, const QRect &geometry)
 
void QtAndroid::setViewVisibility (jobject view, bool visible)
 
void QtAndroid::setSurfaceGeometry (int surfaceId, const QRect &geometry)
 
void QtAndroid::destroySurface (int surfaceId)
 
void QtAndroid::bringChildToFront (int surfaceId)
 
void QtAndroid::bringChildToBack (int surfaceId)
 
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 setSurface (JNIEnv *env, jobject, jint id, jobject jSurface, jint w, jint h)
 
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 int registerNatives (JNIEnv *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 QtJniTypes::Activity m_activityObject = nullptr
 
static jmethodID m_createSurfaceMethodID = nullptr
 
static QtJniTypes::Service m_serviceObject = nullptr
 
static jmethodID m_setSurfaceGeometryMethodID = nullptr
 
static jmethodID m_destroySurfaceMethodID = 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
 
QHash< int, AndroidSurfaceClient * > m_surfaces
 
static Q_CONSTINIT QBasicMutex m_surfacesMutex
 
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 JNI_FALSE; \
}
static const char m_classErrorMsg[]
static const char m_qtTag[]

Definition at line 822 of file androidjnimain.cpp.

◆ 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 JNI_FALSE; \
}
static const char m_methodErrorMsg[]

Definition at line 843 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 JNI_FALSE; \
}

Definition at line 829 of file androidjnimain.cpp.

◆ 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 JNI_FALSE; \
}

Definition at line 850 of file androidjnimain.cpp.

◆ 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 JNI_FALSE; \
}

Definition at line 836 of file androidjnimain.cpp.

Typedef Documentation

◆ Main

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

Definition at line 64 of file androidjnimain.cpp.

Function Documentation

◆ handleOrientationChanged()

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

◆ handleRefreshRateChanged()

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

Definition at line 752 of file androidjnimain.cpp.

References m_androidPlatformIntegration, and QAndroidPlatformIntegration::setRefreshRate().

+ Here is the call graph for this function:

◆ handleScreenAdded()

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

Definition at line 758 of file androidjnimain.cpp.

References QAndroidPlatformIntegration::handleScreenAdded(), and m_androidPlatformIntegration.

+ Here is the call graph for this function:

◆ handleScreenChanged()

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

Definition at line 764 of file androidjnimain.cpp.

References QAndroidPlatformIntegration::handleScreenChanged(), and m_androidPlatformIntegration.

+ Here is the call graph for this function:

◆ handleScreenRemoved()

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

Definition at line 770 of file androidjnimain.cpp.

References QAndroidPlatformIntegration::handleScreenRemoved(), and m_androidPlatformIntegration.

+ Here is the call graph for this function:

◆ handleUiDarkModeChanged()

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

Definition at line 776 of file androidjnimain.cpp.

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

+ Here is the call graph for this function:

◆ JNI_OnLoad()

QT_END_NAMESPACE Q_DECL_EXPORT jint JNICALL JNI_OnLoad ( JavaVM *  vm,
void  
)

Definition at line 921 of file androidjnimain.cpp.

References m_javaVM, registerNatives(), QtAndroidAccessibility::registerNatives(), QtAndroidInput::registerNatives(), QtAndroidMenu::registerNatives(), QtAndroidDialogHelpers::registerNatives(), QObject::setObjectName(), QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(), and QObject::thread().

+ Here is the call graph for this function:

◆ onActivityResult()

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

Definition at line 782 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 795 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 790 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 552 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

◆ setSurface()

static void setSurface ( JNIEnv *  env,
jobject  ,
jint  id,
jobject  jSurface,
jint  w,
jint  h 
)
static

Definition at line 606 of file androidjnimain.cpp.

References it, lock, m_surfaces, and m_surfacesMutex.

◆ startQtAndroidPlugin()

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

◆ startQtApplication()

static void startQtApplication ( JNIEnv *  ,
jclass   
)
static

Definition at line 503 of file androidjnimain.cpp.

References args, QVarLengthArray< T, Prealloc >::data(), QBasicAtomicInteger< T >::fetchAndAddRelease(), i, m_applicationClass, m_applicationParams, m_exitSemaphore, m_main, m_mainLibraryHnd, m_terminateSemaphore, qEnvironmentVariableIsSet(), QStringLiteral, qWarning, QResource::registerResource(), ret, QList< T >::size(), and startQtAndroidPluginCalled.

+ Here is the call graph for this function:

◆ terminateQt()

◆ updateApplicationState()

◆ updateWindow()

static void updateWindow ( JNIEnv *  ,
jobject   
)
static

Definition at line 651 of file androidjnimain.cpp.

References QScreen::geometry, QWindowSystemInterface::handleExposeEvent(), QRect::height(), QCoreApplication::instance(), QMetaObject::invokeMethod(), m_androidPlatformIntegration, Q_ARG, Qt::QueuedConnection, QAndroidPlatformIntegration::screen(), screen, QGuiApplication::topLevelWindows(), and QRect::width().

+ Here is the call graph for this function:

◆ waitForServiceSetup()

static void waitForServiceSetup ( JNIEnv *  env,
jclass   
)
static

Definition at line 494 of file androidjnimain.cpp.

References m_serviceObject, Q_UNUSED, and QtAndroidPrivate::waitForServiceSetup().

+ Here is the call graph for this function:

Variable Documentation

◆ m_activityObject

QtJniTypes::Activity m_activityObject = nullptr
static

Definition at line 47 of file androidjnimain.cpp.

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

◆ m_androidAssetsFileEngineHandler

AndroidAssetsFileEngineHandler* m_androidAssetsFileEngineHandler = nullptr
static

Definition at line 82 of file androidjnimain.cpp.

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

◆ m_androidContentFileEngineHandler

AndroidContentFileEngineHandler* m_androidContentFileEngineHandler = nullptr
static

Definition at line 83 of file androidjnimain.cpp.

Referenced by quitQtAndroidPlugin(), and startQtAndroidPlugin().

◆ m_androidPlatformIntegration

◆ m_applicationClass

◆ m_applicationParams

QList<QByteArray> m_applicationParams
static

Definition at line 67 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 44 of file androidjnimain.cpp.

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

◆ m_assets

jobject m_assets = nullptr
static

Definition at line 45 of file androidjnimain.cpp.

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

◆ m_availableHeightPixels

int m_availableHeightPixels = 0
static

Definition at line 78 of file androidjnimain.cpp.

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

◆ m_availableWidthPixels

int m_availableWidthPixels = 0
static

Definition at line 77 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 62 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 88 of file androidjnimain.cpp.

◆ m_classLoaderObject

jobject m_classLoaderObject = nullptr
static

Definition at line 42 of file androidjnimain.cpp.

Referenced by registerNatives(), and terminateQt().

◆ m_createBitmapMethodID

jmethodID m_createBitmapMethodID = nullptr
static

◆ m_createSurfaceMethodID

jmethodID m_createSurfaceMethodID = nullptr
static

Definition at line 48 of file androidjnimain.cpp.

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

◆ m_density

double m_density = 1.0
static

Definition at line 80 of file androidjnimain.cpp.

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

◆ m_destroySurfaceMethodID

jmethodID m_destroySurfaceMethodID = nullptr
static

Definition at line 51 of file androidjnimain.cpp.

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

◆ m_exitSemaphore

sem_t m_exitSemaphore
static

Definition at line 68 of file androidjnimain.cpp.

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

◆ m_javaVM

QT_BEGIN_NAMESPACE JavaVM* m_javaVM = nullptr
static

Definition at line 40 of file androidjnimain.cpp.

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

◆ m_loadClassMethodID

jmethodID m_loadClassMethodID = nullptr
static

Definition at line 43 of file androidjnimain.cpp.

Referenced by registerNatives().

◆ m_main

Main m_main = nullptr
static

◆ m_mainLibraryHnd

void* m_mainLibraryHnd = nullptr
static

Definition at line 66 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 89 of file androidjnimain.cpp.

Referenced by QtAndroid::methodErrorMsgFmt().

◆ m_pendingApplicationState

int m_pendingApplicationState = -1
static

◆ m_platformMutex

◆ m_qtTag

const char m_qtTag[] = "Qt"
static

Definition at line 87 of file androidjnimain.cpp.

◆ 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 79 of file androidjnimain.cpp.

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

◆ m_serviceObject

QtJniTypes::Service m_serviceObject = nullptr
static

◆ m_setSurfaceGeometryMethodID

jmethodID m_setSurfaceGeometryMethodID = nullptr
static

Definition at line 50 of file androidjnimain.cpp.

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

◆ m_surfaces

◆ m_surfacesMutex

Q_CONSTINIT QBasicMutex m_surfacesMutex
static

◆ m_terminateSemaphore

sem_t m_terminateSemaphore
static

Definition at line 68 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 },
{ "setDisplayMetrics", "(IIIIIIDDDDF)V", (void *)setDisplayMetrics },
{ "setSurface", "(ILjava/lang/Object;II)V", (void *)setSurface },
{ "updateWindow", "()V", (void *)updateWindow },
{ "updateApplicationState", "(I)V", (void *)updateApplicationState },
{ "handleUiDarkModeChanged", "(I)V", (void *)handleUiDarkModeChanged },
{ "handleOrientationChanged", "(II)V", (void *)handleOrientationChanged },
{ "onActivityResult", "(IILandroid/content/Intent;)V", (void *)onActivityResult },
{ "onNewIntent", "(Landroid/content/Intent;)V", (void *)onNewIntent },
{ "onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", (void *)onBind },
{ "handleRefreshRateChanged", "(F)V", (void *)handleRefreshRateChanged },
{ "handleScreenAdded", "(I)V", (void *)handleScreenAdded },
{ "handleScreenChanged", "(I)V", (void *)handleScreenChanged },
{ "handleScreenRemoved", "(I)V", (void *)handleScreenRemoved }
}
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 waitForServiceSetup(JNIEnv *env, jclass)
static void handleScreenChanged(JNIEnv *, jclass, jint displayId)
static void onNewIntent(JNIEnv *env, jclass, jobject data)
static void handleUiDarkModeChanged(JNIEnv *, jobject, jint newUiMode)
static void handleRefreshRateChanged(JNIEnv *, jclass, jfloat refreshRate)
static void startQtApplication(JNIEnv *, jclass)
static void updateApplicationState(JNIEnv *, jobject, jint state)
static void handleOrientationChanged(JNIEnv *, jobject, jint newRotation, jint nativeOrientation)
static void terminateQt(JNIEnv *env, jclass)
static jboolean startQtAndroidPlugin(JNIEnv *env, jobject, jstring paramsString)
static void handleScreenRemoved(JNIEnv *, jclass, jint displayId)
static void setSurface(JNIEnv *env, jobject, jint id, jobject jSurface, jint w, jint h)
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)
static void handleScreenAdded(JNIEnv *, jclass, jint displayId)

Definition at line 800 of file androidjnimain.cpp.

Referenced by QAndroidInputContext::QAndroidInputContext(), aggregateParameterCount(), bindingsCompletions(), buildMetaObject(), QV4::Runtime::CreateClass::call(), QV4::QObjectMethod::callInternal(), QQmlJSRegisterContent::create(), QQmlSA::MethodsPrivate::createMethods(), QV4::Heap::DECLARE_HEAP_OBJECT(), QQmlJSRegisterContent::descriptiveName(), QQmlPropertyPrivate::findSignalByName(), foo(), QtAndroidPrivate::initJNI(), QAuthenticatorPrivate::isMethodSupported(), JNI_OnLoad(), QQmlJSTypeResolver::memberType(), reachableSymbols(), QtAndroidPrivate::registerNativeInterfaceNatives(), AndroidCamera::registerNativeMethods(), AndroidMediaPlayer::registerNativeMethods(), AndroidMediaRecorder::registerNativeMethods(), AndroidSurfaceTexture::registerNativeMethods(), AndroidSurfaceHolder::registerNativeMethods(), registerNatives(), QtAndroidPrivate::registerPermissionNatives(), QV4::ResolveOverloaded(), 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 91 of file androidjnimain.cpp.

Referenced by startQtApplication(), and terminateQt().