Commit Graph

28 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
348b5af247 android: Fix non-ANSI function declaration 2014-07-03 11:41:05 +03:00
Luiz Augusto von Dentz
697110ce07 android: Fix using plain integer as NULL pointer 2014-07-03 11:41:05 +03:00
Szymon Janc
7b78c20b7e android/hal-ipc: Pass FD to notification handlers 2014-06-12 13:04:31 +02:00
Szymon Janc
cfc9452c0b android/hal-pan: Use compact syntax for event handlers 2014-06-10 14:56:29 +02:00
Szymon Janc
7a2d604673 android: Make multi-line comments style consistent
Use common style for multi-line comments consistent with rest of
codebase.
2014-04-29 13:31:00 +02:00
Szymon Janc
412f893256 android/hal: Update services register commands with mode parameter 2014-03-04 10:18:27 +01:00
Szymon Janc
95db67e01f android/hal-pan: Fix empty parameters list in functio definition 2014-02-28 19:08:49 +01:00
Szymon Janc
dd5a24fd35 android/hal-pan: Fix using wrong structure in pan_cleanup 2014-02-28 19:07:37 +01:00
Ravi kumar Veeramally
1c23302203 android/pan: Fix control state change callback parameters order
Callback declared in bt_pan.h is
'typedef void (*btpan_control_state_callback)
(btpan_control_state_t state, bt_status_t error, int local_role,
const char* ifname);

But PanService.Java defined it wrong way.
private void onControlStateChanged(int local_role, int state,
int error, String ifname).
First and third parameters are misplaced, so sending data according
to PanService.Java, discard this fix if issue fixed in PanService.Java.
2014-01-28 16:11:47 +01:00
Jakub Tyszkowski
dd90544dca android/pan: Move logic from HAL to daemon
HAL should contain as little logic as possible, but we should be doing
these checks on daemon side anyway.
2013-12-08 17:47:42 +02:00
Jakub Tyszkowski
314f4ee304 android/pan: Move logic from HAL layer to daemon
HAL should contain as little logic as possible, but we should be doing
these checks on daemon side anyway.
2013-12-08 17:47:42 +02:00
Jakub Tyszkowski
ddbd2e9e62 android/pan: Unregister ipc handlers if init fails
Add ipc handlers cleanup if init fails. Send proper status if
already initialized.
2013-12-08 17:47:42 +02:00
Ravi kumar Veeramally
52ce60f4c9 android/hal-pan: Fix order of event handler registration
IPC message handler determines handler offset with
opcode = msg->opcode - HAL_MINIMUM_EVENT. But here order is misplaced.
2013-11-20 09:41:38 +02:00
Ravi kumar Veeramally
699c946daf android/hal-pan: Return error in case of unsupported PAN roles 2013-11-19 18:15:37 +02:00
Szymon Janc
8fd569476b android/hal-pan: Use generic IPC message handling for events
Register handlers on service init and unregister on cleanup.
2013-11-19 16:42:02 +02:00
Ravi kumar Veeramally
a7579647d7 android/pan: Handle connection and control state notifications 2013-11-13 13:15:11 +02:00
Ravi kumar Veeramally
fcf2331ada android/pan: Add notify method to PAN notifications 2013-11-13 11:27:50 +02:00
Ravi kumar Veeramally
7e673560e5 android/pan: Add PAN cleanup interface implementation 2013-11-12 19:02:19 +02:00
Luiz Augusto von Dentz
3c10d4e015 android/hal-pan: Add implementation of .disconnect 2013-10-28 14:43:24 +02:00
Luiz Augusto von Dentz
ca999716d9 android/hal-pan: Add implementation of .connect 2013-10-28 14:42:55 +02:00
Luiz Augusto von Dentz
209f302f7b android/hal-pan: Add implementation of .get_local_role 2013-10-28 14:42:38 +02:00
Luiz Augusto von Dentz
ab2a0efba8 android/hal-pan: Add implementation of .enable 2013-10-28 14:42:28 +02:00
Luiz Augusto von Dentz
1e8089a41a android/hal-pan: Add implementation of .init 2013-10-28 14:42:20 +02:00
Luiz Augusto von Dentz
0ee10ed2e5 android: Use pan prefix instead of bt_pan
This replaces the use of bt_pan as function prefix with pan.
2013-10-23 13:06:50 +03:00
Szymon Janc
76384da137 android/hal: Unify HALs callbacks pointers definition
Those are not suppose to be modified or used outside of each HAL.
2013-10-22 16:51:07 +03:00
Szymon Janc
3917177c40 android/hal: Make hal.h self contained 2013-10-22 16:17:26 +03:00
Szymon Janc
9422d5a072 android: Use hal-log.h for logging in pan HAL
This will allow to log both on Android and Linux (in haltest)
2013-10-20 22:38:48 +03:00
Andrei Emeltchenko
631304f92b android: Add PAN skeleton
Add skeleton for pan Android HAL. This is modified version
from Frederic Danis earlier patch set.
2013-10-18 14:30:14 +03:00