summaryrefslogtreecommitdiffstats
path: root/bluetooth
Commit message (Collapse)AuthorAgeFilesLines
* Bluetooth Audio HAL interface v2Pavlin Radoslavov2019-01-145-0/+405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generalized Bluetooth Audio HAL interface. It is similar to the original android.hardware.bluetooth.a2dp@1.0 interface with the following modifications: * The session type can be one of the following: - A2DP Software Encoding Datapath - A2DP Hardware Encoding Datapath - Hearing Aid Software Encoding Datapath * For Hardware Offload Datapath (A2DP), the HAL interface is used only for the control path * For Software Encoding Datapath (A2DP or Hearing Aid), the HAL interface is used for both the control and data paths * Added Delay Report support: IBluetoothAudioHost.getPresentationPosition() that was missing in the original android.hardware.bluetooth.a2dp@1.0 HAL interface. * Removed "oneway" calls to avoid potential reordering of HAL calls: b/111244402 * Updated SBC-specific codec configuration * Added AAC-specific and LDAC-specific codec configuration * Reorganized the original CodecConfiguration into two sections: - PcmDataConfiguration: Audio PCM data configuration - EncodedDataConfiguration: Encoded audio data codec configuration. It is used only if the HAL is responsible for encoding the PCM audio data. * Added new HAL IBluetoothAudioProvidersFactory. It is used to open an audio provider for an audio session as specified by the session type and the codec configuration as negotiated with the remote device. Bug: 111519504 Test: manual Change-Id: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb Merged-In: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb (cherry picked from commit fcc0732db4af7586ee71310e5d4f6b9b0d94e6c4)
* pack VTS cc_test binaries as general-testsKeun Soo YIM2018-12-073-0/+3
| | | | | | | Test: make general-tests Bug: 120093339 Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
* Merge "Initialize pointers for vendor_interface"Joseph Pirozzo2018-11-132-4/+5
|\
| * Initialize pointers for vendor_interfaceJoseph Pirozzo2018-11-132-4/+5
| | | | | | | | | | | | | | | | Default member variables to nullptr. Bug: 118075338 Test: Inspection Change-Id: I5fc8a5b45d2c1116036139e308743a1928abaef3
* | BT: Make Bluetooth HCI VTS tests more stableJack He2018-11-131-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Add a 200ms sleep after BluetoothHci->close() to give HAL an ample time to shutdown * Add override modifier to certain serviceDied() callback * Change from return to break in handle_no_ops * Add more logging to TearDown() Test: make, VtsHalBluetoothV1_0TargetTest Bug: 119071943 Change-Id: I5c919a99fb651f8f52d1d34847e1f9b4325efcd5
* | BT: Use one OWNERS file per VTS directoryJack He2018-11-133-1/+16
|/ | | | | | | | | | * Unfortunately, glob pattern in OWNERS file cannot include directory paths and hence **/vts/** mechanism doesn't work * For now, we need an individual OWNERS file for each VTS directory that we have Test: make Change-Id: Iacad2cb78152c06829632126c210c9585dce2a31
* Merge "BT: Fix glob pattern in owners file"Treehugger Robot2018-11-121-1/+1
|\
| * BT: Fix glob pattern in owners fileJack He2018-11-091-1/+1
| | | | | | | | | | | | | | | | | | - */vts/* only matches one layer of directories e.g. a/vts/b is matched, a/b/vts/c is not matched - **/vts/** matches everything up to a/b/c/vts/d/e/f Test: make Change-Id: I57ea4f2ab2fdeef5929895c7443a1d1097985dba
* | Fix android.hardware.bluetooth@1.0-service.rcZhuoyao Zhang2018-11-091-8/+0
|/ | | | | | | | | | | * Remove the action on property vts.native_server.on, the current one will actually turn off the BT HAL service Bug: 118637723 Test: make vts vts-tradefed run vts -m VtsHalBluetoothV1_0Target Change-Id: I5bcc0532d57c2f5f3b01a8df1bab8c358270ca73
* Bluetooth: Add OWNERS file to Bluetooth VTS testsJack He2018-11-081-0/+1
| | | | | | | | * Add Bluetooth related persons to OWNERS file for Bluetooth VTS tests so that it is easier to develop VTS tests in the future Test: make Change-Id: I202145344582f9a5ad9dd367da897f5982db57eb
* VTS: Subscribe to death notification of HAL serviceJack He2018-11-061-0/+16
| | | | | Test: make, run HciReset test Change-Id: I03bfc115e2330eb92608c8020edfda898902eec8
* Apply clang-format to Bluetooth related HAL codeJack He2018-10-2320-195/+230
| | | | | | | | | - cp system/bt/.clang-format hardware/interfaces/bluetooth/ - modify hardware/interfaces/bluetooth/.clang-format to match context - find . -type f \( -iname \*.cpp -o -iname \*.h -o -iname \*.cc \) | xargs clang-format --style=file -i Test: make Change-Id: I82e4f26e1efeb715aff7de8a15c3db06e02967a4
* VTS: Check return status of initialize and closeJack He2018-10-081-8/+10
| | | | | Test: atest VtsHalBluetoothV1_0TargetTest Change-Id: I579c4d5f4c6e24b358c67c3dc8a8a8ceb1f936e2
* VTS for Bluetooth A2DP HALHansong Zhang2018-04-112-0/+152
| | | | | | | | Initial VTS commit for the bluetooth.a2dp@1.0 HAL Test: VTS Bug: 74900514 Change-Id: I752abc4878ee6a974ce3a17ad852e941783da022
* Add BLOCK_SUSPEND capability for Bluetooth HAL serviceTom Cherry2018-03-291-1/+1
| | | | | | | | | | This is needed for some platforms Bug: 74554159 Bug: 77213213 Test: walleye BT works Change-Id: If0033c5a7fc09057415b27196fa4541e9aadfb4b (cherry picked from commit 2d46875666afc7934c1360290cac85df864ed5a5)
* Add capabilities to bluetooth HAL serviceTom Cherry2018-03-261-0/+1
| | | | | | | Bug: 74554159 Test: BT works on walleye Change-Id: Ib2e1be66ae92ce742540a50cffc8c675db945655 (cherry picked from commit f03dbc6924e29bb4d3f2b2dcc5fd526125614406)
* Bluetooth: A2DP offload HIDLSunny Kapdi2018-03-127-0/+420
| | | | | | | | | | Interface for Bluetooth A2DP offload feature. Bug: 63932139 Bug: 72242910 Test: Manual; TestTracker/148125 Change-Id: I3649800dfe3e1a2d66b76859be87e01ee58d2de0 (cherry picked from commit 4e95d81ef048bfdc33cee7cf8bdbe66603b30f96)
* Bluetooth: Relax NO_OP and SCO checks am: 72382e3014 am: 4de5fba958Myles Watson2018-03-011-105/+148
|\ | | | | | | | | | | am: 3174a29883 Change-Id: I6eab0b25080645922f1498f92d4876308a689dfb
| * Bluetooth: Relax NO_OP and SCO checksMyles Watson2018-03-011-105/+148
| | | | | | | | | | | | | | | | | | | | Ignore NO_OP complete events. Ignore ordering for Loopback Mode Connection/Command Complete. Only check for SCO buffer size when SCO connections are made. Bug: 69785298 Test: VtsHalBluetoothV1_0TargetTest Change-Id: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
* | Convert bluetooth hal test to use VtsHalHidlTargetTestEnvBase am: 7a727ff3ec ↵Zhuoyao Zhang2018-02-131-10/+20
|\| | | | | | | | | | | | | | | am: d87afe3938 am: 54544a94ec Change-Id: I3392818680fcfea3fdd5d32c753ddc464eb54895
| * Convert bluetooth hal test to use VtsHalHidlTargetTestEnvBaseZhuoyao Zhang2018-02-121-10/+20
| | | | | | | | | | | | | | | | Bug: 64203181 Test: make vts vts-tradefed run vts -m VtsHalBluetoothV1_0Target Change-Id: Ib6030ab0191913362ce54262c7ec8baa1f0bd147
* | Bluetooth: Sleep instead of dying on EOF am: 0d63f8af7c am: e63d6a08ceMyles Watson2018-01-102-9/+18
|\| | | | | | | | | | | am: 7365ea5b9d Change-Id: If88fda6729848f345a4645bff7f684b8f778994d
| * Bluetooth: Sleep instead of dying on EOFMyles Watson2018-01-092-9/+18
| | | | | | | | | | | | | | | | | | | | When a device is restarted, the UART may go away before the packetizer. Print an error and sleep in case it isn't really a restart. Bug: 70855323 Test: Repeated restarts, check for Bluetooth tombstones Change-Id: I2b4e677451e826d40dcc9d063d80dc0e17fc9aca
* | BT Interface: fix hci cmd timeout am: 424ffd0da5 am: fc0e8c6f48Lianchao Song2018-01-091-0/+3
|\| | | | | | | | | | | am: 6991b9f428 Change-Id: I6daa5c12ddd45ef212ac47369005cbb625527e7d
| * BT Interface: fix hci cmd timeoutLianchao Song2018-01-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add mutex in function Send() and OnTimeout() to do mutual exclusive access on lpm_wake_deasserted. If lpm_wake_deasserted is out of sync with the actual wake state, then platforms which use the lpm hint will break. Bug: 64299848 Test: run affected platform for a long period of time and find that hci commands do not time out Change-Id: I9f630d6f40f84b9c047c6488632cd44d6602bb14
* | Fix problem found with host bionic fortify checks am: dc1921810e am: 6737d81d15Dan Willemsen2017-12-011-1/+1
|\| | | | | | | | | | | am: ca253762cb Change-Id: Ie33aa142f0af34f640397c29baf5d8076b89dc32
| * Fix problem found with host bionic fortify checksDan Willemsen2017-12-011-1/+1
| |\ | | | | | | | | | | | | | | | am: dc1921810e Change-Id: Id82671e9f0b4debc28b516a0b3f10104fc54e198
| | * Fix problem found with host bionic fortify checksDan Willemsen2017-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | hardware/interfaces/bluetooth/1.0/default/test/bluetooth_address_test.cc:59:39: error: 'open' called with O_CREAT or O_TMPFILE, but missing mode Bug: 31559095 Test: out/host/linux-x86/nativetest{,64}/bluetooth-address-unit-tests/bluetooth-address-unit-tests Change-Id: I913c78e25eccaecf8830f1caf8e92f834ab8bb76
| | * Merge "Remove subdirs"Treehugger Robot2017-11-291-6/+0
| | |\
| | | * Remove subdirsSteven Moreland2017-11-281-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
| * | | Remove subdirsSteven Moreland2017-11-281-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
* | | | Remove subdirsSteven Moreland2017-11-281-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
* | | | Merge "Use -Werror in hardware/interfaces" am: 02804915fb am: 8e736c21deChih-Hung Hsieh2017-11-281-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: f53fe9317b Change-Id: Ifc0a5be285be1a57d998db3c032e392b307cfa80
| * | | Merge "Use -Werror in hardware/interfaces"Chih-Hung Hsieh2017-11-281-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: 02804915fb Change-Id: Id73af9532487a85ad1d1170dbce809761d4a93a8
| | * | Use -Werror in hardware/interfacesChih-Hung Hsieh2017-11-201-0/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | * Use hidl_defaults, which has -Wall -Werror. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ifbca0e176a8e031acc27256eb46d23b89cdf1a0e
| * | Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' fromXin Li2017-11-145-1/+5
| |\ \ | | |/ | |/| | | | | | | | | | | | | oc-mr1-dev-plus-aosp into stage-aosp-master Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341 Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
| * | Update makefiles for hidl_interface.Steven Moreland2017-11-101-166/+11
| | | | | | | | | | | | | | | | | | Bug: 35570956 Test: manual Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
* | | Updating makefiles for hidl_interface.Steven Moreland2017-11-131-166/+11
| | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: manual Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812 Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
* | | Merge "Automatic mk -> bp." am: e5fd969f19 am: 72c720a4e3Steven Moreland2017-11-072-39/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: 26013bf6ac Change-Id: Id936fb4806d122045c771c951220361efeef10c6
| * | | Merge "Automatic mk -> bp." am: e5fd969f19Steven Moreland2017-11-072-39/+20
| |\| | | | |/ | |/| | | | | | | | | | am: 72c720a4e3 Change-Id: Icfc8b46117e94461906806023852836a0ace3a55
| | * Automatic mk -> bp.Steven Moreland2017-11-032-39/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic mk -> bp conversion for all modules here which can be converted and built automatically. Test: Soong resolves all dependencies Bug: 37512442 Change-Id: Ib789212cb88d55731397c600d132e7c672c0d8be
* | | Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1Steven Moreland2017-10-112-88/+28
|\| | | | | | | | | | | | | | | | | am: 116161d94e Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
| * | Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1Steven Moreland2017-10-112-88/+28
| |\| | | | | | | | | | | | | | | | am: 6c811964a1 Change-Id: I85ccbb4a15cd18938607f5bca4e065b9d7e0182b
| | * Update for Soong java makefiles.Steven Moreland2017-10-102-88/+28
| | | | | | | | | | | | | | | | | | Test: pass Bug: 33420795 Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
* | | Merge "Update for hidl adapter module defaults." am: 988c977079 am: ↵Steven Moreland2017-10-041-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 861651985f am: b53e6ad535 am: 9a17f41f6f Change-Id: I78d9292068b372238554fd9d35128e69f5b5f9d2
| * | Merge "Update for hidl adapter module defaults." am: 988c977079 am: 861651985fSteven Moreland2017-10-041-0/+1
| |\| | | | | | | | | | | | | | | | am: b53e6ad535 Change-Id: I23269fb7a9bdd352e670a80f390527d9eef31412
| | * Update for hidl adapter module defaults.Steven Moreland2017-10-041-0/+1
| | | | | | | | | | | | | | | Test: pass Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf
* | | Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3 am: ↵Steven Moreland2017-09-271-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | 71a193a425 am: 9fdd241905 Change-Id: I1c852fa6600fecc44d5afd1a65a5f51c43ecf71c
| * | Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3Steven Moreland2017-09-261-1/+2
| |\| | | | | | | | | | | | | | | | am: 71a193a425 Change-Id: I45ae43f07323254212532acbf0f891d11143b05f
| | * Fix typo in update makefiles.Steven Moreland2017-09-261-1/+2
| | | | | | | | | | | | | | | | | | Bug: 37518178 Test: pass Change-Id: Ic401b3a473f15ca4c01e58b3072e19db7c31b653