![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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.
Macros | |
| #define | FIND_AND_CHECK_CLASS(CLASS_NAME) |
| #define | LEHUB_SCOPED_METHOD(Method) |
Functions | |
| Q_GLOBAL_STATIC (QMutex, stringCacheMutex) | |
| QString | valueFromStaticFieldCache (const char *keykey, 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 bufferbuffer, 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 *) |
Variables | |
| QT_BEGIN_NAMESPACE typedef QHash< QByteArray, QString > | JCachedStringFields |
| static const char | logTag [] = "QtBluetooth" |
| static const char | classErrorMsg [] = "Can't find class \"%s\"" |
| #define FIND_AND_CHECK_CLASS | ( | CLASS_NAME | ) |
Definition at line 99 of file jni_android.cpp.
| #define LEHUB_SCOPED_METHOD | ( | Method | ) |
Definition at line 107 of file jni_android.cpp.
| QT_END_NAMESPACE Q_BLUETOOTH_EXPORT jint JNICALL JNI_OnLoad | ( | JavaVM * | vm, |
| void * | ) |
Definition at line 191 of file jni_android.cpp.
| Q_GLOBAL_STATIC | ( | QMutex | , |
| stringCacheMutex | ) |
|
static |
Definition at line 69 of file jni_android.cpp.
References InputStreamThread::javaThreadErrorOccurred().
|
static |
Definition at line 76 of file jni_android.cpp.
| void QtBluetoothLE_leScanResult | ( | JNIEnv * | env, |
| jobject | , | ||
| jlong | qtObject, | ||
| QtJniTypes::BluetoothDevice | bluetoothDevice, | ||
| jint | rssi, | ||
| jbyteArray | scanRecord ) |
Definition at line 83 of file jni_android.cpp.
|
static |
Definition at line 55 of file jni_android.cpp.
References ServerAcceptanceThread::javaThreadErrorOccurred().
|
static |
Definition at line 62 of file jni_android.cpp.
| void QtBroadcastReceiver_jniOnReceive | ( | JNIEnv * | env, |
| jobject | , | ||
| jlong | qtObject, | ||
| QtJniTypes::Context | context, | ||
| QtJniTypes::Intent | intent ) |
Definition at line 47 of file jni_android.cpp.
|
static |
Definition at line 109 of file jni_android.cpp.
References logTag.
| QString valueFromStaticFieldCache | ( | const char * | key, |
| const char * | className, | ||
| const char * | fieldName ) |
Definition at line 27 of file jni_android.cpp.
|
static |
Definition at line 97 of file jni_android.cpp.
| QT_BEGIN_NAMESPACE typedef QHash< QByteArray, QString > JCachedStringFields |
Definition at line 19 of file jni_android.cpp.
|
static |
Definition at line 96 of file jni_android.cpp.
Referenced by registerNatives().