History log of /frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
563e414784eb81e4ea4051667d5c8855b17f7534 10-Oct-2012 Matthew Xie <mattx@google.com> Reduce android.bluetooth package debug messages

bug 7174712

Change-Id: I8d3fdc8edbe42068b5a550660d7b24854c3c4af4
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
6f6c54519a9b15379bb79e195655b6bd4fc5967a 01-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Auto connection/disconnection related changes

Remove ACTION_CONNECT_OTHER_PROFILES as it is no longer used
Allow only PRIORITY_ON and PRIORTY_OFF as priority params for SetPriority()
API in BluetoothA2DP and BluetoothHeadset
BluetoothPBAP: Pass on proxy object as part of Service Connected callback

Change-Id: Ida00fc2b7d1dcb91b01f7ddd2cea482367a3b334
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
82e57fe1741e225a65bc69004ae12cbbdfae5737 29-Jun-2012 Ravi Nagarajan <nravi@broadcom.com> Reset priority on unbond

Change-Id: I8232c666bde26235ad527c96e5218fc1b3e7a1db
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
20738945d482d9e313cd8b48c1bd83b6278934c7 27-Apr-2012 Swaminatha Balaji <swbalaji@broadcom.com> Auto connect hf/a2dp

Change-Id: I7c1fb4e2614f65e6810f195814dcf0cad88aee21
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
0f42037eb7b5118015c2caca635538324ccf0ccf 12-Apr-2012 fredc <fredc@broadcom.com> Non persistent adapter service

Change-Id: Ib13d5c77416e58161df0e04d7a15ec0dddbde8b5

Conflicts:

core/java/android/bluetooth/BluetoothInputDevice.java

Conflicts:

core/java/com/android/internal/app/ShutdownThread.java
services/java/com/android/server/SystemServer.java

Conflicts:

services/java/com/android/server/SystemServer.java
services/java/com/android/server/pm/ShutdownThread.java
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
13450df2b9264ef2220418f308037c19cec739a9 23-Mar-2012 Matthew Xie <mattx@google.com> Initial Health Profile implementation

Change-Id: I22f35073ceb131d84df6b233d1b63d20fa1b4451
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
bf246ef0abb6ea354fe412b139dec1adb4e5791d 22-Mar-2012 Matthew Xie <mattx@google.com> Initial implementation of HID, add IBluetoothInputDevice idl

Change-Id: Iadc79a425b4b6e12329d86dd2ac0782adcb0174d
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
3e8c82edb1feafc796aa52efafedc13f794c4dcd 17-Feb-2012 Matthew Xie <mattx@google.com> Framework changes for HFP and A2DP profile implementation of the new stack.
Add IBluetoothHeadsetPhone.aidl for a small service in Phone to get
phone state changes

Change-Id: I1015e4a69720c4e9cd18ae4236ccd0dbff2e1b2c
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
9bb275197df8eb999eab4cdd0a2aff83c2bb2ef6 28-Nov-2011 Jaikumar Ganesh <jaikumar@google.com> Cleanup references when turning BT off.

Bug: 5572649
Change-Id: I62f9e0620832b69995d5c6e1c24634c9a3895a4b
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
e3dc975acb716eede4abb0d1f4a5f969f92fc307 21-Jul-2011 Matthew Xie <mattx@google.com> when disconnectHeadsetInternal, allow it when the BT is not disabled

The old code allowed the disconnection only when BT is enabled. This
caused a bug during BT turning off that Headset connection failed
to disconnect.
Change-Id: Iba15a1595b6987064f071ad90bbb126a6edfe6b5
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
a0c680393f2dd03a937c598b2cb9abf98a58152c 26-Jun-2011 Matthew Xie <mattx@google.com> Incoming Bluetooth Connection requests - dialog.

This sends the intents to the Settings app to show
the dialogs for the incoming connection requests.
Includes down merged contributions from Jaikumar Ganesh.

Change-Id: Ic8b857aad3554315aae39a0e871eb94d0ac98a91
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
f8789167e903b637b1dbe8f710e7c66c4cfd74fd 26-May-2011 Jaikumar Ganesh <jaikumar@google.com> Refactor Bluetooth Profile.

Move connect / disconnect / set and get priority
functions down the interface as they are not generic enough
for all profiles.

Change-Id: I2656e1bdbc8046c53bb0dfbd9172f5f10b57aa7d
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
6f7a9736602ba1f1dc5a16542aa947861a520ec5 06-Apr-2011 Jaikumar Ganesh <jaikumar@google.com> Check if BT is disabled or not when sending audio state.

When BT is turning off we need to send the audio state intent.
We were not doing this since the state was turning off.

The check was added to prevent misuse of public APIs, since
these functions are used internally, its not a problem.

Change-Id: I9834cbff741722bf99c2875fa65c0617b7b4807b
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
0706fed52075f7f2b25101a40287519ac18d3184 26-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Fix some unmatched javadoc tags.

Bug: 3392175
Change-Id: I84aa86c07060bc4ba399fd5c8f7cda162b432031
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
5a9ac240feffa84773c322a03b1cdd6e99f0e21c 26-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Revert "Temporary Changes for certification of SCO."

This reverts commit 75c2701454f4506664d9056988c8ce5fd0ca73ba.

Change-Id: Ic63cdbbb06b9ed2d9c48e8b29cc376059ecadebf
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
c8fa4ff838a0c3d2c67db65540fa751e5abe27ed 26-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Improve readability of java docs for the public APIs.

Change-Id: I0a0f1be04ed2ea2c14498a1a2ed4b050191ec95b
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
dde68c64fd8e97a592633ec4c09283ec928e5697 24-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Rename virtual call API to ScoUsingVirtualCall.

This API makes more sense with regard to headset profile.
Bug: 3381532

Change-Id: Ife07d101a3b04bcddb31e7ae86712e1d97a660c5
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
75c2701454f4506664d9056988c8ce5fd0ca73ba 20-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Temporary Changes for certification of SCO.

Bug: 3349475
Change-Id: I555b127a1d9218494cd05c07c9e9f29628f3bc74
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
b0a1d01b4c044a0779cfe006e204bac468459802 11-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Make AUDIO_STATE_CONNECTING in BluetoothHeadset public.

As the SCO connection is done on a separate thread, this
state is needed to prevent silent failures in case of APIs like
voicerecognition.

Change-Id: Id08725323a2c847df4d3bd9f60e42fde46100707
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
f2e6b13620f3ebbb94166834abaaabcc08a403b7 27-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Add APIs for starting and stopping a virtual call.

This API is useful for cases where the user wants to play
their voicemail, for example, through their Bluetooth headsets.

Original Change by: kausik@broadcom.com

Change-Id: I6bc8929c359d698a1bacdefab4425e3a0ac5d8dd
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
30d181690e48b26cdfae3b144d23f1e16c75da37 01-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Add STATE_AUDIO_CONNECTING state.

Why is it needed: SCO audio connections can fail.
Currently no indication is given to clients which are waiting
for SCO connections. This was working fine before because
SCO connections where blocking calls, which was wrong in itself.

Change-Id: Ic449b2db8506a7a5ae6be6c68715f1a7343f9e40
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
551402930426725760c3bedac3a15e0063cb2ad3 26-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Fix docs builds.

Change-Id: I764bd0f0f6994cc468b7ebbea4a3dc7a44b9f89d
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
e775b3daab9766bce9ec2d01fe7d652c4a782b6b 29-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Expose Vendor Specific Headset Event Intent.

The Bluetooth Headset spec doesn't cover all cases.
For example, there is nothing defined to show the battery status of
the headset on the phone. This intent allows 3rd party applications
to communicate effectively with vendor headsets. For example, Plantronics
has an app for Android headsets and when used with Plantronics
headsets, they will be able to use extra information from the headset.

Change-Id: Ib997327103cbbe57d64c52ba27f74162b6769798
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
03cd78cf5e51c3adb78d2e3d314838dcf3e36b26 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Convert return type of APIs from Set to List.

Most of the time it will either be empty or have 1 device.
Using list makes it much a better API and since its supported
by the AIDL format, the code becomes much nicer.

Change-Id: I5a2508b33ba754fc8cc738409d658e1235aaf2cf
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
62c37efc9e894809b29a004c142a8e0a6b374db7 25-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> New public APIs for BluetoothA2dp and BluetoothHeadset profiles.

Change-Id: I1cc4b109542dfd62473cb95797c8c3d0d15725f4
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
4e25533945ebefd888b48f4256e8735591b4f94b 27-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> Add @hide for the VENDOR_SPECIFIC_HEADSET_INTENT

Change-Id: I5405b57f5815fa91ffce829dec6da3e4b7f1245f
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
b13c9bc5219ca85c36507fb3a8d5923e3de974b6 21-Aug-2010 Jean-Baptiste Queru <jbq@google.com> manual merge

Change-Id: Ib92a75958b857277e17f4bd0bee75744c653c942
a4733941839abd672b1e37edd7f61c8932d4aa48 10-Aug-2010 Herb Jellinek <Herb.Jellinek@gmail.com> BluetoothHeadset.java:
Added ACTION_VENDOR_SPECIFIC_HEADSET_EVENT,
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD, EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS.

BluetoothAssignedNumbers.java (new file):
A home for BT assigned numbers, beginning with the company IDs.

HeadsetBase.java:
Reformatted some code.

AtCommandHandler.java:
Fixed comment typos.

Change-Id: I34d6f248166305d72be66632779fc963b894379c

Added EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID.
Fixed a minor comment typo.

Change-Id: I8550692c13510a853c894b2d108bef4520d931c2
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
740e39be6af3e366a4b82c030b5ea67ab144b42a 02-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Pass BluetoothDevice to the Bluetooth Headset calls.

This is to support multiple headsets at the same time, atleast
at the framework level.

Change-Id: I91d05c6c2828c9a09d00806d5e79f1e9c9c7cf84
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
9b637e5985f9a86f39d70335c0390ade3716592a 02-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Add a new state machine for handling the incoming / outgoing profile
connections.

Change-Id: I5fc9170b5e24c4a52a6f2ef4ca7a8bac65271941
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
c24dbdb57b30f9e8fa6b0c5b48372017b5ae46b0 02-Apr-2010 Jaikumar Ganesh <jaikumar@google.com> Add an extra for the Disconnect Headset State.

This extra tells as to who initiated the disconnection.

Bug:2568119
Change-Id: Iea706ad69f79ae0257604dfa84d49126fb851cca
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
d726b35ebd8660022dcea706ee6d3ca51886b04e 17-Mar-2010 Eric Laurent <elaurent@google.com> Added a configuration option indicating if the platform supports use of
bluetooth SCO for off call use cases.
Added method to BluetoothHeadset API to check if voice dialer over
bluetooth is supported. Replaces direct use of DISABLE_BT_VOICE_DIALING
and takes platform capabilities into account.

Needed for issue 2416481: Support Voice Dialer over BT SCO.

Change-Id: I237d5a984dbc4cbc88e98b85d710a6c87ba1b315
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
a3a0946554d120c35ebe0e632fdc454e49cf61e1 09-Feb-2010 mah <mah@android.com> Enable bluetooth voice dialing in BluetoothHeadset.java.

Bug: 243220

This just sets DISABLE_BT_VOICE_DIALING to false.
A different checking to packages/apps/VoiceDialer actually
makes it work properly.
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
551ed72940af6e4f0b34a1d05282497a547e9a7c 11-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Use UNDEFINED priorities when unpaired.

For the docks, we can set if a device is preferred or not
before pairing process. This was getting overridden when we pair.
This problem doesn't happen with normal headsets.

Dr No: Eastham
Bug: 2318290
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
721361f1a74b876c42cc0533c9c19320e8c09927 21-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> Add a new priority for Auto Connection of A2DP. DO NOT MERGE.

1. PRIORITY_OFF is when user unchecks A2DP connection profile box.
2. By default, when you bond, it will be PRIORITY_ON.
3. When the profile gets connected, the priority gets set to
PRIORITY_AUTO_CONNECT. This means that we will connect
automatically to this profile.
4. When the user disconnects, we downgrade the priority to PRIORITY_ON,
which means we won't reconnect automatically.

a) We need to make a similar change to Handsfree profile.
b) We need to rework the profile management design and code which
will fix the 6 second timer that we have for A2DP reconnection.

Add AUTO_CONNECT priority for Headset profile.
Also, don't set priority to ON while disconnecting.
This logic has been pushed up to the Settings app.

Dr No: Eastham
Bug: 2133530
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
005b228cdfb369d9b3b325884c0337ba5968bf8c 10-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.

This is a large batch, and covers:

-- Bluetooth Device Discovery --
BluetoothAdapter.ACTION_DISCOVERY_STARTED
BluetoothAdapter.ACTION_DISCOVERY_FINISHED
BluetoothAdapter.startDiscovery()
BluetoothAdapter.cancelDiscovery()
BluetoothAdapter.isDiscovering()

-- Bluetooth bonding (pairing) --
BluetoothAdapter.getBondedDevices()
BluetoothDevice.ACTION_BOND_STATE_CHANGED
BluetoothDevice.EXTRA_BOND_STATE
BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE
BluetoothDevice.BOND_NONE
BluetoothDevice.BOND_BONDING
BluetoothDevice.BOND_BONDED
BluetoothDevice.getBondState()
BluetoothDevice.createBond()
BluetoothDevice.cancelBondProcess()
BluetoothDevice.removeBond()

-- BluetoothClass --
BluetoothDevice.ACTION_CLASS_CHANGED
BluetoothDevice.EXTRA_CLASS
BluetoothDevice.getBluetoothClass()
BluetoothClass.Service.*
BluetoothClass.Device.Major.*
BluetoothClass.Device.*
BluetoothClass.getDeviceClass()
BluetoothClass.getMajorDeviceClass()
BluetoothClass.hasService()

-- Misc BluetoothDevice --
BluetoothDevice.ACTION_ACL_CONNECTED
BluetoothDevice.ACTION_ACL_DISCONNECTED_REQUESTED
BluetoothDevice.ACTION_ACL_DISCONNECTED
BluetoothDevice.ACTION_DISCOVERED
BluetoothDevice.ACTION_NAME_CHANGED
BluetoothDevice.EXTRA_DEVICE
BluetoothDevice.EXTRA_NAME
BluetoothDevice.EXTRA_RSSI

-- Misc BluetoothAdapter --
BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED
BluetoothAdapter.EXTRA_LOCAL_NAME
BluetoothAdapter.checkBluetoothAddress()

I deprecated BluetoothIntent and moved each intent into the class it relates
to.

Change-Id: I877b1280428ab46278b2bc25668bb44cda22dc36
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
a4433af5ac677be7c1f63447c0cd78829bdee159 09-Jul-2009 Yue Lixin <a5206c@motorola.com> Add Bluetooth device picker support

- add Intent and Extra definition
- move profile filter into BluetoothClass
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
bd022f423a33f0794bb53e5b0720da2d67e4631c 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
6c901db72dbaf57d8fdf26adae6721de14ecae22 19-Jun-2009 Nick Pelly <npelly@google.com> Add getBatteryUsageHint() to BluetoothHeadset for power monitoring.

This is a monotonically increasing integer. Wraps to 0 at
Integer.MAX_INT, and at boot.
Current implementation returns the number of AT commands handled since
boot. This is a good indicator for spammy headset/handsfree units that
can keep the device awake by polling for cellular status updates. As a
rule of thumb, each AT command prevents the CPU from sleeping for 500 ms
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
2d8c060bbc590c0f398c7a2c7a8b3e35111929f4 26-Mar-2009 Nick Pelly <> Automated import from //branches/donutburger/...@142766,142766
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
f5b4b98fada53d91c4c2ebeb5a1d33ccc95c94d2 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/bluetooth/BluetoothHeadset.java