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)
 
QtJniTypes::QtActivityDelegateBase qtActivityDelegate ()
 
QtJniTypes::QtInputDelegate qtInputDelegate ()
 
bool isQtApplication ()
 
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 ()
 
void setQtThread (QThread *thread)
 

Enumeration Type Documentation

◆ SystemUiVisibility

Enumerator
SYSTEM_UI_VISIBILITY_NORMAL 
SYSTEM_UI_VISIBILITY_FULLSCREEN 
SYSTEM_UI_VISIBILITY_TRANSLUCENT 

Definition at line 55 of file androidjnimain.h.

Function Documentation

◆ androidPlatformIntegration()

QAndroidPlatformIntegration * QtAndroid::androidPlatformIntegration ( )

Definition at line 122 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 179 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 174 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 385 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 154 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 149 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:

◆ blockEventLoopsWhenSuspended()

bool QtAndroid::blockEventLoopsWhenSuspended ( )

Definition at line 379 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 347 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 321 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 276 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 336 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 362 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:

◆ isQtApplication()

bool QtAndroid::isQtApplication ( )

Definition at line 219 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 169 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 352 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 237 of file androidjnimain.cpp.

References notifyAccessibilityLocationChange(), and qtActivityDelegate().

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 269 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 254 of file androidjnimain.cpp.

References qtActivityDelegate().

Referenced by QtAndroidAccessibility::notifyObjectFocus().

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

◆ notifyObjectHide()

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

Definition at line 242 of file androidjnimain.cpp.

References qtActivityDelegate().

Referenced by QtAndroidAccessibility::notifyObjectHide().

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

◆ notifyObjectShow()

void QtAndroid::notifyObjectShow ( uint parentObjectId)

Definition at line 248 of file androidjnimain.cpp.

References qtActivityDelegate().

Referenced by QtAndroidAccessibility::notifyObjectShow().

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

◆ notifyScrolledEvent()

void QtAndroid::notifyScrolledEvent ( uint accessibilityObjectId)

Definition at line 264 of file androidjnimain.cpp.

References qtActivityDelegate().

Referenced by QtAndroidAccessibility::notifyScrolledEvent().

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

◆ notifyValueChanged()

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

Definition at line 259 of file androidjnimain.cpp.

References qtActivityDelegate().

Referenced by QtAndroidAccessibility::notifyValueChanged().

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

◆ pixelDensity()

double QtAndroid::pixelDensity ( )

Definition at line 164 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 100 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:

◆ qtActivityDelegate()

QtJniTypes::QtActivityDelegateBase QtAndroid::qtActivityDelegate ( )

◆ qtInputDelegate()

QtJniTypes::QtInputDelegate QtAndroid::qtInputDelegate ( )

Definition at line 209 of file androidjnimain.cpp.

References m_inputDelegate, qtActivityDelegate(), and qtInputDelegate().

Referenced by QAndroidPlatformWindow::QAndroidPlatformWindow(), QtAndroidInput::getSelectHandleWidth(), QtAndroidInput::hideSoftwareKeyboard(), QtAndroidInput::isSoftwareKeyboardVisible(), qtInputDelegate(), QtAndroidInput::resetSoftwareKeyboard(), setQtThread(), QtAndroidInput::showSoftwareKeyboard(), QtAndroidInput::updateHandles(), and QtAndroidInput::updateSelection().

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

◆ qtTagText()

const char * QtAndroid::qtTagText ( )

Definition at line 357 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 159 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 105 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(), qtActivityDelegate(), qtInputDelegate(), 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 185 of file androidjnimain.cpp.

References qtActivityDelegate(), 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 370 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 127 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 134 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: