Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtAndroid Namespace Reference

Enumerations

enum  SystemUiVisibility { SYSTEM_UI_VISIBILITY_NORMAL = 0 , SYSTEM_UI_VISIBILITY_FULLSCREEN = 1 , SYSTEM_UI_VISIBILITY_TRANSLUCENT = 2 }
 

Functions

QBasicMutexplatformInterfaceMutex ()
 
void setAndroidPlatformIntegration (QAndroidPlatformIntegration *androidPlatformIntegration)
 
QAndroidPlatformIntegrationandroidPlatformIntegration ()
 
QWindowtopLevelWindowAt (const QPoint &globalPos)
 
int availableWidthPixels ()
 
int availableHeightPixels ()
 
double scaledDensity ()
 
double pixelDensity ()
 
JavaVM * javaVM ()
 
AAssetManager * assetManager ()
 
jclass applicationClass ()
 
QtJniTypes::Activity activity ()
 
QtJniTypes::Service service ()
 
void setSystemUiVisibility (SystemUiVisibility uiVisibility)
 
void notifyAccessibilityLocationChange (uint accessibilityObjectId)
 
void notifyObjectHide (uint accessibilityObjectId, uint parentObjectId)
 
void notifyObjectFocus (uint accessibilityObjectId)
 
void notifyValueChanged (uint accessibilityObjectId, jstring value)
 
void notifyScrolledEvent (uint accessibilityObjectId)
 
void notifyQtAndroidPluginRunning (bool running)
 
jobject createBitmap (QImage img, JNIEnv *env)
 
jobject createBitmap (int width, int height, QImage::Format format, JNIEnv *env)
 
jobject createBitmapDrawable (jobject bitmap, JNIEnv *env)
 
const char * classErrorMsgFmt ()
 
const char * methodErrorMsgFmt ()
 
const char * qtTagText ()
 
QString deviceName ()
 
jint generateViewId ()
 
int createSurface (AndroidSurfaceClient *client, const QRect &geometry, bool onTop, int imageDepth)
 
int insertNativeView (jobject view, const QRect &geometry)
 
void setViewVisibility (jobject view, bool visible)
 
void setSurfaceGeometry (int surfaceId, const QRect &geometry)
 
void destroySurface (int surfaceId)
 
void bringChildToFront (int surfaceId)
 
void bringChildToBack (int surfaceId)
 
bool blockEventLoopsWhenSuspended ()
 
jobject assets ()
 
void setQtThread (QThread *thread)
 

Enumeration Type Documentation

◆ SystemUiVisibility

Enumerator
SYSTEM_UI_VISIBILITY_NORMAL 
SYSTEM_UI_VISIBILITY_FULLSCREEN 
SYSTEM_UI_VISIBILITY_TRANSLUCENT 

Definition at line 57 of file androidjnimain.h.

Function Documentation

◆ activity()

◆ androidPlatformIntegration()

QAndroidPlatformIntegration * QtAndroid::androidPlatformIntegration ( )

Definition at line 116 of file androidjnimain.cpp.

References m_androidPlatformIntegration.

Referenced by QtAndroidInput::getTouchDevice(), QtAndroidAccessibility::setActive(), setAndroidPlatformIntegration(), and QAndroidInputContext::updateSelectionHandles().

+ Here is the caller graph for this function:

◆ applicationClass()

◆ assetManager()

AAssetManager * QtAndroid::assetManager ( )

Definition at line 153 of file androidjnimain.cpp.

References m_assetManager.

Referenced by AndroidAssetsFileEngineHandler::AndroidAssetsFileEngineHandler().

+ Here is the caller graph for this function:

◆ assets()

jobject QtAndroid::assets ( )

Definition at line 440 of file androidjnimain.cpp.

References m_assets.

Referenced by FolderIterator::FolderIterator().

+ Here is the caller graph for this function:

◆ availableHeightPixels()

int QtAndroid::availableHeightPixels ( )

Definition at line 133 of file androidjnimain.cpp.

References m_availableHeightPixels.

Referenced by QtAndroidInput::touchAdd().

+ Here is the caller graph for this function:

◆ availableWidthPixels()

int QtAndroid::availableWidthPixels ( )

Definition at line 128 of file androidjnimain.cpp.

References m_availableWidthPixels.

Referenced by QtAndroidInput::touchAdd().

+ Here is the caller graph for this function:

◆ blockEventLoopsWhenSuspended()

bool QtAndroid::blockEventLoopsWhenSuspended ( )

Definition at line 434 of file androidjnimain.cpp.

References qEnvironmentVariableIntValue().

Referenced by QAndroidEventDispatcher::QAndroidEventDispatcher(), QAndroidEventDispatcher::~QAndroidEventDispatcher(), and QtAndroidAccessibility::runInObjectContext().

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

◆ bringChildToBack()

void QtAndroid::bringChildToBack ( int  surfaceId)

Definition at line 423 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QAndroidPlatformForeignWindow::lower().

+ Here is the caller graph for this function:

◆ bringChildToFront()

void QtAndroid::bringChildToFront ( int  surfaceId)

Definition at line 412 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QAndroidPlatformForeignWindow::raise().

+ Here is the caller graph for this function:

◆ classErrorMsgFmt()

const char * QtAndroid::classErrorMsgFmt ( )

Definition at line 283 of file androidjnimain.cpp.

References m_classErrorMsg.

Referenced by QtAndroidDialogHelpers::registerNatives().

+ Here is the caller graph for this function:

◆ createBitmap() [1/2]

jobject QtAndroid::createBitmap ( int  width,
int  height,
QImage::Format  format,
JNIEnv *  env 
)

◆ createBitmap() [2/2]

jobject QtAndroid::createBitmap ( QImage  img,
JNIEnv *  env 
)

Definition at line 212 of file androidjnimain.cpp.

References QImage::Format_RGB16, QImage::Format_RGBA8888, info, m_ARGB_8888_BitmapConfigValue, m_bitmapClass, m_createBitmapMethodID, m_RGB_565_BitmapConfigValue, and qMin().

Referenced by QtAndroidMenu::fillMenuItem().

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

◆ createBitmapDrawable()

jobject QtAndroid::createBitmapDrawable ( jobject  bitmap,
JNIEnv *  env 
)

Definition at line 272 of file androidjnimain.cpp.

References m_bitmapDrawableClass, m_bitmapDrawableConstructorMethodID, and m_resourcesObj.

Referenced by QtAndroidMenu::fillMenuItem().

+ Here is the caller graph for this function:

◆ createSurface()

int QtAndroid::createSurface ( AndroidSurfaceClient client,
const QRect geometry,
bool  onTop,
int  imageDepth 
)

Definition at line 311 of file androidjnimain.cpp.

References generateViewId(), QRect::height(), QRect::isNull(), QMutex::lock(), m_applicationClass, m_createSurfaceMethodID, m_surfaces, m_surfacesMutex, QMutex::unlock(), QRect::width(), QRect::x(), and QRect::y().

Referenced by QAndroidPlatformOpenGLWindow::eglSurface(), and QAndroidPlatformVulkanWindow::vkSurface().

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

◆ destroySurface()

◆ deviceName()

QString QtAndroid::deviceName ( )

Definition at line 298 of file androidjnimain.cpp.

References model.

Referenced by QAndroidPlatformNativeInterface::nativeResourceForIntegration(), and needsBasicRenderloopWorkaround().

+ Here is the caller graph for this function:

◆ generateViewId()

jint QtAndroid::generateViewId ( )

Definition at line 306 of file androidjnimain.cpp.

Referenced by createSurface(), and insertNativeView().

+ Here is the caller graph for this function:

◆ insertNativeView()

int QtAndroid::insertNativeView ( jobject  view,
const QRect geometry 
)

Definition at line 338 of file androidjnimain.cpp.

References generateViewId(), QRect::getRect(), QRect::isNull(), QMutex::lock(), m_applicationClass, m_surfaces, m_surfacesMutex, qMax(), QMutex::unlock(), and view.

Referenced by QAndroidPlatformForeignWindow::applicationStateChanged(), and QAndroidPlatformForeignWindow::setVisible().

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

◆ javaVM()

JavaVM * QtAndroid::javaVM ( )

Definition at line 148 of file androidjnimain.cpp.

References m_javaVM.

Referenced by QAndroidPlatformNativeInterface::nativeResourceForIntegration().

+ Here is the caller graph for this function:

◆ methodErrorMsgFmt()

const char * QtAndroid::methodErrorMsgFmt ( )

Definition at line 288 of file androidjnimain.cpp.

References m_methodErrorMsg.

◆ notifyAccessibilityLocationChange()

void QtAndroid::notifyAccessibilityLocationChange ( uint  accessibilityObjectId)

Definition at line 178 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QtAndroidAccessibility::notifyLocationChange().

+ Here is the caller graph for this function:

◆ notifyObjectFocus()

void QtAndroid::notifyObjectFocus ( uint  accessibilityObjectId)

Definition at line 190 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QtAndroidAccessibility::notifyObjectFocus().

+ Here is the caller graph for this function:

◆ notifyObjectHide()

void QtAndroid::notifyObjectHide ( uint  accessibilityObjectId,
uint  parentObjectId 
)

Definition at line 184 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QtAndroidAccessibility::notifyObjectHide().

+ Here is the caller graph for this function:

◆ notifyQtAndroidPluginRunning()

void QtAndroid::notifyQtAndroidPluginRunning ( bool  running)

Definition at line 207 of file androidjnimain.cpp.

References m_applicationClass, and running.

Referenced by QAndroidPlatformNativeInterface::customEvent().

+ Here is the caller graph for this function:

◆ notifyScrolledEvent()

void QtAndroid::notifyScrolledEvent ( uint  accessibilityObjectId)

Definition at line 201 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QtAndroidAccessibility::notifyScrolledEvent().

+ Here is the caller graph for this function:

◆ notifyValueChanged()

void QtAndroid::notifyValueChanged ( uint  accessibilityObjectId,
jstring  value 
)

Definition at line 195 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QtAndroidAccessibility::notifyValueChanged().

+ Here is the caller graph for this function:

◆ pixelDensity()

double QtAndroid::pixelDensity ( )

Definition at line 143 of file androidjnimain.cpp.

References m_density.

Referenced by loadAndroidStyle(), and QAndroidPlatformScreen::logicalDpi().

+ Here is the caller graph for this function:

◆ platformInterfaceMutex()

QBasicMutex * QtAndroid::platformInterfaceMutex ( )

Definition at line 95 of file androidjnimain.cpp.

References m_platformMutex.

Referenced by QAndroidPlatformNativeInterface::customEvent(), QtAndroidAccessibility::setActive(), QtAndroidInput::touchCancel(), and QtAndroidInput::touchEnd().

+ Here is the caller graph for this function:

◆ qtTagText()

const char * QtAndroid::qtTagText ( )

Definition at line 293 of file androidjnimain.cpp.

References m_qtTag.

Referenced by QtAndroidDialogHelpers::registerNatives().

+ Here is the caller graph for this function:

◆ scaledDensity()

double QtAndroid::scaledDensity ( )

Definition at line 138 of file androidjnimain.cpp.

References m_scaledDensity.

◆ service()

QtJniTypes::Service QtAndroid::service ( )

Definition at line 168 of file androidjnimain.cpp.

References m_serviceObject.

Referenced by QAndroidPlatformIntegration::QAndroidPlatformIntegration(), and QAndroidPlatformNativeInterface::nativeResourceForIntegration().

+ Here is the caller graph for this function:

◆ setAndroidPlatformIntegration()

void QtAndroid::setAndroidPlatformIntegration ( QAndroidPlatformIntegration androidPlatformIntegration)

Definition at line 100 of file androidjnimain.cpp.

References androidPlatformIntegration(), Qt::ApplicationActive, Qt::ApplicationInactive, QWindowSystemInterface::handleApplicationStateChanged(), QtAndroidPrivate::handlePause(), QtAndroidPrivate::handleResume(), m_androidPlatformIntegration, and m_pendingApplicationState.

Referenced by QAndroidPlatformIntegration::~QAndroidPlatformIntegration(), and QAndroidPlatformNativeInterface::customEvent().

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

◆ setQtThread()

void QtAndroid::setQtThread ( QThread thread)

◆ setSurfaceGeometry()

void QtAndroid::setSurfaceGeometry ( int  surfaceId,
const QRect geometry 
)

Definition at line 371 of file androidjnimain.cpp.

References QRect::height(), QRect::isNull(), m_applicationClass, m_setSurfaceGeometryMethodID, QRect::width(), QRect::x(), and QRect::y().

Referenced by QAndroidPlatformScreen::setAvailableGeometry(), QAndroidPlatformForeignWindow::setGeometry(), QAndroidPlatformOpenGLWindow::setGeometry(), and QAndroidPlatformVulkanWindow::setGeometry().

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

◆ setSystemUiVisibility()

void QtAndroid::setSystemUiVisibility ( SystemUiVisibility  uiVisibility)

Definition at line 173 of file androidjnimain.cpp.

References m_applicationClass.

Referenced by QAndroidPlatformWindow::updateSystemUiVisibility().

+ Here is the caller graph for this function:

◆ setViewVisibility()

void QtAndroid::setViewVisibility ( jobject  view,
bool  visible 
)

Definition at line 362 of file androidjnimain.cpp.

References m_applicationClass, and view.

Referenced by QAndroidPlatformForeignWindow::QAndroidPlatformForeignWindow(), QAndroidPlatformForeignWindow::~QAndroidPlatformForeignWindow(), and QAndroidPlatformForeignWindow::setVisible().

+ Here is the caller graph for this function:

◆ topLevelWindowAt()

QWindow * QtAndroid::topLevelWindowAt ( const QPoint globalPos)

Definition at line 121 of file androidjnimain.cpp.

References m_androidPlatformIntegration, QAndroidPlatformIntegration::screen(), and QAndroidPlatformScreen::topLevelAt().

Referenced by QtAndroidInput::longPress(), QtAndroidInput::mouseDown(), QtAndroidInput::mouseMove(), QtAndroidInput::mouseUp(), QtAndroidInput::mouseWheel(), QtAndroidInput::tabletEvent(), QtAndroidInput::touchCancel(), and QtAndroidInput::touchEnd().

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