Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
#include "org_direct_bt_AdapterStatusListener.h"
#include "jau_direct_bt_DBTAdapter.h"
#include <jau/debug.hpp>
#include "helper_base.hpp"
#include "helper_dbt.hpp"
#include "direct_bt/BTAdapter.hpp"
#include "direct_bt/BTManager.hpp"
Go to the source code of this file.
Classes | |
class | JNIAdapterStatusListener |
Functions | |
static const std::string | _adapterSettingsChangedMethodArgs ("(Lorg/direct_bt/BTAdapter;Lorg/direct_bt/AdapterSettings;Lorg/direct_bt/AdapterSettings;Lorg/direct_bt/AdapterSettings;J)V") |
static const std::string | _adapterSettingsClassName ("org/direct_bt/AdapterSettings") |
static const std::string | _adapterSettingsClazzCtorArgs ("(I)V") |
static const std::string | _deviceClazzCtorArgs ("(JLjau/direct_bt/DBTAdapter;[BBJLjava/lang/String;)V") |
static const std::string | _deviceConnectedMethodArgs ("(Lorg/direct_bt/BTDevice;ZJ)V") |
static const std::string | _deviceDisconnectedMethodArgs ("(Lorg/direct_bt/BTDevice;Lorg/direct_bt/HCIStatusCode;SJ)V") |
static const std::string | _deviceFoundMethodArgs ("(Lorg/direct_bt/BTDevice;J)Z") |
static const std::string | _devicePairingStateMethodArgs ("(Lorg/direct_bt/BTDevice;Lorg/direct_bt/SMPPairingState;Lorg/direct_bt/PairingMode;J)V") |
static const std::string | _deviceReadyMethodArgs ("(Lorg/direct_bt/BTDevice;J)V") |
static const std::string | _deviceUpdatedMethodArgs ("(Lorg/direct_bt/BTDevice;Lorg/direct_bt/EIRDataTypeSet;J)V") |
static const std::string | _discoveringChangedMethodArgs ("(Lorg/direct_bt/BTAdapter;Lorg/direct_bt/ScanType;Lorg/direct_bt/ScanType;ZLorg/direct_bt/DiscoveryPolicy;J)V") |
static const std::string | _discoveryPolicyClassName ("org/direct_bt/DiscoveryPolicy") |
static const std::string | _discoveryPolicyClazzGetArgs ("(B)Lorg/direct_bt/DiscoveryPolicy;") |
static const std::string | _eirDataTypeSetClassName ("org/direct_bt/EIRDataTypeSet") |
static const std::string | _eirDataTypeSetClazzCtorArgs ("(I)V") |
static const std::string | _hciStatusCodeClassName ("org/direct_bt/HCIStatusCode") |
static const std::string | _hciStatusCodeClazzGetArgs ("(B)Lorg/direct_bt/HCIStatusCode;") |
static const std::string | _pairingModeClassName ("org/direct_bt/PairingMode") |
static const std::string | _pairingModeClazzGetArgs ("(B)Lorg/direct_bt/PairingMode;") |
static const std::string | _pairingStateClassName ("org/direct_bt/SMPPairingState") |
static const std::string | _pairingStateClazzGetArgs ("(B)Lorg/direct_bt/SMPPairingState;") |
static const std::string | _scanTypeClassName ("org/direct_bt/ScanType") |
static const std::string | _scanTypeClazzGetArgs ("(B)Lorg/direct_bt/ScanType;") |
jboolean | Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl1 (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType, int jctype, jshort min_interval, jshort max_interval, jshort latency, jshort timeout) |
jboolean | Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl2 (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType, int jctype) |
jboolean | Java_jau_direct_1bt_DBTAdapter_addStatusListenerImpl (JNIEnv *env, jobject obj, jobject jdeviceOwnerAndMatch, jobject jstatusListener) |
jobject | Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType) |
void | Java_jau_direct_1bt_DBTAdapter_deleteImpl (JNIEnv *env, jobject obj, jlong nativeInstance) |
jint | Java_jau_direct_1bt_DBTAdapter_getBTMajorVersion (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_getBTModeImpl (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_getCurrentDiscoveryPolicyImpl (JNIEnv *env, jobject obj) |
jobject | Java_jau_direct_1bt_DBTAdapter_getDiscoveredDevicesImpl (JNIEnv *env, jobject obj) |
jlong | Java_jau_direct_1bt_DBTAdapter_getLEFeaturesImpl (JNIEnv *env, jobject obj) |
jstring | Java_jau_direct_1bt_DBTAdapter_getNameImpl (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_getRoleImpl (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_getSecureConnectionsEnabled (JNIEnv *env, jobject obj) |
jstring | Java_jau_direct_1bt_DBTAdapter_getShortNameImpl (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_initializeImpl (JNIEnv *env, jobject obj, jbyte jbtMode, jboolean powerOn) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isAdvertising (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isDeviceWhitelisted (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isInitialized (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isPoweredImpl (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isSuspendedImpl (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_isValidImpl (JNIEnv *env, jobject obj) |
void | Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl (JNIEnv *env, jobject obj) |
jint | Java_jau_direct_1bt_DBTAdapter_removeAllStatusListenerImpl (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_removeDeviceFromWhitelistImpl (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType) |
jboolean | Java_jau_direct_1bt_DBTAdapter_removeDevicePausingDiscovery (JNIEnv *env, jobject obj, jobject jdevice) |
jboolean | Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDeviceImpl1 (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType) |
jint | Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDevicesImpl1 (JNIEnv *env, jobject obj) |
jboolean | Java_jau_direct_1bt_DBTAdapter_removeStatusListenerImpl (JNIEnv *env, jobject obj, jobject jstatusListener) |
jbyte | Java_jau_direct_1bt_DBTAdapter_resetImpl (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_setDefaultConnParamImpl (JNIEnv *env, jobject obj, jshort conn_interval_min, jshort conn_interval_max, jshort conn_latency, jshort supervision_timeout) |
jbyte | Java_jau_direct_1bt_DBTAdapter_setDefaultLE_1PHYImpl (JNIEnv *env, jobject obj, jbyte jTx, jbyte jRx) |
jbyte | Java_jau_direct_1bt_DBTAdapter_setNameImpl (JNIEnv *env, jobject obj, jstring jname, jstring jshort_name) |
jboolean | Java_jau_direct_1bt_DBTAdapter_setPowered (JNIEnv *env, jobject obj, jboolean power_on) |
jbyte | Java_jau_direct_1bt_DBTAdapter_setPrivacyImpl (JNIEnv *env, jobject obj, jboolean enable) |
jbyte | Java_jau_direct_1bt_DBTAdapter_setSecureConnectionsImpl (JNIEnv *env, jobject obj, jboolean enable) |
void | Java_jau_direct_1bt_DBTAdapter_setServerConnSecurityImpl (JNIEnv *env, jobject obj, jbyte jsec_level, jbyte jio_cap) |
void | Java_jau_direct_1bt_DBTAdapter_setSMPKeyPath (JNIEnv *env, jobject obj, jstring jpath) |
jbyte | Java_jau_direct_1bt_DBTAdapter_startAdvertising1Impl (JNIEnv *env, jobject obj, jobject jgattServerData, jobject jeir, jint jadv_mask, jint jscanrsp_mask, jshort adv_interval_min, jshort adv_interval_max, jbyte jadv_type, jbyte adv_chan_map, jbyte filter_policy) |
jbyte | Java_jau_direct_1bt_DBTAdapter_startAdvertising2Impl (JNIEnv *env, jobject obj, jobject jgattServerData, jshort adv_interval_min, jshort adv_interval_max, jbyte jadv_type, jbyte adv_chan_map, jbyte filter_policy) |
jbyte | Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl (JNIEnv *env, jobject obj, jobject jgattServerData, jbyte policy, jboolean le_scan_active, jshort le_scan_interval, jshort le_scan_window, jbyte filter_policy, jboolean filter_dup) |
jbyte | Java_jau_direct_1bt_DBTAdapter_stopAdvertisingImpl (JNIEnv *env, jobject obj) |
jbyte | Java_jau_direct_1bt_DBTAdapter_stopDiscoveryImpl (JNIEnv *env, jobject obj) |
jstring | Java_jau_direct_1bt_DBTAdapter_toStringImpl (JNIEnv *env, jobject obj) |
jlong | Java_org_direct_1bt_AdapterStatusListener_ctorImpl (JNIEnv *env, jobject obj) |
void | Java_org_direct_1bt_AdapterStatusListener_deleteImpl (JNIEnv *env, jobject obj, jlong nativeInstance) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
jlong Java_org_direct_1bt_AdapterStatusListener_ctorImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 434 of file DBTAdapter.cxx.
void Java_org_direct_1bt_AdapterStatusListener_deleteImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | nativeInstance | ||
) |
Definition at line 452 of file DBTAdapter.cxx.
void Java_jau_direct_1bt_DBTAdapter_deleteImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | nativeInstance | ||
) |
Definition at line 465 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_addStatusListenerImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jdeviceOwnerAndMatch, | ||
jobject | jstatusListener | ||
) |
Definition at line 487 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_removeStatusListenerImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jstatusListener | ||
) |
Definition at line 519 of file DBTAdapter.cxx.
jint Java_jau_direct_1bt_DBTAdapter_removeAllStatusListenerImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 541 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isDeviceWhitelisted | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType | ||
) |
Definition at line 553 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl1 | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType, | ||
int | jctype, | ||
jshort | min_interval, | ||
jshort | max_interval, | ||
jshort | latency, | ||
jshort | timeout | ||
) |
Definition at line 580 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl2 | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType, | ||
int | jctype | ||
) |
Definition at line 611 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_removeDeviceFromWhitelistImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType | ||
) |
Definition at line 640 of file DBTAdapter.cxx.
jstring Java_jau_direct_1bt_DBTAdapter_toStringImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 668 of file DBTAdapter.cxx.
jint Java_jau_direct_1bt_DBTAdapter_getBTMajorVersion | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 681 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isPoweredImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 695 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isSuspendedImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 709 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isValidImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 723 of file DBTAdapter.cxx.
jlong Java_jau_direct_1bt_DBTAdapter_getLEFeaturesImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 737 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jgattServerData, | ||
jbyte | policy, | ||
jboolean | le_scan_active, | ||
jshort | le_scan_interval, | ||
jshort | le_scan_window, | ||
jbyte | filter_policy, | ||
jboolean | filter_dup | ||
) |
Definition at line 751 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_stopDiscoveryImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 774 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_getCurrentDiscoveryPolicyImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 788 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_removeDevicePausingDiscovery | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jdevice | ||
) |
Definition at line 802 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_getRoleImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 819 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_getBTModeImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 833 of file DBTAdapter.cxx.
jobject Java_jau_direct_1bt_DBTAdapter_getDiscoveredDevicesImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 847 of file DBTAdapter.cxx.
jint Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDevicesImpl1 | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 862 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDeviceImpl1 | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType | ||
) |
Definition at line 876 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_setPowered | ( | JNIEnv * | env, |
jobject | obj, | ||
jboolean | power_on | ||
) |
Definition at line 909 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_setPrivacyImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jboolean | enable | ||
) |
Definition at line 922 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_getSecureConnectionsEnabled | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 936 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_setSecureConnectionsImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jboolean | enable | ||
) |
Definition at line 949 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_setDefaultConnParamImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jshort | conn_interval_min, | ||
jshort | conn_interval_max, | ||
jshort | conn_latency, | ||
jshort | supervision_timeout | ||
) |
Definition at line 963 of file DBTAdapter.cxx.
void Java_jau_direct_1bt_DBTAdapter_setServerConnSecurityImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyte | jsec_level, | ||
jbyte | jio_cap | ||
) |
Definition at line 982 of file DBTAdapter.cxx.
void Java_jau_direct_1bt_DBTAdapter_setSMPKeyPath | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | jpath | ||
) |
Definition at line 995 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_initializeImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyte | jbtMode, | ||
jboolean | powerOn | ||
) |
Definition at line 1008 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isInitialized | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1023 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_resetImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1036 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_setDefaultLE_1PHYImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyte | jTx, | ||
jbyte | jRx | ||
) |
Definition at line 1050 of file DBTAdapter.cxx.
jstring Java_jau_direct_1bt_DBTAdapter_getNameImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1067 of file DBTAdapter.cxx.
jstring Java_jau_direct_1bt_DBTAdapter_getShortNameImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1080 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_setNameImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | jname, | ||
jstring | jshort_name | ||
) |
Definition at line 1093 of file DBTAdapter.cxx.
jobject Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl | ( | JNIEnv * | env, |
jobject | obj, | ||
jbyteArray | jaddress, | ||
jbyte | jaddressType | ||
) |
Definition at line 1108 of file DBTAdapter.cxx.
void Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1150 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_startAdvertising1Impl | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jgattServerData, | ||
jobject | jeir, | ||
jint | jadv_mask, | ||
jint | jscanrsp_mask, | ||
jshort | adv_interval_min, | ||
jshort | adv_interval_max, | ||
jbyte | jadv_type, | ||
jbyte | adv_chan_map, | ||
jbyte | filter_policy | ||
) |
Definition at line 1162 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_startAdvertising2Impl | ( | JNIEnv * | env, |
jobject | obj, | ||
jobject | jgattServerData, | ||
jshort | adv_interval_min, | ||
jshort | adv_interval_max, | ||
jbyte | jadv_type, | ||
jbyte | adv_chan_map, | ||
jbyte | filter_policy | ||
) |
Definition at line 1189 of file DBTAdapter.cxx.
jbyte Java_jau_direct_1bt_DBTAdapter_stopAdvertisingImpl | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1210 of file DBTAdapter.cxx.
jboolean Java_jau_direct_1bt_DBTAdapter_isAdvertising | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 1224 of file DBTAdapter.cxx.