- 12 Jan, 2016 3 commits
-
-
Andre Eisenbach authored
-
Arman Uguray authored
Turned the Adapter class into an abstract interface so that we can inject a mock Adapter in tests where there is an Adapter dependency but where we don't care about side-effects/stack-calls created from the Adapter. Bug: 25744656 Change-Id: Ibf7dd9a4cc1008cbb36e60f7b87cfcb4ef2bd5d8
-
Andre Eisenbach authored
Bug: 26070064 Change-Id: Ida1faec964982a4630f42ab378fe5b6dd6e21c16
-
- 11 Jan, 2016 2 commits
-
-
Andre Eisenbach authored
This CL is a pre-cursor to cleaning up repeated memory allocation code full of null-pointer checks. In the vast majority of cases in the Bluetooth stack, a failed allocation is not recoverable and results in undefined behaviour. By asserting, we can ensure we have a shot at catching and fixing any issues not caused by OOM conditions. Bug: 26494317 Change-Id: I53dff98c596068211934a1808f90de2d4484f952
-
Jakub Pawlowski authored
-
- 07 Jan, 2016 3 commits
-
-
Jakub Pawlowski authored
This patch implements OOB pairing for LE devices using TK. Patches for other pairing methods, and other transports will follow. Bug: 22932952 Change-Id: Iad3c0c035de3b5a62ef24d3e3b655773fa03d5c1
-
Andre Eisenbach authored
Please see source code for usage information and application. Bug: 22948224 Change-Id: Ia2dbd618ddcdf13abf3c63d4649147f400e00cfe
-
Ajay Panicker authored
Prevent the alarm from being started multiple times. Bug: 26277592 Change-Id: I764f93bab5490bf5f3942a1beb706457197d3ec1
-
- 06 Jan, 2016 3 commits
-
-
Ajay Panicker authored
Fixed an issue where the set/get name test would fail every so often due to the fact that the old name property would become invalid after the properties array was freed. Bug: 25793348 Change-Id: I4513219da2fb947b3b199f25a61c308b9fced8b6
-
Sharvil Nanavati authored
The following sequence of events was observed: - start bonding with device A - bond state for A goes from 10 -> 11 -> 12 - everyone's happy - start bonding with device B - bond state for B goes from 10 -> 11 - bond state for A goes from 12 -> 11 -> 12 The bond state for A should not have been changed in the last step since it was not participating in any bonding procedure at the time. The above sequence can be reproduced if a device D bonds with A and takes on the slave role and then D bonds with B and switches to a master role. When D performs the role switch, it receives an updated link key from A. Since the link key update procedure is tied in with the pairing flow, we see spurious bond state changes. This CL checks the pairing control block to see if D is, in fact, pairing with A and if not, it skips the bond state updates. Bug: 25870383 Change-Id: Ic6ff548dbe4e960c965bdc9ef5c50a263b9b3b22
-
Andreas Gampe authored
It's the default now. Change-Id: Ice463e6e74d56bffd00a80824721dbe57241ea06
-
- 05 Jan, 2016 7 commits
-
-
Andreas Gampe authored
-
Andreas Gampe authored
Silence these for now. Reduce build noise. Change-Id: I787c31f60c8d24e3dd2bae8d1acaa7592b7e29ba
-
Sharvil Nanavati authored
-
Sharvil Nanavati authored
-
Sharvil Nanavati authored
Without this change, setting AVRC_ADV_CTRL_INCLUDED to false would result in the native code reporting the remote device supports absolute volume even though we don't. Bug: 26070064 Change-Id: I5b88fa0adb89983de28a216898a1d8957fa454a1
-
Sharvil Nanavati authored
If the Audio Gateway sends a malformed +COPS message (an operator name > 16 characters) then the %n in sscanf format specifier is ignored and sscanf will not assign a value to the appropriate argument. In such a case, the existing code will perform pointer arithmetic using an uninitialized stack variable as an offset which may result in pointing to an invalid memory address. When that memory is subsequently dereferenced, we observe a crash. This change ensures that the stack does not crash even if an invalid +COPS message is sent from the Audio Gateway. Bug: 24871011 Change-Id: I9bb42c75bcd90487831fc6950c571c87098559e7
-
Sharvil Nanavati authored
According to the HFP spec, the operator name is required to be at most 16 characters long. Bug: 24871011 Change-Id: I9987de57a327348fc2203b9502e9df446a87793f
-
- 30 Dec, 2015 2 commits
-
-
Hemant Gupta authored
Use Case: 1. OPP Rx use case on the DUT Side 2. Transfer 10Mb+ of file from remote to DUT 3. Observe speeds over RFCOMM (expected 1.5Mbps+) Failure: Actual speeds lesser than 1.5Mbps Root Cause: Rx bottlenecks seen due to frequent timer operation during incoming data on RFCOMM Fix: BUSY and IDLE states of BT Power manager are already handled inside the stack and no need to explicitly set IDLE and BUSY states from JV layer anymore. Bug: 22487461 Change-Id: Icdc25c52103d6a849cc6e12656d9c69f5e152b05
-
Marie Janssen authored
The "long" tests need some leeway for the timer to be checked because sometimes it takes ~1-2ms to check timers for wakelock scheduling. Bug: 26140385 Change-Id: I362166f1d93a811f3933776294775b594226ab30
-
- 28 Dec, 2015 1 commit
-
-
Pavlin Radoslavov authored
Bug: 25864142 Change-Id: I5103471b0ec28c26c18b891fc3be07c000067b4e
-
- 23 Dec, 2015 5 commits
-
-
Andre Eisenbach authored
-
Devin Kim authored
When HFP connection failed establishing between phone and watch, it can't recover RFCOMM status which causes that HFP connection will not be made unless BT radio goes off and comes back on. RFCOMM and HFP both trying to open RFCOMM control channel at nearly same time, at some point, there's a possibility that SABM packet didn't reach out to BT controller to connect to phone from watch with HFP while phone tries to connect to watch with AW RFCOMM. This will take care of pending SABM packet to reach out to controller properly so that RFCOMM status will not be messed. Bug: 24285000 Bug: 25579482 Bug: 25579423 Bug: 25578997 Change-Id: Icc26b86c644ebd8d1c12a2fb4e94d04ba16cc2dd
-
Andre Eisenbach authored
Setting this parameter to true did not work and did not behave as expected. The functionality provided by this parameter is also not necessary, thus removing code. Change-Id: I29e60da4adf1d1fc84d8ec9a590de89e94bb7900
-
Andre Eisenbach authored
Without this fix, calling semaphore_try_wait() on a semaphore that wasn't currently set, would leave the NONBLOCK flag on the file descriptor as a side-effect. Also added a unit test for semaphores, including a test specifically for this condition. Change-Id: I0ea37bb68b14c76febaab25b3aee1bb4f5acee8c
-
Ajay Panicker authored
Without this CL semaphore_wait would instantly return due to the fact that enabling the adapter would cause the properties callback to post immediatly. Also prevented the test from returning a false positive if the original device name was the same as the test name. Change-Id: I987efcb9a5ef58209d37d2fc21f3c149fb3e556c
-
- 22 Dec, 2015 2 commits
-
-
Andre Eisenbach authored
Some devices do not play well with absolute volume control. They either play back music at unacceptably loud volume levels or provide insufficiently granular volume control where a single "step" of volume change results in unexpectedly large jumps in volume. Bug: 26070064, 26060431 Change-Id: I5a336fba87119325b47a5ad385e9c48a631f2121
-
Ajay Panicker authored
Fixed the get and set name tests so that they are more consistent and robust. Change-Id: I4b76357eff05531c4e52cd6de03eb3b8b969062b
-
- 21 Dec, 2015 1 commit
-
-
Christopher Wiley authored
-
- 18 Dec, 2015 2 commits
-
-
Christopher Wiley authored
This function is changing to just use std::hash anyway. This is slightly less efficient because of the copies, but doing it inline makes the cost more explicit to bluetooth authors. Bug: 26253162 Change-Id: I940ea8ce8aa27808cef8a8b9398a7756db3b5ca3 Test: Compiles
-
Marie Janssen authored
When the vendor library transmits without giving a callback, the vendor translation receives a buffer it's in charge of deallocating. When there is a callback, it's the vendor library's job to deallocate it. Change-Id: I65b0a037b28103ba46a33a1baea942f7e724eb7c
-
- 17 Dec, 2015 1 commit
-
-
yanlaijun authored
Change-Id: I25a07e9cdb29ef31696a156c6f7ff5b57f4f5cfb Signed-off-by:
yanlaijun <yan.laijun@gmail.com>
-
- 16 Dec, 2015 2 commits
-
-
Andreas Gampe authored
Silence unused-parameters warnings coming from libchrome. Bug: 26228533 Change-Id: I08bc474c905cd2cf7b1c0492ee37187c499ddf52
-
Ajay Panicker authored
Properly integrating the GATT tests in net_test_bluetooth to utilize GUnit correctly. Contains all the GATT tests and the base class the GATT tests use. Also reorganized the files. Bug: 25793348 Change-Id: I5a547a2528c20d6baa9b1fb6d0b956f718d736cc
-
- 15 Dec, 2015 1 commit
-
-
Scott James Remnant authored
Change-Id: Iee7365cc366793d3f88cd8b9a6be454c5b853863
-
- 14 Dec, 2015 1 commit
-
-
Arman Uguray authored
Added a mutex that protects the local_le_features structure inside Adapter. Added the following functions related to scan support: - Adapter::GetTotalNumberOfTrackableAdvertisements - Adapter::IsOffloadedFilteringSupported - Adapter::IsOffloadedScanBatchingSupported Bug: 25744656 Change-Id: Id4d63486d1c51f2eddbd095a0a3ef6e6bb80c529
-
- 12 Dec, 2015 2 commits
-
-
Arman Uguray authored
Added the ScanFilter, ScanSettings, ScanResult structures that are used in the BLE scan API. Bug: 25744656 Change-Id: Id1bb28e7ebe85fd40013876aa097e1d0f0a4e471
-
Arman Uguray authored
Added the IsDeviceConnected method to Adapter and also an Observer method that other components can use to track the ACL state between the local adapter and a remote device. Bug: 25157450 Change-Id: If9bc25ab58b4a9b5430753405fb64834c0946050
-
- 10 Dec, 2015 2 commits
-
-
Alex Deymo authored
-
Ian Coolidge authored
This should introduce no change in behavior. Change-Id: I14faa73d898f69bd15aff7c3857c671ebe1628c9
-