summaryrefslogtreecommitdiff
path: root/android/test-ipc.c
Commit message (Collapse)AuthorAgeFilesLines
* android: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- Apache-2.0 : 80 LGPL-2.1-or-later : 42 GPL-2.0-or-later : 9 License: Apache-2.0 android/bluetoothd-wrapper.c android/tester-hidhost.c android/tester-map-client.c android/hal-audio-aptx.c android/hal-audio.c android/hal-handsfree-client.c android/tester-gatt.c android/hal-pan.c android/hal-socket.c android/tester-hdp.c android/tester-pan.c android/tester-avrcp.c android/hal-a2dp-sink.c android/hal-gatt.c android/hal-avrcp.c android/tester-a2dp.c android/hal-audio.h android/hal-bluetooth.c android/tester-socket.c android/hal-health.c android/hal-a2dp.c android/hal-ipc.c android/hal-avrcp-ctrl.c android/hal-sco.c android/hal-ipc.h android/tester-main.c android/hal-audio-sbc.c android/hal-utils.c android/hal-map-client.c android/hal-handsfree.c android/hal-log.h android/hal.h android/hal-utils.h android/tester-bluetooth.c android/hal-hidhost.c android/audio_utils/resampler.h android/audio_utils/resampler.c android/system/audio.h android/hardware/bt_sock.h android/hardware/bt_gatt_client.h android/hardware/bt_hh.h android/hardware/bluetooth.h android/hardware/hardware.h android/hardware/bt_hf_client.h android/hardware/bt_rc.h android/hardware/bt_hf.h android/hardware/bt_pan.h android/hardware/bt_gatt_types.h android/hardware/hardware.c android/hardware/audio_effect.h android/hardware/audio.h android/hardware/bt_gatt_server.h android/hardware/bt_gatt.h android/hardware/bt_hl.h android/hardware/bt_mce.h android/hardware/bt_av.h android/client/if-hh.c android/client/if-sco.c android/client/pollhandler.h android/client/haltest.c android/client/tabcompletion.c android/client/if-hf-client.c android/client/history.h android/client/if-audio.c android/client/terminal.h android/client/if-av.c android/client/if-main.h android/client/if-av-sink.c android/client/terminal.c android/client/if-mce.c android/client/if-hf.c android/client/pollhandler.c android/client/if-sock.c android/client/if-rc-ctrl.c android/client/if-rc.c android/client/history.c android/client/if-pan.c android/client/if-gatt.c android/client/if-bt.c android/client/if-hl.c License: LGPL-2.1-or-later android/sco.h android/socket.c android/tester-main.h android/hidhost.h android/map-client.h android/utils.h android/hal-msg.h android/health.h android/avrcp-lib.c android/bluetoothd-snoop.c android/a2dp.c android/bluetooth.h android/a2dp-sink.c android/handsfree-client.c android/audio-msg.h android/main.c android/pan.c android/ipc-tester.c android/health.c android/socket.h android/handsfree.h android/avrcp-lib.h android/a2dp-sink.h android/system-emulator.c android/gatt.c android/avrcp.h android/pan.h android/test-ipc.c android/hidhost.c android/a2dp.h android/avrcp.c android/sco-msg.h android/bluetooth.c android/map-client.c android/handsfree-client.h android/ipc.c android/handsfree.c android/gatt.h android/ipc.h android/ipc-common.h android/compat/wordexp.h android/cutils/properties.h License: GPL-2.0-or-later android/avdtp.h android/avctp.c android/avdtptest.c android/sco.c android/log.c android/avdtp.c android/avctp.h android/compat/readline/history.h android/compat/readline/readline.h
* android: Create comon header for IPCSzymon Janc2014-02-281-26/+30
| | | | | | | | | This header contains IPC specific structures and code not related to BT and audio HAL protocols. This allows to fully decouple IPC from HAL messages. This is first step to make HAL part of IPC unit-testable and reusable between BT HAL and audio HAL.
* android: Add support for disabling notifications in IPCSzymon Janc2014-02-281-4/+4
|
* android/unit: Update test-ipc with disconnect handler supportSzymon Janc2014-02-281-83/+34
|
* android: Add support for registering disconnect callback in IPCSzymon Janc2014-02-281-4/+4
| | | | | | Allow to register callback which is called in case of IPC failure (eg malformed message) or disconnection. This makes caller responsible for performing expected action in such case.
* android: Refactor IPC initSzymon Janc2014-02-281-13/+31
| | | | | This allows to pass socket path and max service ID while initializaing IPC. This is first step to allow use it both for BT and Audio HALs.
* android/test-ipc: Use correct boolean values for glib functionsAnderson Lizardo2014-02-121-2/+2
|
* android/test-ipc: Fix crash due to invalid ipc_register() parameterAnderson Lizardo2014-02-121-1/+1
| | | | | | | | | | This test checks for proper handling of invalid Service ID on a IPC message, but it was attempting to register handlers for this invalid ID, which on current ipc_register() implementation was causing a buffer overrun. The fix was to use a valid ID during registration, but still attempt to use an invalid one when sending the message.
* android: Update copyright and license detailsMarcel Holtmann2014-02-111-10/+11
|
* android/unit: Some codestyle cleanupsSzymon Janc2014-02-041-21/+13
|
* android/unit: Make tests names shorterSzymon Janc2014-02-041-13/+13
|
* android/unit: Add cases for msg size verificationJakub Tyszkowski2014-02-041-0/+38
| | | | | | 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.
* android/unit: Add case for sending incomplete headerJakub Tyszkowski2014-02-041-0/+12
| | | | Header size is the bare minimum that should always be sent.
* android/unit: Add negative case for msg size verificationJakub Tyszkowski2014-02-041-0/+12
| | | | | Case for checking message size declared inside the header against the amount of data sent for variable sized message.
* android/unit: Add case for out of range serviceJakub Tyszkowski2014-02-041-0/+18
| | | | | Check reaction for sending message to services not listed inside hal-msg.h
* android/unit: Add another case for variable sized dataJakub Tyszkowski2014-02-041-0/+15
| | | | | | | | 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.
* android/unit: Add test case for variable sized dataJakub Tyszkowski2014-02-041-0/+29
| | | | | Check if sending variable length data with proper msg size declared inside the header succeeds.
* android/unit: Add support for variable length dataJakub Tyszkowski2014-02-041-3/+10
| | | | | | 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.
* android/unit: Add case for opcode without handlerJakub Tyszkowski2014-02-041-0/+12
| | | | This test case checks if IPC shuts down on unhandled opcode.
* android/unit: Add test cases for proper handler callsJakub Tyszkowski2014-02-041-0/+46
| | | | | | 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.
* android/unit: Rename cmd handlerJakub Tyszkowski2014-02-041-2/+2
| | | | | | This handler responses for opcode == 1, thus should use proper naming to avoid confision when more functions sending different responses will be added.
* android/unit: Fix checking for expected terminationJakub Tyszkowski2014-02-041-0/+2
| | | | | | | 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.
* android/unit: Rename tests names to be more descriptiveSzymon Janc2014-02-031-8/+9
|
* android/unit: Add /android_ipc/send_cmd_3 test caseMarcin Kraglak2014-02-031-0/+36
| | | | | This case will register service, next unregister it and send command. Expected status is raise SIGTERM.
* android/unit: Add /android_ipc/send_cmd_2 test caseMarcin Kraglak2014-02-031-0/+62
| | | | This will test sending command to previously registered service.
* android/unit: Add /android_ipc/send_cmd_1 test caseMarcin Kraglak2014-02-031-1/+45
| | | | | This test case will check if ipc lib will raise SIGTERM after sending command to not registered service.
* android/unit: Add android IPC unit testsMarcin Kraglak2014-02-031-0/+277
It will test ipc library. First test case will check ipc_init() call.