History log of /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06c566ebd3462ec18624f1db9f49f81c2eec0cef 08-Jul-2016 Lianchao Song <songlianchao@huawei.com> Add foreground flag to AG_CALL_CHANGED broadcast intent.

To fix the issue that the watch is still ringing after answer an
incoming call on phone. It is caused by the ACTION_CALL_CHANGED
broadcast reception processing delayed.

Bug:29931814

Change-Id: I8d8f297c3a13dfe65674eca94724a50d82618f5e
Signed-off-by: m00230717 <m00230717@notesmail.huawei.com>
(cherry picked from commit 6b375a456e971ae8ef7ddf1d7d41876ca39e44bc)
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
a8fc504fed7dcb5dc074980b9d4cfa7a56445424 27-Apr-2016 Sanket Agarwal <sanketa@google.com> HfpClientConnectionService does not synchronize state

Currently active device is a synchronizable state and the current
implementation was simply waiving it. Also the mechanism to create a
phone account was invalid since the PhoneAccountHandle was not unique
per device. PhoneAccountHandle not being unique is OK for now but fails
in case of multiple devices.

Bug: b/28068989
Change-Id: I729df5aa110a428b8ce23cf6658d81c5acbc16a2
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
a9ad98ec1222093baecd70b32611c3a74ba7f2d8 10-Mar-2016 Sanket Agarwal <sanketa@google.com> HFP is exposed via Telecom ConnectionService.

Telecom provides a ConnectionService mechanism where in order to make
calls you only need to provide the right phone account (which can be
queried using a predefined scheme).

This change adds a new middleware called ConnectionService which
provides a translation medium from Bluetooth <-> Telecom. Anyone who
wishes to use HFP HF role can then simply use TelecomManager (and
TelecomManager's InCallService) interfaces.

Bug: b/26757899

Change-Id: I66e47b6ff6330cfd9040a4a6cf4edadac28d63de
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
d38ba29ff12eea818f2fd502ee9d5a4f1bfb278e 23-Jan-2016 Sanket Agarwal <sanketa@google.com> Synchronize HF and AG volume.

Use normalization where required to convert from Android volume range to
HF volume range.

Bug: b/26714956

Change-Id: Ia90ec6aba41d6f66ca2e34ecc877c52c80cd7a0c
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
3076d2acccf5c3db0db19b622f062e259be39f3a 02-Dec-2015 Sanket Agarwal <sanketa@google.com> Delegate HFP Audio focus (HF) to entity controlling the actual phone call.

HF role currently handles audio focus itself although the idea is to
have telecom stack do it (it already does in ConnectionService and
CallAudioManager). We rip out the Audio focus management and ringer
control from the state machine and only leave the audio routing and
volume control here.

SCO routing and volume control is currently still handled by Hfp Client
since audio manager does not yet support HF responsibilities.

Bug: b/25261431

Change-Id: I893654de2427cf031c7cddda888ed3694b0001be
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
22bb39444356637fbcabd4acf04f2fdb9e3da177 29-Oct-2015 Bryce Lee <brycelee@google.com> Implement setting/getting whether audio can be routed to the HFP HF device.

Bug: 25332357
Change-Id: I2d37d082673255a165dad955aa1ca4b9f00d599e
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
84d1aab871b03d94dddce4ad2d17f3c2acb892b5 29-Oct-2015 Bryce Lee <brycelee@google.com> Revert "Allow HFP HF implementations to specify a client controller."

This reverts commit 8843d8a82571b0a2f1b003cad999bed595814257.

Change-Id: I5371e263fd92c6790558d38f19945492731e17f6
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
8843d8a82571b0a2f1b003cad999bed595814257 29-Oct-2015 Bryce Lee <brycelee@google.com> Allow HFP HF implementations to specify a client controller.

The client controller service is used by the HeadsetClientService to
determine conditions such as whether audio routing to device is permitted.

Bug: 25332357
Change-Id: I8971960f959084ed3969db7c8cdef11673a58994
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
65842bfe88b3d91060cd05446024f14061524dcd 26-Oct-2015 Zach Johnson <zachoverflow@google.com> Remove receiver status foreground flag

Turns out this actually causes more problems than
it attempts to solve.

b/25116554
b/25256719

Change-Id: Ia30ab5bf0f6e794376eae85b2616bcdb0049ef76
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
5040e76e2b2742a210e5e1ef29ae1b1779f12ee3 18-Oct-2015 Zach Johnson <zachoverflow@google.com> Only apply foreground flag for audio state connected

The other states aren't really that important, and
this reduces the chance of ANR.

Change-Id: Ie019b81a9fbfb9238cf8b6cce1308d0d7358cbf8
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
5d0f29737bfa7d9e2891b1e99c87e86fce434599 18-Oct-2015 Zach Johnson <zachoverflow@google.com> Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts

This is important so audio can be rejected in a timely manner
when necessary.

Change-Id: I4a7789d262ac74c5014b34eb959d502a68217362
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
7618faa5df18324c581ade91f75454e2e3d8ad49 27-Sep-2015 Sharvil Nanavati <sharvil@google.com> Avoid NPE when dumping headset profile state.

Change-Id: I91767bcc09d4e16a9bd5c8dbe2e662a96f9880a5
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
a27628d5cb96981b65daec4db798d06ba9d98ce2 13-Sep-2015 Sharvil Nanavati <sharvil@google.com> Send the AUDIO_CONNECTED broadcast after switching to the AudioOn state.

The broadcast is currently sent while the HFP client state machine is
in the Connected state. As a result, a broadcast receiver who wishes
to disconnect the incoming audio connection won't be able to successfully
call disconnectAudio. By changing the internal state first and then
broadcasting, receivers can immediately perform audio operations.

Bug: 23568208
Change-Id: I60de9775f9a0126774275d08ef999f082ae41747
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
157a5b491ca74ecd8dde0400d3d6fc175d28165b 28-Aug-2015 Zach Johnson <zachoverflow@google.com> HFP should let the system handle ringtones

https://www.youtube.com/watch?v=NJVrTYbxwgA

First of all, it was choosing the sound in this order:

1. alarm sound
2. notification sound
3. ringtone sound

me: o_O

Second of all, it can't take custom ringtones
for contacts into account.

Change-Id: I16e04e69bdc9b190f8d12412dfd8365420f1da5b
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
37604004520846495a5dba50d7c3afef05a9ecf9 25-Aug-2015 Sharvil Nanavati <sharvil@google.com> Fix low volume on Nemo devices after accepting incoming HFP call.

Bug: 23495386
Change-Id: I98c60188dd5d4aaf4bc5a7f212219918e1374989
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
69e5f6f65981c49c1723188469b79389841c9f2e 15-Jul-2015 Chenjie Luo <cjluo@google.com> Remove extra logging with privacy info

Bug: 22075764
Change-Id: Id2f1c0d1660abd0c18de46c64596fc1a17b974ce
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
5e1d6f595461e27acab14c5c5931d32025c1c18d 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am bbb4110..165d7fa from mirror-m-wireless-internal-release

165d7fa MAP: Errata service release 8 changes
5a60e47 Update to Bluetooth MAP 1.2 (server)
0dcecb2 MAP: fix exception when Email in SMS list request
a8873ca Merge "Handle response to AT+NREC command" into m-wireless-dev
345f1ee Add UUIDs to SDP JNI
d1fadc3 Handle response to AT+NREC command

Change-Id: If24e414fe3fd0c2f47147f2535296b92e8066d76
d1fadc3b23a03cbf028bfbdca9fd64640d7a05bd 03-Apr-2015 David Stevens <stevensd@google.com> Handle response to AT+NREC command

The AG will send either an OK or an ERROR in response to AT+NREC.
Not expecting a response to that command was skewing the responses
received for later commands.

Bug: 20157416
Change-Id: I992320403da7aabdc09f0315376e85ce905ecaf2
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
5c48b66a94a8129824e741c06356dfad766f52f7 08-Nov-2014 Mike Lockwood <lockwood@google.com> am a8855e56: am fa46a2f6: am cc633970: Merge "Add dumpsys support for bluetooth" into lmp-mr1-dev

* commit 'a8855e560a20888731234a26a4753d902e6a11fe':
Add dumpsys support for bluetooth
0301badedb14c68fe1c0e46efc14eb24411e333c 22-Aug-2014 Mike Lockwood <lockwood@google.com> Add BluetoothDevice field to BluetoothHeadsetClientCall

Change-Id: I07134da3b93e1db087ebbb9b97b7a31dbae37272
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
838949d46a4cc054985a8cfd682004f8dd6d3bbb 28-Oct-2014 Mike Lockwood <lockwood@google.com> Add dumpsys support for bluetooth

Bug: 18159457
Change-Id: I807a7d921b6e5baf111d0f0e3e182c6633a93b7c
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
8d536f3db19e8ea7426e98e470dc15d10ecbae87 12-Jun-2014 Mike Lockwood <lockwood@google.com> Rename BluetoothHandsfreeClient to BluetoothHeadsetClient

This makes our terminology consistent with the existing BluetoothHeadset profile

Change-Id: I527977250cf9a34d55d01b357c5c438826e58156
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java