OSDN Git Service
Andrei Emeltchenko [Tue, 3 Dec 2013 15:51:10 +0000 (17:51 +0200)]
android/socket: Cleanup sockets on unregister
This cleans up rfsock structures closing all sockets and making general
cleanup for servers and for connections. This will be called form socket
unregister.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:32:39 +0000 (15:32 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-36-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:27:53 +0000 (15:27 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-35-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:18:17 +0000 (15:18 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-33-C test
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:09:38 +0000 (15:09 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-32-C test
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:55:30 +0000 (14:55 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/ESR04/BI-28-C test
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:28:43 +0000 (14:28 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-30-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:19:34 +0000 (14:19 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-28-C test
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:11:57 +0000 (14:11 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-27-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a suspend stream command from the Lower
Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 13:02:20 +0000 (15:02 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-26-C test
Verify that the IUTi (ACP) is able to issue a suspend stream reject
response to the Lower Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 12:47:51 +0000 (14:47 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-25-C test
Verify that the IUT (ACP) is able to report to the tester the rejection
of a suspend stream command sent by the Lower Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 12:39:37 +0000 (14:39 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-24-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a close stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 12:13:03 +0000 (14:13 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-23-C test
Verify that the IUT (ACP) is able to issue a close stream reject
response to the Lower Tester (INT).
Luiz Augusto von Dentz [Mon, 2 Dec 2013 10:25:52 +0000 (12:25 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-22-C test
Verify that the IUT (INT) is able to report the rejection by the remote
device of the close stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 07:51:38 +0000 (09:51 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-21-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a start stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 07:43:02 +0000 (09:43 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-20-C test
Verify that the IUT (ACP) is able to issue a start stream reject
response to the INT.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 16:17:09 +0000 (18:17 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-19-C test
Verify that the IUT (INT) is able to report the rejection by the remote
device of the start stream command.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 16:02:19 +0000 (18:02 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-18-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to an open stream command.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 15:50:08 +0000 (17:50 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-17-C test
Verify that the IUT (ACP) is able to issue an Open stream reject
response to the INT.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 15:33:22 +0000 (17:33 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-11-C test
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 13:00:11 +0000 (15:00 +0200)]
android/AVDTP: Fix not calling callback if GET_CONFIGURATION is rejected
If GET_CONFIGURATION command is rejected and a callback exists it should
be called with the reject error, this fixes test /TP/SIG/SMG/BI-10-C.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 12:59:01 +0000 (14:59 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-10-C test
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 12:42:43 +0000 (14:42 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-09-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a set configuration command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 15:26:41 +0000 (17:26 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-08-C test
Verify that the IUT (ACP) is able to issue a set configuration reject
response to the INT if the SEP is already configured.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 15:19:09 +0000 (17:19 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-07-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
set configuration command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:36:25 +0000 (16:36 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-06-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a get capabilities command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:14:48 +0000 (16:14 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-05-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
get capabilities command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:00:46 +0000 (16:00 +0200)]
android/AVDTP: Fix not calling callback if GET_CAPABILITIES is rejected
If GET_CAPABILITIES command is rejected and a callback exists it should
be called with the reject error, this fixes test /TP/SIG/SMG/BI-04-C.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 13:58:59 +0000 (15:58 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-04-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
get capabilities command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 13:41:50 +0000 (15:41 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-03-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
a tester's request in answer to a stream discover command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 13:28:54 +0000 (15:28 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-02-C test
Verify that the IUT (iACP) is able to discard a corrupted stream discover
command received by the INT.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 12:25:06 +0000 (14:25 +0200)]
android/AVDTP: Fix not calling callback if DISCOVER is rejected
If DISCOVER command is rejected and a callback exists it should be
called with the reject error, this fixes test /TP/SIG/SMG/BI-01-C
Luiz Augusto von Dentz [Thu, 28 Nov 2013 12:24:22 +0000 (14:24 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-01-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of
a stream discover command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 10:29:27 +0000 (12:29 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BV-31-C test
Verify that the IUT (INT) is able to accept all defined capabilities in
the GetCapabilities response.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 09:50:50 +0000 (11:50 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BV-28-C test
Verify that the IUT (INT) ignores capability values reserved for future
definition (RFD) returned in the GetAllCapabilities response.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 09:29:37 +0000 (11:29 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BV-27-C test
Verify that the IUT (ACP) provides only basic capabilities in the Get
Capabilities response.
Luiz Augusto von Dentz [Wed, 27 Nov 2013 14:35:39 +0000 (16:35 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BV-26-C test
Verify that the IUT (ACP) reports the reception of a valid query for remote
SEP capabilities and replies the returned capabilities using
Get_All_Capabilities.
Luiz Augusto von Dentz [Wed, 27 Nov 2013 14:25:06 +0000 (16:25 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BV-25-C test
Verify that the IUT (INT) is able to issue a valid query for remote SEP
capabilities and reports the replied ones using Get_All_Capabilities.
Johan Hedberg [Thu, 5 Dec 2013 09:47:52 +0000 (11:47 +0200)]
tools/l2test: Update to support new BT_SNDMTU/BT_RCVMTU socket options
Johan Hedberg [Tue, 3 Dec 2013 09:29:31 +0000 (11:29 +0200)]
lib: Add BT_SNDMTU and BT_RCVMTU socket option defines
Johan Hedberg [Wed, 4 Dec 2013 14:18:34 +0000 (16:18 +0200)]
doc: Add missing Device1.Pair error
Szymon Janc [Mon, 2 Dec 2013 15:17:58 +0000 (16:17 +0100)]
android: Use G_N_ELEMENTS macro for table elements calculation
It is more common in codebase to use this macro instead of opencoded
(sizeof(foo)/sizeof(foo[0])).
Szymon Janc [Mon, 2 Dec 2013 14:55:38 +0000 (15:55 +0100)]
android: Move sockets handling from main to IPC code
This moves IO handling to IPC code making it fully responsible for
creating and veryfing IPC messages exchange.
Luiz Augusto von Dentz [Tue, 3 Dec 2013 09:26:53 +0000 (11:26 +0200)]
audio/AVCTP: Fix crash
The following crash happens because the list l is modified within the
loop so it is no longer safe to call l->next directly:
Invalid read of size 8
at 0x41F276: pending_create (avctp.c:1491)
by 0x41F7C0: avctp_send_req.isra.6 (avctp.c:1539)
by 0x41F887: avctp_passthrough_release (avctp.c:1643)
by 0x41F9DF: avctp_passthrough_rsp (avctp.c:1698)
by 0x41E9AC: session_cb (avctp.c:782)
by 0x31D1647DF5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648147: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648549: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40A49F: main (main.c:587)
Address 0x8 is not stack'd, malloc'd or (recently) free'd
Johan Hedberg [Tue, 3 Dec 2013 09:16:00 +0000 (11:16 +0200)]
lib: Add missing BT_POWER socket option defines
Szymon Janc [Sun, 1 Dec 2013 13:41:56 +0000 (14:41 +0100)]
sixaxis: Add support for setting LEDs when connected over USB
This allows to setup LEDs when device is connected over USB, not
Bluetooth. This coverts two scenarios:
- user plugged PS3 controller and pressed PS3 button before unplugging,
in that case LEDs are set
- user plugged already BT connected PS3 controller to USB, this results
in new /dev/input/jsX device being create but controller is still
transmitting over BT and old jsX device exists. In that case don't
set LEDs as they are already set.
This is not directly related to Bluetooth itself but change is really
small and provides much better and consistent user experience.
Szymon Janc [Sun, 1 Dec 2013 13:41:55 +0000 (14:41 +0100)]
sixaxis: Skip controller setup if already connected over Bluetooth
If controller is already connected over Bluetooth but was then
plugged-in via USB (eg. to charge battery) there is no need to do
any setup.
Szymon Janc [Sun, 1 Dec 2013 13:41:54 +0000 (14:41 +0100)]
core: Rename device_is_connected to btd_device_is_connected
Allow this symbol to be exported and usable from external plugins.
Szymon Janc [Sun, 1 Dec 2013 13:41:53 +0000 (14:41 +0100)]
sixaxis: Add support for setting PS3 controller LEDs
This will set controller LEDs according to joystick device number
when controller is connected over Bluetooth. If joystick number is too
big (> 7) or falied to be read, set it to 0 to switch off all LEDs.
This will allow to disable LEDs blinking after connection.
Waiting for events is not really needed when connected over Bluetooth
but this is in preparation for supporting LEDs setup over USB.
Szymon Janc [Mon, 2 Dec 2013 12:20:48 +0000 (13:20 +0100)]
android/socket: Use generic IPC message handling for commands
Handlers are registered on service register and unregistered on
unregister.
Szymon Janc [Mon, 2 Dec 2013 12:20:47 +0000 (13:20 +0100)]
android/a2dp: Use generic IPC message handling for commands
Handlers are registered on service register and unregistered on
unregister.
Szymon Janc [Mon, 2 Dec 2013 12:20:46 +0000 (13:20 +0100)]
android/pan: Use generic IPC message handling for commands
Handlers are registered on service register and unregistered on
unregister.
This also fix sending two IPC responses for get pan role command.
Szymon Janc [Mon, 2 Dec 2013 12:20:45 +0000 (13:20 +0100)]
android/hidhost: Use generic IPC message handling for commands
Handlers are registered on service register and unregistered on
unregister.
Szymon Janc [Mon, 2 Dec 2013 12:20:44 +0000 (13:20 +0100)]
android/bluetooth: Make property handling function return HAL status
This makes funtions follow have similar style and makes properties
dispatch function much simpler.
Szymon Janc [Mon, 2 Dec 2013 12:20:43 +0000 (13:20 +0100)]
android/bluetooth: Use generic IPC msg handling for commands
Handlers are registered on service register and unregistered on
unregister.
Szymon Janc [Mon, 2 Dec 2013 12:20:42 +0000 (13:20 +0100)]
android/main: Use common exit path in core service functions
This makes functions exit path simpler.
Szymon Janc [Mon, 2 Dec 2013 12:20:41 +0000 (13:20 +0100)]
android/main: Use generic IPC message handling for core service
Handlers are registered on daemon start and unregistered on shutdown.
Szymon Janc [Mon, 2 Dec 2013 12:20:40 +0000 (13:20 +0100)]
android: Add initial code for IPC message handlers
This will allow to register and unregister handlers for IPC messages
Basic sanity check will be done in common code. Commands with variable
length will be verified against minimum size only.
Johan Hedberg [Mon, 7 Oct 2013 12:06:08 +0000 (15:06 +0300)]
tools/l2test: Fix default LE PSM value
LE has different ranges for dynamic PSMs.
Johan Hedberg [Tue, 24 Sep 2013 13:11:19 +0000 (16:11 +0300)]
tools/l2cap-server: Add basic LE Connect server test case
Johan Hedberg [Thu, 19 Sep 2013 18:25:58 +0000 (21:25 +0300)]
tools/l2cap-tester: Add basic LE client test cases
Johan Hedberg [Thu, 19 Sep 2013 22:12:27 +0000 (01:12 +0300)]
emulator/bthost: Add LE L2CAP Connect support
Johan Hedberg [Thu, 19 Sep 2013 21:26:55 +0000 (00:26 +0300)]
emulator/bthost: Add Disconnect request support for LE
Johan Hedberg [Thu, 3 Oct 2013 10:47:56 +0000 (13:47 +0300)]
monitor: Add LE CoC decoding support
Marcel Holtmann [Fri, 29 Nov 2013 15:24:42 +0000 (07:24 -0800)]
lib: Update company identifiers
Luiz Augusto von Dentz [Fri, 29 Nov 2013 15:06:07 +0000 (17:06 +0200)]
android/pan: Fix sending uninitialised bytes
name field of struct hal_ev_pan_ctrl_state is 17 bytes longs so memcpy of
the interface name does not field all the those bytes leaving the last
uninitialised:
Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s)
at 0x3600EF6E20: __sendmsg_nocancel (in /usr/lib64/libc-2.17.so)
by 0x40DC06: ipc_send (ipc.c:93)
by 0x4149AC: bnep_conn_cb (pan.c:120)
by 0x4192B8: bnep_setup_cb (bnep.c:324)
by 0x31D1647DF5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648147: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648549: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40338B: main (main.c:629)
Address 0x7ff0003d3 is on thread 1's stack
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:45 +0000 (16:20 +0200)]
android: Add reasons for adding capabilites to process
CAP_NET_ADMIN: Allow use of MGMT interface
CAP_NET_BIND_SERVICE: Allow use of privileged PSM
CAP_NET_RAW: Allow use of bnep ioctl calls
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:44 +0000 (16:20 +0200)]
android/pan: Implement the get local role method in daemon
Returns local role of the device (NONE, PANU or NAP).
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:43 +0000 (16:20 +0200)]
android/pan: Implement pan disconnect method in daemon
Disconnect ongoing PANU role connection betweek devices, free
the device and notify the connection state.
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:42 +0000 (16:20 +0200)]
android/pan: Implement pan connect method in daemon
Implements the PAN connect method in android daemon with PANU role
only. Setting up the bnep environment, adds connection and makes
bnep interface up are part of bnep_connect call. Notifies bnep
interface on control state call back and connection status on
connection state call back.
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:41 +0000 (16:20 +0200)]
profiles/network: Rename common.c|h to bnep.c|h
Files common.c|h contains only bnep related code, it makes
more sence with bnep.c|h.
Ravi kumar Veeramally [Fri, 29 Nov 2013 14:20:40 +0000 (16:20 +0200)]
profiles/network: Refactor bnep connection setup functionality
Moving bnep connection setup related functionality to common.c.
Provided bnep_connect call with bnep_connect_cb for status and
bnep interface name. It will be simple if someone want to utilize
this call otherwise they have to reimplement similar functionality
with minimal changes (e.g. android/pan).
Johan Hedberg [Fri, 29 Nov 2013 13:12:46 +0000 (15:12 +0200)]
tools/smp-tester: Improve logging of received SMP PDUs
Johan Hedberg [Fri, 29 Nov 2013 13:09:10 +0000 (15:09 +0200)]
tools/smp-tester: Minor whitespace fix
Johan Hedberg [Fri, 29 Nov 2013 13:06:02 +0000 (15:06 +0200)]
tools/smp-tester: Unify SMP handler code for client and server tests
Johan Hedberg [Fri, 29 Nov 2013 12:41:01 +0000 (14:41 +0200)]
emulator/btdev: Add initial support for HCI_LE_Long_Term_Key_Request_Reply
Johan Hedberg [Fri, 29 Nov 2013 12:12:02 +0000 (14:12 +0200)]
tools/smp-tester: Add support for generating the LTK
Johan Hedberg [Fri, 29 Nov 2013 12:07:06 +0000 (14:07 +0200)]
emulator/bthost: Add API for requesting LE encryption
Johan Hedberg [Fri, 29 Nov 2013 11:34:15 +0000 (13:34 +0200)]
tools/smp-tester: Add expected Pairing Random packet to basic server test
Johan Hedberg [Fri, 29 Nov 2013 11:33:21 +0000 (13:33 +0200)]
tools/smp-tester: Fix missing copy to smp_rrnd
Johan Hedberg [Fri, 29 Nov 2013 10:28:47 +0000 (12:28 +0200)]
emulator/btdev: Add basic support for HCI_LE_Start_Encryption
Johan Hedberg [Fri, 29 Nov 2013 09:17:39 +0000 (11:17 +0200)]
emulator/btdev: Fix existing connection check in disconnection logic
Johan Hedberg [Fri, 29 Nov 2013 09:13:09 +0000 (11:13 +0200)]
emulator/btdev: Simplify connection request logic
We should return page timeout both when the remote exists but just
doesn't have page scan enabled as well as when the remote doesn't exist.
Andrei Emeltchenko [Fri, 29 Nov 2013 08:08:49 +0000 (10:08 +0200)]
android/main: Call unregister for all registered services on exit
Szymon Janc [Fri, 29 Nov 2013 08:05:58 +0000 (09:05 +0100)]
android/hal-bluetooth: Fix sending invalid adapter property
If property to be set is of enum type it should be first converted to
byte value as size of enum might varry depending on architecture.
To keep code simple command buffer uses len received from framework
as this is more or equal to HAL property size.
Szymon Janc [Fri, 29 Nov 2013 08:05:57 +0000 (09:05 +0100)]
android/hal-bluetooth: Rename create_enum_prop to enum_prop_to_hal
This better describes purpose of this macro.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:06 +0000 (16:38 +0200)]
android/socket: Remove unneeded code
The flag is already set in bt_io_listen.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:05 +0000 (16:38 +0200)]
android/socket: Avoid double close of file descriptor
Since we close all file descriptors in cleanup_rfsock do not close it also
during iochannel cleaning up. The flag was setup in bt_io_listen and
bt_io_connect calls.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:04 +0000 (16:38 +0200)]
android/socket: Strip extra log messages
Remove debug messages when sending data, debug still exist for connection
establishment. Do not print error when connection hang up, print debug
instead.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:03 +0000 (16:38 +0200)]
android/hidhost: Shutdown ctrl_io channel if intr_io fails
This fix possible memory leak.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:02 +0000 (16:38 +0200)]
android/socket: Fix rfsock lists
This fixes several places where rfsock structure were not removed
from the list due to connection errors.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:38:00 +0000 (16:38 +0200)]
android/main: Free enabled string on exit
Andrei Emeltchenko [Thu, 28 Nov 2013 14:37:59 +0000 (16:37 +0200)]
android/main: Remove signal source on exit
Remove signal source on exit and move check capability function in order
to avoid extra check.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:37:58 +0000 (16:37 +0200)]
android/main: Remove timeout source on exit
This fixes memory leak types of warnings from some tools.
Andrei Emeltchenko [Thu, 28 Nov 2013 14:37:57 +0000 (16:37 +0200)]
android: Avoid memory leak warnings for event_loop
Move creation of event_loop closer to g_main_loop_run. This avoids
calling g_main_loop_unref too many times in initialization error paths.
This is safe since g_main_loop_quit eval to NOOP if parameter == NULL.
Szymon Janc [Thu, 28 Nov 2013 14:15:30 +0000 (15:15 +0100)]
android: Don't pass notification socket on services register
It is no longer needed as proper socket is use by IPC helpers.
Szymon Janc [Thu, 28 Nov 2013 14:15:29 +0000 (15:15 +0100)]
android/bluetooth: Remove not needed notification_sk checks
This is now checked inside ipc_send_notif helper.
Szymon Janc [Thu, 28 Nov 2013 14:15:28 +0000 (15:15 +0100)]
android: Make ipc_send static
It should not longer be used from outside of IPC code.
Szymon Janc [Thu, 28 Nov 2013 14:15:27 +0000 (15:15 +0100)]
android/socket: Use ipc_send_rsp_full IPC helper
Use command reply helper for sending reply with file descriptor.
Szymon Janc [Thu, 28 Nov 2013 14:15:26 +0000 (15:15 +0100)]
android: Add ipc_send_rsp_full IPC helper
This will be used to send non-empty reply using command socket.