summaryrefslogtreecommitdiff
path: root/android/tester-gatt.c
Commit message (Collapse)AuthorAgeFilesLines
* android: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-12/+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
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* android/tester: Fix race in discovering devicesSzymon Janc2017-12-221-49/+63
| | | | | | This makes sure that emulated device starts advertising only after discovery is ongoing and that tests go further only after device was found. Otherwise tests were randomly failing.
* android: Remove dead codeSzymon Janc2015-10-301-6/+1
| | | | | This removes dead code due to memory allocation with new0 not being able to fail.
* android/tester: Add robustness test for get included servicesLukasz Rymanowski2015-02-271-0/+32
|
* android/tester: Add robustness test for get descriptorLukasz Rymanowski2015-02-271-0/+37
|
* android/tester-gatt: Add robustness test for get characteristicLukasz Rymanowski2015-02-271-0/+32
| | | | | This test makes sure that BlueZ correctly handles incorrect response from remote device on get characteristic.
* android/tester-gatt: Add robustness test for search servicesLukasz Rymanowski2015-02-271-0/+27
| | | | | | This test verifies if BlueZ do not start infinitive service search when remote device response with incorrect end handle in Read By Group response
* android/tester-gatt: Add Find By Type testLukasz Rymanowski2015-02-241-0/+50
| | | | | This patch adds test to check if GATT server response on Find By type request when there is no matching attribute in the range
* android/tester: Add test for GATT server app indication confirmationJakub Tyszkowski2015-02-191-1/+4
| | | | | 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/+65
| | | | This is to verify proper error passing from user apps.
* android/tester: Fix ccc descriptor handleJakub Tyszkowski2015-02-051-1/+1
| | | | Some service handle count was recently changed.
* android/tester: Add case for GATT embedded attributes writesJakub Tyszkowski2015-01-131-0/+42
| | | | | This tests if Service Changed CCC descriptor write request is properly handled.
* android/tester: Use multiple iovecs instead of one large bufferJakub Tyszkowski2015-01-131-62/+18
| | | | | | This simplifies sending pdus which are made of header ond few other parts by using multiple iovectors instead of copying buffers and aggregating data in some additional structures.
* android/tester: Support remote sending pdu from fragmentsJakub Tyszkowski2015-01-131-2/+29
| | | | This handles multiple iovectors instead of one assembled pdu.
* android/tester: Add macro improving pdu send procedureJakub Tyszkowski2015-01-131-1/+1
| | | | | | | | | 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-14/+14
| | | | | 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 verification for test case list creatorsGrzegorz Kolodziejczyk2014-12-181-1/+5
| | | | | To be safe it must be chcecked if queue_new and add test case to list was successful.
* android/tester: Refreactor tester-main header includesGrzegorz Kolodziejczyk2014-12-181-1/+4
| | | | | 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-9/+8
| | | | | We shouldn't include header for one define. All test cases use internal defines for commands as adopted.
* android/tester: Update GATT server testsSzymon Janc2014-11-251-4/+4
| | | | Update transport type defines to Android 5.
* android/tester-gatt: deduplicate read-by-type PDUsMichael Janssen2014-11-141-45/+18
| | | | These read-by-type PDUs are repeated multiple times throughout the code.
* android/tester-gatt: Fix search single PDUsMichael Janssen2014-11-141-80/+26
| | | | | | | | The final PDU of the search single exchange was malformed on many of these: 0x11 instead of 0x10 in the "request opcode in error" slot. This patch fixes this bug and deduplicates the repeated PDUs by using a macro instead.
* android/tester: Remove APP ID from actions in GATT testsSzymon Janc2014-11-071-128/+64
| | | | Those functions now don't take application ID parameters.
* android: Update Android system headers to 5.0 APIAndrei Emeltchenko2014-11-071-8/+7
| | | | Android headers are used for Linux host build.
* android/tester-gatt: Print handle for writeLuiz Augusto von Dentz2014-11-061-0/+3
|
* android/tester: Add GATT server send response to write req test casesGrzegorz Kolodziejczyk2014-10-241-0/+128
| | | | 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/+153
| | | | This adds send response by server to read request test cases.
* android/tester: Add GATT server send indication test casesGrzegorz Kolodziejczyk2014-10-241-2/+158
| | | | This adds send indication by server test cases.
* android/tester: Add att pdu remote receive debug logGrzegorz Kolodziejczyk2014-10-241-0/+2
| | | | This adds additional logs with received opcode of att pdu by remote
* android/tester: Use BT_STATUS defines instead of hardcoded valuesGrzegorz Kolodziejczyk2014-10-241-4/+4
| | | | Status value in test case structs should use defined BT_STATUS types.
* android/tester: Fix hardcoded length valuesGrzegorz Kolodziejczyk2014-10-241-2/+2
| | | | Lenght variable shouldn't be hardcoded in test case structs.
* android/tester: Define write types for GATT test casesGrzegorz Kolodziejczyk2014-10-241-2/+7
| | | | Gatt test cases should use defined write types.
* android/tester: Add GATT server delete service test casesGrzegorz Kolodziejczyk2014-10-101-0/+54
| | | | This adds delete service by server test cases.
* android/tester: Add GATT server stop service test casesGrzegorz Kolodziejczyk2014-10-101-0/+62
| | | | This adds stop service by server test cases.
* android/tester: Add GATT server start service test casesGrzegorz Kolodziejczyk2014-10-101-0/+100
| | | | This adds start service by server test cases.
* android/tester: Add Gatt Write Descriptor Insuf. Auth.Mariusz Skamra2014-10-081-0/+62
| | | | Test case for insufficient authorization error
* android/tester: Add Gatt Write Descriptor Wrong ParamMariusz Skamra2014-10-081-0/+55
| | | | Write descriptor value using wrong parameters test case
* android/tester: Add Gatt Write Descriptor SuccessMariusz Skamra2014-10-081-1/+107
| | | | Write descriptor value test case.
* android/tester: Add GATT server add descriptor test casesGrzegorz Kolodziejczyk2014-10-061-0/+102
| | | | This adds descriptor add by server test cases.
* android/tester: Add GATT server add characteristic test casesGrzegorz Kolodziejczyk2014-10-061-0/+74
| | | | This adds characteristic add by server test cases.
* android/tester: Add GATT server add include service test casesGrzegorz Kolodziejczyk2014-10-061-0/+79
| | | | This adds include service add by server test cases.
* android/tester: Add GATT server add service test casesGrzegorz Kolodziejczyk2014-10-061-0/+118
| | | | This adds service add by server test cases.
* android/tester: Add GATT server multiple connect succesful test caseGrzegorz Kolodziejczyk2014-10-061-0/+34
| | | | | It will connect to powered on and visible device multiple time then disconnects.
* android/tester: Add GATT server disconnect successful test caseGrzegorz Kolodziejczyk2014-10-061-0/+40
| | | | It will connect to powered on and visible device then disconnect.
* android/tester: Add GATT server connect successful test caseGrzegorz Kolodziejczyk2014-10-061-0/+38
| | | | It will connect to powered on and visible device.
* android/tester: Change GATT client connection test cases to LE connectGrzegorz Kolodziejczyk2014-10-061-3/+14
| | | | | | Current GATT client connect test cases don't check if found device is BLE type. Now it's updated with check step (device found callback analyze for device type).
* android/tester: Make client2 app uuid value name consistentGrzegorz Kolodziejczyk2014-10-061-6/+6
| | | | Application uudis for tester should be name unified and consistent.
* android/tester: Add GATT Notification test - NotifyMarcin Kraglak2014-10-021-0/+58
| | | | Test receiving notifications in GATT Client.
* android/tester: Add GATT Notification test - IndicateMarcin Kraglak2014-10-021-0/+119
| | | | Test receiving notifications from remote device.