![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "android/devicediscoverybroadcastreceiver_p.h"#include <QCoreApplication>#include <QtCore/QtEndian>#include <QtCore/QLoggingCategory>#include <QtBluetooth/QBluetoothAddress>#include <QtBluetooth/QBluetoothDeviceInfo>#include <QtBluetooth/QBluetoothUuid>#include "android/jni_android_p.h"#include <QtCore/QHash>#include <QtCore/qbitarray.h>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | MajorClassJavaToQtMapping |
| struct | MinorClassJavaToQtMapping |
Typedefs | |
| typedef QHash< jint, QBluetoothDeviceInfo::MajorDeviceClass > | JCachedMajorTypes |
| typedef QHash< jint, quint8 > | JCachedMinorTypes |
Functions | |
| static QBitArray | initializeMinorCaches () |
| Q_GLOBAL_STATIC_WITH_ARGS (QBitArray, initializedCacheTracker,(initializeMinorCaches())) static const char javaBluetoothDeviceClassName[] = "android/bluetooth/BluetoothDevice" | |
| QBluetoothDeviceInfo::CoreConfigurations | qtBtTypeForJavaBtType (jint javaType) |
| QBluetoothDeviceInfo::MajorDeviceClass | resolveAndroidMajorClass (jint javaType) |
| int | mappingIndexForMajor (QBluetoothDeviceInfo::MajorDeviceClass major) |
| void | triggerCachingOfMinorsForMajor (QBluetoothDeviceInfo::MajorDeviceClass major) |
| quint8 | resolveAndroidMinorClass (QBluetoothDeviceInfo::MajorDeviceClass major, jint javaMinor) |
| Q_BLUETOOTH_EXPORT void | parseScanRecord (QBluetoothDeviceInfo &info, jbyteArray scanRecord) |
Variables | |
| QT_BEGIN_NAMESPACE typedef QHash< jint, QBluetoothDeviceInfo::CoreConfigurations > | JCachedBtTypes |
| static const char | javaBluetoothClassDeviceMajorClassName [] = "android/bluetooth/BluetoothClass$Device$Major" |
| static const char | javaBluetoothClassDeviceClassName [] = "android/bluetooth/BluetoothClass$Device" |
| static const char | javaDeviceTypeClassic [] = "DEVICE_TYPE_CLASSIC" |
| static const char | javaDeviceTypeDual [] = "DEVICE_TYPE_DUAL" |
| static const char | javaDeviceTypeLE [] = "DEVICE_TYPE_LE" |
| static const char | javaDeviceTypeUnknown [] = "DEVICE_TYPE_UNKNOWN" |
| static constexpr MajorClassJavaToQtMapping | majorMappings [] |
| static constexpr quint8 | minorIndexSizes [] |
| static const MinorClassJavaToQtMapping | minorMappings [] |
| typedef QHash< jint, QBluetoothDeviceInfo::MajorDeviceClass > JCachedMajorTypes |
Definition at line 24 of file devicediscoverybroadcastreceiver.cpp.
| typedef QHash< jint, quint8 > JCachedMinorTypes |
Definition at line 27 of file devicediscoverybroadcastreceiver.cpp.
| enum ADType |
Definition at line 209 of file devicediscoverybroadcastreceiver.cpp.
| enum ADType |
Definition at line 209 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 30 of file devicediscoverybroadcastreceiver.cpp.
| int mappingIndexForMajor | ( | QBluetoothDeviceInfo::MajorDeviceClass | major | ) |
Definition at line 295 of file devicediscoverybroadcastreceiver.cpp.
| Q_BLUETOOTH_EXPORT void parseScanRecord | ( | QBluetoothDeviceInfo & | info, |
| jbyteArray | scanRecord ) |
Definition at line 413 of file devicediscoverybroadcastreceiver.cpp.
References ADType128BitUuidComplete, ADType128BitUuidIncomplete, ADType16BitUuidComplete, ADType16BitUuidIncomplete, ADType32BitUuidComplete, ADType32BitUuidIncomplete, ADTypeCompleteLocalName, ADTypeManufacturerSpecificData, ADTypeServiceData128Bit, ADTypeServiceData16Bit, ADTypeServiceData32Bit, and ADTypeShortenedLocalName.
| Q_GLOBAL_STATIC_WITH_ARGS | ( | QBitArray | , |
| initializedCacheTracker | , | ||
| (initializeMinorCaches()) | ) const = "android/bluetooth/BluetoothDevice" |
| QBluetoothDeviceInfo::CoreConfigurations qtBtTypeForJavaBtType | ( | jint | javaType | ) |
Definition at line 225 of file devicediscoverybroadcastreceiver.cpp.
| QBluetoothDeviceInfo::MajorDeviceClass resolveAndroidMajorClass | ( | jint | javaType | ) |
Definition at line 259 of file devicediscoverybroadcastreceiver.cpp.
References javaBluetoothClassDeviceMajorClassName.
| quint8 resolveAndroidMinorClass | ( | QBluetoothDeviceInfo::MajorDeviceClass | major, |
| jint | javaMinor ) |
Definition at line 327 of file devicediscoverybroadcastreceiver.cpp.
| void triggerCachingOfMinorsForMajor | ( | QBluetoothDeviceInfo::MajorDeviceClass | major | ) |
Definition at line 309 of file devicediscoverybroadcastreceiver.cpp.
References minorMappings.
|
static |
Definition at line 62 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 61 of file devicediscoverybroadcastreceiver.cpp.
Referenced by resolveAndroidMajorClass().
|
static |
Definition at line 65 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 66 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 67 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 68 of file devicediscoverybroadcastreceiver.cpp.
| QT_BEGIN_NAMESPACE typedef QHash< jint, QBluetoothDeviceInfo::CoreConfigurations > JCachedBtTypes |
Definition at line 22 of file devicediscoverybroadcastreceiver.cpp.
|
staticconstexpr |
Definition at line 77 of file devicediscoverybroadcastreceiver.cpp.
|
staticconstexpr |
Definition at line 93 of file devicediscoverybroadcastreceiver.cpp.
|
static |
Definition at line 113 of file devicediscoverybroadcastreceiver.cpp.
Referenced by triggerCachingOfMinorsForMajor().