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
qjniobject.cpp File Reference

(8473b9ad1997fa61882f540ad87bd4b4a671f926)

#include "qjniobject.h"
#include "qjnihelpers_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qhash.h>
#include <QtCore/qreadwritelock.h>
#include <QtCore/qloggingcategory.h>
+ Include dependency graph for qjniobject.cpp:

Go to the source code of this file.

Classes

class  QJniObjectPrivate
 

Typedefs

typedef QHash< QByteArray, jclass > JClassHash
 
typedef QHash< QByteArray, jmethodID > JMethodIDHash
 
typedef QHash< QByteArray, jfieldID > JFieldIDHash
 

Functions

template<typename ... Args>
static QByteArray cacheKey (Args &&...args)
 
static jclass getCachedClass (const QByteArray &className)
 
static QJniObject getCleanJniObject (jobject object, JNIEnv *env)
 

Typedef Documentation

◆ JClassHash

typedef QHash<QByteArray, jclass> JClassHash

Definition at line 329 of file qjniobject.cpp.

◆ JFieldIDHash

typedef QHash<QByteArray, jfieldID> JFieldIDHash

Definition at line 494 of file qjniobject.cpp.

◆ JMethodIDHash

typedef QHash<QByteArray, jmethodID> JMethodIDHash

Definition at line 428 of file qjniobject.cpp.

Function Documentation

◆ cacheKey()

template<typename ... Args>
static QByteArray cacheKey ( Args &&... args)
inlinestatic

Definition at line 324 of file qjniobject.cpp.

References args.

Referenced by QTextHtmlParserNode::applyForegroundImage(), QNetworkAccessAuthenticationManager::cacheCredentials(), QNetworkAccessAuthenticationManager::cacheProxyCredentials(), QRhiD3D11::compileHlslShaderSource(), QGles2GraphicsPipeline::create(), QGles2ComputePipeline::create(), QWindowsOleDropSource::createCursors(), QDirectFbBlitter::drawCachedGlyphs(), QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), fallbacksForFamily(), QNetworkAccessAuthenticationManager::fetchCachedCredentials(), QNetworkAccessAuthenticationManager::fetchCachedProxyCredentials(), QCommonStylePrivate::iconFromMacTheme(), QPMCache::insert(), QOpenGLShaderProgramPrivate::linkBinary(), QOpenGLProgramBinaryCache::load(), QSSGShaderCache::newPipelineFromPregenerated(), PixmapEntry::pixmap(), QWindowsCursor::pixmapWindowCursor(), QPMCache::remove(), QOpenGLProgramBinaryCache::save(), QAppleIconEngine::scaledPixmap(), QAndroidPlatformIconEngine::scaledPixmap(), QWindowsIconEngine::scaledPixmap(), QRhiD3D11::setPipelineCacheData(), QQC2::QCommonStyle::standardIcon(), QSSGShaderCache::tryGetRhiShaderPipeline(), QRhiGles2::tryLoadFromDiskOrPipelineCache(), QSSGShaderCache::tryNewPipelineFromPersistentCache(), QRhiGles2::trySaveToDiskCache(), QRhiGles2::trySaveToPipelineCache(), QT_BEGIN_NAMESPACE::QSGCurveFillMaterialShader::updateSampledImage(), QQuickShapeLinearGradientRhiShader::updateSampledImage(), QQuickShapeRadialGradientRhiShader::updateSampledImage(), and QQuickShapeConicalGradientRhiShader::updateSampledImage().

+ Here is the caller graph for this function:

◆ getCachedClass()

static jclass getCachedClass ( const QByteArray & className)
static

Definition at line 333 of file qjniobject.cpp.

References className, QSet< T >::constEnd(), QSet< T >::constFind(), and it.

Referenced by QtAndroidPrivate::findClass().

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

◆ getCleanJniObject()

static QJniObject getCleanJniObject ( jobject object,
JNIEnv * env )
static

Get a JNI object from a jobject variant and do the necessary exception clearing and delete the local reference before returning. The JNI object can be null if there was an exception.

Definition at line 347 of file qjniobject.cpp.