| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Cleanup is happening from application before receiving state
change from btif. Send broadcast for HID connection state
change during cleanup.
Change-Id: I5d7989887f9089876c78e43d97d066f384cc237e
CRs-Fixed: 1084901
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Added support for Multi A2dp connections
in Bluetooth application.
2. All connection transition states for
2nd HS onwards is handled in new state-
MultiConnectionPending.
3. The changes are done to handle proper
state transition for all connected HS.
Change-Id: Ib7d16a4a647ba5d7e38a8c2edc4581474725ab6c
Conflicts:
src/com/android/bluetooth/avrcp/Avrcp.java
src/com/android/bluetooth/btservice/AdapterService.java
Bluetooth: Add support for multi Streaming.
Add changes to support dual streaming for
A2dp
Change-Id: I84882d850ffd374bb998ef5e942464e2972d64bf
Bluetooth: A2dp MultiCast/ Soft Hands-off.
- Allow new profile connection on same ACL
- Reset scan mode to last set scan mode before
starting multicast
- Check for mTargetDevice before moving to
disconnected state.
- Remove playing device from list on disconnect
Change-Id: I24fa041783abba1584730930336b65a9586cb778
Bluetooth: Send Track change notification
- Send track change notification to both
devices.
- Check for absolute volume support in both connected
HS before updating audio
- Reject 2nd incoming connection, when connecting event
is received in pending state and already processing
incoming connection.
Change-Id: Ia5271febddcbf69c205fbebc7a11964a1ef0719c
Dual A2DP: Update playstate on suspend
- playstate update for suspend case to reflect the
right state to remote device.
Change-Id: If11acb9126ac8f424c622d786d4eaf3f155ca0c6
A2DP/AG: Increase A2DP/AG application level connection timeout
- Application level connection timeout should be higher
than lower level possible timeout to avoid race conditions.
Stack level timeout for user response timeout is 30 seconds,
hence during such scenarios stack will be still not timed out
but application starts cleanup.
Change-Id: I606e81fcea2e02c0cf4e5e47dba216bcbef42db4
Bluetooth: Update AudioManager for ABS volume
- Update audiomanager for abs volume after RC features
is received.
- Update audiomanager when any of connected HS is
disconnected.
Change-Id: Ie2479cf538a830ba47c5a6418199caef2a81e78a
Conflicts:
src/com/android/bluetooth/avrcp/Avrcp.java
Bluetooth: Block new ACL connections.
- During active multicast, no new ACL
should be created.
- Do not proceed to new A2dp connection
during active multicast.
Change-Id: I0b9f6e7648976095ece8de4a41fbe10634c07131
Dual A2DP: Update currentDevice for unexpected disconnection
- While in multipending state, currentDevice should be updated
when disconnection is initiated for one device but happens
for other device which is currentDevice.
- Increase the connection timeout to 38 seconds to accomodate
LMP response timeout and page timeout.
CRs-Fixed: 835641
Change-Id: I54d439e458a212d6acf3031e5d1e89706071cfa9
Dual A2DP: Do not initiate bonding while multicast
- Bonding has to be disabled while active multicast is on.
This has to be explicitly taken care for avoiding the
bonding and connection from available devices.
Change-Id: Ic82686dd100201ca6171fbc3ab14c0b9690a850c
CRs-Fixed: 837415
Misc A2dp Multicast Changes for proper Avrcp handling
- Send play status update only if Music streaming is
in progress.
- Send play status update based on device specific stored
state.
- Remove multi player implementation as it causes mismatch
in stored playback state and actual player state.
- Logging changes for scan state update.
CRs-Fixed: 839396
Change-Id: I539d949c32cbe1871f3c737bdd0e092798f729c1
Proper assignment of track number and play position
- Initialize track number with value as -1 but on
receiving meta update set it to 0 if media player
in use is not capable of setting it to valid value.
This change will help supporting 3rd party media
player apps which are not capable of updating
mentioned fields properly.
- Explicitly send play-position as 0 in getPlayStatus
response when position is not initialized as specification
suggests that -1 is not a valid value for this command
response. As per specification -1 will still be sent
as the play position in interim response of Play Postion
Changed notification.
CRs-Fixed: 836672
Change-Id: I3e10ec4e49df095485fa630b95bf829e755686f1
Misc Avrcp handling for Multi connection scenarios
- Handle avrcp TG connection state change update
from stack and add remove respective devices to
Avrcp connected device list.
- Proper clean-up of device entries in A2dp and
Handsfree state-machine.
- Sending playback state changed as Paused when
playback switches from that device to another.
- Reject pending notifications when addressed
player changes even to non 1.5 capable player.
CRs-Fixed: 843335
Change-Id: Iafbeb17907e8bc5409ee996b966824fd4ba87417
Conflicts:
src/com/android/bluetooth/avrcp/Avrcp.java
Proper handling of Player settings attribute change
- Proper handling of Player setting attribute change
- Logging enhancement in player setting attrbute path.
- Formatting changes.
CRs-Fixed: 845462
Change-Id: I06067a091a21082b2668c31762f078da557841ee
Conflicts:
src/com/android/bluetooth/avrcp/Avrcp.java
Dual A2DP: Update the connection state after timeout in Connected state
When initiating incoming/outgoing connections, there is a possiblity
that CONNECT_TIMEOUT for outgoing happens after successfully
connecting to two other devices and this will be received in
Connected state. We need to update the connection state and
clear the target device.
Change-Id: I0a1ad01f85b6f45b9276c6da9ce0e6b34f75990e
Proper handling of Setting Addressed Player
Proper handling of Setting Addressed Player ID.
Make addressed Player ID as device independent.
As otherwise device wont update the same after
reconnection if any change has happened in between.
CRs-Fixed: 855172
Change-Id: I23a4c3e9670fcd6538e0e3f5ef8c0be116a25de4
Change Play Position and Play status handling
Change Play Position and Play status handling
in a way that play positions are not kept device
speific anymore as that belongs to change in
player state, not device state.
Play state changing to playing is sent only when
device is identified as active one in hand-off mode.
CRs-Fixed: 856063
Conflicts:
src/com/android/bluetooth/a2dp/A2dpStateMachine.java
Change-Id: Ia7e859c28a1826ac2686c432690030741a3c67bc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
VERBOSE level logging for each profile can be enabled runtime from
adb shell using following command and turn off/on BT:
setprop log.tag.LOG_TAG VERBOSE -> VERBOSE level Logging (or)
setprop log.tag.LOG_TAG DEBUG -> DEBUG level logging
where 'LOG_TAG' to be replaced with below for corresponding profile:
BluetoothHidHost - HID Host
BluetoothHidDev - HID Device
BluetoothMap - MAP Server
BluetoothOpp - OPP Profile
BluteoothPan - PAN Profile
BluetoothPbap - PBAP Server
BluetoothSap - SAP Server
CRs-fixed: 608230, 604523
Change-Id: I37b73f2f596a96098c4f6a1ec5097dff36af11f3
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds support for Get Idle and Set Idle command handling
in jni and HidService which will be used to provide interface for
sending thse commands to HID Remote device.
Without this support TC_HOS_HID_BV_05/06 PTS test cases for HID 1.0
cannot be passed.
Change-Id: I066d47c022905a39c11d365a9d26d128f94fe2f6
CRs-Fixed: 522511
|
|
|
|
|
|
|
|
|
|
| |
Changes to BluetoothAdapter state machine for handling new
states BLE_STATE_ON and intermediate states BLE_TURNING_ON
and BLE_TURNING_OFF. Also includes the actions required
while migrating in and out of these states including
start and stop of GATT services and other profiles.
Change-Id: I08d6ff05c2cefe559d5bb5789a1a488afefbe544
|
|
|
|
|
| |
Bug: 18159457
Change-Id: I807a7d921b6e5baf111d0f0e3e182c6633a93b7c
|
|
|
|
|
|
| |
bug 17480992
Change-Id: Ia3f5ef4886dfde370abe5b35a80ab80a4f030f37
|
|
|
|
|
| |
Change-Id: I7619e6e2ac3589ffa5e0b70e4b28e536c886ce02
Signed-off-by: Mike J. Chen <mjchen@google.com>
|
|
|
|
|
| |
Change-Id: I5ee7ea72935834ba8a19f7933bb92b8a0a24ba62
Signed-off-by: Mike J. Chen <mjchen@google.com>
|
|
|
|
|
|
| |
bug 7626174
Change-Id: I0161d54dd325a7a1afcf8926ef54cd483e7503fb
|
|
|
|
|
|
| |
bug 7385618
Change-Id: I338fd87083387706f3b5f410c9592219bb8a1acb
|
|\ |
|
| |
| |
| |
| |
| |
| | |
bug 7174712
Change-Id: I58747ec6507da8ea8ae27a182b601aaf626ede42
|
|/
|
|
|
|
|
|
| |
to reject background user access.
bug 6925422
Change-Id: I11d5ebf007c2843a72a9870055fc96672daf8409
|
|
|
|
|
| |
Bug: 7231171
Change-Id: I39e3611dcec1104558704ed72855fef85f33c084
|
|
|
|
|
|
|
| |
Implementation of BT enable in Quiet mode without initiating auto connect and not allowing
Incoming HFP, A2DP and HID connections.
Change-Id: I857aea8d95677f8287df4641ec0aeae58a9f7a99
|
|\
| |
| |
| | |
jb-mr1-dev
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This fix addresses numerous BT on/off issues found from the CTS test.
Fixed fD/pipe leak in various state machine Looper objects by calling quit() function.
Fixed cursor leak in AtPhonebook.
Change Pbap to stop the RFCOMM listener on the STATE_TURNING_OFF instead of STATE_OFF.
Removed several cleanup() methods causing NPE.
Reduced RFCOMM listener timeout from 3 seconds to 300ms between retry.
bug 6834336
Change-Id: I52423343d8f52f65294af0143f373871a9874d77
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Implement Profile Auto connection logic (moved from Settings App )in Bluetooth APK
to avoid Auto connection not happening if the Settings App is not running
As part of this implementation following features are implemented
1. Auto connection initiation during BT on OFF
2. Profile Auto connection priority management
3. Connecting Missing profile logic
4. Initialize Profile Priorities on Bond State Change
Change-Id: I12b7c190e28f043b4b008c9b48ac7e13aaf178e6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the remote side initiates pairing & connection, occassionally
connection is made before the phone has had a chance to do SDP.
In this case, the profile priorities are not initialized, which caused
us to incorrectly reject the incoming connection. Allow connection
if priority is undefined, but device is not unpaired
Change-Id: Icd8257adea19fc9a4d3853cd85da9bd791cfe505
Conflicts:
src/com/android/bluetooth/a2dp/A2dpStateMachine.java
|
|
|
|
|
|
|
| |
Made changes in HidService to send a STATE_CONNECTING broadcast when HIDService.connect() is invoked;
Also before rejecting the incoming connection, check if the connection is transitioning from STATE_DISCONNECTED to STATE_CONNECTED and then only do a disconnectHidNative(). The normal flow of HID connect would transition from STATE_CONNECTING to STATE_CONNECTED
Change-Id: Ia416e3a70fc6c3561c3530091691367c5da2674c
|
|
|
|
|
|
| |
causing a race condition, with the UI not being updated with the correct connection state.
Change-Id: I6f4c75e4eac4ae798cb7918a4f1b7458e1eaa4b0
|
|
|
|
| |
Change-Id: Ibee5382816d47b1e9b846461942a9daccc4210a7
|
|
|
|
|
|
|
|
| |
Change-Id: I47cbac9fc694d5604a664f20170eeed90eeee8e6
Conflicts:
jni/com_android_bluetooth_btservice_AdapterService.cpp
|
|
|
|
| |
Change-Id: Ia52a0f58ee2085f3452877e23a591dcd842bafac
|
|
|
|
| |
Change-Id: I365bf2dd835385629b7e7bbff649e9fdd6646db8
|
|
|
|
|
|
| |
of object references (context, handlers, and collection objects ) during service cleanup.Memory profiling changes : Updated the Bluetooth code to handle cleaning up of object references (context, handlers, and collection objects ) during service cleanup.
Change-Id: I2b0235f71c1feaf32215b2aaf89a2e06d8fa7d73
|
|
|
|
|
|
| |
connect/disconnect
Change-Id: Iefafd1115471256d3107f039897e2af16077cdae
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change-Id: I65e1c18e2899cea0a1e5c0102c4d24d39dce0249
Conflicts:
jni/com_android_bluetooth_hdp.cpp
jni/com_android_bluetooth_hid.cpp
Conflicts:
jni/com_android_bluetooth_hid.cpp
|
|
|
|
| |
Change-Id: I7f3b19dbcda24dbb0cd4700a54f7cd05e84d3745
|
|
Change-Id: I527651bd85ad3adddbf4b89802f4a6128c9fa047
|