(5cf2538b91188b7fc4beb3bee004eaac83f20cb4)
#include <jni.h>
#include <android/log.h>
#include <QtCore/QLoggingCategory>
#include <QtBluetooth/qtbluetoothglobal.h>
#include "android/jni_android_p.h"
#include "android/androidbroadcastreceiver_p.h"
#include "android/serveracceptancethread_p.h"
#include "android/inputstreamthread_p.h"
#include "android/lowenergynotificationhub_p.h"
Go to the source code of this file.
|
| | Q_GLOBAL_STATIC (QMutex, stringCacheMutex) |
| QString | valueFromStaticFieldCache (const char *key, const char *className, const char *fieldName) |
| void | QtBroadcastReceiver_jniOnReceive (JNIEnv *env, jobject, jlong qtObject, QtJniTypes::Context context, QtJniTypes::Intent intent) |
| static void | QtBluetoothSocketServer_errorOccurred (JNIEnv *, jobject, jlong qtObject, jint errorCode) |
| static void | QtBluetoothSocketServer_newSocket (JNIEnv *, jobject, jlong qtObject, QtJniTypes::BluetoothSocket socket) |
| static void | QtBluetoothInputStreamThread_errorOccurred (JNIEnv *, jobject, jlong qtObject, jint errorCode) |
| static void | QtBluetoothInputStreamThread_readyData (JNIEnv *, jobject, jlong qtObject, jbyteArray buffer, jint bufferLength) |
| void | QtBluetoothLE_leScanResult (JNIEnv *env, jobject, jlong qtObject, QtJniTypes::BluetoothDevice bluetoothDevice, jint rssi, jbyteArray scanRecord) |
| static bool | registerNatives () |
| QT_END_NAMESPACE Q_BLUETOOTH_EXPORT jint JNICALL | JNI_OnLoad (JavaVM *vm, void *) |
◆ FIND_AND_CHECK_CLASS
| #define FIND_AND_CHECK_CLASS |
( |
| CLASS_NAME | ) |
|
Value:clazz = env.findClass<CLASS_NAME>(); \
if (!clazz) { \
QtJniTypes::Traits<CLASS_NAME>::className().
data()); \
return JNI_FALSE; \
} \
static const char classErrorMsg[]
static const char logTag[]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
Definition at line 99 of file jni_android.cpp.
◆ LEHUB_SCOPED_METHOD
| #define LEHUB_SCOPED_METHOD |
( |
| Method | ) |
|
◆ JNI_OnLoad()
◆ Q_GLOBAL_STATIC()
| Q_GLOBAL_STATIC |
( |
QMutex | , |
|
|
stringCacheMutex | ) |
◆ QtBluetoothInputStreamThread_errorOccurred()
| void QtBluetoothInputStreamThread_errorOccurred |
( |
JNIEnv * | , |
|
|
jobject | , |
|
|
jlong | qtObject, |
|
|
jint | errorCode ) |
|
static |
◆ QtBluetoothInputStreamThread_readyData()
| void QtBluetoothInputStreamThread_readyData |
( |
JNIEnv * | , |
|
|
jobject | , |
|
|
jlong | qtObject, |
|
|
jbyteArray | buffer, |
|
|
jint | bufferLength ) |
|
static |
◆ QtBluetoothLE_leScanResult()
◆ QtBluetoothSocketServer_errorOccurred()
| void QtBluetoothSocketServer_errorOccurred |
( |
JNIEnv * | , |
|
|
jobject | , |
|
|
jlong | qtObject, |
|
|
jint | errorCode ) |
|
static |
◆ QtBluetoothSocketServer_newSocket()
| void QtBluetoothSocketServer_newSocket |
( |
JNIEnv * | , |
|
|
jobject | , |
|
|
jlong | qtObject, |
|
|
QtJniTypes::BluetoothSocket | socket ) |
|
static |
◆ QtBroadcastReceiver_jniOnReceive()
| void QtBroadcastReceiver_jniOnReceive |
( |
JNIEnv * | env, |
|
|
jobject | , |
|
|
jlong | qtObject, |
|
|
QtJniTypes::Context | context, |
|
|
QtJniTypes::Intent | intent ) |
◆ registerNatives()
◆ valueFromStaticFieldCache()
| QString valueFromStaticFieldCache |
( |
const char * | key, |
|
|
const char * | className, |
|
|
const char * | fieldName ) |
◆ classErrorMsg
| const char classErrorMsg = "Can't find class \"%s\"" |
|
static |
◆ JCachedStringFields
◆ logTag
| const char logTag = "QtBluetooth" |
|
static |