Commit Graph

17 Commits

Author SHA1 Message Date
Andrei Emeltchenko
938a145e97 android: Fix compilation error for Android 4.2.2
On our current target the tools cannot be compiled.
2013-10-23 10:50:19 +03:00
Jerzy Kasenberg
4299561dda android: Add help to hidhost in haltest
This patch adds help to methods of hidhost interface.
This also adds tab completion for hidhost.
2013-10-22 14:11:40 +03:00
Jerzy Kasenberg
8c126ed522 android: Add calls to hidhost interface to haltest
This patch adds code so hidhost interface can be tested.
2013-10-22 14:11:38 +03:00
Jerzy Kasenberg
8d097d9055 android: Add definition of buffer sizes to haltest
This patch adds definition of sizes needed for text representation
of bluetooth address and uuid, this remove usage of magic numbers.
2013-10-22 14:11:37 +03:00
Jerzy Kasenberg
25d154a94f android: Add handling of Ctrl-c to haltest
This patch adds handling of Ctrl-C so it does not break tool.
To exit tool Ctrl-D is used on empty command line.
Ctrl-D on not empty command line works like Delete key.
2013-10-22 11:02:15 +03:00
Jerzy Kasenberg
c9f37f70db android: Add help and quit to haltest
This patch adds help and quit commands.
It also adds tab completion for commands (it used to work
for interfaces).
2013-10-21 19:07:34 +03:00
Jerzy Kasenberg
ae76520deb android: Add space in prompt in haltest
This patch makes prompt more consistent with other bluez tools.
This also fixes small issue when prompt was printed twice.
2013-10-21 19:07:32 +03:00
Jerzy Kasenberg
93b74025b5 android: Add completion for adapter to haltest
This patch adds all completion functions for adapter methods.
It also adds short help lines for all methods that require arguments.
2013-10-18 16:43:24 +03:00
Jerzy Kasenberg
4246516c87 android: Fix error in draw line in haltest tool
This fixes small error that showed up when tab completion inserted
characters before end of line.
Cursor in line was not moved correctly.
2013-10-18 16:43:21 +03:00
Jerzy Kasenberg
50fcb041aa android: Add tab completion to haltest
This patch adds tab completion to interfaces, methods and parameters
in haltest.
2013-10-18 16:43:18 +03:00
Szymon Janc
11c3ef8a93 android: Fix haltest build on Linux
On Linux HAL library is build into haltest binary and can be access
directly. Provide simple implementation of hw_get_module() that does
it.
2013-10-18 10:14:52 +03:00
Andrei Emeltchenko
d197f7f4bb android: trivial typo fix 2013-10-17 14:58:42 +03:00
Jerzy Kasenberg
f8f86dba60 android: Add calls to adapter methods in haltest
This is first code that actually calls HAL functions.
Functions defined in bt_interface_t can be executed.
2013-10-16 18:32:51 +03:00
Jerzy Kasenberg
6730aa526a android: Add text conversion helpers to haltest
Application uses a lot of text in the form of defines found in header
files to represent arguments and output.
Conversion helpers keep functionality of converting string as
bt_status_t or uuid in one place.
2013-10-16 18:32:51 +03:00
Jerzy Kasenberg
8c9d7f5362 android: Add history to line editor in haltest
Added simple history to editor to save time.
2013-10-16 18:32:51 +03:00
Jerzy Kasenberg
bc381adcc5 android: Add line editing to haltest
Android does not have readline.
This patch allows to edit command line.
2013-10-16 18:32:51 +03:00
Jerzy Kasenberg
52a529b107 android: Add haltest skeleton
This tool will be used to test Android Bluetooth HAL implementation.
2013-10-16 18:32:51 +03:00