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
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)
 
QWindowwindowFromId (int windowId)
 
int availableWidthPixels ()
 
int availableHeightPixels ()
 
double scaledDensity ()
 
double pixelDensity ()
 
JavaVM * javaVM ()
 
AAssetManager * assetManager ()
 
jclass applicationClass ()
 
void setSystemUiVisibility (SystemUiVisibility uiVisibility)
 
bool isQtApplication ()
 
void initializeAccessibility ()
 
void notifyAccessibilityLocationChange (uint accessibilityObjectId)
 
void notifyObjectHide (uint accessibilityObjectId, uint parentObjectId)
 
void notifyObjectShow (uint parentObjectId)
 
void notifyObjectFocus (uint accessibilityObjectId)
 
void notifyValueChanged (uint accessibilityObjectId, jstring value)
 
void notifyScrolledEvent (uint accessibilityObjectId)
 
void notifyNativePluginIntegrationReady (bool ready)
 
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 ()
 
void setViewVisibility (jobject view, bool visible)
 
bool blockEventLoopsWhenSuspended ()
 
jobject assets ()
 
AndroidBackendRegisterbackendRegister ()
 
void setQtThread (QThread *thread)
 

Enumeration Type Documentation

◆ SystemUiVisibility

Enumerator
SYSTEM_UI_VISIBILITY_NORMAL 
SYSTEM_UI_VISIBILITY_FULLSCREEN 
SYSTEM_UI_VISIBILITY_TRANSLUCENT 

Definition at line 54 of file androidjnimain.h.

Function Documentation

◆ androidPlatformIntegration()

QAndroidPlatformIntegration * QtAndroid::androidPlatformIntegration ( )

Definition at line 120 of file androidjnimain.cpp.

References androidPlatformIntegration(), and m_androidPlatformIntegration.

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

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

◆ applicationClass()

jclass QtAndroid::applicationClass ( )

Definition at line 177 of file androidjnimain.cpp.

References applicationClass(), and m_applicationClass.

Referenced by FolderIterator::FolderIterator(), applicationClass(), QAndroidPlatformServices::openUrl(), QtAndroidMenu::registerNatives(), and setQtThread().

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

◆ assetManager()

AAssetManager * QtAndroid::assetManager ( )

Definition at line 172 of file androidjnimain.cpp.

References assetManager(), and m_assetManager.

Referenced by AndroidAssetsFileEngineHandler::AndroidAssetsFileEngineHandler(), assetManager(), and setQtThread().

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

◆ assets()

jobject QtAndroid::assets ( )

Definition at line 366 of file androidjnimain.cpp.

References assets(), and m_assets.

Referenced by FolderIterator::FolderIterator(), assets(), and setQtThread().

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

◆ availableHeightPixels()

int QtAndroid::availableHeightPixels ( )

Definition at line 152 of file androidjnimain.cpp.

References availableHeightPixels(), and m_availableHeightPixels.

Referenced by availableHeightPixels(), setQtThread(), and QtAndroidInput::touchAdd().

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

◆ availableWidthPixels()

int QtAndroid::availableWidthPixels ( )

Definition at line 147 of file androidjnimain.cpp.

References availableWidthPixels(), and m_availableWidthPixels.

Referenced by availableWidthPixels(), setQtThread(), and QtAndroidInput::touchAdd().

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

◆ backendRegister()

◆ blockEventLoopsWhenSuspended()

bool QtAndroid::blockEventLoopsWhenSuspended ( )

Definition at line 360 of file androidjnimain.cpp.

References blockEventLoopsWhenSuspended(), and qEnvironmentVariableIntValue().

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

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

◆ classErrorMsgFmt()

const char * QtAndroid::classErrorMsgFmt ( )

Definition at line 328 of file androidjnimain.cpp.

References classErrorMsgFmt(), and m_classErrorMsg.

Referenced by classErrorMsgFmt(), and QtAndroidDialogHelpers::registerNatives().

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

◆ createBitmap() [1/2]

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

Definition at line 302 of file androidjnimain.cpp.

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

+ Here is the call graph for this function:

◆ createBitmap() [2/2]

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

Definition at line 257 of file androidjnimain.cpp.

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

Referenced by createBitmap(), createBitmap(), and 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 317 of file androidjnimain.cpp.

References createBitmapDrawable(), m_bitmapDrawableClass, m_bitmapDrawableConstructorMethodID, and m_resourcesObj.

Referenced by createBitmapDrawable(), and QtAndroidMenu::fillMenuItem().

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

◆ deviceName()

QString QtAndroid::deviceName ( )

Definition at line 343 of file androidjnimain.cpp.

References deviceName(), and model.

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

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

◆ initializeAccessibility()

void QtAndroid::initializeAccessibility ( )

Definition at line 208 of file androidjnimain.cpp.

References initializeAccessibility(), and m_backendRegister.

Referenced by QtAndroidAccessibility::initialize(), and initializeAccessibility().

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

◆ isQtApplication()

bool QtAndroid::isQtApplication ( )

Definition at line 190 of file androidjnimain.cpp.

References QtAndroidPrivate::activity(), m_qtActivityClass, m_qtServiceClass, and QtAndroidPrivate::service().

Referenced by QAndroidPlatformWindow::isEmbeddingContainer(), QAndroidPlatformWindow::setParent(), and waitForServiceSetup().

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

◆ javaVM()

JavaVM * QtAndroid::javaVM ( )

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

References m_methodErrorMsg, and methodErrorMsgFmt().

Referenced by methodErrorMsgFmt().

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

◆ notifyAccessibilityLocationChange()

void QtAndroid::notifyAccessibilityLocationChange ( uint accessibilityObjectId)

Definition at line 214 of file androidjnimain.cpp.

References m_backendRegister, and notifyAccessibilityLocationChange().

Referenced by notifyAccessibilityLocationChange(), and QtAndroidAccessibility::notifyLocationChange().

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

◆ notifyNativePluginIntegrationReady()

void QtAndroid::notifyNativePluginIntegrationReady ( bool ready)

Definition at line 250 of file androidjnimain.cpp.

References m_applicationClass, and notifyNativePluginIntegrationReady().

Referenced by notifyNativePluginIntegrationReady(), and setAndroidPlatformIntegration().

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

◆ notifyObjectFocus()

void QtAndroid::notifyObjectFocus ( uint accessibilityObjectId)

Definition at line 232 of file androidjnimain.cpp.

References m_backendRegister.

Referenced by QtAndroidAccessibility::notifyObjectFocus().

+ Here is the caller graph for this function:

◆ notifyObjectHide()

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

Definition at line 220 of file androidjnimain.cpp.

References m_backendRegister.

Referenced by QtAndroidAccessibility::notifyObjectHide().

+ Here is the caller graph for this function:

◆ notifyObjectShow()

void QtAndroid::notifyObjectShow ( uint parentObjectId)

Definition at line 226 of file androidjnimain.cpp.

References m_backendRegister.

Referenced by QtAndroidAccessibility::notifyObjectShow().

+ Here is the caller graph for this function:

◆ notifyScrolledEvent()

void QtAndroid::notifyScrolledEvent ( uint accessibilityObjectId)

Definition at line 244 of file androidjnimain.cpp.

References m_backendRegister.

Referenced by QtAndroidAccessibility::notifyScrolledEvent().

+ Here is the caller graph for this function:

◆ notifyValueChanged()

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

Definition at line 238 of file androidjnimain.cpp.

References m_backendRegister.

Referenced by QtAndroidAccessibility::notifyValueChanged().

+ Here is the caller graph for this function:

◆ pixelDensity()

double QtAndroid::pixelDensity ( )

Definition at line 162 of file androidjnimain.cpp.

References m_density, and pixelDensity().

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

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

◆ platformInterfaceMutex()

QBasicMutex * QtAndroid::platformInterfaceMutex ( )

Definition at line 98 of file androidjnimain.cpp.

References m_platformMutex, and platformInterfaceMutex().

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

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

◆ qtTagText()

const char * QtAndroid::qtTagText ( )

Definition at line 338 of file androidjnimain.cpp.

References m_qtTag, and qtTagText().

Referenced by qtTagText(), and QtAndroidDialogHelpers::registerNatives().

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

◆ scaledDensity()

double QtAndroid::scaledDensity ( )

Definition at line 157 of file androidjnimain.cpp.

References m_scaledDensity, and scaledDensity().

Referenced by scaledDensity(), and setQtThread().

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

◆ setAndroidPlatformIntegration()

void QtAndroid::setAndroidPlatformIntegration ( QAndroidPlatformIntegration * androidPlatformIntegration)

Definition at line 103 of file androidjnimain.cpp.

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

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

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

◆ setQtThread()

void QtAndroid::setQtThread ( QThread * thread)

References applicationClass(), assetManager(), assets(), availableHeightPixels(), availableWidthPixels(), pixelDensity(), scaledDensity(), setQtThread(), setViewVisibility(), topLevelWindowAt(), and windowFromId().

Referenced by setQtThread().

+ 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 183 of file androidjnimain.cpp.

References backendRegister(), and setSystemUiVisibility().

Referenced by setSystemUiVisibility(), and QAndroidPlatformWindow::updateSystemUiVisibility().

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

◆ setViewVisibility()

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

Definition at line 351 of file androidjnimain.cpp.

References m_applicationClass, setViewVisibility(), and view.

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

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

◆ topLevelWindowAt()

QWindow * QtAndroid::topLevelWindowAt ( const QPoint & globalPos)

Definition at line 125 of file androidjnimain.cpp.

References m_androidPlatformIntegration, and topLevelWindowAt().

Referenced by setQtThread(), and topLevelWindowAt().

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

◆ windowFromId()

QWindow * QtAndroid::windowFromId ( int windowId)

Definition at line 132 of file androidjnimain.cpp.

References qGuiApp, window(), and windowFromId().

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

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