aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/BluetoothManager.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Java Refactory: Expose intefaces via org.tinyb.* and D-Bus implementation ↵Sven Gothel2020-02-091-477/+0
| | | | | | | | | | | | | | | | | | | | via tinyb.dbus.* Allows alternative interface implementations and delegated wrapper implementations for debug and tracing. Original D-Bus implementation can be retrieved via: 'BluetoothManager org.tinyb.BluetoothFactory.getDBusBluetoothManager()' A HCI native implementation will follow up w/o use of D-Bus. Otherwise the Java API is unchanged and this tinyb can replace previous implementation. Due to the major API change (despite interface is unchanged but BluetoothManager instantiation) the jar file has been renamed from 'tinyb.jar' to 'tinyb2.jar'. Same goes with the version number, which will be set to 'v2.0.0'. The native library and class definition is kept unchanged using the original names so far.
* BluetoothManager: Expose native get_default_adapter() to java as ↵Sven Gothel2020-02-011-0/+30
| | | | | | | getDefaultAdapter() Notable: manager.stopDiscovery() doesn't lead to !manager.getDiscovering() (radio silence). Only manager.getDefaultAdapter().stopDiscovery() worked.
* Added Java method BluetoothManager::getDiscovering()Misterioso2017-10-031-0/+19
| | | | | Added a method to check if a discovery process is running directly from the BluetoothManager (completion to startDiscovery and stopDiscovery). Signed-off-by: Jorge Esteves <[email protected]>
* java: jni: Fix other typos in JNI codePetre Eftime2016-05-311-2/+2
| | | | Signed-off-by: Petre Eftime <[email protected]>
* c++, java: Add BluetoothException, throw it on DBus or BlueZ errorPetre Eftime2016-05-231-0/+28
| | | | Signed-off-by: Petre Eftime <[email protected]>
* java: throw exceptions from JNI to JavaPetre Eftime2016-05-101-147/+297
| | | | Signed-off-by: Petre Eftime <[email protected]>
* Add functions to retrieve version information. Check library versions in ↵Petre Eftime2016-05-041-0/+7
| | | | | | getBluetoothManager. Signed-off-by: Petre Eftime <[email protected]>
* jni: clean up allocated strings after getObject_setterPetre Eftime2016-03-071-0/+12
| | | | Signed-off-by: Petre Eftime <[email protected]>
* java: Add find methods to classes, add AsyncTinyB examplePetre Eftime2016-03-071-0/+36
| | | | Signed-off-by: Petre Eftime <[email protected]>
* jni: Fix reference to stack object in getObject_setterPetre Eftime2016-03-071-2/+2
| | | | Signed-off-by: Petre Eftime <[email protected]>
* Better handling of default adapter and initializationPetre Eftime2016-02-291-4/+3
| | | | Signed-off-by: Petre Eftime <[email protected]>
* jni: Implemented getObject* functions and added defensive checksAndrei Vasiliu2016-02-041-18/+83
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* Fix Java package runtime mismatchPetre Eftime2016-01-271-4/+1
| | | | Signed-off-by: Petre Eftime <[email protected]>
* java: Created Java package tinybAndrei Vasiliu2016-01-251-12/+12
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* Java: Added copyright headerAndrei Vasiliu2016-01-131-0/+24
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* Java: Added Java APIAndrei Vasiliu2016-01-121-0/+110
Signed-off-by: Andrei Vasiliu <[email protected]>