History log of /frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a9258f435d847765d94881497c42df831ca98e8 16-Mar-2018 Ajay Panicker <apanicke@google.com> Add the AVRCP Target Service (2/2)

Add the AVRCP Target constant to Bluetooth Profile. Also remove redundant
public static final modifier on the constants.

Bug: 68854188
Test: Compiles and local test with service enabled
Change-Id: If2ec607fc704c225f8903d438fe970dfafac25f1
(cherry picked from commit 38c3073ba2532db7b5adf5f7f96cef847771c41b)
Merged-In: If2ec607fc704c225f8903d438fe970dfafac25f1
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
ea580fa1d1900c3b771cf24ee2dc13d14c0b8ee5 22-Nov-2017 Jakub Pawlowski <jpawlowski@google.com> Hearing Aid profile

This is implementation of Hearing Aid Profile that will in future
be connected to Bluetooth Manager - see TODOs in BluetoothHearingAid.java

Bug: 69623109
Test: compilation. Manual test with HA.
Change-Id: I79643ea1e14e9df7f5771169359c964a60c56618
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
17a26c715f26378cd9487a721f7d4a2c24088dde 09-Jan-2018 Selim Gurun <sgurun@google.com> Make Bluetooth constants used by gmscore a system api

These constants are used by GMSCore car module via reflection. Make
them system API.

Bug: 67052734
Test: Manual - and using make update-api
Change-Id: I0709c0e0eb9fcb9fb29d575e9b74927a70b2a924
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
fa792b97a5bb2d1ba5f7b271e897cb87985f37a8 05-Jan-2018 Myles Watson <mylesgw@google.com> BluetoothProfile: Add Object Push Profile (OPP)

Test: toggle Bluetooth
Change-Id: I5aec940ba3d6c6364c2de667426d98d0b3cea0c6
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
88f3891d1eb5a2d03008c2ab8722adc70560fe81 07-Dec-2017 Hansong Zhang <hsz@google.com> Publish Bluetooth HID Device Profile Service API

Enable the BluetoothHidDevice API in framework.

Bug: 63384609
Test: SL4A HID test; test with apps using BluetoothHidDevice
Merged-In: I52ca4674f11179f865bdff22e0289dfe893c40f5
Change-Id: I52ca4674f11179f865bdff22e0289dfe893c40f5
(cherry picked from commit 7bb587d72b8bb5ba8bd2d7530dbd89b4faac289f)
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
5252b97d6c8417e92a8918862be83e8afff1ca35 11-Dec-2017 Jack He <siyuanh@google.com> Bluetooth: Add convenience method to convert connection state to string

* Add method to convert the following state values to string
- BluetoothHeadset.STATE_DISCONNECTED
- BluetoothHeadset.STATE_CONNECTING
- BluetoothHeadset.STATE_CONNECTED
- BluetoothHeadset.STATE_DISCONNECTING

Test: make
Change-Id: Iaa5b6e35d3214ded8edbe29d626e0869651417d1
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
0edf754b2d04965d3186407a6d5de1d36d29f0a9 21-Oct-2017 Hansong Zhang <hsz@google.com> Change Bluetooth HID Profile Name (1/6)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

(Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71)
Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
2992cd084cd5cfd9ef253c37ef269d6c75e7e144 23-Aug-2017 Jack He <siyuanh@google.com> Fix checkstyle errors (2/2)

* Manual style corrections with IDE assistance
* Variable name refactors are done through IDE
* Corrected general style errors such as:
- "final private var" -> "private final var"
- "&&", "+", "||" should not be at the end of line
- Non-static private variable should be like "mVar"
- Private static variable should be like "sVar"
- Code file should always end with newline
- Inherited methods should be annotated with @Override
and no @hide tags
- Public methods should always have a JavaDoc entry
- "int[] array" is preferred over "int array[]"
- private methods should be accessed without "this."
when there is no name collisions.
- "boolean ? true : false" -> boolean
- "boolean ? false : true" -> !boolean
- "boolean == true" OR "boolean != false" -> boolean
- "boolean != true" OR "boolean == false" -> !boolean

Bug: 63596319
Test: make checkbuild, no functional changes
Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
a355e5efaf45a534ee6437aa4bae7d30f18c0ec2 23-Aug-2017 Jack He <siyuanh@google.com> Fix checkstyle errors (1/2)

* Automatic style corrections through IDE

Bug: 63596319
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
910e081216ac530432ac9d0aab10d5e5e4c73ab8 22-Apr-2017 Jeff Sharkey <jsharkey@android.com> More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
0afe190af52d83c5e52fa994e53c48e33e8e3bf4 23-Dec-2016 Ivan Podogov <ginkage@google.com> Rename the Bluetooth profile classes for HID Device role.

We already have BluetoothInputDevice class, so adding something
called BluetoothHidDevice seems confusing. On the other hand,
the new class is designed to connect to HID Host devices, so
naming it BluetoothInputHost makes sense and goes in line with
the existing BluetoothInputDevice.

The same goes for the new constant HID_DEVICE that is just as
confusing to have together with the INPUT_DEVICE one.

This CL also renames the "connection state changed" broadcast
(for the same reasons), declares it as an SDK constant, and also
adds some javadoc to it.

Note that BluetoothHidDeviceApp* classes remained unchanged, as
those correspond to the app that implements the Device (and
connects to the Host).

Test: make
Change-Id: I5075ca5b97db3c1dd403c2e9660eecc7380cffe2
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
e88fd4b5940a855e961cffa36e93f844a44cd2d4 18-Apr-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Add support for HID Device Role

This patch adds the HID Device Role support in Bluetooth framework.
Also AIDL and callback related files for HID Device role are added
to provide interface for third party applications to communicate with
HID Device Service.

Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
631768d81469f83552de05bf0ec839d1cd6eab04 01-Sep-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE

Add MAP client code into packages/apps/Bluetooth. Changes here are to
define the MAP MCE interface and enable its selection when running on a
device that is also running a PBAP client (Car Kitt).

Bug: 30467210
Change-Id: Ifa2cdea7d67f63a2b5f3d971df8ec6d321dc5fee
(cherry picked from commit 433b3054847951e8e7b3864d11990604a66b8651)
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
f6b74dea040e3be9693a977605e9eb46c7e4032a 09-Oct-2016 Bryce Lee <brycelee@google.com> Add a way to query for supported Bluetooth profiles.

Currently there is no way to get the profiles supported by the Bluetooth
adapter. Asking for a profile proxy of an unsupported profile does not
fail and can lead to code indefinitely waiting for the proxy response. This
new code will allow for checking the supported profiles before asking for
the proxies.

Bug: 26451648
Change-Id: I4b48e7151f5ca53851aa3b967c143fae140ecd34
(cherry picked from commit b1301fa2849bafd6daa422281dc5200863bc761e)
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
cfa8a6469463ace9c3336e3686d950792a2c7ad4 04-Mar-2016 Joseph Pirozzo <pirozzoj@google.com> Add BluetoothProfile for PBAP PCE role.

Create a new Bluetooth profile for Pbap Client.

Bug: 27490041
Change-Id: I77d2c7eeeb8e955ea61386d784b02b14f415b318
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
15309a3d200f20a893ca7023ac95186de37283a1 18-Dec-2015 Bryce Lee <brycelee@google.com> Remove duplicate Bluetooth profiles.

Change-Id: I04fd867511713dd02ef249b113f7a46c69f22f98
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
ec85f34812b0f66715ad5ae4d1485f98a690746c 16-Dec-2015 Bryce Lee <brycelee@google.com> Add setting for declaring disabled bluetooth profiles.

Bug: 25900899
Change-Id: I420a7c590d72ba10f3e466d15dccfdbb520e810a
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
2d49752ee050ab7f1cd848933f6c62a73707e2d9 24-Apr-2015 Tor Norbye <tnorbye@google.com> Add bluetooth permission annotations

Change-Id: I5bc86f8ec6ea5c873f1e14dab0e0c47c5c9df7f7
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
2a5f608e7a5765db3b91165dac5b6280b26da26c 19-Mar-2015 Casper Bonde <c.bonde@samsung.com> Add support for Bluetooth Sim Access Profile (2/4)

Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
94b59de852df7b6ce16aef73a9b2c11be8f3102d 03-Jun-2014 Mike Lockwood <lockwood@google.com> BluetoothAvrcpController: Move AVRCP controller support to new BluetoothProfile subclass

Change-Id: Id988040a7ce623ed68e0349920301ff48db1fbce
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
cf916d34671f0ab6aad8de24c18e4dc96fb21941 12-Jun-2014 Mike Lockwood <lockwood@google.com> Rename BluetoothHandsfreeClient to BluetoothHeadsetClient

This makes our terminology consistent with the existing BluetoothHeadset profile

Also updated arguments to Context.bindService()

Change-Id: I27cc5a6fde256b1f5dccca53a7a15ec8f58691c2
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
7aca90fcc0175ab44613bb3e4f3f13fc4a688fa5 19-Aug-2013 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Add support for HFP Client role.

Implementation changes in frameworks to support
HFP Client role.

Change-Id: Ifb10527cd6c1301297cae4f923b20734af672034
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
0a40ec2192e4836b2fcb6ba51a7688aa6bd4ee98 21-May-2014 Mike Lockwood <lockwood@google.com> Add Audio Manager support for Bluetooth A2DP Sink profile

Change-Id: Iff6035e85faf52647cc41a59f98ba2924300eb8d
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
fe3807a5b23f54f6539436d71aa0cd931a2b76f0 19-Jul-2013 Matthew Xie <mattx@google.com> Bluetooth MAP profile - sms and mms support initial check-in

bug:10116530

Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
ddf7e4756c31d0ed90802f98abeaa79df6d16b2a 02-Mar-2013 Matthew Xie <mattx@google.com> Unhide Bluetooth Low Energy public APIs

Updated API headers. Add BluetoothManager to be retrieved by
context.getSystemService(Context.BLUETOOTH_SERVICE).
LE scan functions are placed in BluetoothAdapter
The GATT API are device driven instead of a profile-driver.
bug 8450158

Change-Id: I424a4cedaac3ef8120a05996500008dd210d2553
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
9908112fd085d8b0d91e0562d32eebd1884f09a5 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

The API classes are hidden for now. Will unhide after API console
approval.
Change-Id: I8283dd562fd6189fdd15c866ef2efb8bbdbc4109
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.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/BluetoothProfile.java
c61eb2617df72f1e58d23e4c27897efedcfc0a09 25-Jun-2012 Swaminatha Balaji <swbalaji@broadcom.com> Fix for When Hf is rejected the device should initiate A2dp if a2dp is enabled

Change-Id: I82d05eacb6c7fae6eb1ebf246d2fce7314ff0a75
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
2d68a6ba3c1354f363e5ee77448f163664bf47d9 27-Sep-2011 Scott Main <smain@google.com> docs: mix of BT and NFC javadoc updates
Add Health profile to various discussions about profiles
Add descriptions to NFC interfaces, tweak some desciptions, and fix some broken links

Change-Id: Ib89434c78a4ad60b4358dca9a6c335451d1c4125
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
fd966a124f10448298aac79c4bb6cf8eb877277a 22-Sep-2011 Jaikumar Ganesh <jaikumar@google.com> Make Bluetooth Health constant public.

Change-Id: I366f1231056fe978d85ee80c773d5911badb22e2
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
cb1d354c1e9b458a0426cd08520d938012e32b34 19-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Add Api to get profile connection state.

This gets the current connection state of the profile with respect
to the local Bluetooth adapter.

Change-Id: I7cff6c9201d29a8b45413cff7384b7483f21bd5c
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
2ea1e85dcb57d17f5782dbafa1d25eb51c630e4b 02-Apr-2011 Jaikumar Ganesh <jaikumar@google.com> Implement APIs for Bluetooth Health profile.

This first patch implements all the APIs.
The APIs wil be made public soon. The data specification
API will be submited in another patchset.
Change-Id: I2462683b7e07380e2c42474b0036b34d03b4bed1
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.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/BluetoothProfile.java
74ef1199459629c5dd9f272f8cd706d82cdfeeb1 23-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothPan inherit from BluetoothProfile.

Change-Id: Ibd3e24e391be93ebe2cf975bd075efb68e10c1ff
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.java
4ab0e7746fe74a9e4d75d374f73b7af87420b2f6 18-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothInputDevice inherit from BluetoothProfile.

This makes it in sync with BluetoothHeadset and BluetoothA2dp profiles.

Change-Id: I3ddb1d18b04aacb173b7bc376bca21c277a6afe4
/frameworks/base/core/java/android/bluetooth/BluetoothProfile.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/BluetoothProfile.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/BluetoothProfile.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/BluetoothProfile.java