| 00929bfb |
android/tester: Add Socket test invalid double listen
Add Socket test making listen two times on the same RFCOMM channel. |
Andrei Emeltchenko |
12 years ago |
1 file, +51, -0 |
| d585279a |
android/tester: Fix memory leak using close()
Use device->close() to free device structure. This is the way other
Android devices are closed. Fixes following warnings:
...
==26231== 80 bytes in 1 blocks are definitely lost in loss record 25 of
31
==26231== at 0x4C2A2DB: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26231== by 0x40F153: open_bluetooth (hal-bluetooth.c:800)
==26231== by 0x40C8D8: setup (android-tester.c:835)
==26231== by 0x40CB20: setup_socket_interface_enabled
(android-tester.c:1166)
==26231== by 0x409C15: setup_callback (tester.c:373)
==26231== by 0x4E7C3B5: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==26231== by 0x4E7C707: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==26231== by 0x4E7CB09: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==26231== by 0x40A83C: tester_run (tester.c:784)
==26231== by 0x40362A: main (android-tester.c:1643)
... |
Andrei Emeltchenko |
12 years ago |
1 file, +5, -0 |
| 40cef675 |
android/hal-bluetooth: Free device on close() |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| 224b6b80 |
android: Add clarifying comment to store_device_info() |
Johan Hedberg |
12 years ago |
1 file, +4, -1 |
| 46c2378f |
android: Set umask in system-emulator
This will make sure files are created with proper permissions so
Android daemon doesn't have to handle that. On Android umask is
set by init. |
Szymon Janc |
12 years ago |
1 file, +4, -0 |
| 5022d5ab |
android/bluetooth: Add support for restoring devices from storage
This adds support to restore bonded devices from storage (including
linkkeys). |
Szymon Janc |
12 years ago |
1 file, +112, -1 |
| d3174bdc |
android/bluetooth: Add support for storing link keys
When new linkkey event is received store linkkey in devices info file.
Stored info includes linkkey, linkkey type and pin length. |
Szymon Janc |
12 years ago |
1 file, +32, -4 |
| 40a69f0a |
android/bluetooth: Add initial support for storing device info
This allows to store information about remote device. For now this is
stored only for bonded devices. Currently stored data includes devices
ddress, type, name, friendly name, class and uuids. |
Szymon Janc |
12 years ago |
1 file, +75, -1 |
| 316d0eec |
android/bluetooth: Add initial support for permanent storage
This patch adds initial support for storing adapter configuration.
Currently stored data is address, name and discoverable timeout.
Since Android daemon storage format is to be simpler than Linux check
if correct adapter is used before going operational. This is
a precaution to avoid e.g. using linkkeys generated for different
controller. |
Szymon Janc |
12 years ago |
3 files, +85, -6 |
| 82c10954 |
android/AVDTP: Duplicate fd passed to avdtp_new
This use dup to create a new fd to be used by AVDTP session leaving the
caller free to close the original fd. Note that even if the caller
decides to keep the original fd it will still be notified when
avdtp_shutdown is called since it uses shutdown. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +13, -2 |
| e3d07f58 |
emulator/bthost: Remove not used bthost_set_server_psm
This function is not needed and has been replaced with bthost_add_l2cap_server. |
Marcin Kraglak |
12 years ago |
2 files, +0, -7 |
| 04ef992f |
android/android-tester: Remove not necessary bthost_set_server_psm
Replace this function with bthost_add_l2cap_server(). |
Marcin Kraglak |
12 years ago |
1 file, +1, -1 |
| 85771054 |
tools/l2cap-tester: Remove not necessary bthost_set_server_psm
This function can be replaced with bthost_add_l2cap_server(). |
Marcin Kraglak |
12 years ago |
1 file, +2, -1 |
| d217739b |
android/bluetooth: Add stubs for missing commands
This adds stubs for commands that were introduced by BT HAL changes
in Android 4.3+. |
Szymon Janc |
12 years ago |
1 file, +56, -0 |
| 2ce7e74b |
android/hal-bluetooth: Add support for device service record property
This allows to correctly handle device service record property. |
Szymon Janc |
12 years ago |
2 files, +22, -0 |
| 9690e662 |
android/hal-bluetooth: Add support for remote version info property
This allows to correctly handle remote version info property. Although
this property is marked as get/set in HAL only get is implemented as
I fail to see how this property could be settable. |
Szymon Janc |
12 years ago |
2 files, +26, -1 |
| 88e025c8 |
android/hal-bluetooth: Add support for enabling HCI snoop dump
This allows to enable HCI SNOOP dump from HAL. This requires that
service named 'bluetoothd_snoop' be available in Android system. |
Szymon Janc |
12 years ago |
2 files, +25, -0 |
| 77ef450f |
android/hal-bluetooth: Add support for sending LE_TEST_MODE command
This allows to send LE_TEST_MODE command introduced in Android 4.3. |
Szymon Janc |
12 years ago |
1 file, +43, -1 |
| 07cab19b |
tools/l2cap-tester: Fix memory leak
Set close_on_unref on new created GIOChannel and don't close
its file descriptor.
126 (120 direct, 6 indirect) bytes in 1 blocks aredefinitely
lost in loss record 24 of 28
at 0x4A06409: malloc (in/usr/lib64/valgrind/vgpreload_memcheck
-amd64-linux.so)
by 0x3C9564D88E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3C956881F4: g_io_channel_unix_new (in/usr/lib64/libglib-
2.0.so.0.3600.3)
by 0x402A5A: l2cap_listen_cb (l2cap-tester.c:774)
by 0x3C95647DF5: g_main_context_dispatch (in/usr/lib64/
libglib-2.0.so.0.3600.3)
by 0x3C95648147: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3C95648549: g_main_loop_run
(in/usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40A67C: tester_run (tester.c:784)
by 0x4026A9: main (l2cap-tester.c:991) |
Marcin Kraglak |
12 years ago |
1 file, +3, -3 |
| 845a7bdf |
tools/l2cap-tester: Fix checking for read() return values |
Johan Hedberg |
12 years ago |
1 file, +11, -2 |
| 33eb51c9 |
tools/l2cap-tester: Fix checking for write() return values |
Johan Hedberg |
12 years ago |
1 file, +13, -2 |
| a663775d |
tools/l2cap_tester: Add write server test case
These test case send data from local server to remote client. |
Marcin Kraglak |
12 years ago |
1 file, +42, -0 |
| 89095eae |
tools/l2cap_tester: Add read server test case
This test checks data transfer from remote client to server. |
Marcin Kraglak |
12 years ago |
1 file, +69, -0 |
| 120923ce |
tools/l2cap_tester: Add write client test case
This test case write data from client to remote server. |
Marcin Kraglak |
12 years ago |
1 file, +38, -0 |
| 1746f4f6 |
tools/l2cap_tester: Add read client test case
This test case send data from remote device to client.
It verifies if data is passed corerctly through L2CAP socket. |
Marcin Kraglak |
12 years ago |
1 file, +66, -1 |
| 9f22db6d |
emulator/bthost: Remove double lookup with bthost_find_l2cap_cb_by_psm |
Johan Hedberg |
12 years ago |
1 file, +3, -3 |
| 2fe01791 |
emulator/bthost: Make bthost_add_l2cap_conn return the added struct for convenience |
Johan Hedberg |
12 years ago |
1 file, +7, -6 |
| 75c50937 |
emulator: Add new method for adding l2cap server
This method allow user to add l2cap server and register
connect callback. If no callback is specified, it will behave
like bthost_set_server_psm() method. |
Marcin Kraglak |
12 years ago |
2 files, +63, -4 |
| 6b0038ef |
android/A2DP: Fix disconnecting after AVDTP session creation
Once the connection is handover to AVDTP code the GIOChannel can be
unref but it should not close the connection. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +18, -7 |
| 9d893d60 |
android/AVDTP: Add avdtp_shutdown
avdtp_shutdown can be used to disconnect closing all existing stream
properly. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +21, -0 |
| c9f7f76c |
android/A2DP: Use avdtp_add_disconnect_cb to cleanup on disconnect
This replaces the use of g_io_add_watch with avdtp_add_disconnect_cb so
connection tracking stay within AVDTP code. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -11 |
| 2621ba91 |
android/AVDTP: Add avdtp_add_disconnect_cb and avdtp_remove_disconnect_cb
With these functions the user application can detect when the AVDTP has
been disconnected and cleanup properly. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +64, -3 |
| ff43d507 |
android/bluetooth: Fix sending invalid RSSI device property
RSSI property is of int32_t type but int8_t was send in durring
remote devices discovery. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 6fe056da |
android/tester: Add start device discovery done test case
This tests device discovery start being reported as done because of
ongoing discovery. |
Jakub Tyszkowski |
12 years ago |
1 file, +31, -0 |
| 2d51debd |
android/tester: Add device discovery cancel success test case
Test for successfull discovery canceling after it was started. |
Jakub Tyszkowski |
12 years ago |
1 file, +50, -0 |
| e3c51867 |
android/tester: Add stop device discovery done test case
Add test case for stopping device discovery when it wasn't started. |
Jakub Tyszkowski |
12 years ago |
1 file, +21, -0 |
| 2a814c46 |
android/tester: Add start device discovery success test case
Add test case for starting device discovery with success. |
Jakub Tyszkowski |
12 years ago |
1 file, +40, -2 |
| 47b3dda8 |
android/tester: Fix bluetooth disable success test case
This fixes not checking for proper status on bluetooth disable. |
Jakub Tyszkowski |
12 years ago |
1 file, +5, -2 |
| 1474f6cd |
android/tester: Fix for not checking for BT_STATUS_SUCCESS
For BT_STATUS_SUCCESS no checks were done as it is 0 in bt_status_t
enum. Valid status for no status expected should be STATUS_NOT_EXPECTED. |
Jakub Tyszkowski |
12 years ago |
1 file, +4, -2 |
| 478e2235 |
android/build: Add l2test to Android.mk
Enable l2test tool for the Android target. |
Sebastian Chlad |
12 years ago |
1 file, +24, -0 |
| f9762f5e |
audio/AVRCP: Fix check for values out of range in SetAbsoluteVolume
Volume is 7 bits since the 8 bit should be ignored as it is reserved it
should never be > 127. Futhermore the value passed to
media_transport_update_device_volume should be the stored in volume as
it ignores the reserved bits properly. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -5 |
| 94b43b64 |
android/pts: Add PICS, PIXITs and PTS for L2CAP
This allows better tracking of the current state of implementation |
Sebastian Chlad |
12 years ago |
4 files, +347, -1 |
| 303acb83 |
emulator: Add L2CAP PSM handling to bthost
Store the PSM of L2CAP connections. We retrieve the PSM from the
connection request frame. |
Marcin Kraglak |
12 years ago |
1 file, +23, -6 |
| 94d49aa0 |
android/socket: Handle Android events for server socket
Add watch for tracking events from Android framework for server socket.
Android might want to close server connection, in this case we close
our listening socket and cleaning up rfsock structure. Glib watch is
added with high priority to avoid races. |
Andrei Emeltchenko |
12 years ago |
1 file, +31, -1 |
| 54468c7f |
android/tester: Add Socket test close and listen
This test the situation when Android close file descriptor we passed to
it and try to listen() again. |
Andrei Emeltchenko |
12 years ago |
1 file, +60, -0 |
| 402fef79 |
android/tester: Test that connect call returns channel number
The test connects to emulated bthost and read channel number |
Andrei Emeltchenko |
12 years ago |
1 file, +117, -0 |
| eaf50643 |
android/socket: Connect directly to RFCOMM channel if uuid is zero
Check uuid and connect to specified RFCOMM channel directly if uuid is
zeroed. |
Andrei Emeltchenko |
12 years ago |
1 file, +16, -8 |
| b81374ec |
android/socket: Refactor connect to allow directly connect to rfcomm
Since Socket HAL allows us to specify RFCOMM channel number and directly
connect refactor send function to allow connect directly is uuid is zero
and channel number is specified. |
Andrei Emeltchenko |
12 years ago |
1 file, +39, -32 |
| fe8dabaa |
android/pan: Change local_role to NONE only when device list is empty |
Ravi kumar Veeramally |
12 years ago |
1 file, +3, -2 |
| f8a38f2f |
android/pan: Free device after sending diconnected notification |
Ravi kumar Veeramally |
12 years ago |
1 file, +2, -7 |