Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Functions
DBTAdapter.cxx File Reference
#include "jau_direct_bt_DBTAdapter.h"
#include <jau/debug.hpp>
#include "helper_base.hpp"
#include "helper_dbt.hpp"
Include dependency graph for DBTAdapter.cxx:

Go to the source code of this file.

Classes

class  JNIAdapterStatusListener
 

Functions

static const std::string _adapterSettingsClassName ("org/direct_bt/AdapterSettings")
 
static const std::string _adapterSettingsClazzCtorArgs ("(I)V")
 
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 _scanTypeClassName ("org/direct_bt/ScanType")
 
static const std::string _scanTypeClazzGetArgs ("(B)Lorg/direct_bt/ScanType;")
 
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 _deviceClazzCtorArgs ("(JLjau/direct_bt/DBTAdapter;[BBJLjava/lang/String;)V")
 
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 _discoveringChangedMethodArgs ("(Lorg/direct_bt/BTAdapter;Lorg/direct_bt/ScanType;Lorg/direct_bt/ScanType;ZZJ)V")
 
static const std::string _deviceFoundMethodArgs ("(Lorg/direct_bt/BTDevice;J)Z")
 
static const std::string _deviceUpdatedMethodArgs ("(Lorg/direct_bt/BTDevice;Lorg/direct_bt/EIRDataTypeSet;J)V")
 
static const std::string _deviceConnectedMethodArgs ("(Lorg/direct_bt/BTDevice;SJ)V")
 
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 _deviceDisconnectedMethodArgs ("(Lorg/direct_bt/BTDevice;Lorg/direct_bt/HCIStatusCode;SJ)V")
 
jboolean Java_jau_direct_1bt_DBTAdapter_addStatusListenerImpl (JNIEnv *env, jobject obj, jobject jdeviceOwnerAndMatch, jobject statusListener)
 
jboolean Java_jau_direct_1bt_DBTAdapter_removeStatusListenerImpl (JNIEnv *env, jobject obj, jobject statusListener)
 
jint Java_jau_direct_1bt_DBTAdapter_removeAllStatusListener (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_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_removeDeviceFromWhitelistImpl (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType)
 
jstring Java_jau_direct_1bt_DBTAdapter_toStringImpl (JNIEnv *env, jobject obj)
 
void Java_jau_direct_1bt_DBTAdapter_deleteImpl (JNIEnv *env, jobject obj, jlong nativeInstance)
 
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)
 
jbyte Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl (JNIEnv *env, jobject obj, jboolean keepAlive, jboolean le_scan_active, jshort le_scan_interval, jshort le_scan_window, jbyte filter_policy)
 
jbyte Java_jau_direct_1bt_DBTAdapter_stopDiscoveryImpl (JNIEnv *env, jobject obj)
 
jobject Java_jau_direct_1bt_DBTAdapter_getDiscoveredDevicesImpl (JNIEnv *env, jobject obj)
 
jint Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDevicesImpl1 (JNIEnv *env, jobject obj)
 
jboolean Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDeviceImpl1 (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType)
 
jboolean Java_jau_direct_1bt_DBTAdapter_setPowered (JNIEnv *env, jobject obj, jboolean value)
 
jbyte Java_jau_direct_1bt_DBTAdapter_resetImpl (JNIEnv *env, jobject obj)
 
jstring Java_jau_direct_1bt_DBTAdapter_getAlias (JNIEnv *env, jobject obj)
 
void Java_jau_direct_1bt_DBTAdapter_setAlias (JNIEnv *env, jobject obj, jstring jnewalias)
 
jboolean Java_jau_direct_1bt_DBTAdapter_setDiscoverable (JNIEnv *env, jobject obj, jboolean value)
 
jobject Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl (JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType)
 
jboolean Java_jau_direct_1bt_DBTAdapter_setPairable (JNIEnv *env, jobject obj, jboolean value)
 
void Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl (JNIEnv *env, jobject obj)
 

Function Documentation

◆ _adapterSettingsChangedMethodArgs()

static const std::string _adapterSettingsChangedMethodArgs ( "(Lorg/direct_bt/BTAdapter;Lorg/direct_bt/AdapterSettings;Lorg/direct_bt/AdapterSettings;Lorg/direct_bt/AdapterSettings;J)V"  )
static
Here is the caller graph for this function:

◆ _adapterSettingsClassName()

static const std::string _adapterSettingsClassName ( "org/direct_bt/AdapterSettings"  )
static
Here is the caller graph for this function:

◆ _adapterSettingsClazzCtorArgs()

static const std::string _adapterSettingsClazzCtorArgs ( "(I)V"  )
static
Here is the caller graph for this function:

◆ _deviceClazzCtorArgs()

static const std::string _deviceClazzCtorArgs ( "(JLjau/direct_bt/DBTAdapter;[BBJLjava/lang/String;)V"  )
static
Here is the caller graph for this function:

◆ _deviceConnectedMethodArgs()

static const std::string _deviceConnectedMethodArgs ( "(Lorg/direct_bt/BTDevice;SJ)V"  )
static
Here is the caller graph for this function:

◆ _deviceDisconnectedMethodArgs()

static const std::string _deviceDisconnectedMethodArgs ( "(Lorg/direct_bt/BTDevice;Lorg/direct_bt/HCIStatusCode;SJ)V"  )
static
Here is the caller graph for this function:

◆ _deviceFoundMethodArgs()

static const std::string _deviceFoundMethodArgs ( "(Lorg/direct_bt/BTDevice;J)Z"  )
static
Here is the caller graph for this function:

◆ _devicePairingStateMethodArgs()

static const std::string _devicePairingStateMethodArgs ( "(Lorg/direct_bt/BTDevice;Lorg/direct_bt/SMPPairingState;Lorg/direct_bt/PairingMode;J)V"  )
static
Here is the caller graph for this function:

◆ _deviceReadyMethodArgs()

static const std::string _deviceReadyMethodArgs ( "(Lorg/direct_bt/BTDevice;J)V"  )
static
Here is the caller graph for this function:

◆ _deviceUpdatedMethodArgs()

static const std::string _deviceUpdatedMethodArgs ( "(Lorg/direct_bt/BTDevice;Lorg/direct_bt/EIRDataTypeSet;J)V"  )
static
Here is the caller graph for this function:

◆ _discoveringChangedMethodArgs()

static const std::string _discoveringChangedMethodArgs ( "(Lorg/direct_bt/BTAdapter;Lorg/direct_bt/ScanType;Lorg/direct_bt/ScanType;ZZJ)V"  )
static
Here is the caller graph for this function:

◆ _eirDataTypeSetClassName()

static const std::string _eirDataTypeSetClassName ( "org/direct_bt/EIRDataTypeSet"  )
static
Here is the caller graph for this function:

◆ _eirDataTypeSetClazzCtorArgs()

static const std::string _eirDataTypeSetClazzCtorArgs ( "(I)V"  )
static
Here is the caller graph for this function:

◆ _hciStatusCodeClassName()

static const std::string _hciStatusCodeClassName ( "org/direct_bt/HCIStatusCode )
static
Here is the caller graph for this function:

◆ _hciStatusCodeClazzGetArgs()

static const std::string _hciStatusCodeClazzGetArgs ( "(B)Lorg/direct_bt/HCIStatusCode;"  )
static
Here is the caller graph for this function:

◆ _pairingModeClassName()

static const std::string _pairingModeClassName ( "org/direct_bt/PairingMode )
static
Here is the caller graph for this function:

◆ _pairingModeClazzGetArgs()

static const std::string _pairingModeClazzGetArgs ( "(B)Lorg/direct_bt/PairingMode;"  )
static
Here is the caller graph for this function:

◆ _pairingStateClassName()

static const std::string _pairingStateClassName ( "org/direct_bt/SMPPairingState )
static
Here is the caller graph for this function:

◆ _pairingStateClazzGetArgs()

static const std::string _pairingStateClazzGetArgs ( "(B)Lorg/direct_bt/SMPPairingState;"  )
static
Here is the caller graph for this function:

◆ _scanTypeClassName()

static const std::string _scanTypeClassName ( "org/direct_bt/ScanType )
static
Here is the caller graph for this function:

◆ _scanTypeClazzGetArgs()

static const std::string _scanTypeClazzGetArgs ( "(B)Lorg/direct_bt/ScanType;"  )
static
Here is the caller graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl1()

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 625 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl2()

jboolean Java_jau_direct_1bt_DBTAdapter_addDeviceToWhitelistImpl2 ( JNIEnv *  env,
jobject  obj,
jbyteArray  jaddress,
jbyte  jaddressType,
int  jctype 
)

Definition at line 655 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_addStatusListenerImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_addStatusListenerImpl ( JNIEnv *  env,
jobject  obj,
jobject  jdeviceOwnerAndMatch,
jobject  statusListener 
)

Definition at line 495 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl()

jobject Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl ( JNIEnv *  env,
jobject  obj,
jbyteArray  jaddress,
jbyte  jaddressType 
)

Definition at line 903 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_deleteImpl()

void Java_jau_direct_1bt_DBTAdapter_deleteImpl ( JNIEnv *  env,
jobject  obj,
jlong  nativeInstance 
)

Definition at line 721 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_getAlias()

jstring Java_jau_direct_1bt_DBTAdapter_getAlias ( JNIEnv *  env,
jobject  obj 
)

Definition at line 870 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_getDiscoveredDevicesImpl()

jobject Java_jau_direct_1bt_DBTAdapter_getDiscoveredDevicesImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 792 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_isDeviceWhitelisted()

jboolean Java_jau_direct_1bt_DBTAdapter_isDeviceWhitelisted ( JNIEnv *  env,
jobject  obj,
jbyteArray  jaddress,
jbyte  jaddressType 
)

Definition at line 599 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_isPoweredImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_isPoweredImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 735 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_isSuspendedImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_isSuspendedImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 746 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_isValidImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_isValidImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 757 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl()

void Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 955 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_removeAllStatusListener()

jint Java_jau_direct_1bt_DBTAdapter_removeAllStatusListener ( JNIEnv *  env,
jobject  obj 
)

Definition at line 587 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_removeDeviceFromWhitelistImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_removeDeviceFromWhitelistImpl ( JNIEnv *  env,
jobject  obj,
jbyteArray  jaddress,
jbyte  jaddressType 
)

Definition at line 683 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDeviceImpl1()

jboolean Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDeviceImpl1 ( JNIEnv *  env,
jobject  obj,
jbyteArray  jaddress,
jbyte  jaddressType 
)

Definition at line 815 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDevicesImpl1()

jint Java_jau_direct_1bt_DBTAdapter_removeDiscoveredDevicesImpl1 ( JNIEnv *  env,
jobject  obj 
)

Definition at line 804 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_removeStatusListenerImpl()

jboolean Java_jau_direct_1bt_DBTAdapter_removeStatusListenerImpl ( JNIEnv *  env,
jobject  obj,
jobject  statusListener 
)

Definition at line 553 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_resetImpl()

jbyte Java_jau_direct_1bt_DBTAdapter_resetImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 858 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_setAlias()

void Java_jau_direct_1bt_DBTAdapter_setAlias ( JNIEnv *  env,
jobject  obj,
jstring  jnewalias 
)

Definition at line 881 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_setDiscoverable()

jboolean Java_jau_direct_1bt_DBTAdapter_setDiscoverable ( JNIEnv *  env,
jobject  obj,
jboolean  value 
)

Definition at line 892 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_setPairable()

jboolean Java_jau_direct_1bt_DBTAdapter_setPairable ( JNIEnv *  env,
jobject  obj,
jboolean  value 
)

Definition at line 944 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_setPowered()

jboolean Java_jau_direct_1bt_DBTAdapter_setPowered ( JNIEnv *  env,
jobject  obj,
jboolean  value 
)

Definition at line 847 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl()

jbyte Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl ( JNIEnv *  env,
jobject  obj,
jboolean  keepAlive,
jboolean  le_scan_active,
jshort  le_scan_interval,
jshort  le_scan_window,
jbyte  filter_policy 
)

Definition at line 768 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_stopDiscoveryImpl()

jbyte Java_jau_direct_1bt_DBTAdapter_stopDiscoveryImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 781 of file DBTAdapter.cxx.

Here is the call graph for this function:

◆ Java_jau_direct_1bt_DBTAdapter_toStringImpl()

jstring Java_jau_direct_1bt_DBTAdapter_toStringImpl ( JNIEnv *  env,
jobject  obj 
)

Definition at line 710 of file DBTAdapter.cxx.

Here is the call graph for this function: