Commit Graph

45 Commits

Author SHA1 Message Date
Jerzy Kasenberg
c6c6ef6898 android/client: Add GATT server methods
This patch implements GATT server method calls.
2013-10-31 16:02:23 +02:00
Jerzy Kasenberg
5ebab55cda android/client: Add GATT server callbacks code
This patch adds callbacks code for GATT server interface.
2013-10-31 16:02:05 +02:00
Jerzy Kasenberg
5b21d9d67b android/client: Add tab completion to GATT client
This patch adds tab completion to GATT client methods.
2013-10-31 16:01:47 +02:00
Jerzy Kasenberg
ed3e26b591 android/client: Add GATT complex type parsing
This patch adds code to parse: UUID, service ID, characteristic ID,
and general hex string filed.
2013-10-31 16:01:06 +02:00
Jerzy Kasenberg
d0dbd47af8 android/client: Add GATT client method calls
This patch adds code for all GATT client methods.
2013-10-31 16:00:39 +02:00
Jerzy Kasenberg
ac77140a00 android/client: Add helper macros to verify args
This patch adds bunch of macros that will simplify
common arguments checking for methods.
2013-10-31 15:59:42 +02:00
Jerzy Kasenberg
c621c15d5e android/client: Add init/cleanup for GATT
This patch adds gatt functions code.
2013-10-31 15:59:34 +02:00
Jerzy Kasenberg
6c6e02b379 android/client: Add complex GATT type formating
This adds formating for complex types in GATT.
2013-10-31 15:58:51 +02:00
Jerzy Kasenberg
5d23d8caaf android/client: Add GATT client callbacks code
This adds callbacks code, mostly printing.
Complex formating function not implemented yet.
2013-10-31 15:58:41 +02:00
Jerzy Kasenberg
5c26c130f1 android/client: Add skeleton for GATT interface
This patch adds empty functions for all gatt methods
and callbacks.
2013-10-31 15:57:14 +02:00
Szymon Janc
c7a838af87 android/client: Don't align name property while printing
Received name property is guaranteed to be NULL terminated so there is
no need to use length specifier. This also fix really long space while
printing due to text alignment to the right.
2013-10-31 15:48:07 +02:00
Jerzy Kasenberg
3e4893a27b android/client: Fix crash in get_profile_interface
This fixes crash due to uncheck input from user.
2013-10-31 13:51:59 +02:00
Andrei Emeltchenko
a49fa76fa8 android/haltest: Fix bug when building for Android 4.2.2
Since I started to use system Android headers instead of local this
bug was found.
2013-10-31 10:53:10 +02:00
Jerzy Kasenberg
c26309164b android/client: Fix crash in tab completion
When user pressed tab on third or later argument when
first two did not make sense tool crashed.
Now method is checked for NULL before accessing help field.
2013-10-30 12:06:45 +02:00
Jerzy Kasenberg
5b5f62794e android/client: Add clear screen on Cltr-L
This patch allows to clear screen on Ctrl-L.
2013-10-28 14:57:56 +02:00
Jerzy Kasenberg
c8fea98cba android/client: Add completion for hf methods
This patch adds completion functions to handsfree methods.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
dcd6c057e0 android/client: Add code for handsfree methods
This patch adds implementation of handsfree methods to haltest.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
ff1e7c076a android/client: Add code for handsfree callbacks
This adds implementation for handsfree callbacks.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
e0895c15cd android/client: Add skeleton for handsfree calls
This patch adds skeleton for all methods of handsfree along with
all callbacks.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
9acf421380 android/client: Add processing of .haltestrc
This patch allows tool to read commands from .haltestrc.
So it is possible to call some functions that are typically used.
So user can have:
  adapter init
  adapter get_profile_interface socket
  adapter get_profile_interface pan
  adapter get_profile_interface hidhost
  adapter get_profile_interface a2dp
  pan init
  av init
2013-10-25 14:17:54 +03:00
Jerzy Kasenberg
a5383e2137 android/client: Add source command to haltest
New command allows to read script file into tool and
execute its contents as if it was typed.
2013-10-25 14:17:54 +03:00
Jerzy Kasenberg
1927259430 android/client: Fix incorrect casts of addresses
This fixes printing of addresses.
If char is set to be signed (as it should) some addresses were
printed with leading FFFFFF.
2013-10-25 13:31:44 +03:00
Jerzy Kasenberg
81e2fa91a3 android/client: Fix various coding style issues
Mostly indentation of arguments in functions and calls.
Prefix p remove from puser/penum_func.
Some empty lines added after closing } when needed.
Magic number for string length changed to preprocessor define.
Added spaces after casts.
2013-10-25 11:12:37 +03:00
Andrei Emeltchenko
4569aaf0b5 android: haltest: Enable av interface in test tool 2013-10-24 10:24:23 +03:00
Jerzy Kasenberg
e5c9c6c3b0 android: Add calls to av methods in haltest
This patch adds calls to av interface in haltest.
2013-10-23 19:34:22 +03:00
Johan Hedberg
5526825ed9 android/client: Fix various coding style issues 2013-10-23 13:04:40 +03:00
Jerzy Kasenberg
674d6fe8a5 android: Add calls to pan methods to haltest
This patch allows to call pan methods in haltest.
2013-10-23 13:00:46 +03:00
Jerzy Kasenberg
7c33cf97a3 android: Add calls to socket methods in haltest
This patch adds calls to socket methods.
2013-10-23 12:59:39 +03:00
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