summaryrefslogtreecommitdiff
path: root/android/tester-main.h
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: Fix build with GCC 10Szymon Janc2020-04-201-2/+2
| | | | | | status and state are used to hold various enum types depending on test and callback passed. Define them as int to avoid warnings about enum assignment from invalid type.
* android/tester: Add test for GATT server app indication confirmationJakub Tyszkowski2015-02-191-0/+7
| | | | | This adds checking if sent indication or notification has been confirmed over HAL.
* android/tester: Add case for error passing in GATT server responsesJakub Tyszkowski2015-02-191-0/+7
| | | | This is to verify proper error passing from user apps.
* android/tester: Add macro improving pdu send procedureJakub Tyszkowski2015-01-131-2/+11
| | | | | | | | | As of now when we want to send response from remote device, we compose pdu from handle and value, which are then copied into fixed size pdu with predefined header. With this macro we will be able to pass up to 3 iovectors which are then send without additional copying. It also quite generic and can be used to any other kind of data processing nad not only for sending pdus.
* android/tester: Use uint16_t for handlesJakub Tyszkowski2015-01-131-8/+8
| | | | | Handles are only 2 bytes in size. We should use uint16_t to be able to safely cast iovec with such handle to uint16_t and vice versa.
* android/tester: add initial support for map-client testerGrzegorz Kolodziejczyk2014-12-181-0/+28
| | | | | | This adds callback, callback verification, step verification, mas instance verification, map client profile setup handling and basic files.
* android/tester: Refreactor tester-main header includesGrzegorz Kolodziejczyk2014-12-181-23/+2
| | | | | Profile testers should contain necessary headers include instead of tester-main header.
* android/tester: Remove not needed include of hal_msg.hGrzegorz Kolodziejczyk2014-12-101-0/+1
| | | | | We shouldn't include header for one define. All test cases use internal defines for commands as adopted.
* android/tester: Add AVRCP RegNotifPlayStatusChanged test caseRavi kumar Veeramally2014-12-031-0/+5
|
* android/tester: Add AVRCP RegNotifPlayPositionChanged test caseRavi kumar Veeramally2014-12-031-0/+5
|
* android/tester: Add AVRCP GetElementAttributes test caseRavi kumar Veeramally2014-10-291-0/+10
|
* android/tester: Add AVRCP RegNotifTrackChanged test caseRavi kumar Veeramally2014-10-291-0/+8
|
* android/tester: Add AVRCP GetPlayStatus test caseRavi kumar Veeramally2014-10-291-0/+14
|
* android/tester: Fix wrong state comparison in A2DP and AVRCP testsRavi kumar Veeramally2014-10-291-4/+7
| | | | | btav_connection_state_t and btav_audio_state_t enum values are wrongly stored in different enum type(bt_state_t state).
* android/tester: Add GATT server send response to write req test casesGrzegorz Kolodziejczyk2014-10-241-0/+22
| | | | This adds send response by server to write request test cases.
* android/tester: Add GATT server send response to read req test casesGrzegorz Kolodziejczyk2014-10-241-0/+27
| | | | This adds send response by server to read request test cases.
* android/tester: Add GATT server send indication test casesGrzegorz Kolodziejczyk2014-10-241-0/+2
| | | | This adds send indication by server test cases.
* android/tester: Add GATT server delete service test casesGrzegorz Kolodziejczyk2014-10-101-0/+7
| | | | This adds delete service by server test cases.
* android/tester: Add GATT server stop service test casesGrzegorz Kolodziejczyk2014-10-101-0/+7
| | | | This adds stop service by server test cases.
* android/tester: Add GATT server start service test casesGrzegorz Kolodziejczyk2014-10-101-0/+7
| | | | This adds start service by server test cases.
* android/tester: Add GATT server add descriptor test casesGrzegorz Kolodziejczyk2014-10-061-0/+14
| | | | This adds descriptor add by server test cases.
* android/tester: Add GATT server add characteristic test casesGrzegorz Kolodziejczyk2014-10-061-0/+16
| | | | This adds characteristic add by server test cases.
* android/tester: Add GATT server add include service test casesGrzegorz Kolodziejczyk2014-10-061-0/+10
| | | | This adds include service add by server test cases.
* android/tester: Add GATT server add service test casesGrzegorz Kolodziejczyk2014-10-061-0/+14
| | | | This adds service add by server test cases.
* android/tester: Add case for reconnecting HID keyboard deviceJakub Tyszkowski2014-10-061-0/+1
| | | | | This test case checks if we correctly raise security level for reconnecting keyboard devices when previously paired.
* android/tester: Add encryption change callbackJakub Tyszkowski2014-10-061-0/+2
| | | | This is needed for encryption verification.
* android/tester: Improve HIDHost data sending verificationJakub Tyszkowski2014-10-061-0/+3
| | | | | | | | | | Hciemu hooks may be called in different test stage than we expect and we shouldn't blindly verifying the step with success every time when data is send, as we really dont know the step we are currently in. This patch fixes this issue by splitting the action in two steps: action step that triggers data sending and callback step that verifies on remotes sid that data was send.
* android/tester: Rename and expose callback verification functionJakub Tyszkowski2014-10-061-0/+1
| | | | | | This is needed to verify action result on remotes side by using hciemu hooks for example. As hooks are test specific, we need this to be exposed to other testers.
* android/tester: Add GATT server connect successful test caseGrzegorz Kolodziejczyk2014-10-061-0/+10
| | | | It will connect to powered on and visible device.
* android/tester: Fix debug callback logsGrzegorz Kolodziejczyk2014-10-061-1/+2
| | | | | Debug logs for callback should also print logs if callback is not expected. Additional value in callback enum is added (BT_CB_NONE).
* android/tester: Add support for GATT Notification in testerMarcin Kraglak2014-10-021-0/+18
| | | | Service register_for_notification and notification callbacks.
* android/tester: Use generic connect callback for simple casesJakub Tyszkowski2014-10-021-0/+1
| | | | | This is usefull when no custom behavior and just simple pdu exchange is needed.
* android/tester: Add generic hook to handle pdu exchangeJakub Tyszkowski2014-10-021-0/+10
| | | | | | | | | | | | | | | | This allows tester-main to register hooks for certain CID to automatically perform pdu exchange by registering array of pdu pairs (request_pdu, response_pdu). When end_pdu is used instead of request_pdu, response is sent immediately without incoming pdu verification. A pair with end_pdus set as request and response is considered as the end of pdu pairs array. This callback can also handle sdp request<->response while transaction ID for the response is swaped to match the one from SDP request. 'emu_l2cap_cid_data' is used to pass tha appropriate data to the hook mechanism. It is similar to 'emu_cid_data" used in other testers and eventually will replace those.
* android/tester: Expose structs holding request pdu and response pduJakub Tyszkowski2014-10-021-0/+15
| | | | | | | This exposes the structs holding request and response pdus from a2dp and avrcp testers and makes it available to other testers. It also makes it use iovectors. Some helper macros were also extracted from gatt tester and reused.
* android/tester: Make tester debug logs verboseGrzegorz Kolodziejczyk2014-09-291-0/+2
| | | | | This adds additional logs to match function. In case if compared values don't match, tester will print those values.
* android/tester: Make client and server id unifiedGrzegorz Kolodziejczyk2014-09-291-3/+3
| | | | | This makes unified id numers for both gatt server and client defined as application id.
* build: Move hciemu.c and hciemu.h into emulator directoryMarcel Holtmann2014-09-251-1/+1
|
* android/tester: Add support for GATT Client Read/Write callbacksMarcin Kraglak2014-09-251-0/+31
| | | | It will service GATT Client read/write callbacks.
* android/tester: Add support for GATT Get Included Service callbackMarcin Kraglak2014-09-111-0/+10
| | | | Service and verify GATT Client Get Included Service callback.
* android/tester: Add support for GATT Get Descriptor callbackMarcin Kraglak2014-09-111-0/+11
| | | | Service and verify GATTT Client Get Descriptor callback.
* android/tester: Add AVRCP init - Success test caseLuiz Augusto von Dentz2014-09-051-0/+4
|
* android/tester: Add support for get_characteristic_cb()Marcin Kraglak2014-09-021-0/+11
| | | | | Verify data passed to get_characteristic_cb. It is needed for tester-gatt.
* android/tester: Add support for search services callbacksMarcin Kraglak2014-09-021-0/+14
| | | | | Add support for search_result_cb() and search_complete_cb() in android tester. It is needed for GATT client test cases.
* android/tester: Add function to set default ssp handlerMarcin Kraglak2014-09-021-0/+1
| | | | | | In most test cases pairing can be performed but is not part of test case, and shouldn't have impact on test case result. This helper set defult handler, which will always accept SSP requests.
* android/tester: Simplify ACTION_FAIL and ACTION_SUCCESS definesMarcin Kraglak2014-09-021-12/+6
|
* android/tester: Add function to set io cap to bthostLukasz Rymanowski2014-08-281-0/+2
| | | | | Some tests might need to change default io capabilities of bthost. This patch adds means to do it.
* android/tester: Add parameter to remote connect functionLukasz Rymanowski2014-08-281-0/+3
| | | | | This patch extends emu_remote_connect_hci_action function with address type of device to be connected
* android/tester: Move emu related functions to tester mainLukasz Rymanowski2014-08-281-0/+3
| | | | | | | | Those function can be used by other tester modules In addition function emu_remote_disconnect_hci_action has been changed a bit so it take handle from step data now. It was needed as cid_data was static in tester_gatt.c
* android/tester: Add A2DP Resume - Success test caseLuiz Augusto von Dentz2014-08-111-0/+7
|