| 29cf8fd8 |
unit/avctp: Add TP/NFR/BV-04-C test
Add test TP/NFR/BV-04-C for AVCTP. |
Andrei Emeltchenko |
11 years ago |
1 file, +31, -9 |
| 286216b9 |
pbap: Fix PhonebookSize endianness
As g_obex_apparam_set_uint16() converts data to big-endian format
internally, do not call htons() prior to it. |
Hannu Mallat |
11 years ago |
1 file, +2, -2 |
| 5ca0c401 |
android/handsfree: Fix address printed in debug |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 7bc33b7e |
android/pts: Update PICS and PTS for AVCTP
Since we do not support AVCTP fragmentation for now we shell set PICS
settings for AVCTP accordingly as well as set respective PTS test cases
as N/A |
Sebastian Chlad |
11 years ago |
2 files, +3, -3 |
| f61d39bc |
audio/AVRCP: Fix checking for handler pointer instead of pdu_id
The code may not find a valid handler for the pdu_id, in that case the
handler would not be NULL because the handlers table is not NULL
terminated, instead the code should check if pdu_id really matches. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +4, -4 |
| f52cd974 |
android/handsfree: Use NULL instead of zero for pointers |
Szymon Janc |
11 years ago |
1 file, +14, -14 |
| 077a899e |
android/handsfree: Add disconnect command handling |
Szymon Janc |
11 years ago |
1 file, +29, -1 |
| 9ae2eda4 |
android/handsfree: Add connect command handling
This allows to query SDP for RFCOMM channel and connect. |
Szymon Janc |
11 years ago |
1 file, +100, -1 |
| d404ab98 |
android/handsfree: Add initial code for AT commands processing
Currently always reply with error and disconnect connection. |
Szymon Janc |
11 years ago |
2 files, +23, -0 |
| d08d1dbb |
android/handsfree: Add support for RFCOMM connection handling
This adds incoming connection handling and initial connection state
tracking. Only one device is allowed to be connected at the same time. |
Szymon Janc |
11 years ago |
1 file, +165, -2 |
| 82d4ce30 |
android/handsfree: Add SDP record for AG
Service Name: Hands-Free Audio GatewayService RecHandle: 0x10001
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 13
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0106 |
Szymon Janc |
11 years ago |
1 file, +97, -0 |
| 370e59fe |
android/hal-handsfree: Implement sending commands
This implements HAL interface methods and pass commands over IPC. |
Szymon Janc |
11 years ago |
1 file, +344, -0 |
| 2d937829 |
android/hal-handsfree: Implement notifications handling
This implements all notifications handlers and call proper HAL
callbacks. |
Szymon Janc |
11 years ago |
1 file, +159, -1 |
| 74241d67 |
android/handsfree: Add stubs for commands handlers
Add empty handlers for all IPC commands. |
Szymon Janc |
11 years ago |
1 file, +169, -1 |
| 729fd52b |
android/handsfree: Add commands and events definition to IPC header |
Szymon Janc |
11 years ago |
1 file, +208, -0 |
| db17fbe4 |
android/handsfree: Add initial files
This adds initial HAL and daemon code for Handsfree profile. |
Szymon Janc |
11 years ago |
8 files, +185, -0 |
| 49b75227 |
android/bluetooth: Send prop change event only if prop was changed |
Szymon Janc |
11 years ago |
1 file, +2, -2 |
| 13f1bbff |
android/bluetooth: Refactor update_found_device function
This function grown too big and was hard to follow. Split it to helpers
for clarity. |
Szymon Janc |
11 years ago |
1 file, +93, -60 |
| d334b111 |
android/bluetooth: Add threshold to RSSI change
There is no need to report very small RSSI changes. |
Szymon Janc |
11 years ago |
1 file, +7, -1 |
| 0064fa85 |
doc: Update test case numbers for Android IPC |
Szymon Janc |
11 years ago |
1 file, +2, -2 |
| ef2b882f |
android/unit: Some codestyle cleanups |
Szymon Janc |
11 years ago |
1 file, +13, -21 |
| e6d44eb4 |
android/unit: Make tests names shorter |
Szymon Janc |
11 years ago |
1 file, +13, -13 |
| 08c2d2d1 |
android/unit: Add cases for msg size verification
This patch adds checking for proper msg size verification in case it is
not declared in handlers that this is variable sized message. In
such case malformed data should not be accepted. |
Jakub Tyszkowski |
11 years ago |
1 file, +38, -0 |
| 46ad7c46 |
android/unit: Add case for sending incomplete header
Header size is the bare minimum that should always be sent. |
Jakub Tyszkowski |
11 years ago |
1 file, +12, -0 |
| ce6444c8 |
android/unit: Add negative case for msg size verification
Case for checking message size declared inside the header against the
amount of data sent for variable sized message. |
Jakub Tyszkowski |
11 years ago |
1 file, +12, -0 |
| de260fd3 |
android/unit: Add case for out of range service
Check reaction for sending message to services not listed inside
hal-msg.h |
Jakub Tyszkowski |
11 years ago |
1 file, +18, -0 |
| daeee89e |
android/unit: Add another case for variable sized data
This patch adds test for variable length data handling. Handlers struct
have static values representing minimum payload. It cannot be predicted
how large data will be sent so they should accept data larger than
declared inside ipc_handler array, which holds the minimum size of such
message. |
Jakub Tyszkowski |
11 years ago |
1 file, +15, -0 |
| c14110cb |
android/unit: Add test case for variable sized data
Check if sending variable length data with proper msg size declared inside the
header succeeds. |
Jakub Tyszkowski |
11 years ago |
1 file, +29, -0 |
| bdceceb9 |
android/unit: Add support for variable length data
This patch adds sending messages larger than just hal_hdr, and fixes
response verification which worked only for empty messages but was
failing when sending something more than just header. |
Jakub Tyszkowski |
11 years ago |
1 file, +10, -3 |
| 639abb4b |
android/unit: Add case for opcode without handler
This test case checks if IPC shuts down on unhandled opcode. |
Jakub Tyszkowski |
11 years ago |
1 file, +12, -0 |
| e7a054a8 |
android/unit: Add test cases for proper handler calls
This patch adds tests for calling proper opcode handler. Two handlers
are registered, but one always results in failure. No failure means that
proper opcode <-> handler maching is done by the ipc mechanism. |
Jakub Tyszkowski |
11 years ago |
1 file, +46, -0 |
| cca001f9 |
android/unit: Rename cmd handler
This handler responses for opcode == 1, thus should use proper naming to
avoid confision when more functions sending different responses will be
added. |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -2 |
| aeed3333 |
android/unit: Fix checking for expected termination
This fix makes sure that when signalled termination is expected,
it actually happens. If IPC termination is expected no response will be
sent, so cmd_watch will never be executed. But if it is executed when
expecting termination, its a failure. |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -0 |
| 377c1df2 |
unit/AVCTP: Add test TP/NFR/BV-03-C
The test verifies that IUT (TG) correctly reports the parameters of the
incoming command in the handler callback. |
Andrei Emeltchenko |
11 years ago |
1 file, +31, -0 |
| 0f7baebb |
unit/AVCTP: Add connection establishment dummy tests
Add some tests checking that L2CAP connection is established, so they
are basically dummy tests. |
Andrei Emeltchenko |
11 years ago |
1 file, +27, -3 |
| c79676c3 |
android/hal-audio: Add RTP timestamps |
Andrzej Kaczmarek |
11 years ago |
1 file, +14, -4 |
| 66a267e9 |
android/hal-audio: Fix RTP sequence numbers |
Andrzej Kaczmarek |
11 years ago |
1 file, +2, -1 |
| f4a6021a |
android/hal-audio: Fix audio with large omtu value
This patch fixes media packet construction with devices which use large
omtu value. In such cases it's possible that we will try to fit more
than 15 SBC frames in single media packet (which is maximum possible
value as it's encoded using 4 bits) which will cause frame counter to
wrap around and provide incorrect data to SBC encoder.
This behaviour was seen on UPF with one of carkit devices which set
omtu=2688. |
Andrzej Kaczmarek |
11 years ago |
1 file, +5, -1 |
| f68715ec |
android/hal-audio: Print calculated SBC parameters |
Andrzej Kaczmarek |
11 years ago |
1 file, +3, -0 |
| 210ae146 |
android/hal-audio: Be more verbose on SBC errors |
Andrzej Kaczmarek |
11 years ago |
1 file, +1, -1 |
| f6101a11 |
android/hal-audio: Remove unsupported mono channel mode
AudioFlinger can only provide PCM 16bit Stereo data for A2DP track so
we should not advertise mono channel mode in capabilities since we
can't downmix this internally. |
Andrzej Kaczmarek |
11 years ago |
1 file, +1, -2 |
| 1e7332ce |
doc: Minor whitespace fix in test-coverage.txt |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 4719a8e0 |
doc: Add test case numbers from Android IPC unit tests |
Szymon Janc |
11 years ago |
1 file, +8, -0 |
| 99052be6 |
android/unit: Rename tests names to be more descriptive |
Szymon Janc |
11 years ago |
1 file, +9, -8 |
| eeae8bab |
android/unit: Add /android_ipc/send_cmd_3 test case
This case will register service, next unregister it and send
command. Expected status is raise SIGTERM. |
Marcin Kraglak |
11 years ago |
1 file, +36, -0 |
| 3ac803d0 |
android/unit: Add /android_ipc/send_cmd_2 test case
This will test sending command to previously registered service. |
Marcin Kraglak |
11 years ago |
1 file, +62, -0 |
| 898ad7e9 |
android/unit: Add /android_ipc/send_cmd_1 test case
This test case will check if ipc lib will raise SIGTERM
after sending command to not registered service. |
Marcin Kraglak |
11 years ago |
1 file, +45, -1 |
| e648a5bd |
android/ipc: Remove watches on cleanup
Remove watches on cleanup. It will avoid receiving
events after cleanup. |
Marcin Kraglak |
11 years ago |
1 file, +15, -2 |
| 98145927 |
android/unit: Add android IPC unit tests
It will test ipc library. First test case will check
ipc_init() call. |
Marcin Kraglak |
11 years ago |
3 files, +286, -0 |
| 88373d73 |
emulator: Fix correct link key type generation |
Johan Hedberg |
11 years ago |
1 file, +42, -2 |