• Home
  • History
  • Annotate
  • only in /packages/apps/Bluetooth/src/com/
History log of /packages/apps/Bluetooth/src/com/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fe19c7f20ca3abc252965be60727e8a198cc6ff3 24-Oct-2014 Matthew Xie <mattx@google.com> When local device originated connection to hid device, move out of quiet mode

bug 17480992

Change-Id: Ia3f5ef4886dfde370abe5b35a80ab80a4f030f37
ndroid/bluetooth/hid/HidService.java
7a306fb7b52cdf99411aaef4c7b44f51a14dc559 15-Oct-2014 Matthew Xie <mattx@google.com> Merge "Update AVRCP play status only if music is streaming" into lmp-dev
a40ac96c186b6f2105906bb07be45fc8d2ce1436 10-Oct-2014 Tyler Gunn <tgunn@google.com> Issue: turning on bluetooth headset in call doesn't change route (2/2).

In addition to a failure to report CallState from Telecom, the broadcast
of the state change was happening before the active device was set,
causing Telecom to receive the broadcast indicating the audio state has
changed, only to have the Bluetooth service report that bluetooth audio
is not connected yet.

Bug: 17933664
Change-Id: Id4e7c6d4085f5ee990a8d19da8c089399ee60c6d
ndroid/bluetooth/hfp/HeadsetStateMachine.java
22bad7047263a6924423d12718738fdcc7b0352c 09-Oct-2014 Ravi Nagarajan <nravi@broadcom.com> Update AVRCP play status only if music is streaming

AVRCP play status was updated based on AVDTP stream state. Enhanced this
logic to update the status only when music is streaming
bug 12099469

Change-Id: Idef0180cd0d0b78fa392a5354320440fce9b81a7
ndroid/bluetooth/avrcp/Avrcp.java
fbb1fe1efa8459f932aed161fbcc0b5e4d52c2d5 08-Oct-2014 Tyler Gunn <tgunn@google.com> Moving STATE_DISCONNECTED broadcast.

In Telecom we were seeing a bug where we received an
ACTION_CONNECTION_STATE_CHANGEDSTATE intent indicating the disconnection
of a bluetooth headset. The BluetoothManager in Telecom would then
query the Bluetooth service to see if there are any devices. Despite
being informed that the device in use was disconnected, it still showed
up as connected.

To fix this, I moved the state broadcast AFTER the disconnected device is
removed from the headset state machine. Looking through all other
disconnect broadcasts in that file, the disconnection happens AFTER in
all other cases as well.

Bug: 17899941
Change-Id: Ice4b2a5b1093e04ffe4c3241a3379aba56898792
ndroid/bluetooth/hfp/HeadsetStateMachine.java
3d4a54529dd6033c082113b600d945531b759492 02-Oct-2014 Matthew Xie <mattx@google.com> Merge "MAP: Return OBEX_HTTP_NOT_IMPLEMENTED for msgUpdate for sms/mms" into lmp-dev
0bdf4df10c03602f609a1eb23aabe1fe772a89fd 02-Oct-2014 Prem Kumar <premk@google.com> Merge "Add HOGP as hid profile when the remote device contain HOGP service" into lmp-dev
ba4b2f5b1e32e742a130f79ee1a1d0509390c6b3 01-Oct-2014 Matthew Xie <mattx@google.com> MAP: Return OBEX_HTTP_NOT_IMPLEMENTED for msgUpdate for sms/mms

In MAP profile message update is not implemented for sms/mms.
bug 17723738

Change-Id: I6c7baaf9e6f54e7af1b6c8458a6a458239da7d10
ndroid/bluetooth/map/BluetoothMapObexServer.java
d523f01c8adda96876ffc019c9bb8b78e1372be0 30-Sep-2014 Matthew Xie <mattx@google.com> Add HOGP as hid profile when the remote device contain HOGP service

bug 17409862

Change-Id: I018f12facefa7fb7bf2c3b46e639c40a8a67eae4
ndroid/bluetooth/btservice/AdapterService.java
335b2b8f6f17c93a4c2b192c8e1b629e48b230b3 29-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed a Bluetooth MAP bug.

+ Beforehand, if a user disabled MAP and then unpaired the device, then
Settings would automatically deny future MAP requests from the device.

Bug: 17391677
Change-Id: I068f37426ed6a044ed2b5e9391cd9dd00908f867
ndroid/bluetooth/map/BluetoothMapService.java
acb400b0598107c0427e3fb07b0a4a8fade5481e 28-Sep-2014 Matthew Xie <mattx@google.com> Merge "BT MAP: fix problem with fetching CDMA messages" into lmp-dev
e796818505a0b57b225c3aeffc53f580c1e0c66e 25-Sep-2014 kschulz <k.schulz@samsung.com> BT MAP: fix problem with fetching CDMA messages

A bug in Java makes the Long.parse() function throw and exception when message
handles start to become negative (which happens for CDMA SMS messages).
Fix simply shifts the handle masks on byte down in order to get around
the bug.

Bug: 17627572
Change-Id: Ie41aef589dc9d3ecb8bc7167472218e57a52fa33
ndroid/bluetooth/map/BluetoothMapUtils.java
b5b51ca82e3db31705e54687f998b1ea1787396a 25-Sep-2014 Andre Eisenbach <eisenbach@google.com> Merge "Defer callbacks if the transport is congested" into lmp-dev
934dee789c0c68607a704c5c31ae2e4b956dc227 19-Sep-2014 Prerepa Viswanadham <dham@google.com> Defer callbacks if the transport is congested

Hold client characteristic write callbacks and server notification
callbacks if the transport is congested. When the congestion clears up,
all queued callbacks are sent to the application.

Bug: 17289507
Change-Id: Ib22d7857ac3990fd3cc922aedd4258013e1af54c
ndroid/bluetooth/gatt/CallbackInfo.java
ndroid/bluetooth/gatt/ContextMap.java
ndroid/bluetooth/gatt/GattService.java
a51c13ae7e6ce56922316a979aef570abafc9f3f 23-Sep-2014 Ariel Gertzenstein <agertzen@google.com> Set FLAG_RECEIVER_FOREGROUND when broadcasting
ACTION_PAIRING_REQUEST.

Bug: 17590080

Change-Id: I0a7cde5953f706a2b41b02878f0fdbd2d9e8ae35
ndroid/bluetooth/btservice/BondStateMachine.java
94023bd851cb80966d8f8006702d318057c83f09 19-Sep-2014 Matthew Xie <mattx@google.com> Merge "Save alias in RemoteDevice property before passing it to native layer" into lmp-dev
74277677d2a51d7c8ff60a778889f71e69763c21 18-Sep-2014 Matthew Xie <mattx@google.com> Save alias in RemoteDevice property before passing it to native layer

bug 17287682

Change-Id: Id7da194f66cf44d41e60f35665dfb1b279cac28f
ndroid/bluetooth/btservice/RemoteDevices.java
00ab61e21fd553620a466389907cb4dc089bb221 18-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Use unified Tethering Permission Check" into lmp-dev
e08a0eeb9cbf0ee732171d1c1d353aecdad0a7d2 17-Sep-2014 Wei Wang <weiwa@google.com> Fix a typo that compares scanMode with callback types.

Bug: 17187159
Change-Id: Ieca583e7cf02d63b9eceda7872511c9db280c04a
ndroid/bluetooth/gatt/GattService.java
620ff342d30c30306d1aa73ec65e209dd3141ff0 17-Sep-2014 Rakesh Iyer <rni@google.com> Merge "Don't leak PII into the logs." into lmp-dev
33a06059be8506003003e41ec020bdce273da1a1 17-Sep-2014 Wei Wang <weiwa@google.com> Merge "Enforce permissions for BLE hidden APIs." into lmp-dev
8e6c4bcf8f2275db33c7886b34eea0a6da427d08 17-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Use unified Tethering Permission Check

The BT and Wifi mechanisms for enabling Tethering did their own
permission checks. This set of changes unifies the check into
a ConnectivityManager function so they can be kept in sync.

bug:17435527
Change-Id: I8c157a5acf56ffbddd349cb6a45160ae7be8541b
ndroid/bluetooth/pan/PanService.java
02fc1acb99dbf3ae0a710ee7e4b6de8dd779e84e 17-Sep-2014 Rakesh Iyer <rni@google.com> Don't leak PII into the logs.

Guard a couple of the Log.v statements with the if (V) guard that
is used everywhere else in the file.

Bug: 17531755
Change-Id: I7ea06333132c400fca225d0c92cfca0d6c3024ab
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
699bc55e42eddd29889ab0e45d795c9a91a67662 16-Sep-2014 Edward Jee <edjee@google.com> Merge "Migrates PBAP and MAP access permission data from Settings to Bluetooth." into lmp-dev
901fc26af77bd2d0a82fe7b8e47a2fafb622811e 15-Sep-2014 PauloftheWest <paulofthewest@google.com> Bluetooth now properly saves A2DP status.

Bug: 17115629
Change-Id: I5e9bc4d492a9714a87b15d131b25cf9a5a0aeecd
ndroid/bluetooth/btservice/AdapterService.java
fc9bed1b79edf77082f5baa21aa68d791a102ea4 05-Sep-2014 Edward Jee <edjee@google.com> Migrates PBAP and MAP access permission data from Settings to Bluetooth.

Currently, users' preference in phonebook and call history or message
access per each Bluetooth-paired device is stored in Settings application's
shared preferences.

However, some privileged applications other than Settings need to access
such data. So we decided to migrate the data from Settings application's
shared preferences to Bluetooth application's.

Bug: 17158953
Change-Id: I3808891cdcce84aa0d4df31f998c9f1240159d95
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
1cd7be76ea6af37476df0cc28e19248d94be4bfa 13-Sep-2014 Wei Wang <weiwa@google.com> Merge "Do not reuse all pass filter index." into lmp-dev
6ef76fa25c1de11cbb5ae35d645c68584f680ac8 12-Sep-2014 Wei Wang <weiwa@google.com> Enforce permissions for BLE hidden APIs.

Bug:17187159
Change-Id: Ibe467fa52fdead036a80922947cc295257221530
ndroid/bluetooth/gatt/GattService.java
8b17c7f2f98bbea105a41a0bb962a4581b7cce5c 10-Sep-2014 Casper Bonde <c.bonde@samsung.com> MAP: Workaround for missing size values in message data base

Not all messages in the MMS/Email message data bases have
the size/attachment size attribute set.

This causes MAP clients to behave wrongly, e.g. they
request to exclude attachments if the attachments size
is 0. Even for messages which actually have attachments.

The attachment size is the only way for MAP clients to
know if attachments are present, hence the behavior of
the client is not wrong.
bug 17389452

Change-Id: I82cd76bc044601eb6e8b190d0c6fc41b51410a93
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
ndroid/bluetooth/map/BluetoothMapContent.java
7ac43d2e29e3405b4df2e9ebd947ae7a9d10e8a0 11-Sep-2014 PauloftheWest <paulofthewest@google.com> Merge "Applied Material theme to Bluetooth file acceptance dialog." into lmp-dev
711d604b79f811f2fdeaae57bd4d5e31f3052747 11-Sep-2014 Ang Li <angli@google.com> Merge "Change broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered." into lmp-dev
addfd25b639047e8463772b14f249758bdb20fbc 10-Sep-2014 PauloftheWest <paulofthewest@google.com> Applied Material theme to Bluetooth file acceptance dialog.

Bug: 17334507
Change-Id: I36d3ef5575ad84a27cda415c1d0e262f097e98a7
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
af5df2070741a4720abf61821fc217995b29101a 10-Sep-2014 Andre Eisenbach <eisenbach@google.com> Merge "Pairing failed after 50 attempts" into lmp-dev
44050ef0ada13303fc7d37f157b1afcf1c1da573 05-Sep-2014 Nitin Arora <niarora@codeaurora.org> BT-HF: Disable Multi HF feature.

Disable Multi HF feature by allowing max hf connections = 1
in HeadsetStateMachine.
bug 17321509

Change-Id: Ia477c728bfb1457def7f302d5533ce63446dffc7
ndroid/bluetooth/hfp/HeadsetStateMachine.java
11b41d8123241ba8e693e21c4db308bacff23f57 29-Jul-2014 Mudumba Ananth <ananthm@broadcom.com> Pairing failed after 50 attempts

-> The issue was caused due to delayed message sent for
bond_state_changed_callback in BondStateMachine and RemoteDevices
was sending the pairing request(sspRequestcallback) intent to the Settings APP
before even the bond state is changed.
-> Moved the SSPRequestCallback and PinRequestCallback to BondStateMachine
to synchronize the above two callbacks using a single message
queue in the BondStateMachine message handler.
-> Changed the pending command state to accept the SSP_REQUEST
and PIN_REQUEST messages and send the intents.

Bug: 16560957
Change-Id: I8372bdd2e96aa09215f2f1e98d6eed4e892637e6
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
beb0497605ef61062d0565d85897f4c842845a8f 09-Sep-2014 Ang Li <angli@google.com> Change broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered.

Making this broadcast ordered makes it possible to be intercepted
before Settings get it. This is cruicial to Android Audo's use case
and test automation.

The previous change we put in:
https://googleplex-android-review.git.corp.google.com/#/c/499135
was accidentally overwritten by
https://googleplex-android-review.git.corp.google.com/#/c/503267

We are putting this change back in, and making similar changes for
PBAP and HFP.

Change-Id: Ia9b4c22a05d0c9beb1485b53ddf04c45fa210526
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
2b9ac142e56cf6a6cc0572fb75f8a5ce40894f8b 05-Sep-2014 Wei Wang <weiwa@google.com> Do not reuse all pass filter index.

Bug:17425379
Change-Id: Iba4c40f8822b182718db060c3f2eeff7aabdb286
ndroid/bluetooth/gatt/ScanManager.java
5ca43226937e098a2404d61de3f991af5c6a2689 05-Sep-2014 Wei Wang <weiwa@google.com> Merge "Fixed batch scan returning status 12 when restarted." into lmp-dev
96509d5ff7109bc42a4c25143f70ec41a127d109 03-Sep-2014 Wei Wang <weiwa@google.com> Fixed batch scan returning status 12 when restarted.

Also fixed no batch scan results when both truncated and
full batch are enabled.

Added a BatchScanParams to hold parameters for batch scan.

Bug:16850169
Bug:17213118
Change-Id: Ib3bb7442aa2657912ef4377f825388ac8e1010bb
ndroid/bluetooth/Utils.java
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
ab10811e960ed0a5c6098467b2184895831f33ac 05-Sep-2014 Prerepa Viswanadham <dham@google.com> Return right connection status when connection failed

bug: 17326529
Change-Id: I57abf2f6a98c469248613ea386f0fa2ffaf5eac4
ndroid/bluetooth/gatt/GattService.java
76b4771991363ff69a099f483362805e4df63836 29-Aug-2014 Andre Eisenbach <eisenbach@google.com> Merge "redirect the ff/rw key event to ff/rw enabled player" into lmp-dev
b8bc0231e0074d923d7d961548d407babd41eb79 29-Aug-2014 Wei Wang <weiwa@google.com> Merge "More precise control of batch alarm." into lmp-dev
b4326c19eafb1d4437a82973b9019274e1e07aed 28-Aug-2014 Selim Cinek <cinek@google.com> Merge "Colored notifications" into lmp-dev
efbb85824de09776725d264cd872ccbedcc8b42b 28-Aug-2014 Matthew Xie <mattx@google.com> Merge "Listen for phone state on connect instead of SLC" into lmp-dev
3bfba36385f686ef63445dbecb627030573a04fd 21-Aug-2014 Wei Wang <weiwa@google.com> More precise control of batch alarm.

Use setWindow instead of setRepeating for alarms.
SetRepeating is inexact and the alarm can be triggered quite randomly,
while setWindow gives more precise control of trigger time.

Also unregister alarmReceiver during cleanup to avoid leak of
IntentReceiver.

Bug: 16689485, Bug:16826684
Change-Id: I5245e1424aad3c11ab5ce8a7393031e9d4f1dd03
ndroid/bluetooth/gatt/ScanManager.java
881675b362bde18acbbcf69c513175addca4a8ba 27-Aug-2014 Zhenye Zhu <zhenye@broadcom.com> redirect the ff/rw key event to ff/rw enabled player

Added code to cleanup the forward/rewind
event queue and redirect the key event to
the ff/rw enabled player
Bug 16890205

Change-Id: If09c0693621d9f36fb7dc14177597e30450b87b6
ndroid/bluetooth/avrcp/Avrcp.java
0ce48bf302e010af811c903f8a986df567562ecf 27-Aug-2014 Selim Cinek <cinek@google.com> Colored notifications

Bug: 17128331
Change-Id: Ic1a4d9803790cc0f3e8003ede4da8cc8f26729cf
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
7c405bac41fc4ebb5c9cc7b5c896b023f7b1e9fc 25-Aug-2014 Prerepa Viswanadham <dham@google.com> Set batch scan params based on scan settings.

bug 17134263

Change-Id: Id0d314ad1c14ad20e32830ae2c8ad5f80765b28b
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
8e00c15a0c32c9bc7dab5038edf24bb418f181ef 19-Apr-2013 Ravi Nagarajan <nravi@broadcom.com> Listen for phone state on connect instead of SLC

Phone state listener changed to start on connect. This gaurantees
that the CIND response as part of SLC reflects the right indicator
values
bug 17020870

Change-Id: I47989643600edfa4d4e422998c3a644a7f7556b9
ndroid/bluetooth/hfp/HeadsetStateMachine.java
d54785926fc0150661b6e70d5d0dabef87be3d73 25-Aug-2014 Wei Wang <weiwa@google.com> Merge "Fix API council review comments. Also hide certain APIs(2/3)." into lmp-dev
24cb4d5082f4568074e5d1f375027a219aa40be7 24-Aug-2014 Wei Wang <weiwa@google.com> Merge "Fix race condition when advertising app dies." into lmp-dev
f9a51c08a1acf9a70a3e49f89f543b309822bd97 21-Aug-2014 Andre Eisenbach <eisenbach@google.com> Merge "LE: Rename new MTU and connection paramter update APIs" into lmp-dev
039bf1606bddb3794fd6aa9adee704733f89544f 12-Aug-2014 Wei Wang <weiwa@google.com> Fix race condition when advertising app dies.

Bug: 16565960
Change-Id: Ica801a1186e62fcba666deabe5989dd47d404b68
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanManager.java
1dc1aab071533430ff1a0cfe1aa49e5f954f3518 20-Aug-2014 Andre Eisenbach <eisenbach@google.com> LE: Rename new MTU and connection paramter update APIs

bug 17005342
Change-Id: Ic773b5c4bb3da9777613c8094ad21ea6f720110d
ndroid/bluetooth/gatt/GattService.java
ecbfd7771dd2ee7665f7fc18bf869e480c6f5449 12-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
ndroid/bluetooth/pan/BluetoothTetheringNetworkFactory.java
db0920ed7d9ef5385e36dfa922f351e4e6556a3e 15-Aug-2014 Wei Wang <weiwa@google.com> Fix API council review comments. Also hide certain APIs(2/3).

b/17006825

Change-Id: I6c0e739e44f8a9d26f3f2b03937b38d4dec893e7
ndroid/bluetooth/gatt/AdvertiseManager.java
03f23ee7d3868e97ec7ed1a3d81c149b5b0ebd69 13-Aug-2014 Wei Wang <weiwa@google.com> Add protection before cleaning up adv and scan manager.

b/16845251

Apparently for GattService stop and cleanup could be called before start
is even called.

Change-Id: Id0ac2e68da504f79160264012a0cdf5127eccfc7
ndroid/bluetooth/gatt/GattService.java
55a7eff213d57dd0ff948d441edb16f4a6ae2ea6 11-Aug-2014 Wei Wang <weiwa@google.com> Use nanos instead of micros in BLE scan.

Change-Id: Ifdaf101f92ae4c8d2bcecf62a1942961d6610151
ndroid/bluetooth/gatt/GattService.java
0d8f1ae3e070d7a13f8e482895bcab428a6c8381 08-Aug-2014 Wei Wang <weiwa@google.com> Merge "fix build." into lmp-dev
c1d460a4ee15238f33e9c2a61b571965accf9838 08-Aug-2014 Wei Wang <weiwa@google.com> fix build.

Change-Id: I034cc118ea4dca67ed6240b700d4ac504562ddfc
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
c43ce5118eab93469e31d56ee30043e5e011fa89 07-Aug-2014 Wei Wang <weiwa@google.com> Fix build.

Change-Id: Ied3bd289b662cd342ba05f5038175007d3211a63
ndroid/bluetooth/gatt/GattService.java
50cc9194f72c040f04c2ae0f0322246a570e8bfa 07-Aug-2014 Prerepa Viswanadham <dham@google.com> OnFound/Lost reporting: s/w detects the first match and
hw signal is used to report onlost.

Bug 16733710

Change-Id: I4d1d0320b6894fe1af59192eb56a4a801609049a
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanManager.java
755ef770144daf1a0fbbabaa310bc300190dfd9c 08-Aug-2014 Andre Eisenbach <eisenbach@google.com> Merge "LE: Add limited advertising duration capability (3/3)" into lmp-dev
c1512abbe9bb60c94c5f46e90918983d1514c8e3 08-Aug-2014 Andre Eisenbach <eisenbach@google.com> LE: Add limited advertising duration capability (3/3)

Change-Id: Ib025d8a10cce07e8f731c005d963245aa988be73
ndroid/bluetooth/gatt/AdvertiseManager.java
5f8b46c673e2b862ab7ff7280915e89578bbd06e 07-Aug-2014 Wei Wang <weiwa@google.com> Merge "Clear pending data and allow all filter when batch stopped." into lmp-dev
00975169ba4eb5251397a66532ee9a3288c0f137 05-Aug-2014 Wei Wang <weiwa@google.com> Clear pending data and allow all filter when batch stopped.

Also send batch data to multiple clients for full batch.

b/16802098

Change-Id: Ife1723b818531fcf2cff897686f33f6b0a1d0aaa
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
326b5e610063ac24c0ba467ac585bd4c7f618a67 24-Jul-2014 Casper Bonde <c.bonde@samsung.com> BT MAP: added support for email sharing over BT

- added support for Emails
- added activity to do setup of the email accounts to share
- added improved handling of MMS, SMS and Email
- Many optimizations to speed (especially getMessageListing)
- fixed wakelock problem
- fixed user timeout problem when user do not react to msg access request
- added missing privileges
- support for Quoted Printable format
- added accountId in test case URIs
- fixed problem with service numbers being strings
- fixed problem with read flag in getMessage
- added support for transparent flag in Email Push
- added missing send-event for non-imap accounts
- set attachment size to 0 if text-only message
- fixed double send for sms messages with retry
- removed secondary phone numbers from recipient/originator
- removed insert-address-token in MMS messages
- fixed null-pointer exception in settings (missing extra in intent)
- send text-only mms as sms (workaround to make it cheaper)
- fixed rejection of native and fraction requests
- better handling of unknown message types in push
- fixed problem with possible illigal xml chars in message listing
- added missing WRITE_APN_SETTINGS permission to manifest
- fixed problem with notifications when pushing to folders other than OUTBOX
- removed debugging code
- added support for threadId
- fixed permission problems
- changed to use ContentProviderClients for Email app access
- fixed names for member vars

UPDATE: Moved the MAP E-mail API to the bluetooth package.

UPDATE: Added check for the presense of MMS parts.
This is needed due to a change in the MMS app/subsystem,
where deleted messages gets corrupted.

Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Change-Id: Ib5dbe7c2d5c0ba8d978ae843d840028592e3cab4
ndroid/bluetooth/map/BluetoothMapAppParams.java
ndroid/bluetooth/map/BluetoothMapAuthenticator.java
ndroid/bluetooth/map/BluetoothMapContent.java
ndroid/bluetooth/map/BluetoothMapContentObserver.java
ndroid/bluetooth/map/BluetoothMapEmailAppObserver.java
ndroid/bluetooth/map/BluetoothMapEmailSettings.java
ndroid/bluetooth/map/BluetoothMapEmailSettingsAdapter.java
ndroid/bluetooth/map/BluetoothMapEmailSettingsDataHolder.java
ndroid/bluetooth/map/BluetoothMapEmailSettingsItem.java
ndroid/bluetooth/map/BluetoothMapEmailSettingsLoader.java
ndroid/bluetooth/map/BluetoothMapFolderElement.java
ndroid/bluetooth/map/BluetoothMapMasInstance.java
ndroid/bluetooth/map/BluetoothMapMessageListing.java
ndroid/bluetooth/map/BluetoothMapMessageListingElement.java
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMapSmsPdu.java
ndroid/bluetooth/map/BluetoothMapUtils.java
ndroid/bluetooth/map/BluetoothMapbMessage.java
ndroid/bluetooth/map/BluetoothMapbMessageEmail.java
ndroid/bluetooth/map/BluetoothMapbMessageMms.java
ndroid/bluetooth/map/BluetoothMapbMessageMmsEmail.java
ndroid/bluetooth/map/BluetoothMapbMessageSms.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
475a4f7727a082ccf289ce406e75c463750a515c 05-Aug-2014 Wei Wang <weiwa@google.com> Workaround for reversed mac addresses in batch scan.

b/16803363

Change-Id: I47299ed2a6191e7f05c229feb1f1f0424e486907
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
f021c4ee6ba53c8512807c1469b2432278cf6cca 05-Aug-2014 Andre Eisenbach <eisenbach@google.com> Merge "Add transport parameter to createBond() function (3/4)" into lmp-dev
db681f3973bd8a088a878fd6f41d4330cdbc5522 05-Aug-2014 Andre Eisenbach <eisenbach@google.com> Add transport parameter to createBond() function (3/4)

Change-Id: Id3c59bcc8f9efb20fffdebaff34d6b2593f5e5ca
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/BondStateMachine.java
62fb56f2ba7d998e3e7416fc19d25ea91cc85111 04-Aug-2014 Matthew Xie <mattx@google.com> Check null mHandler condition before invoking method on it

There is a path that clean up is called before stop call on HealthService
mHandler could be set to null
bug 16784750

Change-Id: Ie931fa502cf82d21c6bf97a8dc7035e5a1ed4b2e
ndroid/bluetooth/hdp/HealthService.java
a08ff547783c43175c90ed8bd3e4db53482b3dde 30-Jul-2014 Nitin Srivastava <nitinsr@codeaurora.org> MHF: Return the correct connection state for headset.

When more than 1 headset is connected, return the correct
connection state for a headset other than latest connected
headset.
bug 16514538
Change-Id: Id07165f2c023959b7a457a1c1c0ed5c227838973
ndroid/bluetooth/hfp/HeadsetStateMachine.java
97600f2df10fbbe1810141e1c4ef7091a6a55abe 03-Aug-2014 Wei Wang <weiwa@google.com> Change discard rule.

Change-Id: Icfc43371acb0e901a7f67a4c32c5dd2e63de49c3
ndroid/bluetooth/gatt/ScanManager.java
18999c2cfd477050de0ca88c3a73458235d82656 30-Jul-2014 Wei Wang <weiwa@google.com> Add a default impelementation of IBluetoothGattCallback(2/2).

b/16636127 Explicitly use UTF-8 for ScanRecord's local name

Change-Id: Ib152239cdee0becf3f49f1b610dfe1c2296c3647
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
7dca73a9bdbdbbea93bb0b6150702d21c533b229 01-Aug-2014 Wei Wang <weiwa@google.com> Merge "Change service data and manufacturer data to be repeated." into lmp-dev
e34b91565499994a4b04a1014432c8f90678972a 30-Jul-2014 Wei Wang <weiwa@google.com> Change service data and manufacturer data to be repeated.

Change-Id: Ie45ca40d3d84d192d65003ea3ac9ad428b281f94
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/ScanManager.java
5a95154a384076ae9ff43e79ae30085327e53cec 31-Jul-2014 Yicheng Fan <yichengfan@google.com> Merge "Remove client from advertiseManager correctly" into lmp-dev
61b76fd94c45ee1909cde1d08a643fc031ef287f 31-Jul-2014 Yicheng Fan <yichengfan@google.com> Remove client from advertiseManager correctly

Bug: 16711409
Change-Id: I3881593818edcf822ec07353da4a5ea6970f5d7c
ndroid/bluetooth/gatt/AdvertiseManager.java
3548bc374efdb3cc93d6856e71353291a90fd4a7 31-Jul-2014 Prerepa Viswanadham <dham@google.com> Reduce batch supported threshold to 1024 bytes

b/16680086

Change-Id: I671abd7dba321ab111280d1a1cb27aa93635a6d1
ndroid/bluetooth/btservice/AdapterService.java
f2f2e89a583d764066c4a84b3d5de5201310202b 31-Jul-2014 Prerepa Viswanadham <dham@google.com> Incorrect data type
bt_local_le_features_t of wrong size

b/16653133

Change-Id: Ifade7add084fcfbef60abb7d8e5d47e619b0e812
ndroid/bluetooth/btservice/AdapterProperties.java
f254208ae7231d227f4dd9f361d38d161bbecb97 29-Jul-2014 Wei Wang <weiwa@google.com> Merge "Combine manu id and data before setting to stack." into lmp-dev
5b79bdb4b17c09a17db7634d15e1d6b56bca6c48 29-Jul-2014 Prerepa Viswanadham <dham@google.com> Bug 16630976 - Fix for LE Scan not working

Change-Id: I287ff92b699bc798a7d208deed67bc4dce8e1af7
ndroid/bluetooth/gatt/ScanManager.java
a1feac750a78ef35ff83e381ca421d9c68c49673 28-Jul-2014 Wei Wang <weiwa@google.com> Fix build due to removal of configureScanParams.

Change-Id: If3458b47bb9dfc508e630fe1fb608f01c44284a9
ndroid/bluetooth/gatt/GattService.java
e0a211b1c15672734e329390cb2f04ca006b59bd 26-Jul-2014 Prerepa Viswanadham <dham@google.com> Refactor configuring scan params to scan manager

Change-Id: I8c60f0fa4307c2833bc5da6cd080515c5b16b652
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
466e67f34a72bbb43fa03aae7ad96cb41f02451d 27-Jul-2014 Wei Wang <weiwa@google.com> Fix service data filter and report delay issue.

Change-Id: I1e4dd400c94f8740e4e950c42be6beac858f3ab8
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
ndroid/bluetooth/gatt/ScanManager.java
bebb0fe84fe06a47bd88cdfb9cba8ffe4d2c463a 26-Jul-2014 Wei Wang <weiwa@google.com> Combine manu id and data before setting to stack.

Change-Id: Idef33daa87939a0533dae37dad53a827155d79ca
ndroid/bluetooth/gatt/AdvertiseManager.java
be3bd22d6f96ddce0e5d42bf25d1c8acf35addfe 25-Jul-2014 Wei Wang <weiwa@google.com> Merge "Use scanner for lagacy LE scan (2/2)." into lmp-dev
2609a11670563837625f7dde2192deaba7417e46 24-Jul-2014 Andre Eisenbach <eisenbach@google.com> Fix A2dp crash when re-starting Bluetooth services

When the Bluetooth process has died, the services will be restarted to
recover from a crash. This could cause an exception in the A2dp service
because the service maybe stopped without having successfully been
started before. Added null-check to prevent an exception during the
restart.

Bug: 16529242
Change-Id: I57c99ec72c0ba09c6c5325b262e83618aacb3e39
ndroid/bluetooth/a2dp/A2dpService.java
86c292ab0f0fed25345a2eaef0fd92ff9c72a9e5 24-Jul-2014 Wei Wang <weiwa@google.com> Use scanner for lagacy LE scan (2/2).

Change-Id: I273e7a2b6687f38d051c3264ff1bbb0025507820
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanManager.java
d981566d5912bfd66fc265508e5b0c43dce76f82 23-Jul-2014 Prerepa Viswanadham <dham@google.com> Bug 15564216: Report Bluetooth tx/rx/idle activity info and energy reporting

Change-Id: Icff519c6e91d7a9a2fb5bd462daddb6a79f9bb46
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
f6eff2b71e9bc206f995e847e384507fb1c3e239 19-Jul-2014 Prerepa Viswanadham <dham@google.com> LE energy info feature

Java and JNI changes for energy info feature

Change-Id: Ifdc7b7253aea8c610b2dac90f2b3f525b5e2d73f
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
9c24a0ef159f3332a2e66648d8d3c7dfac26cbc8 22-Jul-2014 Wei Wang <weiwa@google.com> Add a ScanManager that handles Scan related operations. Remove
GattServiceStateMachine.

Change-Id: I03afefaa4ba534abbf8e2bd38b4888020764cb22
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanManager.java
f206ddd8115bdcb66ecee0c6feac35b3dc8d4da2 19-Jul-2014 Wei Wang <weiwa@google.com> Fix build

Change-Id: I0e4f8ffec53f606c75dbfae0db50da51118d8ddf
ndroid/bluetooth/gatt/AdvertiseManager.java
cdc69a341eae90f177ced91931bc744ee0d34c9d 17-Jul-2014 Wei Wang <weiwa@google.com> More API modification of BLE APIs (2/2)

Change-Id: I65085fa0fa5d02a9163f66555a1c7ba339b454af
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
cfda60b6b204f6e97bc961d1ac43ef7c43ac26a8 19-Jul-2014 Andre Eisenbach <eisenbach@google.com> Merge "Reduce GATT logging output" into lmp-dev
cae2bfe10d59a759596136a4ff07750fe6176351 18-Jul-2014 Andre Eisenbach <eisenbach@google.com> Reduce GATT logging output

Change-Id: I85e9191065083f11056de44202a8e5a0cba1d2c8
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceConfig.java
fbe63484114cf9b7a79043e0bc5bb74504cf5730 17-Jul-2014 Andre Eisenbach <eisenbach@google.com> LE: Add connection parameter update request API (3/4)

Change-Id: I1be7d530d4db27473086ee8734cdb6aa5e63667c
ndroid/bluetooth/gatt/GattService.java
87dfc410a3bc99ddf1dd30114500d2a7970075c0 18-Jul-2014 Wei Wang <weiwa@google.com> Merge "Add an AdvertiseManager for LE advertise operations." into lmp-dev
27bd5f277ccf471f2fa9cd9151a2a226b51bc825 16-Jul-2014 Wei Wang <weiwa@google.com> Add an AdvertiseManager for LE advertise operations.

Move all advertise logic out of GattServiceStateMachine.

Change-Id: I9bc9be29372e79e863fc6a0b16d4808918bfb404
ndroid/bluetooth/Utils.java
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/AdvertiseManager.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
411ad52f79b7390a5831e30d3e3742c129c6bb6a 14-Jul-2014 Sharvil Nanavati <sharvil@google.com> Fix bug b/16119342 by synchronizing the access of mWakeLock in release().

Change-Id: Ie0fb5d2c5805f854a886729f539adf2ae865bc17
ndroid/bluetooth/btservice/AdapterService.java
55a038663154f47fb899d4e8576ed0c440ad6335 15-Jul-2014 Wei Wang <weiwa@google.com> Add ALLOW_ALL filter logic to scan filters. Note filter index 1 is
reserved for ALLOW_ALL filter now.

Change-Id: Ie8b2f94a0112f95bc88323a8319f94fb780790a2
ndroid/bluetooth/gatt/GattServiceStateMachine.java
2626af8b78e7f42e5e0807d58ca14a4b8f6161b5 11-Jul-2014 Wei Wang <weiwa@google.com> Remove MR2 BLE Advertising hidden API from L codebase (2/2)

Change-Id: I1430cef859544fc97b7c39ead42dcb184707aa5f
ndroid/bluetooth/gatt/GattService.java
5b4e66228f799c1187c28be59843e70974243e16 12-Jul-2014 Matthew Xie <mattx@google.com> am 24b52ce7: Merge "Revert "Bluetooth: MAP: Do not set body header if maxlist count is 0"" into klp-wireless-dev

* commit '24b52ce786d8c5fa4bf1c4294ec9fbfd3738754f':
Revert "Bluetooth: MAP: Do not set body header if maxlist count is 0"
878cb162c0d823d6bb4e64f6d5da3770df3fb526 12-Jul-2014 Matthew Xie <mattx@google.com> am c73bd48e: Merge "Bluetooth: MAP: Do not set body header if maxlist count is 0" into klp-wireless-dev

* commit 'c73bd48e5351a12103cb58a15fa9fc33825c9b07':
Bluetooth: MAP: Do not set body header if maxlist count is 0
44499c6ba795ab59ad6387fa00e20537b3c5064e 12-Jul-2014 Matthew Xie <mattx@google.com> am 5693ce1f: Merge "Bluetooth-OPP: Avoid IndexOutOfBoundsException if share is zero" into klp-wireless-dev

* commit '5693ce1fb60f7ebf858b4e35750a9335ebe47c72':
Bluetooth-OPP: Avoid IndexOutOfBoundsException if share is zero
361e580eb6c07759cdd775ed57902839ff4bfe90 11-Jul-2014 Andre Eisenbach <eisenbach@google.com> Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (2/2)

Change-Id: If29034da523a4f2a0ce9807226363f038f0360cd
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
c73bd48e5351a12103cb58a15fa9fc33825c9b07 12-Jul-2014 Matthew Xie <mattx@google.com> Merge "Bluetooth: MAP: Do not set body header if maxlist count is 0" into klp-wireless-dev
7f25f97c92b970ef5d58b36f963e7233efd5bf2a 18-Dec-2013 Pradeep Panigrahi <pradeepp@codeaurora.org> Bluetooth: MAP: Do not set body header if maxlist count is 0

As per MAP profile spec when message listing or folder
listing is done with 0 as max list count, then the response
should not contain the body header. Hence add change for the
same

Change-Id: I09b44a07bb9d15f248c0657563da4927ce4b4996
ndroid/bluetooth/map/BluetoothMapObexServer.java
24b52ce786d8c5fa4bf1c4294ec9fbfd3738754f 12-Jul-2014 Matthew Xie <mattx@google.com> Merge "Revert "Bluetooth: MAP: Do not set body header if maxlist count is 0"" into klp-wireless-dev
dca114675305d931596e07bcf962aaa3c7515656 12-Jul-2014 Matthew Xie <mattx@google.com> Revert "Bluetooth: MAP: Do not set body header if maxlist count is 0"

This reverts commit 7f25f97c92b970ef5d58b36f963e7233efd5bf2a.

Change-Id: Ib07fd8439f07de8e6028e88eb0a9798c1aec61a0
ndroid/bluetooth/map/BluetoothMapObexServer.java
183b33edc8af0344f7651823fa2e622955d15005 10-Jul-2014 Wei Wang <weiwa@google.com> Fix filter index stack initialization issue caused by GattServiceStateMachine created before adapter property is filled.

Change-Id: I4f487378b332d3b33c8646fd78d9ccec41431975
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
8e8d9314d67618e5604059d3758c2c8a92ae361f 09-Jul-2014 Prerepa Viswanadham <dham@google.com> OnFound and Onlost found integration

Change-Id: Ia7bdcd180a318844ab390e23a1f61168e79c324b
ndroid/bluetooth/gatt/GattService.java
750fd64e9e3724902190f74ebb2538a966a3e11e 04-Mar-2014 Juffin Alex Varghese <jalex@codeaurora.org> Bluetooth-OPP: Avoid IndexOutOfBoundsException if share is zero

This change will avoid IndexOutOfBoundsException if number of sharing
files are zero. Otherwise, Bluetooth application will force close itself
when exception encountered.

Change-Id: I42473c8ca2d9116c6d57707ab8f3c452d7027e67
ndroid/bluetooth/opp/BluetoothOppService.java
f56c48057e5a9b1eae12068ab01d1e6fbb4c9e5d 09-Jul-2014 Wei Wang <weiwa@google.com> Fix a bug that swapped LOW_POWER AND LOW_LATENCY for advertising.

Change-Id: I21c95ef69c6f54f9d60395a9427d30b875e8e261
ndroid/bluetooth/gatt/GattServiceStateMachine.java
bd061cd6801b84f4248f9cf32dbd294537495f7e 09-Jul-2014 Matthew Xie <mattx@google.com> Merge "resolved conflicts for merge of dc497463 to master"
9b05359927c9687bb601a2ac340be87c8a077342 09-Jul-2014 Matthew Xie <mattx@google.com> resolved conflicts for merge of dc497463 to master

Change-Id: I7bb1b91da3ae3b6e7e21b34a0cdfb5ed417135bc
e3ee0a6264913deb28c160f5c32cb3367e97ee45 09-Jul-2014 Ang Li <angli@google.com> Make ACTION_CONNECTION_ACCESS_REQUEST to be sent in ordered fashion.

The purpose of this change is to enable automated testing
to confirm incoming connection without involving human.
Remove .setClass so the intent is no longer only sent to Settings.
This is ok because the intent is still hidden and protected.
Remove unused imports.

Change-Id: I3be5df4ab440b299a75ec41d566f9eecb0ab3f31
ndroid/bluetooth/map/BluetoothMapService.java
dc497463ba2ab84a408faca6d7a9fd0013739d42 08-Jul-2014 Matthew Xie <mattx@google.com> am 7efa9db2: Merge "HFP: Fix missing OK for AT+CLCC in virtual call"

* commit '7efa9db2129c99475684a2e44c4fb89cce3134bc':
HFP: Fix missing OK for AT+CLCC in virtual call
7efa9db2129c99475684a2e44c4fb89cce3134bc 08-Jul-2014 Matthew Xie <mattx@google.com> Merge "HFP: Fix missing OK for AT+CLCC in virtual call"
544c8f08dfdef31604ec21318b08ebe8d5b98e92 08-Jul-2014 Nick Kralevich <nnk@google.com> Merge "Fix "Clone" call"
20e28abb314da5a052ee8cebd07308f1c3cab674 08-Jul-2014 Wei Wang <weiwa@google.com> Merge "Implementation of batch scan."
e84b9ab8ebca5e6d108d722fa84234fddf3685cd 02-Jul-2014 Wei Wang <weiwa@google.com> Implementation of batch scan.

Change-Id: I247a1676d20131ca05674da44a06d8c21785d71d
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
3a91ac3eefe23a22aa0abc1a89ac253a2b0dbae9 05-Jul-2014 Nick Kralevich <nnk@google.com> Fix "Clone" call

The function name is "clone", not "Clone".

Also, add @Override so errors like this can be detected at
compile time.

Change-Id: Iaf5ec35cdfcd49dec786f14a72c1ebe42aa6bf05
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
c4b937588bb1a0b73071bbaa120906f5ff501059 02-Jul-2014 Prerepa Viswanadham <dham@google.com> am 40422f10: Obtain capabilities from BLE chipset for it\'s support of various features

* commit '40422f101e8ea8c852173a63d4faa1f01dcfa150':
Obtain capabilities from BLE chipset for it's support of various features
40422f101e8ea8c852173a63d4faa1f01dcfa150 02-Jul-2014 Prerepa Viswanadham <dham@google.com> Obtain capabilities from BLE chipset for it's support of various features

Change-Id: I594790bd837a22488c1e080e340cb1c66ed4367b
ndroid/bluetooth/btservice/AdapterService.java
701d60eb4c53dafc4290ecaba13f719a945e38da 01-Jul-2014 Julia Reynolds <juliacr@google.com> Restrict bluetooth tethering with user restrictions.

Bug: 15852213
Change-Id: I641b03c3e5fa4018b382f5ed835218f4196ef7f7
ndroid/bluetooth/pan/PanService.java
2c0df0560ad5ae3fd6022b17b17a6a70143e216a 16-Aug-2013 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Support MAP Client role on Bluedroid.

Implementation changes to support Message Access Profile
client role in Bluetooth Apk.

Change-Id: I209909a2b18e43c7931571526b983453795f6c6b
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
ee7ff974b660d954ca2f188e54072d410f2b9c2f 01-Jul-2014 Wei Wang <weiwa@google.com> am f66efab4: fix build error on kwd

* commit 'f66efab444805947fd67c5ce1f8f0a592260fcf5':
fix build error on kwd
f66efab444805947fd67c5ce1f8f0a592260fcf5 01-Jul-2014 Wei Wang <weiwa@google.com> fix build error on kwd

Change-Id: I29debb4ea6a1bb33e2a5e182b86c066179f8ac92
ndroid/bluetooth/gatt/GattServiceStateMachine.java
a61c69cd9e1fb148f56f16b1b768bed427b3b51d 28-Jun-2014 Wei Wang <weiwa@google.com> Phase 2 scan filter implementation. Also provides skeleton for batching and onFound/onLost integration.

DO NOT MERGE : Cherrypick from master to kwd.

Change-Id: I2e838296191ff6f55481fcde7d05d7cd6d4899dc
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
ee8ad19e379e97582b58e3c9f87d587bae7e6ce3 01-Jul-2014 Todd Poynor <toddpoynor@google.com> Merge "Change some rule in Pbap to fix Test case issues"
dcec9008751b6c8865ad32dc338d5fee82d9db58 01-Jul-2014 Matthew Xie <mattx@google.com> am ecb463f9: Merge "[BT] Fix bug: MAP client can not get MessageListing for draft folder" into klp-wireless-dev

* commit 'ecb463f9e1974fa5980a69f1370275972107143f':
[BT] Fix bug: MAP client can not get MessageListing for draft folder
628b72197e389446ec59dc1219a0f2e11c202ae3 01-Jul-2014 Matthew Xie <mattx@google.com> am bf765c09: change bt_headset_wbs to bt_wbs

* commit 'bf765c090de4b973f4eede4f4248f5e422454c2d':
change bt_headset_wbs to bt_wbs
bf765c090de4b973f4eede4f4248f5e422454c2d 21-May-2014 Matthew Xie <mattx@google.com> change bt_headset_wbs to bt_wbs

Change-Id: I8942b29231e4df024bbf3b174abd83e8b5876c96
ndroid/bluetooth/hfp/HeadsetStateMachine.java
76dc9e2d09ea7f2655e557462c149a0c6b6dd771 20-Jun-2014 Mick Lin <Mick.Lin@mediatek.com> Change some rule in Pbap to fix Test case issues

Change-Id: Iec6db0c52cf05fd6fada40b7726b02768474181a
(cherry picked from commit e529b58896b2191eacbc6aa0f01f1f0341626d21)
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
76301c48d4f5edc78cc5c6b9d66f006052c97c6e 01-Jul-2014 Matthew Xie <mattx@google.com> am b6132733: Add WBS support on Bluedroid (5/6)

* commit 'b6132733b6e386cc8c93b5598c72ed8efe04bf3e':
Add WBS support on Bluedroid (5/6)
b6132733b6e386cc8c93b5598c72ed8efe04bf3e 28-Apr-2014 Matthew Xie <mattx@google.com> Add WBS support on Bluedroid (5/6)

Bug 13764086

Change-Id: Ib6c5d5f4321006ce1a35045907618abc417e6352
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ecb463f9e1974fa5980a69f1370275972107143f 01-Jul-2014 Matthew Xie <mattx@google.com> Merge "[BT] Fix bug: MAP client can not get MessageListing for draft folder" into klp-wireless-dev
a308d4fcdb58a61afb18ad590800193a195db3ee 30-Jun-2014 Wei Wang <weiwa@google.com> Merge "Phase 2 scan filter implementation. Also provides skeleton for batching and onFound/onLost integration."
2b670d217c743a7a8082f1d72baf532ef66ba21c 28-Jun-2014 Wei Wang <weiwa@google.com> Phase 2 scan filter implementation. Also provides skeleton for batching and onFound/onLost integration.

Change-Id: I2e838296191ff6f55481fcde7d05d7cd6d4899dc
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
74b2317d360f302c2cdd36e00b4b8e1a9d0674a4 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 43b941ed: MAP: Remove pending MAP authorization pop up

* commit '43b941ed67f10876a3d730cc095ddb6589e9c1b6':
MAP: Remove pending MAP authorization pop up
b45cd4213217329ee1efb4499cccf0f38a293775 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 5079ae05: MAP: Modify XML serializer to escape double quote

* commit '5079ae05a3fa7cf09d2d8e564b71382dfc70a1ae':
MAP: Modify XML serializer to escape double quote
75fdd3e0888d37e8f1b4997fd688e0da12b4bbbe 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 5c397073: MAP: Return OBEX_HTTP_NOT_IMPLEMENTED response code for msgUpdate

* commit '5c3970730dee1da5d1f37bc03a595dc1e9c47152':
MAP: Return OBEX_HTTP_NOT_IMPLEMENTED response code for msgUpdate
27a4001f202fd55c8864216db9b7afe113d13b0d 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am c1f597b3: MAP: Set messageList element to proper size based on offset/count

* commit 'c1f597b3ec02ccc112f3c917fd079588034c3eac':
MAP: Set messageList element to proper size based on offset/count
ff0887813a704d9b1cca118499b8ed0a68682ef1 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 0e7e1496: MAP: Fix MNS observer sync and sendevent exception issue.

* commit '0e7e149687b0b5e340991b20c9d8e5232e8d3e39':
MAP: Fix MNS observer sync and sendevent exception issue.
5dab95cba01eeea272f9e9e96faf3b11f84a4ad9 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 400eaf87: MAP: Fix fatal exception due to missing looper for current thread

* commit '400eaf8761223196a18b84247b066f0201226c3b':
MAP: Fix fatal exception due to missing looper for current thread
d600b53f526a6fcb54ca8f7e347aafa72f9d3f4e 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 6db8e703: PBAP: Add Filters support.

* commit '6db8e703719f301f75acdf4acacc3296cc1b5016':
PBAP: Add Filters support.
7de8acd090770cfd5d94b299b4f9c40f8970dcda 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 29ab94a0: PBAP: Strip unwanted braces and spaces from telephone number.

* commit '29ab94a024ffce08229f1c2c6776d1e72d2a3f75':
PBAP: Strip unwanted braces and spaces from telephone number.
c76fe0ddf8dc1c469e17b3ca12127295f0d42371 29-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 4216387d: PBAP: Remove the PBAP pop up in various scenarios

* commit '4216387d9887926cebd652f8d3807d780642fc87':
PBAP: Remove the PBAP pop up in various scenarios
43b941ed67f10876a3d730cc095ddb6589e9c1b6 26-Nov-2013 Hemant Gupta <hemantg@codeaurora.org> MAP: Remove pending MAP authorization pop up

- If USER turn off BT on DUT before accepting incoming
authorization request for MAP connection, then MAP
authorization pop up should be removed. Thsi was failing
as user time-out scenario was not handled currently,
where MAP OBEX session is stopped. So MAP OBEX session will
not get cleared till BT OFF. So MAP OBEX connection was failing
from next iteration onward. Queuing User time-out(30 seconds)
to disconnect MAP OBEX session to solve this issue.

-If ACL is disconnected by remote device before accepting
incoming authorization request for MAP connection, then MAP
authorization pop up should be removed.

Change-Id: Ib8068f793eb1b55a155d3ff657efefc40728233c
ndroid/bluetooth/map/BluetoothMapService.java
5079ae05a3fa7cf09d2d8e564b71382dfc70a1ae 30-Jan-2014 Hemant Gupta <hemantg@codeaurora.org> MAP: Modify XML serializer to escape double quote

Modify code to use FastXmlSerializer instead of XmlSerializer
to escape double quote character with &quot; and always enclose
XML attribute value within double quotes

Change-Id: I097e6d6de2e4cd44579a6d07842d0cffe26c0139
ndroid/bluetooth/map/BluetoothMapMessageListing.java
ndroid/bluetooth/map/BluetoothMapMessageListingElement.java
5c3970730dee1da5d1f37bc03a595dc1e9c47152 04-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> MAP: Return OBEX_HTTP_NOT_IMPLEMENTED response code for msgUpdate

In MAP profile message update is not implemented for sms/mms, but
we are returning OBEX_HTTP_OK response code for message update put
request, which is causing PTS test case to fail. Hence returning
proper response code to pass pts.

Change-Id: I40a45cea2d85750583bb7ae205d1ff57fe806a4d
ndroid/bluetooth/map/BluetoothMapObexServer.java
c1f597b3ec02ccc112f3c917fd079588034c3eac 02-Jan-2014 Hemant Gupta <hemantg@codeaurora.org> MAP: Set messageList element to proper size based on offset/count

Handle all the cases based on offset and count to create message list
element when message listing is performed from car kit for any folder

Change-Id: Ibcc6f8ed24c47464e05f26a79b38b99d233ca58b
ndroid/bluetooth/map/BluetoothMapMessageListing.java
0e7e149687b0b5e340991b20c9d8e5232e8d3e39 08-Nov-2013 Hemant Gupta <hemantg@codeaurora.org> MAP: Fix MNS observer sync and sendevent exception issue.

Allow MNS Client sendEvent only when MNS Client is registered
and connected to fix NullPointer exceptions. Mark MNS disconnect
and observer registration as synchronized to handle synchronization
for operations from worker and main threads.

Change-Id: If34a6b67a1774f693ed42cfb6c871cd9563abe55
ndroid/bluetooth/map/BluetoothMapContentObserver.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
400eaf8761223196a18b84247b066f0201226c3b 23-Oct-2013 Hemant Gupta <hemantg@codeaurora.org> MAP: Fix fatal exception due to missing looper for current thread

While creating handler for the thread, there was fatal exception getting
thrown because the present thread does not have a looper. So passing the
applications looper to be used , while creating the handler to avoid this
exception.

Change-Id: Id8c121439d7a93af7592a15df67523e96a1312ff
ndroid/bluetooth/map/BluetoothMapContentObserver.java
6db8e703719f301f75acdf4acacc3296cc1b5016 13-May-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Add Filters support.

This patch adds attribute filter support to PBAP. It will allow remote
devices to request the particular attributes.

Change-Id: Ia0a4f55f14925b0cf8d0553c64222d781edef2fd
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
29ab94a024ffce08229f1c2c6776d1e72d2a3f75 29-Aug-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Strip unwanted braces and spaces from telephone number.

This patch removes unwanted spaces and braces from the telephone
number on vcard entry formation. Handsfree call was failing because
of these characters due to handling of only digits in utl_isdialstr
API in BD stack (external/bluetooth/bluedroid/bta/ag/bta_ag_cmd.c)

Change-Id: I2d63967059a9cb97f214b370fac17234f6e58f55
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4216387d9887926cebd652f8d3807d780642fc87 07-May-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Remove the PBAP pop up in various scenarios

-If ACL is disconnected by remote device OR DUT(unbond from
the DUT) before accepting incoming authorization request for
PBAP connection. PBAP authorization pop up should be removed.

- If authorization is cancelled due to USER_TIMEOUT(30 second),
then PBAP authorization pop up should be removed.

Change-Id: I0a69f23c7882a43de9fe207c84926de91713c79b
ndroid/bluetooth/pbap/BluetoothPbapService.java
faec4b404f63184cddffd557a2d38d6a85459d94 29-Jun-2014 Matthew Xie <mattx@google.com> am 8f5a4787: Merge "PBAP: Check for spurious entries of searched contacts" into klp-wireless-dev

* commit '8f5a4787761ebdaa852c0b5d7c7b89c339e140b8':
PBAP: Check for spurious entries of searched contacts
8f5a4787761ebdaa852c0b5d7c7b89c339e140b8 29-Jun-2014 Matthew Xie <mattx@google.com> Merge "PBAP: Check for spurious entries of searched contacts" into klp-wireless-dev
1ebce7fb88348be7b984b1a778bd1bbeea20d6d7 18-Jun-2014 Andre Eisenbach <eisenbach@google.com> LE: Add is_connected() function (3/3)

Change-Id: I71f64ff59e4602d2834f1c177310a36320e70ead
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
a03c33b370420dc6ad688b217b5a37bfa43169cf 08-May-2014 Andre Eisenbach <eisenbach@google.com> Adding a method BluetoothDevice.isConnected()

Adding a new method to BluetoothDevice that lets callers know whether a remote device is
connected.

Original-patch-by: Jay Civelli <jcivelli@google.com>
Cherry-picked-from: master
Change-Id: Ia8ad2e3189d08b63832634bdf804656b8d013820
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
af471e1d5765aa9f1b15909ed488c6c9eb57090e 28-Mar-2014 Andre Eisenbach <eisenbach@google.com> LE: Add notification sent and congestion callbacks (4/4)

This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: I5feb555b4843bd25b1d40338651695ac082e1386
ndroid/bluetooth/gatt/GattService.java
21492655012d6d3d521b8a49797366b434115bcf 28-Jun-2014 Matthew Xie <mattx@google.com> fix a merge error in PanService

Change-Id: I63734e44ca661166da9091fae622a9e54bd24431
ndroid/bluetooth/pan/PanService.java
3f9f111b47fb92c1453b564a45703bfe9638282e 28-Jun-2014 Hemant Gupta <hemantg@codeaurora.org> am 0d132248: PBAP: Change string search comparison from NULL to empty

* commit '0d1322483285ccc9ca7bedf515821c5c105a44e6':
PBAP: Change string search comparison from NULL to empty
7a566bbe24c3618e3b21d6b7170d94bfd2f03089 28-Jun-2014 Zhihai Xu <zhihaixu@google.com> am e40925fc: Bluetooth: Added Shared Preferences to restore tethering preference

* commit 'e40925fc889d7f9dfc2a12c8165086cc7c312cc6':
Bluetooth: Added Shared Preferences to restore tethering preference
afc04fcffad9713d5385894b41a1fb29c1d6ee96 28-Mar-2014 Andre Eisenbach <andre@broadcom.com> LE: Add notification sent and congestion callbacks (4/4)

This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: Ifa8de9c12d8d487e28fb5a1a5e05150a7fec90cb
ndroid/bluetooth/gatt/GattService.java
83faa1c29215f8fcf69e2444f54d24ddaf6e2da5 26-Jun-2014 Matthew Xie <mattx@google.com> am e5c2a9d1: Merge "Add null pointer check in A2DPService"

* commit 'e5c2a9d12a29baa007e17dfe62f13b28a3aea637':
Add null pointer check in A2DPService
e5c2a9d12a29baa007e17dfe62f13b28a3aea637 26-Jun-2014 Matthew Xie <mattx@google.com> Merge "Add null pointer check in A2DPService"
d1d30b0340aa30982c85ba0d69f918ed127679ef 25-Jun-2014 Matthew Xie <mattx@google.com> am 663fb577: Merge "Use round() instead of ceil() in calculation of a2dp vol slider position"

* commit '663fb5771e20f117be2c14fe794b2594aabdc703':
Use round() instead of ceil() in calculation of a2dp vol slider position
663fb5771e20f117be2c14fe794b2594aabdc703 25-Jun-2014 Matthew Xie <mattx@google.com> Merge "Use round() instead of ceil() in calculation of a2dp vol slider position"
fb23c060031422c34aa8233cb3868d187f36a9dc 26-Jun-2014 Paul Jensen <pauljensen@google.com> Merge "Convert BluetoothTetheringDataTracker into a NetworkFactory."
689fb16c3dcca9a8d09a8572586a654b1ad38d7d 26-Jun-2014 Matthew Xie <mattx@google.com> am 83faa1c2: am e5c2a9d1: Merge "Add null pointer check in A2DPService"

* commit '83faa1c29215f8fcf69e2444f54d24ddaf6e2da5':
Add null pointer check in A2DPService
f3997eb0ef29986e9e27fb81f0667c2f19fae07f 26-Jun-2014 Andres Morales <anmorales@google.com> Merge "Making Bluetooth OPP file transfer intent generic"
9cf6c591c43c4dba90b5c2e26a5f93368682c9cc 25-Jun-2014 RoboErik <epastern@google.com> Merge "Disable debug messages that were left on"
8e0d927632cce4ad53df85fb7627b915c5fbd64b 24-Jun-2014 RoboErik <epastern@google.com> Disable debug messages that were left on

Forgot to disable with my last change.

Change-Id: I502e77071745bd5f9d98aa9ce963b927effc2d46
ndroid/bluetooth/avrcp/Avrcp.java
7af55657d171df8336cbcce0687d1225fe0f5312 25-Jun-2014 Matthew Xie <mattx@google.com> am d1d30b03: am 663fb577: Merge "Use round() instead of ceil() in calculation of a2dp vol slider position"

* commit 'd1d30b0340aa30982c85ba0d69f918ed127679ef':
Use round() instead of ceil() in calculation of a2dp vol slider position
f08b93c4a2bdc3295163b11ddf8370071212feb1 23-Jun-2014 Matthew Xie <mattx@google.com> am ea10b480: am 7315070f: Merge "Fix signal strength indicator."

* commit 'ea10b480618028469d25bc6f4239ff74334a431a':
Fix signal strength indicator.
ea10b480618028469d25bc6f4239ff74334a431a 23-Jun-2014 Matthew Xie <mattx@google.com> am 7315070f: Merge "Fix signal strength indicator."

* commit '7315070f9513a498c915c06c9abed84cd14da11e':
Fix signal strength indicator.
04be19286d311ef51ca50841b6a15ea7994fd3a5 13-Dec-2013 Danny Baumann <dannybaumann@web.de> Fix signal strength indicator.

Some devices don't check the service indicator, but only the signal
indicator. Don't give the false impression that the network signal is ok
when we're actually out of service for those devices.

Change-Id: I2e24daf13593439cbc23254fb4539cd250dbae89
ndroid/bluetooth/hfp/HeadsetPhoneState.java
cf8a01eeb41fc6420283ed7c3d7d94a463745b1a 23-Jun-2014 Andre Eisenbach <eisenbach@google.com> Merge "Reduce log verbosity in AdapterService"
20de1a6601e8aea7bbc9b9a8219cc616ffddae25 21-Jun-2014 Andre Eisenbach <eisenbach@google.com> Reduce log verbosity in AdapterService

Cleaned up log messages and use existing log functions to control all
debug messages in one place. Also removes unhelpful repetitive message
spam in the Settings app Bluetooth activity.

Change-Id: I7bfd79e06daad60f50742a45ebcdab936077b93e
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
5a84c6974b024e28e15ae853bda2599ebe4d8e6e 21-Jun-2014 Andre Eisenbach <eisenbach@google.com> Merge "LE: Add is_connected() function (3/3)"
6e29e12add362546784126119f26f04fc760f021 19-Jun-2014 RoboErik <epastern@google.com> Update Avrcp to use RemoteController

Avrcp was using IRemoteControlDisplay directly. This converts it to
the public api instead.

Change-Id: I0740687ed20da69d3522e9e9e7dc55bb1f374ecc
ndroid/bluetooth/avrcp/Avrcp.java
3636f3319fc403e3bf995b6de71dc5e3f2864661 18-Jun-2014 Andre Eisenbach <eisenbach@google.com> LE: Add is_connected() function (3/3)

Change-Id: I71f64ff59e4602d2834f1c177310a36320e70ead
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
6fb74b225ec5efc8caef0fec82692e33392b8ecb 04-Jun-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Fix issue with converting byte array into unsigned integers

Bug 15411439

Change-Id: I921bb3bab6cbd6e09c22786dd90dd0cfbca59265
ndroid/bluetooth/btservice/AdapterProperties.java
58ff480f24ba9905edf86c98035f5e9ad76a453a 17-Jun-2014 Paul Jensen <pauljensen@google.com> Convert BluetoothTetheringDataTracker into a NetworkFactory.

bug:15407087

Change-Id: I0437ca52dedf73e8ec69ac82e46353f6fafc4a42
ndroid/bluetooth/pan/BluetoothTetheringNetworkFactory.java
ndroid/bluetooth/pan/PanService.java
1d203e2a24848d15dccb8ed1f7c0891c623125bd 18-Jun-2014 Andre Eisenbach <eisenbach@google.com> Merge "LE: Add ability to pass address type to GATT test command"
106b714a2e69fa9c0734d87a02ab7277c30f8960 04-Jun-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Fix issue with converting byte array into unsigned integers

Bug 15411439

Change-Id: I921bb3bab6cbd6e09c22786dd90dd0cfbca59265
ndroid/bluetooth/btservice/AdapterProperties.java
066ad9e16a548218b139424f758b92db7af34af2 06-Jun-2014 Mike Lockwood <lockwood@google.com> Move AVRCP Controller support to new BluetoothAvrcpController profile

Change-Id: I865f77c85d971bf06dbc0643722abad7f6b94ab9
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
ndroid/bluetooth/avrcp/Avrcp.java
ndroid/bluetooth/avrcp/AvrcpControllerService.java
ndroid/bluetooth/btservice/Config.java
5c86abdc7875a8fae28c57e3e36a0a8eaae5cb04 07-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> [4/4] Add Support for AVRCP Controller Feature

- Provide support for AVRCP Controller CAT 1 and CAT 2
Passthrough commands.
- Fix bug in usage of percent volume change in absolute
volume case.

Change-Id: Ie753329a96c30343d92c421c5e0113ff3e624db6
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
c030f08f419d596c4aa216c9cca9867e7b5486f0 07-Jun-2014 Mike Lockwood <lockwood@google.com> A2DP Sink: Add support for BluetoothA2dpSink profile

Change-Id: If2c1b9b919c90e65a3808c9a55b554c0e899a9c2
ndroid/bluetooth/a2dp/A2dpSinkService.java
ndroid/bluetooth/a2dp/A2dpSinkStateMachine.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/Config.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
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/hfpclient/HandsfreeClientHalConstants.java
ndroid/bluetooth/hfpclient/HandsfreeClientService.java
ndroid/bluetooth/hfpclient/HandsfreeClientStateMachine.java
ndroid/bluetooth/hfpclient/HeadsetClientHalConstants.java
ndroid/bluetooth/hfpclient/HeadsetClientService.java
ndroid/bluetooth/hfpclient/HeadsetClientStateMachine.java
c07f105ac5db80ae48a768223d1533daa7afb534 15-May-2014 Mike Lockwood <lockwood@google.com> Set HFP client profile off by default, enable via resource override rather than system property.

Change-Id: Ief080b21026c7b150835e044f800ccaf786bbd2c
ndroid/bluetooth/btservice/Config.java
aebc726105204f8a7b977eb3556c14b5ba18a5ca 19-Aug-2013 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Add support for HFP Client role.

Implementation changes in Bluetooth App to support
HFP Client role.

Change-Id: I795f475c6a1548fd7cc68d0a02b22f30cf5a182b
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/hfpclient/HandsfreeClientHalConstants.java
ndroid/bluetooth/hfpclient/HandsfreeClientService.java
ndroid/bluetooth/hfpclient/HandsfreeClientStateMachine.java
b83d7c6016ccd2b95b5e3b08581f5e2b21d68905 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
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/hfpclient/HandsfreeClientHalConstants.java
ndroid/bluetooth/hfpclient/HandsfreeClientService.java
ndroid/bluetooth/hfpclient/HandsfreeClientStateMachine.java
ndroid/bluetooth/hfpclient/HeadsetClientHalConstants.java
ndroid/bluetooth/hfpclient/HeadsetClientService.java
ndroid/bluetooth/hfpclient/HeadsetClientStateMachine.java
1e9f8a14e120e8786711abdd4a965236191c87ad 31-May-2014 Sharvil Nanavati <sharvil@google.com> Expose wake lock / wake alarm functionality to bluedroid.

Change-Id: I267ff1d19a0d1ef5ad9a290c7654d7e6ee3a9f15
ndroid/bluetooth/btservice/AdapterService.java
a2be7670787cc4576386bf4a8baea4b88d35e90b 06-Jun-2014 Prerepa Viswanadham <dham@google.com> Refactor ScanClient scan settings to one place
Scan_mode_low_power 500ms/5000ms (10%)
scan_mode_balanced 2000ms/5000ms (40%)
scan_mode_low_latency 5000ms/5000ms (100%)

Change-Id: I5f24dc24fc86eba35c645a968e1c80934e3dd2d5
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
c145fd074dac20e6c9836ee6e900538f2cc7dd54 05-Jun-2014 Prerepa Viswanadham <dham@google.com> Use controller provided information about it BLE L feature capabilities

Change-Id: Ia3099c1df2664b79392b2a4f7e3e47d1507a9efe
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
d0f1d36e653e1b91337743b92472ba4ea97c538b 22-May-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Add support for retrieving local LE features via get_adapter_properties

Change-Id: Iada59d0c7aa776f8b3aa25abec1a7612224a43bb
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterProperties.java
6f1d727834316ee78c9c897965b254fa0316a065 07-Jan-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Fix crash in com.android.bluetooth

This patch will add the changes to catch the
CursorWindowAllocationException at all the places where cursor
is used for quering operations. Without this patch, crash was
observed in com.android.bluetooth in stress test of BT On/off
multiple times.

FATAL EXCEPTION: main
android.database.CursorWindowAllocationException:
Cursor window could not be created from binder.
com.android.bluetooth.pbap.BluetoothPbapVcardManager.
getCallHistorySize(BluetoothPbapVcardManager.java)

Change-Id: I6a4fadb949969dca453cff0fe84a25d849063573
ndroid/bluetooth/pbap/BluetoothPbapUtils.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
ddf1c3d66c38b6ad771608eda1c57656eee57332 11-Jun-2014 Andre Eisenbach <eisenbach@google.com> LE: Add ability to pass address type to GATT test command

Currently the GATT test command to connect a remote device assumes a
public Bluetooth device address. This patch adds the ability to pass in
the address type via the test command interface.

Change-Id: Ic892b7bf5f9b261152492778da0c78b184b5e9b2
ndroid/bluetooth/gatt/GattDebugUtils.java
55d81a3828bc9d227b77ea840fa3dffcbc4262d2 10-Jun-2014 Benson Huang <benson.huang@mediatek.com> [BT] Fix bug: MAP client can not get MessageListing for draft folder

Currently c.getColumnIndex(Mms.PRIORITY) in setPriority method is returning
-1 which is causing c.getInt(-1) to throw a java.lang.IllegalStateException.

The fix is to add the column Mms.PRIORITY in MMS_PROJECTION

Bug 15069197 and 15071221

Change-Id: I9f296415efd5e10970d9f24652cab1022dad5efd
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
ndroid/bluetooth/map/BluetoothMapContent.java
b824e2624524d039b12ce3b7de2747ff558bfe94 06-Jun-2014 Mike Lockwood <lockwood@google.com> Move AVRCP Controller support to new BluetoothAvrcpController profile

Change-Id: I865f77c85d971bf06dbc0643722abad7f6b94ab9
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
ndroid/bluetooth/avrcp/Avrcp.java
ndroid/bluetooth/avrcp/AvrcpControllerService.java
ndroid/bluetooth/btservice/Config.java
9ebf7624eb97e76d34ceceebf4ab1558d73df246 07-Jun-2014 Mike Lockwood <lockwood@google.com> A2DP Sink: Add support for BluetoothA2dpSink profile

Change-Id: If2c1b9b919c90e65a3808c9a55b554c0e899a9c2
ndroid/bluetooth/a2dp/A2dpSinkService.java
ndroid/bluetooth/a2dp/A2dpSinkStateMachine.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/Config.java
67c06156691d30294547979559ffb49a9579463d 09-Jun-2014 Jay Civelli <jcivelli@google.com> Merge "Adding a method BluetoothDevice.isConnected()"
c453f0f533556d8ffbb7a87ca09d6b30e259978e 31-May-2014 Sharvil Nanavati <sharvil@google.com> Expose wake lock / wake alarm functionality to bluedroid.

Change-Id: I267ff1d19a0d1ef5ad9a290c7654d7e6ee3a9f15
ndroid/bluetooth/btservice/AdapterService.java
32088854fd6a8bb5e570a4a1df4eaf2eb19d7ae3 06-Jun-2014 Prerepa Viswanadham <dham@google.com> Refactor ScanClient scan settings to one place
Scan_mode_low_power 500ms/5000ms (10%)
scan_mode_balanced 2000ms/5000ms (40%)
scan_mode_low_latency 5000ms/5000ms (100%)

Change-Id: I5f24dc24fc86eba35c645a968e1c80934e3dd2d5
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
e65500db39422398f3b87c4f340e66fdfec7e328 05-Jun-2014 Wei Wang <weiwa@google.com> Add missing licenses.

Change-Id: Ie07e3b8940e8caec985aad4aee5aaf283b5af37e
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
e74e332c8de3c5d2abd56868ba7662d68c797236 06-Jun-2014 Wei Wang <weiwa@google.com> am b5bdb625: Add device capability config for new BLE features(MA, scan filter).(2/3)

* commit 'b5bdb625226aca1650ba4c57fd94c8f9b4aa7750':
Add device capability config for new BLE features(MA, scan filter).(2/3)
0c80f016af7f313611b0bac77da6e3ee695c0c73 05-Jun-2014 Wei Wang <weiwa@google.com> Add missing licenses.

Change-Id: Ie07e3b8940e8caec985aad4aee5aaf283b5af37e
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
cefee9c44890a0943a9fd7c2891324fd81d50b28 05-Jun-2014 Prerepa Viswanadham <dham@google.com> Use controller provided information about it BLE L feature capabilities

Change-Id: Ia3099c1df2664b79392b2a4f7e3e47d1507a9efe
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
7aa3a71e508e4f95a0a74f41ab8389979809191b 08-May-2014 Jay Civelli <jcivelli@google.com> Adding a method BluetoothDevice.isConnected()

Adding a new method to BluetoothDevice that lets callers know whether a remote device is
connected.

Change-Id: Ia8ad2e3189d08b63832634bdf804656b8d013820
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
cf7cb8478523185da2ff851bb0de96fe95b3e77c 31-May-2014 Wei Wang <weiwa@google.com> Fix build.

Change-Id: I92461859b65dac554650d7928bfddbfe9d80c2fe
ndroid/bluetooth/gatt/ScanClient.java
8333a1b99994e9d8986dbca44989c943c219e36f 31-May-2014 Prerepa Viswanadham <dham@google.com> Set scan parameters in ScanClient based on BluetoothLeScanSettings
configuration

scan_mode scan_window_ms scan_interval_ms
SCAN_MODE_LOW_POWER 500 5000
SCAN_MODE_BALANCED 1000 5000
SCAN_MODE_LOW_LATENCY 2500 5000

Change-Id: I2382c7b584b102555f175a94206c4379141af3fa
ndroid/bluetooth/gatt/ScanClient.java
ac4640647b4dfae61cc2a8c37d3d798bdc82a553 22-May-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Add support for retrieving local LE features via get_adapter_properties

Change-Id: Iada59d0c7aa776f8b3aa25abec1a7612224a43bb
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterProperties.java
b5bdb625226aca1650ba4c57fd94c8f9b4aa7750 02-Jun-2014 Wei Wang <weiwa@google.com> Add device capability config for new BLE features(MA, scan filter).(2/3)

Fixes b/15387925.

Change-Id: I7cbcdd340fca7965f2be2c0d2a938e7646dc6849
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
c92b13ad9671810e6f10bbfce3032d33765f0a15 02-Jun-2014 Wei Wang <weiwa@google.com> Add device capability config for new BLE features(MA, scan filter).(2/3)

Fixes b/15387925.

Change-Id: I7cbcdd340fca7965f2be2c0d2a938e7646dc6849
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
8426b4392456869935f90bf51be68ce198a86c01 31-May-2014 Wei Wang <weiwa@google.com> Fix build.

Change-Id: I92461859b65dac554650d7928bfddbfe9d80c2fe
ndroid/bluetooth/gatt/ScanClient.java
6e2fce02940bde40a2c8a48a725e9fa0157bde6c 31-May-2014 Prerepa Viswanadham <dham@google.com> Set scan parameters in ScanClient based on BluetoothLeScanSettings
configuration

scan_mode scan_window_ms scan_interval_ms
SCAN_MODE_LOW_POWER 500 5000
SCAN_MODE_BALANCED 1000 5000
SCAN_MODE_LOW_LATENCY 2500 5000

Change-Id: I2382c7b584b102555f175a94206c4379141af3fa
ndroid/bluetooth/gatt/ScanClient.java
6c984a7012ef5dee09b4e1f6d17a6ddc3ae0bb11 31-May-2014 Wei Wang <weiwa@google.com> am 80780da9: Add protection for controller timeout/failure, maximum number of advertisers, filters etc.

* commit '80780da923f52a6b5a80f8619cf3e735970eaad9':
Add protection for controller timeout/failure, maximum number of advertisers, filters etc.
fa13d4471d52a5780eb4c4efcedff6778060f7fa 31-May-2014 Wei Wang <weiwa@google.com> Merge diffs from API review comments(2/2).

Change-Id: I7316ec4fe134268927b27c14e421e6e3fc31b59f
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
80780da923f52a6b5a80f8619cf3e735970eaad9 26-May-2014 Wei Wang <weiwa@google.com> Add protection for controller timeout/failure, maximum number of
advertisers, filters etc.

fixes b/15348260.

Change-Id: Ie5a460a7f042cdeba4c1e63498fd6db9dadbb66f
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
1927f586b9e99411dace890fe3860b39140b1f66 30-May-2014 Wei Wang <weiwa@google.com> am 80e7d011: Changes due to addressing BLE API review comments

* commit '80e7d011fdb511a6583258458e97821176866baa':
Changes due to addressing BLE API review comments
1a1d5f652d44b98d3b8ec73e1bc5dc19b923eb42 22-May-2014 Wei Wang <weiwa@google.com> only stop ble scan when it's already started.

Fixes b/15174583

Change-Id: I3068254c576e8735ffb47d89f4bb8d5a719891c9
ndroid/bluetooth/gatt/GattService.java
f3e3ade729080636d0a3e9224ee205183fe11fa0 26-May-2014 Wei Wang <weiwa@google.com> Add protection for controller timeout/failure, maximum number of
advertisers, filters etc.

Change-Id: I94b719ddc0d9943c1a3c304285969d4c80e50a69
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
7a02049bb3835c66e4b26700b6606b0ca5db7c6e 29-May-2014 Mike Lockwood <lockwood@google.com> Fix arguments to AudioManager.setBluetoothA2dpDeviceConnectionState()

Change-Id: I2a9742bc2e1127f56fafed574794f81578872681
ndroid/bluetooth/a2dp/A2dpStateMachine.java
9537b0e4648a0c197392d3276b46681523d5f0bc 29-May-2014 Mike Lockwood <lockwood@google.com> Fix arguments to AudioManager.setBluetoothA2dpDeviceConnectionState()

Change-Id: I2a9742bc2e1127f56fafed574794f81578872681
ndroid/bluetooth/a2dp/A2dpStateMachine.java
80e7d011fdb511a6583258458e97821176866baa 21-May-2014 Wei Wang <weiwa@google.com> Changes due to addressing BLE API review comments

Change-Id: I27b94952a243bf4fdbebdc103e7d541ce23efa3f
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
233a9ce2117ae01d2ead214f0629b4aa1ff0ad85 21-May-2014 Wei Wang <weiwa@google.com> Changes due to addressing BLE API review comments

Change-Id: I27b94952a243bf4fdbebdc103e7d541ce23efa3f
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
bfb222069971808621cf0e1fd80584eca7372060 22-May-2014 Wei Wang <weiwa@google.com> only stop ble scan when it's already started.

Change-Id: I3068254c576e8735ffb47d89f4bb8d5a719891c9
ndroid/bluetooth/gatt/GattService.java
d379f2dd23cf0d237c2a251279a1ff0d355f1ed7 22-May-2014 Wei Wang <weiwa@google.com> only stop ble scan when it's already started.

Change-Id: I3068254c576e8735ffb47d89f4bb8d5a719891c9
ndroid/bluetooth/gatt/GattService.java
1321cd814a7406260ba6282d9c71e1a2d8925262 03-Oct-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Check for spurious entries of searched contacts

This patch adds the check to limit the search if we already
have got the contact name by number so that same contact
will not be getting searched more than one number of time.

Change-Id: If4a26433e28cad90394833b51cc3ff0d0bcf7e36
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
d74ba4930e66087ecfe7e307f1a27e895df31d97 21-May-2014 Mike Lockwood <lockwood@google.com> Merge "[4/4] Add Support for AVRCP Controller Feature" into klp-wireless-dev
ccd5f131d51ef8019c87628b992bc67cbbcc2ea6 21-May-2014 Wei Wang <weiwa@google.com> Add scan response as an advertising parameter(2/2).

Change-Id: Ib0c86b81b9a2e0dd4110275c804e814451231966
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
b16d4b64de7643ba9c28fc62f768463cde1f9420 21-May-2014 Wei Wang <weiwa@google.com> Add scan response as an advertising parameter(2/2).

Change-Id: Ib0c86b81b9a2e0dd4110275c804e814451231966
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
1a2f87a202a4d634f0b6b5b6e9a8545796207288 20-May-2014 Wei Wang <weiwa@google.com> Revert "Revert "Use state machine in gatt service to handle different state transitions. For this CL only normal BLE scans are moved to state machine.""

This reverts commit e68125be766dac23f9b346464e3d84e078132914.

Change-Id: I11bc9d84390043f189d268916bc681e68deea160
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
e68125be766dac23f9b346464e3d84e078132914 20-May-2014 Wei Wang <weiwa@google.com> Revert "Use state machine in gatt service to handle different state transitions. For this CL only normal BLE scans are moved to state machine."

This reverts commit 3c6c305ebdfcaf239108f775f8ee2db2a0459c0f.

Change-Id: Ib1601bba4fe9d38a338ecf86740b20fcaccfa48f
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
3c6c305ebdfcaf239108f775f8ee2db2a0459c0f 07-May-2014 Wei Wang <weiwa@google.com> Use state machine in gatt service to handle different state
transitions.
For this CL only normal BLE scans are moved to state machine.

Change-Id: I27376c7826544ca41aad156deefcd6a63d6cefbb
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
1d7aaff7194ee04a8f3c8ddb0a94c1d27776de8f 08-May-2014 Wei Wang <weiwa@google.com> Changes due to the rename of isShortUuid to is16BitUuid.

Change-Id: I6a822ebcbe55d1e3162c3f3374278bf7f0adea5f
ndroid/bluetooth/gatt/GattService.java
628441e02c280f8f48adba0ade3c7028cbcdeec2 07-May-2014 Wei Wang <weiwa@google.com> Use state machine in gatt service to handle different state
transitions.
For this CL only normal BLE scans are moved to state machine.

Change-Id: I27376c7826544ca41aad156deefcd6a63d6cefbb
ndroid/bluetooth/gatt/AdvertiseClient.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceStateMachine.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/ScanFilterQueue.java
468f938001cd5dc7912fc8779c00987c44aafab2 15-May-2014 Mike Lockwood <lockwood@google.com> Set HFP client profile off by default, enable via resource override rather than system property.

Change-Id: Ief080b21026c7b150835e044f800ccaf786bbd2c
ndroid/bluetooth/btservice/Config.java
a4b39a558accff559561d60dbdafe9cf457a430b 15-May-2014 Mike Lockwood <lockwood@google.com> Merge "[4/4] Bluetooth: Add support for HFP Client role." into klp-wireless-dev
790352c7ff44eec4bb2458bea79c71e5b86c3206 15-May-2014 Mike Lockwood <lockwood@google.com> Merge "Submitted on behalf of 3rd party copied from packages/apps/Bluetooth/" into klp-wireless-dev
88d774ebc08d875d54db6b13cec06c8ce3d0925a 13-May-2014 Prerepa Viswanadham <dham@google.com> Improve name of api.

Change-Id: Ib35203a46f74aed43e2ce32dba02755016d84998
ndroid/bluetooth/gatt/GattService.java
f745ace608784e226a78170bf5a24fe114f1026f 10-May-2014 Prerepa Viswanadham <dham@google.com> set scan parameters in BT stack. Apply the most demanding request
in terms of duty cycle for all outstanding requests.

Change-Id: Iee460003d210455ab180367f3518bfb10a6c2539
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
53f26c079f676b3a72a20de4e30f075057d3777d 09-May-2014 Prerepa Viswanadham <dham@google.com> LE: Add API to set scan interval and window (3/4)

Drop client_if from api
Change-Id: I5ad339573c5fec28b22d8c4c5949eaf0d4d118aa
ndroid/bluetooth/gatt/GattService.java
63ee04788c7384779eadb10f0c2cd10779ebfb43 13-May-2014 Prerepa Viswanadham <dham@google.com> Improve name of api.

Change-Id: Ib35203a46f74aed43e2ce32dba02755016d84998
ndroid/bluetooth/gatt/GattService.java
dd2d4b97992bfa4bb549fc5e61b0a7c02acc013a 10-May-2014 Prerepa Viswanadham <dham@google.com> set scan parameters in BT stack. Apply the most demanding request
in terms of duty cycle for all outstanding requests.

Change-Id: Iee460003d210455ab180367f3518bfb10a6c2539
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/ScanClient.java
c8e3bda018603f40aabf62e2fb59615b24039634 09-May-2014 Prerepa Viswanadham <dham@google.com> LE: Add API to set scan interval and window (3/4)

Drop client_if from api
Change-Id: I5ad339573c5fec28b22d8c4c5949eaf0d4d118aa
ndroid/bluetooth/gatt/GattService.java
709ec52d8053ccbdc00ccf463d35f1f6b91fa41a 19-Aug-2013 Hemant Gupta <hemantg@codeaurora.org> [4/4] Bluetooth: Add support for HFP Client role.

Implementation changes in Bluetooth App to support
HFP Client role.

Change-Id: I795f475c6a1548fd7cc68d0a02b22f30cf5a182b
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/hfpclient/HandsfreeClientHalConstants.java
ndroid/bluetooth/hfpclient/HandsfreeClientService.java
ndroid/bluetooth/hfpclient/HandsfreeClientStateMachine.java
7d84dc7f7165c69e7d84b50bd21f8a63fa7df275 29-Apr-2014 Hemant Gupta <hemantg@codeaurora.org> Submitted on behalf of 3rd party copied from
packages/apps/Bluetooth/

Initial commit for HFP Client

Change-Id: I0dabd9df1cafc48d5e30e29c36898b6d1af6e874
ndroid/bluetooth/hfpclient/HandsfreeClientHalConstants.java
ndroid/bluetooth/hfpclient/HandsfreeClientService.java
ndroid/bluetooth/hfpclient/HandsfreeClientStateMachine.java
39fadfcd92a969a750dafb8e37c468daff9c1054 08-May-2014 Wei Wang <weiwa@google.com> Changes due to the rename of isShortUuid to is16BitUuid.

Change-Id: I6a822ebcbe55d1e3162c3f3374278bf7f0adea5f
ndroid/bluetooth/gatt/GattService.java
0d1322483285ccc9ca7bedf515821c5c105a44e6 30-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Change string search comparison from NULL to empty

This change compares the searchValue atribute to empty
string value rather than comparing with the NULL object
since the searchValue object itself is never NULL and
only the value becomes an empty string. Without this
patch DUT was returning no list on Vcard-listing request
by PBAP Client.

Change-Id: I20cdfc0246af3057ba8ee268dee3de1893810638
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
c592e5a6de0011cd60f23ac18a7bd56d8eeb5dd1 07-Jan-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Fix crash in com.android.bluetooth

This patch will add the changes to catch the
CursorWindowAllocationException at all the places where cursor
is used for quering operations. Without this patch, crash was
observed in com.android.bluetooth in stress test of BT On/off
multiple times.

FATAL EXCEPTION: main
android.database.CursorWindowAllocationException:
Cursor window could not be created from binder.
com.android.bluetooth.pbap.BluetoothPbapVcardManager.
getCallHistorySize(BluetoothPbapVcardManager.java)

Change-Id: I6a4fadb949969dca453cff0fe84a25d849063573
ndroid/bluetooth/pbap/BluetoothPbapUtils.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
b17782509bd34201cf0daa62dadc929d65eb98b0 19-Mar-2014 Zhihai Xu <zhihaixu@google.com> MHF: Disconnect audio for HS1 before disconnecting ACL.

When HS2 is connected while call is active on HS1,
disconnect audio first followed by disconnecting ACL
for HS1.
from QCOM
Change-Id: I53b6fedd47008cf0d6d65a72f744b2df4a198e34
ndroid/bluetooth/hfp/HeadsetStateMachine.java
34409f35db6e9ca74f727e3fe92141388ae5b069 16-Jul-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Set profile priorities only after SDP completion

Set the profile priorities only after SDP completion.
Perform lookup and set profile priorities to ON, only for
profiles supported by bonded BT device.
CR BLTH02405767

Change-Id: I83fe6e772993b7c41c6a86f504d2b09ea38b2356

Conflicts:
src/com/android/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/RemoteDevices.java
1a39ecdeaad346e86ca95f802519c8c58edfc4b9 07-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth-OPP: Handle HID mouse right click event

This change will handle mouse right click event to display only
context menu with options Open and Clear. Otherwise, during HID mouse
right click two popup will be displayed context menu and Open option
while selecting context menu, option app crash is observed.

Change-Id: I8328f87f9c4bc007cd46a5567268621499e35343
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
18591a7894c5e4516491438c2e758adf8d2ade90 18-Apr-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Add transport param to Connect APIs

Support for passing preferred transport for GATT connections as part of
Connect APIs

Change-Id: Ibeafb922aec954d1f2e693b422e264fbc87468f2
ndroid/bluetooth/gatt/GattService.java
84748eda69cbd96a761288090fb248f5fe861332 15-Mar-2014 Sunny Kapdi <sunnyk@codeaurora.org> MHF: Start DIALING_OUT_TIMEOUT for correct device

When processing Dial request, start DIALING_OUT_TIMEOUT
timer for correct matching device.
Also add null check for device retrieved from
getDeviceForMessage()

Change-Id: Id9946c6b91ca1b23a24dfe408a81db25b9dfb86a
CRs-Fixed: 612278
ndroid/bluetooth/hfp/HeadsetStateMachine.java
c1f19a57e4366b2f89a1fbb03f3626856b5da482 15-Mar-2014 Sunny Kapdi <sunnyk@codeaurora.org> MHF: Broadcast connected state for HS

- Since telephony doesn't store list of connected HS, BT needs
to broadcast connected state for an already connected HS,
when other HS disconnects. This will notify telephony that
even though one HS is disconnected, but still there is one
other connected HS. This fixes call routing issue to BT HS
from phone UI.

- Set mActiveScoDevice to null when HS disconnects while
it has SCO connected for ongoing call.

Change-Id: I91aba22844938b61afc0bac52b5b6de95354f491
CRs-Fixed: 619841
ndroid/bluetooth/hfp/HeadsetStateMachine.java
343b96e3995da4038b614384dcdad8a6494b4bc4 15-Mar-2014 Nitin Srivastava <nitinsr@codeaurora.org> Multi HF support

1. Added support for Multi HF connections
in Bluetooth application.
2. All connection transition states for
2nd HS onwards is handled in new state-
MultiHFPending.
3. The changes are done to handle proper
state transition for all connected HS.

Change-Id: I033ae57943e50273f9d3cac4c5f8d1624cb9ee09
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
f2fab45657d6097f08b95a83eca0bf8005807599 03-Feb-2014 Nitin Srivastava <nitinsr@codeaurora.org> BT: HDP: Add NULL check in cleanupApps

Add NULL check for profile Apps data before accessing
them during cleanup.

Change-Id: Iebc6dc0399ed3d77078962b50550d3080a82644f
ndroid/bluetooth/hdp/HealthService.java
cdd2da9489cdfcf35ffdc622eba6f2155f6d376e 25-Sep-2013 Zhihai Xu <zhihaixu@google.com> Bluetooth: Added Shared Preferences to restore tethering preference

Added a Shared Preferences to have the tethering preference persist,
The value is stored while changing the tethering preference by user
and tethering preference will be restored based on the value(last
saved tethering preference) while starting the PAN service.
from QCOM
Change-Id: I468564a51ff17dfdf1b95a532fa429477db0da15
ndroid/bluetooth/pan/PanService.java
86449ac4bc7a8f4b2afeab4da420ae4f980c850a 13-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> Bluetooth-OPP: Enable support to send same file multiple times

Change will add support to send same file multiple times. Otherwise,
if same file is selected to send multiple times after first transfer
succeeds queued instances of the same file got removed and it fails
to be sent.

Change-Id: Ic5b3706644a417cae2491d1df9588a22344f1711
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
f30c02bcdcd22bbcc27c3481f371b162e49c33ef 06-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Fix search by number issue for contacts.

Fix String outofbounds exception while searching
contacts by NUMBER Search attribute.

Change-Id: Ib82cc138c1fa17c68751eb124114e1f8c2c83324
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
07fcc0521a01be523dd625fa1ac29b4d8991c2d9 09-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Map: Trim folder name in pushMessage and setPath

Trim folder name string passed from remote, before processing the
pushMessage and setPath request to do proper handling when a blank
folder name is passed from some Carkits. Without this change there
will be some IOT issues with some carkit(s) which will append a space
instead of empty string for pushing message to current folder.

Change-Id: I8b0bdfc1f837c53f0773057db27b81ae9acb279a
ndroid/bluetooth/map/BluetoothMapObexServer.java
145880aa83b9e88d31daad5d47f250840573824e 09-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Compare Name and ID both for getting vcard by number

This change will add a ID comparison along with the
Name before writing the final vcard entry when we get
the list through getContactsNamesByNumber
to avoid providing the vcard having the same name but
different numbers.

Change-Id: Ie2e1567a784cd3d872495a029fce6b51a39de993
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
cf8f608b3da0f82c1a238023275836e3efd2481f 17-Feb-2014 Nitin Srivastava <nitinsr@codeaurora.org> BT: HFP: Set VR flags to false when HS disconnects

When a HS is disconnected while in VR session and then
reconnected again, VR attempt from HS fails as VR flags
mVoiceRecognitionStarted and mWaitingForVoiceRecognition
were not reset to false when HS disconnected.

Change-Id: I008f01393a5529f63cd8392401e1402a9afe70a8
ndroid/bluetooth/hfp/HeadsetStateMachine.java
255407d2c34234150b09e70584adaf72175b0eea 19-Mar-2014 Zhihai Xu <zhihaixu@google.com> MHF: Disconnect audio for HS1 before disconnecting ACL.

When HS2 is connected while call is active on HS1,
disconnect audio first followed by disconnecting ACL
for HS1.
from QCOM
Change-Id: I53b6fedd47008cf0d6d65a72f744b2df4a198e34
ndroid/bluetooth/hfp/HeadsetStateMachine.java
4f491cb7088f918a10d39b52729233d3c98483f2 16-Jul-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Set profile priorities only after SDP completion

Set the profile priorities only after SDP completion.
Perform lookup and set profile priorities to ON, only for
profiles supported by bonded BT device.
CR BLTH02405767

Change-Id: I83fe6e772993b7c41c6a86f504d2b09ea38b2356

Conflicts:
src/com/android/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/RemoteDevices.java
e013986fbc8796db569587afa5c6b34e53d7a31b 07-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> [4/4] Add Support for AVRCP Controller Feature

- Provide support for AVRCP Controller CAT 1 and CAT 2
Passthrough commands.
- Fix bug in usage of percent volume change in absolute
volume case.

Change-Id: Ie753329a96c30343d92c421c5e0113ff3e624db6
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
c968f020c251cdd07cc59be11e263161ff9be7d0 01-May-2014 Matthew Xie <mattx@google.com> am 97af6d96: am cc4730be: Add Intent.FLAG_RECEIVER_FOREGROUND for pairing intent broadcast

* commit '97af6d969c21b54c426264c21ed0d8e85e0bca3f':
Add Intent.FLAG_RECEIVER_FOREGROUND for pairing intent broadcast
97af6d969c21b54c426264c21ed0d8e85e0bca3f 01-May-2014 Matthew Xie <mattx@google.com> am cc4730be: Add Intent.FLAG_RECEIVER_FOREGROUND for pairing intent broadcast

* commit 'cc4730be1fcf272355368ca4a2c464d71d3f432d':
Add Intent.FLAG_RECEIVER_FOREGROUND for pairing intent broadcast
cc4730be1fcf272355368ca4a2c464d71d3f432d 01-May-2014 Matthew Xie <mattx@google.com> Add Intent.FLAG_RECEIVER_FOREGROUND for pairing intent broadcast

The pairing intents targeting apps for user interaction. The flag
should be used.
bug 13909361

Change-Id: I13f10df46549773bf416f72ca630ea8ee49fe548
ndroid/bluetooth/btservice/RemoteDevices.java
ebc7d6d8ff2512a1e8bc799f887716d88b671e85 07-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth-OPP: Handle HID mouse right click event

This change will handle mouse right click event to display only
context menu with options Open and Clear. Otherwise, during HID mouse
right click two popup will be displayed context menu and Open option
while selecting context menu, option app crash is observed.

Change-Id: I8328f87f9c4bc007cd46a5567268621499e35343
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
e19c9bbf0157891af875c9613591801e3ec04ad2 30-Apr-2014 Zhihai Xu <zhihaixu@google.com> am 1e5ccec7: am f0362f25: am b398dad1: Merge "Improve sending web link with Bluetooth"

* commit '1e5ccec7481ef41cb31b8d50cbd3e9dd624c91f1':
Improve sending web link with Bluetooth
1e5ccec7481ef41cb31b8d50cbd3e9dd624c91f1 30-Apr-2014 Zhihai Xu <zhihaixu@google.com> am f0362f25: am b398dad1: Merge "Improve sending web link with Bluetooth"

* commit 'f0362f2538cae32d5e24afed609a813d99e33143':
Improve sending web link with Bluetooth
f0362f2538cae32d5e24afed609a813d99e33143 30-Apr-2014 Zhihai Xu <zhihaixu@google.com> am b398dad1: Merge "Improve sending web link with Bluetooth"

* commit 'b398dad1e5dbd0e4724fedbcb694cd62cba02573':
Improve sending web link with Bluetooth
278ca5fcf7f9595521a4f722abd9b4785c70e265 08-Apr-2011 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Improve sending web link with Bluetooth

When sending web link from Google maps app, link cannot be used by
receiver as maps app will send extra text in addition to web link.

Improve the creation of html so that only the web link is
interpreted as a link.

Code is partly copied from MessageView class in the email app.

Change-Id: Idb093cc3d5af5fa6b85649d194fa6dc0c6fdfd1e
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
d93e1487863468898b752d54b07dcd4e0661c113 18-Apr-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Add transport param to Connect APIs

Support for passing preferred transport for GATT connections as part of
Connect APIs

Change-Id: Ibeafb922aec954d1f2e693b422e264fbc87468f2
ndroid/bluetooth/gatt/GattService.java
5d56b57b6fac07125f5462a6ed3dd3b1a546541b 15-Mar-2014 Sunny Kapdi <sunnyk@codeaurora.org> MHF: Start DIALING_OUT_TIMEOUT for correct device

When processing Dial request, start DIALING_OUT_TIMEOUT
timer for correct matching device.
Also add null check for device retrieved from
getDeviceForMessage()

Change-Id: Id9946c6b91ca1b23a24dfe408a81db25b9dfb86a
CRs-Fixed: 612278
ndroid/bluetooth/hfp/HeadsetStateMachine.java
1b1780bd64223ee4cc4103b75316ccc0745cbcc5 15-Mar-2014 Sunny Kapdi <sunnyk@codeaurora.org> MHF: Broadcast connected state for HS

- Since telephony doesn't store list of connected HS, BT needs
to broadcast connected state for an already connected HS,
when other HS disconnects. This will notify telephony that
even though one HS is disconnected, but still there is one
other connected HS. This fixes call routing issue to BT HS
from phone UI.

- Set mActiveScoDevice to null when HS disconnects while
it has SCO connected for ongoing call.

Change-Id: I91aba22844938b61afc0bac52b5b6de95354f491
CRs-Fixed: 619841
ndroid/bluetooth/hfp/HeadsetStateMachine.java
69d4ca45a25e86823fbdb754ca6a3995f8131d59 15-Mar-2014 Nitin Srivastava <nitinsr@codeaurora.org> Multi HF support

1. Added support for Multi HF connections
in Bluetooth application.
2. All connection transition states for
2nd HS onwards is handled in new state-
MultiHFPending.
3. The changes are done to handle proper
state transition for all connected HS.

Change-Id: I033ae57943e50273f9d3cac4c5f8d1624cb9ee09
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
5f1aaa0fc4fc7e94c4f67de35a35ec6ca5ad9ec9 03-Feb-2014 Nitin Srivastava <nitinsr@codeaurora.org> BT: HDP: Add NULL check in cleanupApps

Add NULL check for profile Apps data before accessing
them during cleanup.

Change-Id: Iebc6dc0399ed3d77078962b50550d3080a82644f
ndroid/bluetooth/hdp/HealthService.java
3f4dc8e00f57579f5b57726929f1d34260a77cd1 29-Apr-2014 Bill Yi <byi@google.com> Merge commit 'b8bd4924c6de7333a08294a7d20d065e7b7a6f31' into HEAD
e40925fc889d7f9dfc2a12c8165086cc7c312cc6 25-Sep-2013 Zhihai Xu <zhihaixu@google.com> Bluetooth: Added Shared Preferences to restore tethering preference

Added a Shared Preferences to have the tethering preference persist,
The value is stored while changing the tethering preference by user
and tethering preference will be restored based on the value(last
saved tethering preference) while starting the PAN service.
from QCOM
Change-Id: I468564a51ff17dfdf1b95a532fa429477db0da15
ndroid/bluetooth/pan/PanService.java
ca2a13ee25488f913766081e42daa2dce85d75aa 13-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> Bluetooth-OPP: Enable support to send same file multiple times

Change will add support to send same file multiple times. Otherwise,
if same file is selected to send multiple times after first transfer
succeeds queued instances of the same file got removed and it fails
to be sent.

Change-Id: Ic5b3706644a417cae2491d1df9588a22344f1711
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
90d9ea96c0b0f3209dc03667e21d14a13ca1f614 06-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Fix search by number issue for contacts.

Fix String outofbounds exception while searching
contacts by NUMBER Search attribute.

Change-Id: Ib82cc138c1fa17c68751eb124114e1f8c2c83324
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
4ffed8e8fbde75ab5151cce325acf2a636e09c8f 09-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: Map: Trim folder name in pushMessage and setPath

Trim folder name string passed from remote, before processing the
pushMessage and setPath request to do proper handling when a blank
folder name is passed from some Carkits. Without this change there
will be some IOT issues with some carkit(s) which will append a space
instead of empty string for pushing message to current folder.

Change-Id: I8b0bdfc1f837c53f0773057db27b81ae9acb279a
ndroid/bluetooth/map/BluetoothMapObexServer.java
130969d18eadbd94361fe95bf16b8131cdea6168 09-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Compare Name and ID both for getting vcard by number

This change will add a ID comparison along with the
Name before writing the final vcard entry when we get
the list through getContactsNamesByNumber
to avoid providing the vcard having the same name but
different numbers.

Change-Id: Ie2e1567a784cd3d872495a029fce6b51a39de993
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
849da7cd88ec65cb153e9d81d3e2ea78418ba181 17-Feb-2014 Nitin Srivastava <nitinsr@codeaurora.org> BT: HFP: Set VR flags to false when HS disconnects

When a HS is disconnected while in VR session and then
reconnected again, VR attempt from HS fails as VR flags
mVoiceRecognitionStarted and mWaitingForVoiceRecognition
were not reset to false when HS disconnected.

Change-Id: I008f01393a5529f63cd8392401e1402a9afe70a8
ndroid/bluetooth/hfp/HeadsetStateMachine.java
9063719ccd0a0b6fc6485393f88336124d399ef6 25-Mar-2014 Zhihai Xu <zhihaixu@google.com> LE: Add API to configure MTU for a given connection (4/4)
this patch is from broadcom(andre)
bug:13571470
Change-Id: I4faf13f3daa535337b721a8b48e92334ed0ecb7c
ndroid/bluetooth/gatt/GattService.java
307c977d7381ab2d6c6b8f2c1fdbfe756547ad1b 29-Jan-2014 Ariel Gertzenstein <agertzen@google.com> DO NOT MERGE Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.

http://b/12788418

Change-Id: I7cc43db047457eb6a4ac501770a714eef0ed6422
ndroid/bluetooth/pan/PanService.java
0de40c51768ecb06d628b6ec1d731ffaaa4af662 10-Apr-2014 zzy <zhenye@broadcom.com> am 93bbeea2: DO NOT MERGE: Exit bt process after cleanup

* commit '93bbeea23b6e974554eba6337d758f70c3314d06':
DO NOT MERGE: Exit bt process after cleanup
93bbeea23b6e974554eba6337d758f70c3314d06 04-Mar-2014 zzy <zhenye@broadcom.com> DO NOT MERGE: Exit bt process after cleanup

Added code to exit bt process and avoid android process caching.
The fix also gives end user a chance to recover a bad state bt process by
simply turning off/on the bluetooth. Since the process is not recycled,
the kernel frees up all leftover fd and memory and gives bt process a fresh start every time.
Addresses b/13912278

Change-Id: I616345da70bb60f1aeaab151a6bf6f793168a829
ndroid/bluetooth/btservice/AdapterService.java
e296684eab2bf622ff27cb1b3cd3008e919dfe30 31-Mar-2014 Christian Hanner <christian3.hanner@sonymobile.com> Use round() instead of ceil() in calculation of a2dp vol slider position

The avrcp MESSAGE_VOLUME_CHANGED requests volumes in the range 0-127. In
convertToAudioStreamVolume() this value is scaled to a (typically much
smaller, e.g. 0-15) integer value representing the volume slider step to
be presented in the UI. Depending on the resolution in the volume
requests from the a2dp device and the resolution of the UI volume
slider, some of the requested volumes might be mapped onto the same
UI slider positions. If ceil() is exchanged for round() in
convertToAudioStreamVolume() the problem with double mapped volumes
vanishes in most realistic cases.

Change-Id: I89d9ac4b8c330fd4fd2a02984bd628961f2cb035
ndroid/bluetooth/a2dp/Avrcp.java
a785b23c7756a65d5836787251f04e521800157c 08-Apr-2014 Matthew Xie <mattx@google.com> am 7d599189: am b9c0706b: Merge "Bluetooth: Make Bonded device list operations are synchronous"

* commit '7d599189869be67ba2b74b6e0729be74ffbe0b74':
Bluetooth: Make Bonded device list operations are synchronous
e187e2798dc2551068c8a0dd38caaa5a7cbf862b 08-Apr-2014 Matthew Xie <mattx@google.com> am 010b179c: am 5aace9b6: Merge "MAP: Fix MMS pushMessage from OUTBOX to SENT folder"

* commit '010b179cdad1ecc9940b771698d0af90518596d1':
MAP: Fix MMS pushMessage from OUTBOX to SENT folder
7d599189869be67ba2b74b6e0729be74ffbe0b74 08-Apr-2014 Matthew Xie <mattx@google.com> am b9c0706b: Merge "Bluetooth: Make Bonded device list operations are synchronous"

* commit 'b9c0706b00f64a59911a5ac63e3f609dabebc284':
Bluetooth: Make Bonded device list operations are synchronous
010b179cdad1ecc9940b771698d0af90518596d1 08-Apr-2014 Matthew Xie <mattx@google.com> am 5aace9b6: Merge "MAP: Fix MMS pushMessage from OUTBOX to SENT folder"

* commit '5aace9b695c57beffb53c16f4426319baeb79900':
MAP: Fix MMS pushMessage from OUTBOX to SENT folder
b9c0706b00f64a59911a5ac63e3f609dabebc284 08-Apr-2014 Matthew Xie <mattx@google.com> Merge "Bluetooth: Make Bonded device list operations are synchronous"
5aace9b695c57beffb53c16f4426319baeb79900 08-Apr-2014 Matthew Xie <mattx@google.com> Merge "MAP: Fix MMS pushMessage from OUTBOX to SENT folder"
cfaffa85e4a5388f3591bb17f88fc7768676eae2 11-Mar-2014 Andres Morales <anmorales@google.com> Making Bluetooth OPP file transfer intent generic

In the process of adding Wifi as a transport for Beam,
the only consumer of this code as of yet. Need to decouple
the file transfer events from the bluetooth stack to be able
to cleanly reuse them in the wifi code.

Change-Id: I9dafe4f6756bf429b4770826c46d41330a334493
ndroid/bluetooth/opp/Constants.java
28eff1a17b1e60f985f841faadde6420bf0d001f 12-Mar-2014 Wei Wang <weiwa@google.com> DO NOT MERGE: Add status callback for start/stop advertising.
cherrypick from master.

Change-Id: I666969442b756ce461ff64eff0d09f5283431fb3
ndroid/bluetooth/gatt/GattService.java
1498ea75bf38641b6f1938e57d7e550b33eecb7a 31-Mar-2014 Andre Eisenbach <andre@broadcom.com> am a207e911: am 66275876: LE: Add API to configure MTU for a given connection (4/4)

* commit 'a207e911bf5bab8c1a6c3e3e059bca090b01aec2':
LE: Add API to configure MTU for a given connection (4/4)
a207e911bf5bab8c1a6c3e3e059bca090b01aec2 31-Mar-2014 Andre Eisenbach <andre@broadcom.com> am 66275876: LE: Add API to configure MTU for a given connection (4/4)

* commit '662758761424473da90573de5fed1b686ce9ba0e':
LE: Add API to configure MTU for a given connection (4/4)
8bde40eb58d7a6526a2e59dd375bf62bb9eb006b 31-Mar-2014 Matthew Xie <mattx@google.com> am eec38f41: am 2ce3e327: Merge "MAP: Handle MessageListing empty folder name if set to current path."

* commit 'eec38f41c44410c35e1c7b2f7de544bd85b55736':
MAP: Handle MessageListing empty folder name if set to current path.
eec38f41c44410c35e1c7b2f7de544bd85b55736 31-Mar-2014 Matthew Xie <mattx@google.com> am 2ce3e327: Merge "MAP: Handle MessageListing empty folder name if set to current path."

* commit '2ce3e327bcebb56be8a286da9c8a7c3974f36b64':
MAP: Handle MessageListing empty folder name if set to current path.
2ce3e327bcebb56be8a286da9c8a7c3974f36b64 31-Mar-2014 Matthew Xie <mattx@google.com> Merge "MAP: Handle MessageListing empty folder name if set to current path."
662758761424473da90573de5fed1b686ce9ba0e 25-Mar-2014 Andre Eisenbach <andre@broadcom.com> LE: Add API to configure MTU for a given connection (4/4)

bug:13571470
Change-Id: I4faf13f3daa535337b721a8b48e92334ed0ecb7c
ndroid/bluetooth/gatt/GattService.java
b8bd4924c6de7333a08294a7d20d065e7b7a6f31 20-Mar-2014 Wei Wang <weiwa@google.com> am e3c4ef80: am 24dce607: DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050

* commit 'e3c4ef80690ff1389367806fcbafaaf019d0f5ca':
DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050
9c628cea53773c6290b665b8f427575310a010dc 20-Mar-2014 Wei Wang <weiwa@google.com> am 93cb7b67: am e3c4ef80: am 24dce607: DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050

* commit '93cb7b670a886fb12150c683469ad48b0e55176d':
DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050
93cb7b670a886fb12150c683469ad48b0e55176d 20-Mar-2014 Wei Wang <weiwa@google.com> am e3c4ef80: am 24dce607: DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050

* commit 'e3c4ef80690ff1389367806fcbafaaf019d0f5ca':
DO NOT MERGE: Add status callback for start/stop advertising. cherrypick from master to fix b/13289050
24dce60783d85fbf49f550203a383b2f4a171a52 12-Mar-2014 Wei Wang <weiwa@google.com> DO NOT MERGE: Add status callback for start/stop advertising.
cherrypick from master to fix b/13289050

Change-Id: I666969442b756ce461ff64eff0d09f5283431fb3
ndroid/bluetooth/gatt/GattService.java
0312f2b5c02e472eca2a91c93d465f81a3c6fc3d 19-Mar-2014 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> HFP: Fix missing OK for AT+CLCC in virtual call

When AT+CLCC is received from HF while we're in virtual call mode there
is only non-zero index call sent without final zero index call. This
makes AT command response incomplete since no OK is sent.

From HFP specification, section 4.31.1:
"The AG shall always send OK response to HF."

Change-Id: I2d759bd3d65f2adb9a364d40ffe23d6197c6375b
ndroid/bluetooth/hfp/HeadsetStateMachine.java
c3b5ffdc43d7370d5e18a25db901f7b9e2dc59d2 12-Mar-2014 Wei Wang <weiwa@google.com> Add status callback for start/stop advertising.
Fixes b/13418851, b/13289050.

Change-Id: I666969442b756ce461ff64eff0d09f5283431fb3
ndroid/bluetooth/gatt/GattService.java
14b5e0d58b96d48db7dd5decee1efd0a69084fcb 14-Mar-2014 Zhihai Xu <zhihaixu@google.com> am 5bae8a40: am 969f4932: Merge "DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste power." into klp-dev

* commit '5bae8a40e40e00b84750186309b6f30036c20186':
DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste power.
4a272ffb0148ba02d1f83ec103104a5e9043a99c 11-Mar-2014 Matthew Xie <mattx@google.com> am 422d5b01: Merge "Avoid race condition that gets PanService stuck in STATE_DISCONNECTED."

* commit '422d5b0126fb072a657bb9bd268251bc1cb6fb6e':
Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.
f89cb15152c4d19db35462583d79eda669c0c87d 11-Mar-2014 Matthew Xie <mattx@google.com> am 27385b9b: Merge "PBAP: Remove initialisation of Missed calls number"

* commit '27385b9b93a06862fed92f7260416276dbbbfa66':
PBAP: Remove initialisation of Missed calls number
cf295c3744f4ec77bb0b1fad1c6558ee5ce7313f 11-Mar-2014 Matthew Xie <mattx@google.com> am 429460a8: Merge "OPP: Handle intent receiver leak for BT TURN OFF."

* commit '429460a8ec5a1e0a7dc011acb80d3826b01b1936':
OPP: Handle intent receiver leak for BT TURN OFF.
7718f33abcc44702f234ce5cdc87e8040812a0df 11-Mar-2014 Matthew Xie <mattx@google.com> am 4a57bce1: Merge "MAP: Set Empty name or address for unknown values in GetMessageListing."

* commit '4a57bce1779e7dcd502dcbb64e7e121a700ba258':
MAP: Set Empty name or address for unknown values in GetMessageListing.
1b5a93a868272990d0206875f54ba150e6e7c08b 11-Mar-2014 Matthew Xie <mattx@google.com> am 77b9e56b: Merge "Bluetooth: Update Signal strength"

* commit '77b9e56ba1dc3eadf39c46b470552031383e6786':
Bluetooth: Update Signal strength
6024e17f1e9cc9c03f40347b6677d5006f63c183 10-Mar-2014 kschulz <k.schulz@samsung.com> am b140b007: am 6d4c5c8b: DO NOT MERGE MAP: fixed missing filtering on Priority

* commit 'b140b007f98f38b1365c26af2472d1ed5b8a46ee':
DO NOT MERGE MAP: fixed missing filtering on Priority
bda98633f8453ba9e8f96a06c8b724f6d662679b 10-Mar-2014 Zhihai Xu <zhihaixu@google.com> am 8872c350: am d3195daf: DO NOT MERGE update play status based on A2dp audio state from stack.

* commit '8872c350993db08bf1c58ba39a94087fc2df16b1':
DO NOT MERGE update play status based on A2dp audio state from stack.
569452aa91d43eaabe120f6de5bf8d613c574e3a 10-Mar-2014 Matthew Xie <mattx@google.com> am e7668dda: am 422d5b01: Merge "Avoid race condition that gets PanService stuck in STATE_DISCONNECTED."

* commit 'e7668dda0cd1f16e4161e6f0a64c685efc1ed25d':
Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.
e7668dda0cd1f16e4161e6f0a64c685efc1ed25d 10-Mar-2014 Matthew Xie <mattx@google.com> am 422d5b01: Merge "Avoid race condition that gets PanService stuck in STATE_DISCONNECTED."

* commit '422d5b0126fb072a657bb9bd268251bc1cb6fb6e':
Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.
422d5b0126fb072a657bb9bd268251bc1cb6fb6e 10-Mar-2014 Matthew Xie <mattx@google.com> Merge "Avoid race condition that gets PanService stuck in STATE_DISCONNECTED."
98dde68aa7cf3b63683fa5cbd70b11623a29a90f 27-Nov-2013 Zhihai Xu <zhihaixu@google.com> DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste power.

bug:11138488
Change-Id: Ie7d8903cc917aee51711fa47f275863e4046f3d8
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
6d4c5c8befa3e585271ed4db770dd6990827d1f0 11-Oct-2013 kschulz <k.schulz@samsung.com> DO NOT MERGE MAP: fixed missing filtering on Priority

FilterPriority was ignored in the code as SMS does not have priority.
This fixes the support for the priority filter for sms + mms.
NOTICE: sms messages does not have priority and hence will return
an empty messagelisting if the client requests a list with priority
filter set til high-pri only.

Bug: 11168636
Change-Id: If028e47850323d20d1e9a23bc947782ae8da1df0
ndroid/bluetooth/map/BluetoothMapContent.java
d3195daf68329036df6a01331b466844b5cb29de 08-Jan-2014 Zhihai Xu <zhihaixu@google.com> DO NOT MERGE update play status based on A2dp audio state from stack.

this is to work around the problem:some video/audio player didn't
update the play status by calling setPlaybackState.
The headset(HBS730) register the play status update on the phone.
It will depend the play status reported from the phone to send
play or pause command.

bug:11325212
Change-Id: I7fde5960edd4a5b3474fa17456aacd5b4b432d4d
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/a2dp/Avrcp.java
ca9674c0f223a5bab5c6750594fd7ee76811771f 08-Mar-2014 Wei Wang <weiwa@google.com> am b285350d: am b9703de9: Merge "DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change." into klp-dev

* commit 'b285350d6580a118940a0f7d62857a199e362283':
DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change.
b9703de9f4892341e2a1f5ea1908aed19018569f 08-Mar-2014 Wei Wang <weiwa@google.com> Merge "DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change." into klp-dev
b8183f71183a43c6917e91b10139c5a2daec4a04 07-Mar-2014 Mike J. Chen <mjchen@google.com> am a1d2ed87: am e3805c61: Merge "Add handshake callback support" into klp-modular-dev

* commit 'a1d2ed879c917f47d11c9462e4d9e35c9a0f68f2':
Add handshake callback support
a1d2ed879c917f47d11c9462e4d9e35c9a0f68f2 07-Mar-2014 Mike J. Chen <mjchen@google.com> am e3805c61: Merge "Add handshake callback support" into klp-modular-dev

* commit 'e3805c6144038207bc72654bd250054e5821c373':
Add handshake callback support
4a9c5ce6029d7fb06b8564a761f6bea5975d74f8 07-Mar-2014 Zhihai Xu <zhihaixu@google.com> am abce10c9: am e061a83b: Device cannot go to sleep while connected to HBM-570 BT headset

* commit 'abce10c9731e65ca11e6d5a80094bbd1bf1313fa':
Device cannot go to sleep while connected to HBM-570 BT headset
004550da492fb000ab08b6324558c1e4cbd383d4 29-Jan-2014 Srinu Jella <sjella@codeaurora.org> Bluetooth: Make Bonded device list operations are synchronous

Change the bonded device list to CopyOnWriteArrayList,to take
care of concurrent add/delete operations to the bonded device
list.

Change-Id: Ia4de2d35f2e30d6407716d0e60dc3bf4d05a2ac5
ndroid/bluetooth/btservice/AdapterProperties.java
873b8064cca4d0f32808842a39e54e305dd5b410 30-Oct-2013 Wei Wang <weiwa@google.com> DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change.

Add advertising data to Gatt Service/

Cherry picking ble advertising changes from master to KLP MR2.
b/13137996

Change-Id: I0ea7df8c159ad388d8e58768c49e785e9a4694bb
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/HandleMap.java
ndroid/bluetooth/gatt/ServiceDeclaration.java
e061a83b8cbd872cd9f0fea33717aa57112e6228 14-Oct-2013 Zhihai Xu <zhihaixu@google.com> Device cannot go to sleep while connected to HBM-570 BT headset

The headset never disconnect the Obex connection for PBAP,
so in this case, we never release the wakelock.
Our PBAP implementation won't release wakelock
until the Obex is disconnected by the remote device
To better control the wake lock, we should
only acquire the wakelock when we receive the reqeust from the remote device
will release the wakelock after we send the response packets.

bug:10957699
Change-Id: I85e0609e36788d9c36334dd804ec52c90b90615b
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ed0c6ae1773ad1f4249fe3cf7447d7033195f222 29-Jan-2014 Ashwini Munigala <AshwiniM@codeaurora.org> MAP: Fix MMS pushMessage from OUTBOX to SENT folder

Fix content type value for MMS pushMessage
from MAP to OUTBOX to be successfully SENT over
network and listed in SENT folder.

Change-Id: I068619481355c19716627fef434f1f80bd2c2d23
ndroid/bluetooth/map/BluetoothMapContentObserver.java
448965010ed4fbaf546cc355d1766198f70c21fb 07-Jan-2014 Ashwini Munigala <AshwiniM@codeaurora.org> MAP: Handle MessageListing empty folder name if set to current path.

Check if destination folder is already setpath while processing
GetMessageListing Request for empty folderName.

Change-Id: I4ecd87264140fd347c71b428e3c4dffec3f91d48
ndroid/bluetooth/map/BluetoothMapObexServer.java
3a04c35ba5f723ee4a6e1f1c37514691ebd1447d 05-Mar-2014 Mike J. Chen <mjchen@google.com> Add handshake callback support

Change-Id: I7619e6e2ac3589ffa5e0b70e4b28e536c886ce02
Signed-off-by: Mike J. Chen <mjchen@google.com>
ndroid/bluetooth/hid/HidService.java
3b8e00b61402bde1d3d179087f030ea7ccd82135 04-Mar-2014 zzy <zhenye@broadcom.com> Exit bt process after cleanup

Added code to exit bt process and avoid android process caching.
The fix also gives end user a chance to recover a bad state bt process by
simply turning off/on the bluetooth. Since the process is not recycled,
the kernel frees up all leftover fd and memory and gives bt process a fresh start every time.

Change-Id: I616345da70bb60f1aeaab151a6bf6f793168a829
ndroid/bluetooth/btservice/AdapterService.java
9cda136cdea45d0e0d1cbdcd1bc073bc7d018fa0 25-Feb-2014 Matthew Xie <mattx@google.com> Merge "MAP: protected misspelled in message listing encoder"
22545e23dcec98dbc43e914c903c6a98ab08b1aa 05-Feb-2014 Kim Schulz <k.schulz@samsung.com> MAP: protected misspelled in message listing encoder

The keyword protected was misspelled in the message listing encoder.
Solution: change to protected.

The typo corrected.

Change-Id: I099a79a0076e297cfb89545910c750d4e074c3db
Bug: 12915358
ndroid/bluetooth/map/BluetoothMapMessageListingElement.java
0053efa4b58c3e5815a500bd719c5018e7e87852 04-Feb-2014 Kim Schulz <k.schulz@samsung.com> MAP: Empty parameter mask handled wrong

If an empty parameter mask is set in a get message listing request
we only returned the handles, where as the spec states that we
should return all parameters.

Solution: Set the parameter filter to 0xFFFF if it is omitted or 0.

Change-Id: I2cb99569c0920c706c0d3b3ed269852471cb1ee6
Bug: 12915453
ndroid/bluetooth/map/BluetoothMapAppParams.java
ndroid/bluetooth/map/BluetoothMapContent.java
e1bc19b7d99f2a29c305a8e4bb75969a66783def 24-Feb-2014 Matthew Xie <mattx@google.com> am 27385b9b: Merge "PBAP: Remove initialisation of Missed calls number"

* commit '27385b9b93a06862fed92f7260416276dbbbfa66':
PBAP: Remove initialisation of Missed calls number
2e48689248aa50003ef648b12bf36f8c7e9dbd8c 24-Feb-2014 Matthew Xie <mattx@google.com> am 429460a8: Merge "OPP: Handle intent receiver leak for BT TURN OFF."

* commit '429460a8ec5a1e0a7dc011acb80d3826b01b1936':
OPP: Handle intent receiver leak for BT TURN OFF.
b3abf4e52a7045f914f88d07670c0d2fb231a75d 24-Feb-2014 Matthew Xie <mattx@google.com> am 4a57bce1: Merge "MAP: Set Empty name or address for unknown values in GetMessageListing."

* commit '4a57bce1779e7dcd502dcbb64e7e121a700ba258':
MAP: Set Empty name or address for unknown values in GetMessageListing.
d08f6a6e926d7c9057c67b39ffabcdac04819586 24-Feb-2014 Matthew Xie <mattx@google.com> am 77b9e56b: Merge "Bluetooth: Update Signal strength"

* commit '77b9e56ba1dc3eadf39c46b470552031383e6786':
Bluetooth: Update Signal strength
27385b9b93a06862fed92f7260416276dbbbfa66 24-Feb-2014 Matthew Xie <mattx@google.com> Merge "PBAP: Remove initialisation of Missed calls number"
429460a8ec5a1e0a7dc011acb80d3826b01b1936 24-Feb-2014 Matthew Xie <mattx@google.com> Merge "OPP: Handle intent receiver leak for BT TURN OFF."
4a57bce1779e7dcd502dcbb64e7e121a700ba258 24-Feb-2014 Matthew Xie <mattx@google.com> Merge "MAP: Set Empty name or address for unknown values in GetMessageListing."
28c90ba40b2bfd572860600d18e3dd3e2770e635 27-Nov-2013 Smriti Gupta <smritig@codeaurora.org> PBAP: Remove initialisation of Missed calls number

Thic change will remove initialisation of Missed calls number
at the time of connection as NewMissedCall number indicates the
number of missed calls that have been received on the PSE since
the last PullPhoneBook request on the mch folder, at the point
of the request.

Change-Id: I5f769011a34cfe8e7225fca646a58451639dcfa5
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
0487333556262f47feaa3f931d5a5c123386dd23 21-Nov-2013 Ashwini Munigala <AshwiniM@codeaurora.org> MAP: Set Empty name or address for unknown values in GetMessageListing.

Set Empty sender or recipient name and address values to indicate
info not available from MSE in GetMessageListing response.
Current implemenation to skip the entire feild in response doesnot
mark the uniformity for values being fetched from telephony or
phone book databases.

Change-Id: I44e2f61572607349ec20ec1efcc6c44abe084b83
ndroid/bluetooth/map/BluetoothMapContent.java
275aaa55584ba62ab176a30cdabc432a6ff875d2 03-Oct-2013 Ashwini Munigala <AshwiniM@codeaurora.org> OPP: Handle intent receiver leak for BT TURN OFF.

Mark INBOUND and OUTBOUND active transfer as cancelled
on BT TURN OFF.

Change-Id: I52e6d59ba56e004af2dc25b85975dfeb6c19320a
ndroid/bluetooth/opp/BluetoothOppService.java
ff44cbb06dcc8e1d0cbb346e0ea4af612ab2b33e 30-Nov-2013 Nitin Srivastava <nitinsr@codeaurora.org> Bluetooth: Update Signal strength

This change makes sure that signal
strength is updated properly when
there is no network service.

Change-Id: I8f2e9fedc4ac6f0d039c55d8211ed96fbe25317d
ndroid/bluetooth/hfp/HeadsetPhoneState.java
3ec105beaebd4d6abea80b52206b11032ab4f33c 29-Jan-2014 Sharvil Nanavati <sharvil@google.com> Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.

http://b/12788418

Change-Id: I7cc43db047457eb6a4ac501770a714eef0ed6422
ndroid/bluetooth/pan/PanService.java
b8e4250de151551d5dacca895e62761355839d7d 28-Jan-2014 Mike J. Chen <mjchen@google.com> HID: Hookup get_report_callback and return to Java via broadcast

Change-Id: I5ee7ea72935834ba8a19f7933bb92b8a0a24ba62
Signed-off-by: Mike J. Chen <mjchen@google.com>
ndroid/bluetooth/hid/HidService.java
0f496823a3529298cc3c16013ecc596a39f1659a 10-Jan-2014 Zhihai Xu <zhihaixu@google.com> Merge "update play status based on A2dp audio state from stack."
1edaf3d30ddcecf2f77bbfd880b6e4a7acb7a2c1 10-Jan-2014 Zhihai Xu <zhihaixu@google.com> Merge "fix incorrect track position reported from BT AVRCP"
aa6c1cb7f08a5d1fe2c878b587c62cf4dbb6ee8f 08-Jan-2014 Zhihai Xu <zhihaixu@google.com> fix incorrect track position reported from BT AVRCP

when music player continuously update playing state
with invalid play postion -1 during playing,
The track postion are not changed correcly.

bug:11377223
Change-Id: Ie4cecfe7757cb92fc96ea49a7442a9d0bd9fc63a
ndroid/bluetooth/a2dp/Avrcp.java
188f205b5f093850d4cc627917a21204be36c56a 08-Jan-2014 Zhihai Xu <zhihaixu@google.com> update play status based on A2dp audio state from stack.

this is to work around the problem:some video/audio player didn't
update the play status by calling setPlaybackState.
The headset(HBS730) register the play status update on the phone.
It will depend the play status reported from the phone to send
play or pause command.

bug:11325212
Change-Id: I7fde5960edd4a5b3474fa17456aacd5b4b432d4d
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/a2dp/Avrcp.java
6824a77ac3c760bb713aca66220704949c0b0866 07-Jan-2014 Zhihai Xu <zhihaixu@google.com> Merge " isA2dpPlaying() reports wrong playing state when suspended"
fe32e48d4129a3950f3a33f0ab443649b29205fb 07-Jan-2014 Zhihai Xu <zhihaixu@google.com> isA2dpPlaying() reports wrong playing state when suspended

bug:12412483
Change-Id: I1cf209479581bf28fc1ebdc462f552b8ec270520
ndroid/bluetooth/a2dp/A2dpStateMachine.java
a08fff0ae81757bdab00ae8865a906c711d5572f 30-Oct-2013 Wei Wang <weiwa@google.com> BLE peripheral mode (2/4): Gatt Service Change.

Change-Id: I0ea7df8c159ad388d8e58768c49e785e9a4694bb
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/HandleMap.java
ndroid/bluetooth/gatt/ServiceDeclaration.java
daaec40bbe227e6ee735da947afc72777f66c65d 18-Dec-2013 Zhihai Xu <zhihaixu@google.com> Merge "Device cannot go to sleep while connected to HBM-570 BT headset"
68c3d0efab4ad40abd13ff015a6a92bd60a4bd85 18-Dec-2013 Zhihai Xu <zhihaixu@google.com> Merge "release wakelock if no activity in Bluetooth MAP profile to avoid waste power."
a871a846ce37339a05fdf64b26bda0dc5bb6d565 17-Dec-2013 Zhihai Xu <zhihaixu@google.com> MAP: make MMS parsing more robust

Some devices are not following the specs correctly and send plan-text as MMS without the right headers.
This patch makes the MMS parser more robust against faulty MMS messages.
Bug: 11161383

Change-Id: Ib891f3cdc810d32082b3afe93ca18df4fcbff1be
ndroid/bluetooth/map/BluetoothMapObexServer.java
8fa8d120e86c7488616cc7f7310843f15278b5d9 14-Oct-2013 Zhihai Xu <zhihaixu@google.com> Device cannot go to sleep while connected to HBM-570 BT headset

The headset never disconnect the Obex connection for PBAP,
so in this case, we never release the wakelock.
Our PBAP implementation won't release wakelock
until the Obex is disconnected by the remote device
To better control the wake lock, we should
only acquire the wakelock when we receive the reqeust from the remote device
will release the wakelock after we send the response packets.

bug:10957699
Change-Id: I85e0609e36788d9c36334dd804ec52c90b90615b
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
c09b531ba47eee740485b0c6022981fc38ef1587 27-Nov-2013 Zhihai Xu <zhihaixu@google.com> release wakelock if no activity in Bluetooth MAP profile to avoid waste power.

bug:11138488
Change-Id: Ie7d8903cc917aee51711fa47f275863e4046f3d8
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
2e7c4d9904b097efe6f07d31af3793b96b4d4e77 10-Oct-2013 Kim Schulz <k.schulz@samsung.com> MAP: make MMS parsing more robust

Some devices are not following the specs correctly and send plan-text as MMS without the right headers.
This patch makes the MMS parser more robust against faulty MMS messages.

Bug: 11161383
Change-Id: If5e59f9daaab4537cfe5d06e6203ae783e311fd3
ndroid/bluetooth/map/BluetoothMapContentObserver.java
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapbMessageMmsEmail.java
14f1f53e829b1d00f6c27618e878b1ebb18df8cc 11-Oct-2013 kschulz <k.schulz@samsung.com> MAP: fixed missing filtering on Priority

FilterPriority was ignored in the code as SMS does not have priority.
This fixes the support for the priority filter for sms + mms.
NOTICE: sms messages does not have priority and hence will return
an empty messagelisting if the client requests a list with priority
filter set til high-pri only.

Bug: 11168636
Change-Id: If028e47850323d20d1e9a23bc947782ae8da1df0
ndroid/bluetooth/map/BluetoothMapContent.java
72fb3e13a6090e10c68e91f89553ecc19f5bb3bd 22-Nov-2013 Matthew Xie <mattx@google.com> Merge "enable xml format to transfer/receive over bluetooth"
322480a097a098ac39dd148e8aecc1106d5a3a88 15-Nov-2013 Zhihai Xu <zhihaixu@google.com> am f43652de: am 025c8ec1: Merge "remove a read lock to work around a platform deadlock problem." into klp-dev

* commit 'f43652dec776a22a1306b4392867e2f0b8e855d0':
remove a read lock to work around a platform deadlock problem.
025c8ec1e42ccac17c896809c4e6d2cb90b3c71a 15-Nov-2013 Zhihai Xu <zhihaixu@google.com> Merge "remove a read lock to work around a platform deadlock problem." into klp-dev
50f6cb42218fd50ed2532884d1212e1c9a74c7b2 15-Nov-2013 Zhihai Xu <zhihaixu@google.com> remove a read lock to work around a platform deadlock problem.

remove the lock in getStatefunction to work around a platform
deadlock problem.and also for read access, it is safe to remove
the lock to save CPU power

bug:11655066
Change-Id: Iddc0ada04010d95ae7d5fbc93ab837ebfc025b7a
ndroid/bluetooth/btservice/AdapterProperties.java
ee6898a4b73d90ebe20bc0218a707d3dc7d6e641 07-Nov-2013 Matthew Xie <mattx@google.com> am e56c70f6: am cd68000c: Merge "cancel device discovery before start pairing process" into klp-dev

* commit 'e56c70f66fc8fd0cbcd97999f6efe187049c062c':
cancel device discovery before start pairing process
cd68000c2c9eb487a4bdb718d966a3246fef4d59 07-Nov-2013 Matthew Xie <mattx@google.com> Merge "cancel device discovery before start pairing process" into klp-dev
9ecfc6cfb40a0af13180905b6930111cfdf01c64 06-Nov-2013 Matthew Xie <mattx@google.com> cancel device discovery before start pairing process

During pairing process, SDP search is needed which cannot be handled
if we are doing device discovery
bug 11294130

Change-Id: Ic025fa3000af4f2d4c2c2ac411d26b6a99ad097c
ndroid/bluetooth/btservice/AdapterService.java
2a963d9c3c34fa5af76b629160008838317bbb1a 06-Nov-2013 Zhihai Xu <zhihaixu@google.com> am 0b98b993: am 240e2c5c: Merge "FF/REW is not correctly for AVRCP." into klp-dev

* commit '0b98b9933f0a2523ad333136777ef42982afc53a':
FF/REW is not correctly for AVRCP.
240e2c5c8248747f0fac86d173a9161d09093d47 06-Nov-2013 Zhihai Xu <zhihaixu@google.com> Merge "FF/REW is not correctly for AVRCP." into klp-dev
7d4c28ea6a75cf71a6dbb3401bef6982258461c1 06-Nov-2013 Edward Jee <edjee@google.com> am 981c0006: am dedebbfb: Handles AT+BVRA=1 received during an open SCO session.

* commit '981c0006cd7a6a4a786afd73a7a80faf571b6733':
Handles AT+BVRA=1 received during an open SCO session.
dedebbfb6eb1af92f013dedd234c2162cc2ec4be 09-Oct-2013 Edward Jee <edjee@google.com> Handles AT+BVRA=1 received during an open SCO session.

Bug: 11072505
Change-Id: If665517cd9efa087154edd57b23163e7cc098f6f
ndroid/bluetooth/hfp/HeadsetStateMachine.java
4945ac8099eb35112307f94c7c5ea7513f657fd3 05-Nov-2013 Zhihai Xu <zhihaixu@google.com> am 2665ad11: am 9dc561f7: Merge "NPE in bluetooth MAP cause bluetooth process crash" into klp-dev

* commit '2665ad11e9e3794dab5f5591ec0fceafddb2d58d':
NPE in bluetooth MAP cause bluetooth process crash
9dc561f7f13569552a62f771b16fe35dc5b9cd16 02-Nov-2013 Zhihai Xu <zhihaixu@google.com> Merge "NPE in bluetooth MAP cause bluetooth process crash" into klp-dev
19e4c6abe87d6c213e802ecf7af6c1d00e1f4b65 02-Nov-2013 Zhihai Xu <zhihaixu@google.com> FF/REW is not correctly for AVRCP.

While a music is being played, if FF/REW is pressed on the connected device,
it remains in the FF/REW state constantly (on the Porsche / Audi A8 carkit)

bug:11377223
Change-Id: Iee5468308f2786839c3a047c95dfa0a49ef28efb
ndroid/bluetooth/a2dp/Avrcp.java
9679a425747e95082e169b3bd3673ed6b5a27590 31-Oct-2013 Zhihai Xu <zhihaixu@google.com> NPE in bluetooth MAP cause bluetooth process crash

bug:11448104
Change-Id: I30045162c89e2150a9ef476f33e1b322e7cc9a44
ndroid/bluetooth/map/BluetoothMnsObexClient.java
2918953346cad7a847f6f17f5934c72256c0bf49 24-Oct-2013 Zhihai Xu <zhihaixu@google.com> am d2e9f926: am 82492947: MAP: fix problem with MNS not disconnecting correctly

* commit 'd2e9f9266d5efe9400ba0bdeca2ea61b8510e3e3':
MAP: fix problem with MNS not disconnecting correctly
824929471ee80476e6d6774eedac9f30c5623eb2 23-Oct-2013 Zhihai Xu <zhihaixu@google.com> MAP: fix problem with MNS not disconnecting correctly

MNS is needed to disconnect with the MSE but did not.
This patch fixes that by re-adding a disconnect() that was wrongfully removed during review.
Patch set 2:
-----------
- Split disconnect and shutdown for MNS connection
bug: 11161674
Change-Id: Idd09fc774584dfdb171b0d00be0f7711ae57b853
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
50f08db8a9100b79d7284406eaf2daae3af6a371 22-Oct-2013 Matthew Xie <mattx@google.com> am 3755cde5: am dce8f102: Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev

* commit '3755cde5fd20306f3965e7b317e3763640b11b42':
Change pairing api/intent permission from PRIVILEGED to ADMIN
dce8f102f76aeea3356c5416b8ebb5e5c8b5cb22 22-Oct-2013 Matthew Xie <mattx@google.com> Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev
810c49b2cfece1c48ced464d6bd2509ec4cac7a3 22-Oct-2013 Matthew Xie <mattx@google.com> Change pairing api/intent permission from PRIVILEGED to ADMIN

The APIs are createBond, setPin, setPairingConfirmation
The intent is ACTION_PAIRING_REQUEST
bug 11101076

Change-Id: I3b065ab0348a964bb557e57527491b2f34e68a81
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
1763de2c204a587dcfc04fa4324e415dd070139a 18-Oct-2013 Zhihai Xu <zhihaixu@google.com> am a58a4068: am 311fd8bf: Bluetooth Application Crash while try to pairing with laptop - IKDVXPSE-345

* commit 'a58a4068a42d9b705a2501559c0e8600306ad573':
Bluetooth Application Crash while try to pairing with laptop - IKDVXPSE-345
311fd8bf28c1c16c4da81485b26518c8df97f50b 17-Oct-2013 Zhihai Xu <zhihaixu@google.com> Bluetooth Application Crash while try to pairing with laptop - IKDVXPSE-345

the handleRegistration will never run after we shutdown the handler thread first,
with this change, we can make sure the mObserver will never be null
when call handleRegistration.
bug:11148404

Change-Id: I93b351915b49cf59a7d2026b7d83a68a7e76dd38
ndroid/bluetooth/map/BluetoothMnsObexClient.java
ded8689b33b1f345aafeea82b972c8b8cfab09cf 12-Oct-2013 Casper Bonde <c.bonde@samsung.com> am 1d8e1090: am 98df3e8f: Fix for MAP/PBAP: Race-condition when requesting authorization from Settings app

* commit '1d8e1090e1e19520749d906701c1aa27dac41a61':
Fix for MAP/PBAP: Race-condition when requesting authorization from Settings app
98df3e8ff33a6137d4ea13845b583aaee2670613 11-Oct-2013 Casper Bonde <c.bonde@samsung.com> Fix for MAP/PBAP: Race-condition when requesting authorization from Settings app

When MAP and PBAP requests authorization from the Settings app via Intents,
it also sets a state isWaitingForAuthorization to indicate
that it should handle incoming replies.
This is however done in the code after the intent have been sent
and in some cases the reply for the intent is returned
before the state has been update = no handling of the reply.
This only happens on the second connect with a paired device and
only when the user have selected the "do not ask again" checkmark
in the popup requesting access.

FIX:
Move the update of isWaitingAuthorization to before sending the intent to settings

bug: 11179645
Change-Id: I25b019e32a01caa8509c8f97195712120823afa9
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
9b2fbb84ec3d673e337d9bf2927056077739e2f0 10-Oct-2013 Edward Jee <edjee@google.com> am c5253c9d: am c3cbf72f: Allows another GMS core app to handle ACTION_PAIRING_REQUEST .

* commit 'c5253c9d5c66330ea3de51b7232eecb13738f151':
Allows another GMS core app to handle ACTION_PAIRING_REQUEST .
c3cbf72f596c2af659905e06e85a5ac1241610a8 05-Oct-2013 Edward Jee <edjee@google.com> Allows another GMS core app to handle ACTION_PAIRING_REQUEST .

Now we use sendOrderedBroadcast for ACTION_PAIRING_REQUEST , and to
receive this intent, BLUETOOTH_PRIVILEGED is required.

Bug: 11087521
Change-Id: I6aa2fbc6538df39b24f141e7d75adc3658a7e7ac
ndroid/bluetooth/btservice/RemoteDevices.java
fd0c296a9f6bf6a85acb8597ef480ce21154d40f 10-Oct-2013 Zhihai Xu <zhihaixu@google.com> am 2d4b7b73: am c14e9468: Merge "Remove MMS support from MAP profile" into klp-dev

* commit '2d4b7b7362036e7f864b1d9eeb39d671359e9f7b':
Remove MMS support from MAP profile
c3ec58fcc54cb33635f4dee746ee22cb8b0e3210 10-Oct-2013 Zhihai Xu <zhihaixu@google.com> Remove MMS support from MAP profile

reject to push MMS message, will support it in the future
bug 10296324

Change-Id: Idf2aa081b049e323422223d7b24f6404de2d7184
ndroid/bluetooth/map/BluetoothMapContentObserver.java
fbfd55a85870939523665dfd7c24844d3e3c4715 07-Oct-2013 Jean-Michel Trivi <jmtrivi@google.com> am d2b8377f: am ce827197: Merge "Update AVRCP implementation of IRemoteControlDisplay" into klp-dev

* commit 'd2b8377f82a65c76606acbd10802648a378bf673':
Update AVRCP implementation of IRemoteControlDisplay
5a0368956f3314a891766ea005b55329ab6db8fc 04-Oct-2013 Jean-Michel Trivi <jmtrivi@google.com> Update AVRCP implementation of IRemoteControlDisplay

Add implementation of new method in IRemoteControlDisplay.

Bug 8209392

Change-Id: Ic700be5476cb2f70b6a26098cbed3e8e130b3573
ndroid/bluetooth/a2dp/Avrcp.java
58eadb614abc047a20a1c2e3a0e043a19e4e2f14 01-Oct-2013 Matthew Xie <mattx@google.com> am cbfd9612: Merge "Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED" into klp-dev

* commit 'cbfd961209f35c5183a9dc7ee5d34954e6e32d6e':
Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED
6763446bce0c0185175dc2526820fb5d6ac5dad1 01-Oct-2013 Zhihai Xu <zhihaixu@google.com> am db72c920: Merge "Unable to receive Text Message to CAR Kit(nuvi3580LM)" into klp-dev

* commit 'db72c9202b6309104b231d166c51c1f7ceca3efa':
Unable to receive Text Message to CAR Kit(nuvi3580LM)
cbfd961209f35c5183a9dc7ee5d34954e6e32d6e 30-Sep-2013 Matthew Xie <mattx@google.com> Merge "Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED" into klp-dev
8dbf324f8e96fe1623467a72f11412d93564df2b 24-Sep-2013 Matthew Xie <mattx@google.com> Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED

bug 9987787

Change-Id: I2fe88f4c284d8403d79e08194bf7a720b305d029
ndroid/bluetooth/btservice/AdapterService.java
01ba103be055c3124d2dabc31d8e65dc7742be49 27-Sep-2013 Matthew Xie <mattx@android.com> am 8cce6da9: Merge "AtPhonebook handleCpbsCommand was incorrectly sending two responses to some requests (one inside the swtich statement, then repeating it after breaking out of the switch statement). This broke phonebook sync with Audi 2G MMI car kit. Signed-off-by:

* commit '8cce6da9099e72000182d1406e7238b8f697ef13':
AtPhonebook handleCpbsCommand was incorrectly sending two responses to some requests (one inside the swtich statement, then repeating it after breaking out of the switch statement). This broke phonebook sync with Audi 2G MMI car kit. Signed-off-by: Nigel Hannam <nigel@hannam.eu>
db72c9202b6309104b231d166c51c1f7ceca3efa 27-Sep-2013 Zhihai Xu <zhihaixu@google.com> Merge "Unable to receive Text Message to CAR Kit(nuvi3580LM)" into klp-dev
8cce6da9099e72000182d1406e7238b8f697ef13 27-Sep-2013 Matthew Xie <mattx@android.com> Merge "AtPhonebook handleCpbsCommand was incorrectly sending two responses to some requests (one inside the swtich statement, then repeating it after breaking out of the switch statement). This broke phonebook sync with Audi 2G MMI car kit. Signed-off-by: Nigel Hannam <nigel@hannam.eu>"
70bfe3280ce158c39dbb25fe18386f0d10b490d3 24-Sep-2013 Zhihai Xu <zhihaixu@google.com> Unable to receive Text Message to CAR Kit(nuvi3580LM)

The problem is when we receive the SetNotificationRegistration,
the MNS thread is not ready yet.so the notification is not enabled.
so we won't send new message notification to Carkit.

bug:10898884

Change-Id: Ibaa4a92694bcbb1ea2fb4e8a3de0ff30acdafeb1
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
abf19e783556a93cfdd33468454a309ed347bfc4 25-Sep-2013 Zhihai Xu <zhihaixu@google.com> bluetooth crash caused by read phone book with invalid colummn number -1

bug:10919257
Change-Id: I584d5c5c65e26cacfab227742b98c49282710f68
ndroid/bluetooth/hfp/AtPhonebook.java
107aa9c1c7928ff499a7147699b86920262e1562 20-Sep-2013 Zhihai Xu <zhihaixu@google.com> Merge "resource leakage in bluetooth MAP when empty message in phone." into klp-dev
09b09c15dcd853d452b24d46a3c81ca63fa090ea 20-Sep-2013 Matthew Xie <mattx@google.com> Check null condition of number before contact query

bug 10571304

Change-Id: Idb23e7085dc1dc7119e0e2aa8901743707e72285
ndroid/bluetooth/hfp/AtPhonebook.java
fac695e2dc25510b12684217d066b86dbbbba176 20-Sep-2013 Zhihai Xu <zhihaixu@google.com> resource leakage in bluetooth MAP when empty message in phone.

bug:10844044
Change-Id: I60c1b0206d7ba4653d149bee2f9f0dd6da6a5afb
ndroid/bluetooth/map/BluetoothMapContentObserver.java
2e90040ffc6f1c4cd5187338c9f708df4d380aee 12-Sep-2013 Matthew Xie <mattx@google.com> Change Volume step scale. Use setStreamVolume instead of avrcpUpdateVolume

bug 10681804

Change-Id: I553dac18d48c86bdb8b11428f56956f04ea87f27
ndroid/bluetooth/a2dp/Avrcp.java
b42ddd9abf40e1f3e3c5a33fa67dea898adcb219 14-Sep-2013 Ying Wang <wangying@google.com> Fix build.

Change-Id: I02a9d4dfa84c5778a1136d39b7bb14a2e523a9ca
ndroid/bluetooth/map/BluetoothMapContent.java
ndroid/bluetooth/map/BluetoothMapbMessageMmsEmail.java
70be005a18a35ec5fcb46152f0dfbe82156efa3a 22-Aug-2013 Kim Schulz <k.schulz@samsung.com> Fixes to the google review comments + spec 1.1

- updated code to comply with MAP spec 1.1
- removed activity + strings.xml
- removed unused notification code
- fixed TODOs
- added more string validation and case insensitivity
- fixed internal+google review comments
- Added dump of incoming bMessages to /sdcard/bluetooth/log when verbose debug in enabled. Only the latest received message will be stored
- Fix functions msgListingSize and msgListingHasUnread to also consider mms filter message type
- Fix wrong tag length define for notification status parameter
- Re-added shutdown code to interupt the MNS
- removed map activity
- Added initial bluetooth map unit tests
- Fix map event report xml start tag to uppercase 'MAP'
- added support for using ProfileService class
- changed the way the Broadcast Receiver was implemented
- Fixed minor bugs found during Automotive Test Event
- FilterPeriod application parameters can be present, but with zero length
- For MMS the end-boundary were added too early
- The FOLDER entry in bMessage can be empty for a message push
- Wrong error value returned for a set status operation with a wrong handle
- In getMessage() exclude all binary content and smil.xml if the appParam attachment is set to "no".
- Set correct content id and content location for mms. Fix mms mime parser bug.
- moved disconnect to Handler thread
- fixed multipart-message split bug.
- added a few Unit tests for multi-part messages
- MMS parser optimized
- fixed exception in MNS obex Client
- fixed problem with Native PDUs not getting correct timestamp
- corrected mixup in ordinator/recipient for MMS

Change-Id: I3875762822a7f8ce0132065e0da5d0257e3850a1
Bug:10692365
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/map/BluetoothMapActivity.java
ndroid/bluetooth/map/BluetoothMapAppParams.java
ndroid/bluetooth/map/BluetoothMapAuthenticator.java
ndroid/bluetooth/map/BluetoothMapContent.java
ndroid/bluetooth/map/BluetoothMapContentObserver.java
ndroid/bluetooth/map/BluetoothMapMessageListing.java
ndroid/bluetooth/map/BluetoothMapMessageListingElement.java
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapReceiver.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMapSmsPdu.java
ndroid/bluetooth/map/BluetoothMapbMessage.java
ndroid/bluetooth/map/BluetoothMapbMessageMmsEmail.java
ndroid/bluetooth/map/BluetoothMapbMessageSms.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
cd34ad74f093c4867e616ba247fe3853b06afebc 16-Aug-2013 John Du <johnldu@google.com> Stop scan when client binder dies

bug 10213756
Change-Id: I01b397070f729df7c6000c2dc2613efbe8801681
(cherry picked from commit 45ba247afa1cb3c61a871b0c13f6546411afe68b)
ndroid/bluetooth/gatt/GattService.java
ff833ce646e50c3593a313cd6a0be53577e41112 10-Apr-2013 Thomas Lehaux <thomasx.lehaux@intel.com> Add null pointer check in A2DPService

A call to the stop() function in A2DPService.java
could cause a NullPointerException in certain events.
This patch adds a null pointer check before a
function call to avoid this issue.

Change-Id: I39b521592d9cc5b910c5ce232d0d8d03389a0391
Orig-Change-Id: I77ee8129c3d81230afc5b59b4cc29e690cbe547a
Author: Thomas Lehaux <thomasx.lehaux@intel.com>
Reviewed-on: http://android.intel.com:8080/102211
Reviewed-by: Poignet, Cedric <cedric.poignet@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Bondier, CedricX <cedricx.bondier@intel.com>
Reviewed-by: Boniface, XavierX <xavierx.boniface@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 85837
ndroid/bluetooth/a2dp/A2dpService.java
cdc8ec8d84c7f16b851238da0d80b51335c4ea07 16-Aug-2013 Edward Jee <edjee@google.com> Enables AT+ANDROID command in Bluetooth HFP.

Adds another vendor-specific command AT+ANDROID in Bluetooth Hands-Free
Profile. And creates an API function that sends an unsolicited result
code +ANDROID .

Bug: 8736189
Change-Id: I7e5bba8a568f596565a1531948061e4d2fe456e0
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
17675906064bb72fdcca75baa56cdf8bb8968d01 19-Jul-2013 John Du <johnldu@google.com> Adding support for Absolute Volume

Change-Id: Ie2ccaad7aaf56a89fe44b168026df3d84b373c06

Conflicts:
jni/com_android_bluetooth_avrcp.cpp
src/com/android/bluetooth/a2dp/Avrcp.java
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
ace834feb02adabd61f628c4471147aea02d939c 28-Jun-2013 John Du <johnldu@google.com> Add support for ff/rew

Change-Id: I7ec60d94313b9ba5e4e8e62c82f19ae332b6fdd3
(cherry picked from commit 55123eff985f4d15ec198569a5db895ea086447a)
ndroid/bluetooth/a2dp/Avrcp.java
8c85057a003441674807e2991092735011c72b26 14-Aug-2013 Matthew Xie <mattx@google.com> Merge "LE: Add peripheral role support (4/4)" into klp-dev
97d5a00d3d588f89b36be801461455a2ab625907 07-Aug-2013 Andre Eisenbach <andre@broadcom.com> LE: Add peripheral role support (4/4)

Initial stack support for the LE peripheral role.

Change-Id: I3600558fd777999bcd610fa3aaed259414702ea4
ndroid/bluetooth/gatt/GattService.java
59f7aee85186fa07fc29ea941cfdab99e7c87d91 14-Aug-2013 Matthew Xie <mattx@google.com> Merge "LE: Add instance ID to descriptors (4/4)" into klp-dev
7f9efa4413d64569cd8a25ef2262778505059d80 09-Jul-2013 Andre Eisenbach <andre@broadcom.com> LE: Add instance ID to descriptors (4/4)

If a remote devices offers multiple descriptors with the same UUID, the
instance ID is used to differentiate between them.

Change-Id: I176dcfe1dc582120173cf3bd2d4329d7d764e39a
ndroid/bluetooth/gatt/GattService.java
fd6603b8bf9ed72dcc8bd59aaef3209251b6e17c 19-Jul-2013 Matthew Xie <mattx@google.com> Bluetooth MAP profile - sms and mms support initial check-in

bug:10116530

Change-Id: If9ce878d71c1e1b12416014c433da03b3033e158
ndroid/bluetooth/map/BluetoothMapActivity.java
ndroid/bluetooth/map/BluetoothMapAppParams.java
ndroid/bluetooth/map/BluetoothMapAuthenticator.java
ndroid/bluetooth/map/BluetoothMapContent.java
ndroid/bluetooth/map/BluetoothMapContentObserver.java
ndroid/bluetooth/map/BluetoothMapFolderElement.java
ndroid/bluetooth/map/BluetoothMapMessageListing.java
ndroid/bluetooth/map/BluetoothMapMessageListingElement.java
ndroid/bluetooth/map/BluetoothMapObexServer.java
ndroid/bluetooth/map/BluetoothMapReceiver.java
ndroid/bluetooth/map/BluetoothMapRfcommTransport.java
ndroid/bluetooth/map/BluetoothMapService.java
ndroid/bluetooth/map/BluetoothMapSmsPdu.java
ndroid/bluetooth/map/BluetoothMapUtils.java
ndroid/bluetooth/map/BluetoothMapbMessage.java
ndroid/bluetooth/map/BluetoothMapbMessageMmsEmail.java
ndroid/bluetooth/map/BluetoothMapbMessageSms.java
ndroid/bluetooth/map/BluetoothMnsObexClient.java
ndroid/bluetooth/map/BluetoothMnsRfcommTransport.java
bb1ac417208c8e283f9b5b49f4413856500ed0f9 05-Aug-2013 Dianne Hackborn <hackbod@google.com> Use explicit Intent for binding to service.

Change-Id: I51971a02532ad0ad8fafb0529e7adf83ed846cf4
ndroid/bluetooth/hfp/HeadsetStateMachine.java
c0b728adc379712af2a4e2357d82b492745f5e58 31-Jul-2013 Matthew Xie <mattx@google.com> enable xml format to transfer/receive over bluetooth

Add proper MIME types for xml as text/xml.
bug 9170384

Change-Id: Idd23c4fe26e1d82b2ea1deb51acfeeb61c1634aa
ndroid/bluetooth/opp/Constants.java
138a7c288f5828f5d06ccd971262327a82967228 26-Jul-2013 Zhihai Xu <zhihaixu@google.com> Merge "Add debug menu to enable btsnoop"
9674eb043aeb1474aa23ddd0739e3b8f05432630 10-Jun-2013 Jay Shrauner <shrauner@google.com> Use new CallLog number presentation column

Switch to using new number presentation column in the CallLog table.

Bug:6948882
Change-Id: I5df2969465c19f2357dbbc3266315e020e30476e
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4efee167e0a1daf750f4a466db716213c1189bb2 12-Jun-2013 Zhihai Xu <zhihaixu@google.com> am 7dc55aab: Merge "ignore invlaid play position update from remote control client." into jb-mr2-dev

* commit '7dc55aab7b1e53f784ffc75d1e7e28c0ee42bb0c':
ignore invlaid play position update from remote control client.
9d80b509f715a3c3f2ebd0de373d427fc31a6e6c 11-Jun-2013 Zhihai Xu <zhihaixu@google.com> Add debug menu to enable btsnoop

bug: 8059358
Change-Id: I2947b2b77955238410e2620489c2e0407ad8ae7b
ndroid/bluetooth/btservice/AdapterService.java
7dc55aab7b1e53f784ffc75d1e7e28c0ee42bb0c 11-Jun-2013 Zhihai Xu <zhihaixu@google.com> Merge "ignore invlaid play position update from remote control client." into jb-mr2-dev
f56b7b37a156d9207074af80c156db5884bb8c08 08-Jun-2013 Zhihai Xu <zhihaixu@google.com> ignore invlaid play position update from remote control client.

differentiate between applications that use
the new RemoteControlClient APIs to pass a playback position but
don't have one yet, and applications that use the legacy API and
will never pass a position.

bug:9294855
Change-Id: I015b9ded72497464352a9fbb6a605cedfffad373
ndroid/bluetooth/a2dp/Avrcp.java
37d0dc03a85a8b4364b35c01561e4be9d21c3f54 31-May-2013 Matthew Xie <mattx@google.com> am 865b323b: Notify adapter state change from off to on when disable fails

* commit '865b323bb1d0aa9581a9b6a2f5ed96fc0ee70b23':
Notify adapter state change from off to on when disable fails
865b323bb1d0aa9581a9b6a2f5ed96fc0ee70b23 30-May-2013 Matthew Xie <mattx@google.com> Notify adapter state change from off to on when disable fails

So that the settings app would not stuck at turning-off state
User can retry turning off.
bug 9164641

Change-Id: I6ae6d80c97673b4e548b7b5ab47c51f968342060
ndroid/bluetooth/btservice/AdapterState.java
51954fe06c39291fcf67412a2ed81f017e4925d8 25-May-2013 Matthew Xie <mattx@google.com> am 3cedf3d5: Fix rssi handling as one of property change event

* commit '3cedf3d57aff20e1876a5b450f41b05e975cb8e0':
Fix rssi handling as one of property change event
3cedf3d57aff20e1876a5b450f41b05e975cb8e0 24-May-2013 Matthew Xie <mattx@google.com> Fix rssi handling as one of property change event

The rssi is encoded in one byte as int8_t in the stack.
JNI code copied in high byte without proper masking.
The converting is not needed. I am removing the uncessary converting.
bug 9110215

Change-Id: I50628b3a3c0bcf4a33775c6b62e9febd35bdc78d
ndroid/bluetooth/btservice/RemoteDevices.java
de221fc5989b5793bd83a67c28fa82a58d9d1825 22-May-2013 Zhihai Xu <zhihaixu@google.com> am 0eea1282: Bluetooth Share has stopped / Secondary user setup / NullPointerException

* commit '0eea1282dcb425c1ea9dc6aa08d323884a9a1655':
Bluetooth Share has stopped / Secondary user setup / NullPointerException
0eea1282dcb425c1ea9dc6aa08d323884a9a1655 22-May-2013 Zhihai Xu <zhihaixu@google.com> Bluetooth Share has stopped / Secondary user setup / NullPointerException

issue 9066070

Change-Id: Ie206eab374c6a8c255f1a6302249f81ac16fc333
ndroid/bluetooth/btservice/AdapterState.java
c6671c58220cabf78ece05112da9b33a36621c65 15-May-2013 YK Jeffrey Chao <jechao@broadcom.com> am ad9fff21: Preload timeout and retry mechanism (2/3)

* commit 'ad9fff218081d2f49471487d37387c764d69ed29':
Preload timeout and retry mechanism (2/3)
fd0cb64aeb1f806a041a5881dd2ba846b0aa6a93 02-May-2013 Ravi Nagarajan <nravi@broadcom.com> Fix for roam indicator not updating correctly

Use telephony manager PhoneStateListener to update the roam indicator
bug 8781689

Change-Id: I7c06f162918a10d06d77fb302e99bd2db8b02874
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ad9fff218081d2f49471487d37387c764d69ed29 24-Apr-2013 YK Jeffrey Chao <jechao@broadcom.com> Preload timeout and retry mechanism (2/3)

If the Preload process was stuck due to unknown hardware init failure,
a 8-second ENABLE_TIMEOUT timeout would be eventually expired in Java layer
at AdapterState and attempted to set BT state back to STATE_OFF.
However BluetoothManagerService did not handle this case accordingly and led
to state mis-matching between Java layer and BTIF at the end.

Add the processing logic in AdapterState to handle the case when an explicit
STATE_OFF notification from BTIF was received in the TurningOn Pending state.

bug 7566317

Change-Id: I29c379cd453d05297ed382a5e8f862fa7d0f8881
ndroid/bluetooth/btservice/AdapterState.java
bad4995703f97fab3c7c84b297a8ca6df65191fa 04-May-2013 Zhihai Xu <zhihaixu@google.com> avoid null pointer in handlePanDeviceStateChange of PanService

see the following null pointer exception
04-30 15:15:21.689 10890 10890 E AndroidRuntime: Caused by: java.lang.NullPointerException
04-30 15:15:21.689 10890 10890 E AndroidRuntime: at com.android.bluetooth.pan.PanService.handlePanDeviceStateChange(PanService.java:457)
which cause crash when disable BT
If the stop is called before the cleanup in PanService, Nullpointer may happen.

issue 8769031

Change-Id: Ia3fb1625c945c508771a697234e6ee18a120d72b
ndroid/bluetooth/pan/PanService.java
009989730a294575c32295976c57af169523abe4 26-Apr-2013 Zhihai Xu <zhihaixu@google.com> Merge "Null pointer exception in SocketAcceptThread of BluetoothPbapService." into jb-mr2-dev
7b91a410d595b879548e540889f8b30a0d6476c4 23-Apr-2013 Zhihai Xu <zhihaixu@google.com> Null pointer exception in SocketAcceptThread of BluetoothPbapService.

issue 7650255

Change-Id: Ied5c4ba2b34ffef9edaaa1ad7d8b4a9a0e73ef90
ndroid/bluetooth/pbap/BluetoothPbapService.java
0592109a75ca9e4e65489c04d6c5994cd7db45b2 25-Apr-2013 Matthew Xie <mattx@google.com> Merge "Enforcing bluetooth permissions for GATT api calls" into jb-mr2-dev
9e4a62e487bda885848771e4fa87717465bf75d2 25-Apr-2013 Matthew Xie <mattx@google.com> Enforcing bluetooth permissions for GATT api calls

bug 8667898

Change-Id: I2100d402f6496271bf97fed03684bedd8d231da4
ndroid/bluetooth/gatt/GattService.java
8629665794ef845e945595040e4cf1ea2fa508d3 05-Apr-2013 Priti Aghera <paghera@broadcom.com> HDP Single SDP fix

Modified the stack logic to create single
SDP record for all register call.
bug 8656462
Change-Id: If06193aecbe7555e6b1402275ee243fcd672c812
ndroid/bluetooth/hdp/HealthService.java
db367aa803836ca5b80da6b07ea2ef8a4b0ca1d2 23-Apr-2013 Zhihai Xu <zhihaixu@google.com> enable playback position sync for AVRCP remoteControlDisplay in audio manager

issue 8698103

Change-Id: I3572b519c4181b21629c812ba91e46d977ec33fe
ndroid/bluetooth/a2dp/Avrcp.java
f60d96d6bf4c3dce367ce48436f383897c7f9719 15-Apr-2013 Priti Aghera <paghera@broadcom.com> Fixed a NPE

Bluetooth share was crashing due to NPE. Included a check for
Inputstream in BluetoothOppSendFileInfo.

bug #7924487
Change-Id: Iccceb607a46962f84538e912d62f407ad5ee2f21
ndroid/bluetooth/opp/BluetoothOppUtility.java
dbaf9cd41555de7e6101f368ac348bbeb2094809 10-Apr-2013 Andre Eisenbach <andre@broadcom.com> LE (3/3): Add application ID to connection callback

Bug: 8589393
Change-Id: Iff14aa568bac4d62920bc35ec1545384e200b53a
ndroid/bluetooth/gatt/GattService.java
79d176b0f3d6cb33c7e52be6641fd4808ba87e93 12-Apr-2013 Zhihai Xu <zhihaixu@google.com> Resolve AVRCP IOP issues

This patch has the following fixes
1. Track number should be 0xFFFFFFFF when no track is currently selected
2. When no track is currently selected set play state as stopped
3. Track number sent in the correct byte order

issue 8586495

Change-Id: I2be583d1e87a39015dff605c7442ca658a10b2e2
ndroid/bluetooth/a2dp/Avrcp.java
aa1ffd5c6bd4f016c6ed452b3551e65872eaea8e 04-Apr-2013 Zhihai Xu <zhihaixu@google.com> support playback position changed notification

issue 8494369

Change-Id: Id468d34badac4c963d4e6df0e7e32bbd0c508938
ndroid/bluetooth/a2dp/Avrcp.java
6af1f25031e4378efb1a4fc286974c1038a357ba 05-Apr-2013 Andre Eisenbach <andre@broadcom.com> Add binder DeathRecipient to GATT service

Bluetooth stack connections are now released if a GATT client or server
application closes unexpectedly.

Bug: 8362526
Change-Id: I13b0711f65dcc752f4ed5c5a6e469b6fea41de75
ndroid/bluetooth/gatt/ContextMap.java
ndroid/bluetooth/gatt/GattService.java
4bcc3acd9b6024ac53c5de7af08ce56079f20e86 04-Apr-2013 Matthew Xie <mattx@google.com> Merge "Implement getRemoteType of IBluetooth.aidl" into jb-mr2-dev
0c61ad1d60fdf9738f9171acaa43f63a9a70d147 03-Apr-2013 Jean-Michel Trivi <jmtrivi@google.com> Merge "Update IRemoteControlDisplay implementation to latest interface" into jb-mr2-dev
d235269f06e99d76a0f63c8fe9e224e0f951f799 03-Apr-2013 Matthew Xie <mattx@google.com> Implement getRemoteType of IBluetooth.aidl

Bring the device type from hal to app api
bug 8529188

Change-Id: Id4a9837afc7234cb50ab6abf73da4bdc010db392
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
bc10e7d58aa55da25c18d8056a0254a2b736146a 02-Apr-2013 Zhihai Xu <zhihaixu@google.com> keep one setPlaybackState function

Change-Id: I4b6f4f17dadd542e890876a8b2fbf3c31badc003
ndroid/bluetooth/a2dp/Avrcp.java
93627064c68acfaef2da5deb2c9c9e73c7aa13af 01-Apr-2013 Jean-Michel Trivi <jmtrivi@google.com> Update IRemoteControlDisplay implementation to latest interface

Changed method setTransportControlFlags(int, int)
to method setTransportControlInfo(int, int, int)

Bug 8120740

Change-Id: I35833384102949eb2a20b0f61e13d9d8573adf3e
ndroid/bluetooth/a2dp/Avrcp.java
6d5b7febd705a33ab41459743d12623afcbf96bd 30-Mar-2013 Zhihai Xu <zhihaixu@google.com> fix compilation error for broadcom branch

Change-Id: I0ed2f039babccf59099c0c7cf0e3ad12392ecff4
ndroid/bluetooth/a2dp/Avrcp.java
c6a2fb9e324208a48173877c70b13f2f1b01286e 30-Mar-2013 Zhihai Xu <zhihaixu@google.com> Revert "Revert "fix the compilation error in broadcom partner branch""

This reverts commit 0e8131db9994d36b7cf9b61bfccb5fb374e09a19

Change-Id: Id91d545d2884022ba8f021cb22d710f4ed421464
ndroid/bluetooth/a2dp/Avrcp.java
0e8131db9994d36b7cf9b61bfccb5fb374e09a19 30-Mar-2013 Zhihai Xu <zhihaixu@google.com> Revert "fix the compilation error in broadcom partner branch"

This reverts commit 9c55356d9405187302a50aa2f9de8b29976645e5

Change-Id: Ife672e4b012a7745abf9d8ba9701fc46a0008539
ndroid/bluetooth/a2dp/Avrcp.java
9c55356d9405187302a50aa2f9de8b29976645e5 30-Mar-2013 Zhihai Xu <zhihaixu@google.com> fix the compilation error in broadcom partner branch

Change-Id: I563742d29570095060c874b1b992cd1c3859dc58
ndroid/bluetooth/a2dp/Avrcp.java
252c3fd10c9da267c6c2c7772025b92bf1ec74e9 29-Mar-2013 Jean-Michel Trivi <jmtrivi@google.com> Merge "Update RemoteControlDisplay interface for playback position" into jb-mr2-dev
b57062726d787db9c40636a9b506870007676d7f 11-Mar-2013 Robert Greenwalt <rgreenwalt@google.com> Don't try using netd anymore.

Instead, form a connection with the NetworkStateTracker so
ConnectivityService can treat this like the other networks.

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
ndroid/bluetooth/pan/PanService.java
eb8907e19ad3fa8208d7a65c8aae1bf758838705 22-Mar-2013 Jean-Michel Trivi <jmtrivi@google.com> Update RemoteControlDisplay interface for playback position

Update Avrcp class to latest IRemoteControlDisplay interface
that receives playback progress and playback speed.

bug 8120740

Change-Id: I7b30c5a312ab90ee8b1f45ad900efc7c941e133a
ndroid/bluetooth/a2dp/Avrcp.java
de06cdccc4629cdfb12c16de226b3297377912e4 21-Mar-2013 Zhihai Xu <zhihaixu@google.com> Merge "framework support for new Bluetooth profiles AVRCP 1.3:Metadata and play status" into jb-mr2-dev
c1c259c0ace7195240f1443c805995bfe8692a72 14-Mar-2013 Zhihai Xu <zhihaixu@google.com> framework support for new Bluetooth profiles AVRCP 1.3:Metadata and play status

send track changed response if the metadata is changed.

issue 8383522

Change-Id: Ie55ed368d355484a6b83f4aa24c70aa33b72f799
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/Avrcp.java
5d5746124a5fd14a13ca7fd085aae6ec600d0ca7 30-Nov-2012 Sungmin Choi <sungmin.choi@lge.com> enable xlsx, docx, pptx format to transfer/receive over bluetooth

Add proper MIME types for xlsx, docx, pptx.

Bug: 7479989
Change-Id: I77b065f7856fa399c5084ffa96deace0e3f15487
ndroid/bluetooth/opp/Constants.java
d1e5ee9cd1c68ad8eeca61700fe56638d7f3edd4 07-Mar-2013 Nigel Hannam <nigel@hannam.eu> AtPhonebook handleCpbsCommand was incorrectly sending two responses
to some requests (one inside the swtich statement, then repeating it
after breaking out of the switch statement).
This broke phonebook sync with Audi 2G MMI car kit.
Signed-off-by: Nigel Hannam <nigel@hannam.eu>

Change-Id: I65e54400aad2413725469951899d041870691369
ndroid/bluetooth/hfp/AtPhonebook.java
03b8386de26ba6500af2d66687bff9b01f2cbbd7 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

Change-Id: I9579b3074bc4bc59dd45f71c0937e8879196555e
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/gatt/ContextMap.java
ndroid/bluetooth/gatt/GattDebugUtils.java
ndroid/bluetooth/gatt/GattService.java
ndroid/bluetooth/gatt/GattServiceConfig.java
ndroid/bluetooth/gatt/HandleMap.java
ndroid/bluetooth/gatt/ScanClient.java
ndroid/bluetooth/gatt/SearchQueue.java
ndroid/bluetooth/gatt/ServiceDeclaration.java
8eb70f8bdf4e8c970810b3400aba8d08d14ce222 21-Feb-2013 Martijn Coenen <maco@google.com> Add OBEX object count support to Bluetooth.

To support Android Beam receiving information about
the number of files in a OPP transfer, add the Count
OBEX header. Also add a new intent to tell the handover
requested that a transfer has started, including the
count (if any).

Change-Id: Ib5e0e8dbc6c2e3259e0f732a507557c3688e168c
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppObexSession.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/Constants.java
34e323baafb5563c3874f95847ec544faf6923f8 14-Feb-2013 Matthew Xie <mattx@google.com> Turn on some debug message in Adapter service

We had turned off too much debug messages. It is getting hard to
make out useful information from bugreports. Now, selectively turn
on some messages.

Change-Id: Ia62bc9d5967a10690709abaa0e20a15dd01c258d
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterState.java
f206526c98d3c1038dbb5c575d47711e433f5fdf 14-Feb-2013 Matthew Xie <mattx@google.com> Merge "turn off getState debug message, not so useful now"
6efae4264e5b216b37e8da5ced41a7898e18ca3a 14-Feb-2013 Matthew Xie <mattx@google.com> turn off getState debug message, not so useful now

Change-Id: I258cb35f3166ac8a6a4c4ee7965db527cf17c2e2
ndroid/bluetooth/btservice/AdapterService.java
522d3b2b0a69c0157ca87995d92bb712f6102c1a 28-Jan-2013 Wink Saville <wink@google.com> Add protected log methods to StateMachine

This allow child classes to Override the logging and
have consistent behavior across StateMachines.

Change-Id: I7e23a44d08ca304ade2d7830fd0e307f63f1879e
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
61fa4903058a68538948d624271be96810defab4 15-Jan-2013 Matthew Xie <mattx@google.com> Use getRadioTechnology call instead of getRilVoiceRadioTechnology

getRilVoiceRadioTechnology had obsoleted getRadioTechnology
We are using the obsolete method to get bluetooth master compile
with aosp build for Broadcom branch.

Change-Id: Ica4258f99be82a2b0e04f74eac0bc5ee95f0a914
ndroid/bluetooth/hfp/HeadsetPhoneState.java
3cba4c44cb1f249d78c43d6e40e508cd0505b95b 11-Jan-2013 Adam Powell <adamp@android.com> am 43f8ccf6: am 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"

* commit '43f8ccf63a02b28be395fd223461f1421ea2aa99':
Upgrade the app to better follow holo guidelines
43f8ccf63a02b28be395fd223461f1421ea2aa99 09-Jan-2013 Adam Powell <adamp@android.com> am 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"

* commit '6eb3b8d3b7ffc1d80ae7734042e2c4d36a77a19f':
Upgrade the app to better follow holo guidelines
d9bd906c02fd27e51e637ee661e424951ff27f39 20-Dec-2012 Zhihai Xu <zhihaixu@google.com> Merge "Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity"
04ebe44a6a6e2da1dfd7a9cacf326667fbb32cd7 03-Dec-2012 Matthew Xie <mattx@google.com> am 67b17615: am fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev

* commit '67b1761534d7e2518830cfb3d2c28271ffe56a26':
Clean up debug messages
67b1761534d7e2518830cfb3d2c28271ffe56a26 03-Dec-2012 Matthew Xie <mattx@google.com> am fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev

* commit 'fa5a6affffb0efe6c41ea44499b0e9b619bee161':
Clean up debug messages
fa5a6affffb0efe6c41ea44499b0e9b619bee161 03-Dec-2012 Matthew Xie <mattx@google.com> Merge "Clean up debug messages" into jb-mr1.1-dev
a64467b1203269cb620e4ea9b3cb7ba0b1aaa3de 01-Dec-2012 Zhihai Xu <zhihaixu@google.com> am 3d34fdb1: am 28cc9881: need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

* commit '3d34fdb17090e476a5ccd6d7bb57d61d9f528eff':
need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)
3d34fdb17090e476a5ccd6d7bb57d61d9f528eff 01-Dec-2012 Zhihai Xu <zhihaixu@google.com> am 28cc9881: need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

* commit '28cc9881bb7fb2e5e410006f4f303c494b97665e':
need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)
28cc9881bb7fb2e5e410006f4f303c494b97665e 01-Dec-2012 Zhihai Xu <zhihaixu@google.com> need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

bug 7564004

Change-Id: I5fc1eed1c0db194c3fdd63799b2340eea994988d
ndroid/bluetooth/hfp/HeadsetStateMachine.java
0f4ef70f0bc246b224f7b6da524128db89fcc8a7 30-Nov-2012 Matthew Xie <mattx@google.com> Clean up debug messages

bug 7626174

Change-Id: I0161d54dd325a7a1afcf8926ef54cd483e7503fb
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/BluetoothOppService.java
616ea6f6dee795f76b331b05ea8f20ecbd0518c4 28-Nov-2012 Zhihai Xu <zhihaixu@google.com> am 78622268: am e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev

* commit '786222689749046824ba206ab32f8ac9794c998b':
Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing
786222689749046824ba206ab32f8ac9794c998b 27-Nov-2012 Zhihai Xu <zhihaixu@google.com> am e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev

* commit 'e203945454e23b2fd31ad278f7d374e1e1ccf2db':
Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing
e203945454e23b2fd31ad278f7d374e1e1ccf2db 27-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev
dd66c701616d77e5bf7f5fd795999f59e5fe28bd 18-Nov-2012 Zhihai Xu <zhihaixu@google.com> Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing

add +XEVENT vendor specific command handler in processUnknownAt

bug 7564004

Change-Id: I78847553700b2da28dbf9ca8f9d0509f5f3fa924
ndroid/bluetooth/hfp/HeadsetStateMachine.java
cae4f76797a8d32657eaa0fdc4294cc0ba944c9c 16-Nov-2012 Wink Saville <wink@google.com> Rename get radio technology

Change-Id: I83f2b0eda8c6ccdff1b7253164e2531ca1357e72
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ad4d840680e407633f4492633885a8149139fdd2 16-Nov-2012 Wink Saville <wink@google.com> Merge "Revert "Rename get radio technology""
c63208de4e1ce7cf4866bd85ad2a327b9da3a340 16-Nov-2012 Wink Saville <wink@google.com> Revert "Rename get radio technology"

This reverts commit d38211fe71e9e738290c6b84ef70188b8ac55071

Change-Id: I8e8cda5ce923ccec6827e9b5609d82c765b15ae2
ndroid/bluetooth/hfp/HeadsetPhoneState.java
a614049ef4be9ba05228ae7c6bc4953299b7892f 15-Nov-2012 Wink Saville <wink@google.com> Merge "Rename get radio technology"
d9d397854afd6511e2987ea7ae3ec8528183aefa 19-Sep-2012 blunden <blunden2@gmail.com> Upgrade the app to better follow holo guidelines

- Fix the icon scaling in the transfer list
The icon is centered and upscaled instead of just centered.

- Remove dialog info icon according to UI team recommendation

- Replace icons with holo versions and add xhdpi

Change-Id: Id3b06e8e06244ec8859d65404d779b66c1354e3d
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
a6853edb4504e95dcd07e0ffc306ef07dc759b56 13-Nov-2012 Zhihai Xu <zhihaixu@google.com> am 4daa2db1: Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev

* commit '4daa2db107f17fa8e8dfe35003924c69566bccb6':
need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
4daa2db107f17fa8e8dfe35003924c69566bccb6 13-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev
31be0d2814d1d3c640160aeafba17feafbaa8bb6 13-Nov-2012 Zhihai Xu <zhihaixu@google.com> need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users

We need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
because bluetooth manager service use this intent to change name.
Bluetooth manager service is always running as User 0. but it is always binding
to bluetooth service running at foreground user, So the bluetooth service
need send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED broadcast intent
to all users to let bluetooth manager service to receive it at any cases.

bug 7476965

Change-Id: I816786d0828d4a7d414077b1ccbe12d2e273fc75
ndroid/bluetooth/btservice/AdapterProperties.java
e3e1e8d1fe2a75b38ee1dfe5a102685877a22f84 29-Sep-2012 Fred <fredc@broadcom.com> Fixed potention ANR issue with Bluetooth OPP share.

Updated BluetoothOppLauncherActivity so the call to
BluetoothOppManager.saveSendingFileInfo() runs on a child thread.
saveSendingFileInfo() opens/constructs the content stream, which
can take a long time, depending on the type of content.
It should not run inside the main UI thread of the
BluetoothOppLauncherActivity.

Bug 6802063

Change-Id: Id34b33fe37eb029d6a7592a811bbc9bbcde14ba8
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
cb7b1a54ae3ce309210824099253a916a04d350b 29-Sep-2012 Fred <fredc@broadcom.com> Fixed potention ANR issue with Bluetooth OPP share.

Updated BluetoothOppLauncherActivity so the call to
BluetoothOppManager.saveSendingFileInfo() runs on a child thread.
saveSendingFileInfo() opens/constructs the content stream, which
can take a long time, depending on the type of content.
It should not run inside the main UI thread of the
BluetoothOppLauncherActivity.

Bug 6802063

Change-Id: Id34b33fe37eb029d6a7592a811bbc9bbcde14ba8
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
d38211fe71e9e738290c6b84ef70188b8ac55071 02-Nov-2012 Wink Saville <wink@google.com> Rename get radio technology

Change-Id: I267f54c5533f815d14c8f7a2f81545c8e08b773c
ndroid/bluetooth/hfp/HeadsetPhoneState.java
8b709b4caac6e0cdb35a117fa3a523d0200a203f 24-Oct-2012 Zhihai Xu <zhihaixu@google.com> am ede67c26: License of files Bluetooth package is not updated to ASL2

* commit 'ede67c26e7b2564ea35db6d9b3027a269c150e13':
License of files Bluetooth package is not updated to ASL2
ede67c26e7b2564ea35db6d9b3027a269c150e13 24-Oct-2012 Zhihai Xu <zhihaixu@google.com> License of files Bluetooth package is not updated to ASL2

bug 7385618

Change-Id: I338fd87083387706f3b5f410c9592219bb8a1acb
ndroid/bluetooth/Utils.java
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetHalConstants.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/pan/PanService.java
b1f690e19d77b67630004517c5342f89b578f204 17-Oct-2012 Zhihai Xu <zhihaixu@google.com> am bd704c74: BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can\'t receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from bluetooth service

* commit 'bd704c741b8c523ad747214f6f0520ac3e2caf8f':
BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can't receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from bluetooth service when We switch to second user. Also the system UI also is running as uid 10055, which will also call function isEnabled, getState, getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service. I allow these functions to be called by all the users. I forget remove check for getBondState in my first patch set
bd704c741b8c523ad747214f6f0520ac3e2caf8f 17-Oct-2012 Zhihai Xu <zhihaixu@google.com> BT connection notification in not updated in status bar for second user
It is due to the system UI is always running as the first user. It can't receive
broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED
from bluetooth service when We switch to second user. Also the system UI also
is running as uid 10055, which will also call function isEnabled, getState,
getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service.
I allow these functions to be called by all the users.
I forget remove check for getBondState in my first patch set

bug 7333382

Change-Id: I57f39a722e78d6d2453ebfecaab043637fef4d9c
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/BondStateMachine.java
f128aa0298dcaf07cf0bec0717943dd1f97b1eb6 16-Oct-2012 Jake Hamby <jhamby@google.com> am a595fcc5: Fix crash in Bluetooth when sharing MMS video.

* commit 'a595fcc57e7f0be9cf57913cd665dc99e4001b16':
Fix crash in Bluetooth when sharing MMS video.
a595fcc57e7f0be9cf57913cd665dc99e4001b16 16-Oct-2012 Jake Hamby <jhamby@google.com> Fix crash in Bluetooth when sharing MMS video.

Some content providers, such as MMS, don't support the DISPLAY_NAME
or SIZE columns for content URIs. Fall back to using the last segment
of the URI as the filename for Bluetooth file transfers if the query
for DISPLAY_NAME fails.

Bug: 7343310
Change-Id: Ie048c5eea3ba9994259c9e07beabd72622d6b669
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
83f334c0f748a5ee8b68d85fd0133c73e5d6bf28 12-Oct-2012 Adam Powell <adamp@android.com> am d329befd: Merge "Bluetooth: Use proper holo alert drawable"

* commit 'd329befdd38a5c441e1a2b7e4595b7de86ac100b':
Bluetooth: Use proper holo alert drawable
3911cfeb7c5e2242dcce91e3b66d9449dec0bd05 11-Oct-2012 Zhihai Xu <zhihaixu@google.com> Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity

bug 5842045

Change-Id: I00a80fc7dc6c6031ab35113539ff6cdf4cf230a6
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppLiveFolder.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/Constants.java
fb8b279141dac5255926d2dd4317f803cd1bbcf0 11-Oct-2012 Matthew Xie <mattx@google.com> Fix NREC command format error

Add = sign before off
bug 7326510

Change-Id: Ief269f608646acaa2872679a5c649da3cf22de37
ndroid/bluetooth/hfp/HeadsetStateMachine.java
df9d0fe584874f8cafa6ecedb3c3c054c9e99cba 10-Oct-2012 Matthew Xie <mattx@google.com> Merge "Turn off dbg messages, be prepared for production build" into jb-mr1-dev
37510150ee738ccfa5913f7120e28f25ae7768df 09-Oct-2012 Zhihai Xu <zhihaixu@google.com> Bluetooth multi-user updates: change bluetooth service
to reject background user access.

bug 6925422

Change-Id: I11d5ebf007c2843a72a9870055fc96672daf8409
ndroid/bluetooth/Utils.java
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
fd1da115cbf09b7dd9bca3c7d3a4fb816a835dc5 08-Oct-2012 Matthew Xie <mattx@google.com> Turn off dbg messages, be prepared for production build

bug 7174712

Change-Id: I58747ec6507da8ea8ae27a182b601aaf626ede42
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
be38be94c0a2faf3802b596be5b3ab568d6d85a4 04-Oct-2012 zzy <zhenye@broadcom.com> remove the AT command separator from the CPBR range parameters

Root cause: Integer.parseInt(indices[0]) throw exception if char ';' at the end.

Bug 7274805
ndroid/bluetooth/hfp/AtPhonebook.java
6458cffaca286611e898c75ad86e2d98c89008b6 02-Oct-2012 Matthew Xie <mattx@google.com> Move socket initialization code out of pbap service's main thread

Socket initialization need the preparation from stack and a domain socket
connection. All this takes time and not proper to be run in the main thread.
bug 7258324

Change-Id: Ic46601602556c2949f18d446016188d874099874
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
c7ead6d5827f3832b9210e92fab7597142059852 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Move bluetooth priorities from Secure to Global.

Bug: 7231171
Change-Id: I39e3611dcec1104558704ed72855fef85f33c084
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hid/HidService.java
0e46362107a23fcfe829b270f3ff987d911cd102 26-Sep-2012 Matthew Xie <mattx@google.com> Add MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app

Enforce MODIFY_PHONE_STATE permission for some HeadsetService APIs that
only provided for Phone app for phone stat change notifications
bug 7115021

Change-Id: I62e3f429f4205feb50e123ee94b4c468999804a6
ndroid/bluetooth/hfp/HeadsetService.java
ebdb4d92c0ea0b5e40afe0feec71105695d27a4c 12-Sep-2012 zzy <zhenye@broadcom.com> When pbap cleanup, stopSelfResult called twice with same service id

This seemed like to be the root casue of bug 7136940. The thread 3564 stuck after following log:
09-10 11:24:08.882 3564 V BluetoothPbapService: Pbap Service closeService

bug 7136940
ndroid/bluetooth/pbap/BluetoothPbapService.java
826318bb9de042f10df8639da2965bf4d9d38e85 19-Sep-2012 John Huang <jsh@google.com> Merge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev
6893668d1ccf0cc6361ef31ace52fedc2e37e35a 15-Sep-2012 Wink Saville <wink@google.com> Add StateMachine make methods.

StateMachines must be started before any messages are sent to them
otherwise an exception is thrown.

Bug: 7091976
Change-Id: I05315d45d4d6db42843442b7feb37c665cfabcab
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ee52ddf33a0ce2cf89cc028136f60ae600c45de5 27-Jul-2012 Jake Hamby <jhamby@google.com> Enable Bluetooth sharing of downloaded files.

Change BT OPP to open the InputStreams of files to share in the
BluetoothOppLauncherActivity (or BluetoothOppHandoverReceiver
for NFC shares), while the process has grantUriPermission() on
the URI's to share.

InputStreams are saved inside the existing BluetoothOppSendFileInfo
objects, which no longer include the mDestination field because
this isn't known at the time the SendFileInfo object is now created
(before the user has chosen the destination BT device). These
objects are stored in a static ConcurrentHashMap in BluetoothOppUtility
and are removed when the file is closed (on success or failure).

If the user tries to share thousands of files in one batch, we may
not be able to open InputStreams for all of the files in the batch.
In this case, the open should fail gracefully.

Bug: 6808783
Change-Id: I3f3f86d2dc1a78a837aeb6a888f90b26434ba499
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppShareInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
f46f032adaec19a0d0c11b921fb356cbcd7aedbd 14-Sep-2012 Matthew Xie <mattx@google.com> Donot include photo in vard in pbap

Certain carkit abort pbap transfer if vcard includes photo
bug 7070862

Change-Id: Iacd7e20901a7450599e844d1fb34923108e81bdc
ndroid/bluetooth/pbap/BluetoothPbapConfig.java
1c03c84f90991f6c9c740d72d91716d4b6a933e4 11-Sep-2012 zzy <zhenye@broadcom.com> fixed bt on off stress test issue

root cause: cleanup stack process overlapped with bt turning
on process sometime. The cleanup() call in adapterservice.java
need to be call from onUnbind() to synchronize the
BluetoothSererviceManager unbindandFinish() call.
bug 7083069

Change-Id: Ib4c64d7e5fc996277278471969f187bb5e915a76
ndroid/bluetooth/btservice/AdapterService.java
09f5dca9925c75166688e1ab7aa5ce377277e395 16-Jun-2012 Björn Lundén <blunden2@gmail.com> Bluetooth: Use proper holo alert drawable

Make it use the holo drawables instead of the GB
compability drawable.

Change-Id: Ib85d89f0f3a6248d357a612afa8c0158a0876b86
ndroid/bluetooth/opp/BluetoothOppBtEnableActivity.java
ndroid/bluetooth/opp/BluetoothOppBtErrorActivity.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
37e1e995fdfd6aecd53f1fd1f8f0928021472db1 10-Sep-2012 Kausik Sinnaswamy <kausik@broadcom.com> Terminate PBAP service cleanly during BT off

PBAP service runs in a loop of 10 trials to create the RFCOMM listener
thread; this loop is not getting interrupted during BT off, due to which
we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to
check for BT state after RFCOMM listener failure and break out of the
loop if BT is being turned off.
bug 7134544

Change-Id: I81d2a559857eef9138ebca662ea28f1d3e358bb8
ndroid/bluetooth/pbap/BluetoothPbapService.java
8ca777c3299ebf8c5869d46ba80d3fa474814751 10-Sep-2012 Matthew Xie <mattx@google.com> Revert "Terminate PBAP service cleanly during BT off"

This reverts commit f5d88a7b8659bb9ce49edc4faea6bf56f2158572

Change-Id: I67a4950831dce7392d63edad6f693abcc69d2ffe
ndroid/bluetooth/pbap/BluetoothPbapService.java
f5d88a7b8659bb9ce49edc4faea6bf56f2158572 10-Sep-2012 Kausik Sinnaswamy <kausik@broadcom.com> Terminate PBAP service cleanly during BT off

PBAP service runs in a loop of 10 trials to create the RFCOMM listener
thread; this loop is not getting interrupted during BT off, due to which
we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to
check for BT state after RFCOMM listener failure and break out of the
loop if BT is being turned off.
bug 7134544

Change-Id: I35db2221be30980bec973253cdd888e0ce8cc36b
ndroid/bluetooth/pbap/BluetoothPbapService.java
9eb4a84924718019c35fc5b32e59a6750ecf4116 29-Aug-2012 Ravi Nagarajan <nravi@broadcom.com> Adjust profile priorities when setting auto-connect

At a given point only one device should be set to have
PRIORITY_AUTO_CONNECT per profile. When setting a device priority
adjust the other devices' priority to make sure auto-connect
is attempted with only one device
bug 7076087

Change-Id: I1e03945a06e7acc901b53f34429194b3c3e76cd7
ndroid/bluetooth/btservice/AdapterService.java
ce0b8381a621aa5dbac9d44932c5293d980df4c8 20-Aug-2012 Martijn Coenen <maco@google.com> Merge "Don't trust length specified by ContentProvider for file transfers." into jb-mr1-dev
a8e40f542287f047a8a2fda7f5ea2aea9607edfe 14-Aug-2012 Ravi Nagarajan <nravi@broadcom.com> Notify headset of signal strength change

Battery and service state changes were relayed to the stack, but not
signal strength. This has been resolved.
bug 6983415

Change-Id: Ie6fbb108805348e39c9119d028afb834556ae6b0
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ca6110d57998fee7c7b572ca29061ee99a82ba37 09-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Implement enableNoAutoconnect() for NFC handover

Implementation of BT enable in Quiet mode without initiating auto connect and not allowing
Incoming HFP, A2DP and HID connections.

Change-Id: I857aea8d95677f8287df4641ec0aeae58a9f7a99
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
44d87716fccf8ff6f114db72711388fa57068078 13-Aug-2012 Ravi Nagarajan <nravi@broadcom.com> listenForPhoneState only after SLC

Start phone state listener after SLC setup, instead of on
Disconnected SM exit(). On BT OFF, quitNow() forces a SM exit()
which incorrectly started the phone state listener. Additionally
no indicator updates should be sent prior to SLC setup
bug 6976119

Change-Id: Icff2bc52602230b098651225bec92d532f3a3ff9
ndroid/bluetooth/hfp/HeadsetStateMachine.java
fdc7bd89b00e40b459c706784fa003509a229096 03-Aug-2012 Martijn Coenen <maco@google.com> Don't trust length specified by ContentProvider for file transfers.

It seems that the length specified by content providers for images
is often not correct. This happens because applications modify the
images later on with meta-data, etc., but don't update the length
field.

This causes Bluetooth OPP transfers to fail, usually with an
IndexOutOfBoundException. The root cause (wrong size in content
provider) of course needs to be fixed, but we can also make
Bluetooth more resilient to these situations.

Since OBEX needs to know the transfer length
up front, the only other way we have of determining the size
of the content is by opening a file descriptor and getting
its length.

Bug: 6857704
Change-Id: Iaf2304b44e9e81ef6e6ac7e0fe3be84ad31a312f
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ef39cada04683dd7ef7b68c89a8722f2ce635c28 06-Aug-2012 Ravi Nagarajan <nravi@broadcom.com> Add unbond reason to bond state change intent

HAL sends the status to indicate the reason for bonding failure, if any.
Add this to bond state change intent, so that the Settings app can
display the error dialong, if necessary.
bug 6936335

Change-Id: Ide7c9e497bbfc6428b60c7a6de6e01ca538edfb8
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/BondStateMachine.java
73d192095093759688cccc896714f71fcee218d8 08-Aug-2012 Matthew Xie <mattx@google.com> Merge "Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR." into jb-mr1-dev
15d36984a79d6e35c659edb0efdf929f0b526bd5 01-Aug-2012 Fred <fredc@broadcom.com> Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR.

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
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
4f5430babbc5a8f870e5a578a4ea3452f41dd97a 01-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Implement Profile Auto connection logic

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
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
0322ae1f5e8ea55c391145e7925cb5962a97c11f 02-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Proper update of friendly name for a paired device.

Update friendly name for a paired device by properly initializing mAlias
member of DeviceProperties in Property Changed Callback() for remote device.
bug 6884149

Change-Id: I01d0679af4facfe6e92527f7618f4ff791928d0e
ndroid/bluetooth/btservice/RemoteDevices.java
b45486075acf191f99da6a5d4f69a6f7aeff65da 27-Jul-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Fix typo in PBAP Server name SDP record

Change-Id: Iff48e815987178597d93069ae3874ca903882e37
ndroid/bluetooth/pbap/BluetoothPbapService.java
7ac24de2819e5e4140ab7ab264e7cfffed4d7398 18-Jul-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Do not accept connection from remote PANU if the local role is also PANU

Fix for BLTH01537991
Change-Id: Ieea143a5929217c7dc52c541e55ddf57077b244f
ndroid/bluetooth/pan/PanService.java
15d72a0c3338645bcc409023150aec40b08aadc1 29-Jun-2012 Ravi Nagarajan <nravi@broadcom.com> Resolve incoming pairing and connection issue

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
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
74a598e0a8d50343227e3f96bbe56c6be1c240f9 28-Jun-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Ensure mAddr member of DeviceProperties is properly set with device BD Addr

Change-Id: I5dafb48fc63dadfc5ad60e5a4e9735cf72d56534
ndroid/bluetooth/btservice/RemoteDevices.java
10bab53713ca13b3ccdaac5286c9b576e577be5e 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: I15d3d6c8456e94553f479009c600dca1cd2361ac
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
caa3723eaa20e57aac086d54a41106108503debc 27-Jun-2012 zzy <zhenye@broadcom.com> Added code to ignore the empty value of remote device property change
Change-Id: I0d6b293c0bf35d9b4a2df00e9b3cd810c4a9b251
ndroid/bluetooth/btservice/RemoteDevices.java
6b19b0e94877ae8f0803133f8cfb4885acff2763 14-Jun-2012 Syed Ibrahim M <syedibra@broadcom.com> Virtual call implementation

Change-Id: I72a96eedd1cac10a0da7223ebc9b70fd4a21974d
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
81491a292e9f01007c0f291e7f6acd054f6dcb4c 18-Jun-2012 Priti Aghera <paghera@broadcom.com> HDP-App crash fix
Set the channel fd to null in channel state callback if new state is not CONNECTED

Change-Id: Id540d9ca2e20ef3e03b11a61634b8a2cb4e05df1
ndroid/bluetooth/hdp/HealthService.java
fe0ac5b0476b628be11c93a818f342db90332ea8 20-Jun-2012 Matthew Xie <mattx@google.com> Notify Connection state chnage to AudioManager via an API call

bug 6834913
Change-Id: I58af46710320f3debee1780aeaea7f5548233604
ndroid/bluetooth/a2dp/A2dpStateMachine.java
5705f3a6c994b32ed9c50c21e9689108d2ec00fe 14-Jul-2012 Matthew Xie <mattx@google.com> Remove unused import com.android.internal.telephony.Call

Change-Id: I491dc175b29f98900b79e801ff3fb4f116752668
ndroid/bluetooth/hfp/HeadsetPhoneState.java
57a3923845c46742ed4f03d49dbdbb6c774ccf90 12-Jul-2012 Matthew Xie <mattx@google.com> Removed onStartCommand().

BT ON/OFF now done via enable() and disable() binder API call.
Also fixed bug with BT OFF if set scan mode times out

Change-Id: Ib88dfc148bb5a24cda1e84a86f044ae85a5a6514
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
c55a9837c004044051b71bb47182ace156691283 07-Apr-2012 Matthew Xie <mattx@google.com> replace logx with alogx

Change-Id: Iec82cb4545bb26a8aa55dc7d473247396b9fd6e1

Conflicts:

jni/com_android_bluetooth_hid.cpp
ndroid/bluetooth/hfp/HeadsetPhoneState.java
4603dc081506452854023a1c6eacdfca468e0dc4 12-Jun-2012 Matthew Xie <mattx@google.com> comment out state machine quit call

Change-Id: I0d4f72d50cd981a3c334583948dc0563f0662662
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/hfp/HeadsetService.java
e469f16e5a7d99471d7db1b216d422e8d12cc4cf 06-Jun-2012 Matthew Xie <mattx@google.com> matt: my fix to get it compile, change logx to alogx, and etc

Change-Id: I0b361ad6ba9a5f6ac4db9203a389ee309b04019a
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/pan/PanService.java
179fd2512d1a93bbd2a1a3803f5764cb417fe4c9 11-Jun-2012 Kausik Sinnaswamy <kausik@broadcom.com> Add remote device while pairing without inquiry

Change-Id: Ia7d99075b196414b3ded117b323ca5295c2c0b73
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/BondStateMachine.java
2f9a79b2d545e1a8b50a0018456892a9934db99a 06-Jun-2012 Ravi Nagarajan <nravi@broadcom.com> Resolved incoming pairing/connection issue

Sending bond_state_changed and adapter_properties_cb concurrently was
causing a race condition, which resulted in the BOND_STATE_CHANGED intent not
being sent. This caused the Settings to not show the newly bonded
device. This has been resolved by letting BondStateMachine manage
the mBondedDevices

Change-Id: Ieba39602436370fd9a87c3aa938ff3bd724c68cf
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/BondStateMachine.java
579f67ec87646f840c1235eb62d99ab9fa11f23c 05-Jun-2012 Sreenidhi T <nidhit@broadcom.com> Additional check included for the case when PhoneApp queries Bluetooth Audio state before the stack responds for the sco disconnect issued previously in AudioOn state.

Change-Id: I8b85fc9d3b4463205f01dfaa3bb309a3dbeb8231
ndroid/bluetooth/hfp/HeadsetStateMachine.java
99a6ee18f09cf8e7ddff91d68267db21867b3cdf 31-May-2012 Syed Ibrahim M <syedibra@broadcom.com> Fix the issue where HID connection was failing on first connection randomly.
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
ndroid/bluetooth/hid/HidService.java
e479e18951a375a548e617e86e3b1b7d121351a1 25-May-2012 Fred <fredc@broadcom.com> Fixed PBAP to use simple pairing instead of numeric comparison (same as before).
Also, escape special characters in vCard-Listing XML object

Change-Id: I32eb126f3dba4b35af39e6e0636f2f7f7e8d94a8
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
8120c75b7a8b5a9c0e00df500c1ed072a952bda1 26-May-2012 zzy <zhenye@broadcom.com> Added code to cleanup connection state when bt off
ndroid/bluetooth/pan/PanService.java
a25e9c65c2a0192b7b3d819e2b87704f1942aa2f 21-May-2012 Sreenidhi T <nidhit@broadcom.com> Changing the order of notification of connection state change, as it was causing a race condition, with the UI not being updated with the correct connection state.

Change-Id: I6f4c75e4eac4ae798cb7918a4f1b7458e1eaa4b0
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/pan/PanService.java
4a53a55dc10d3a26c94e5844f7d4a2565a67142c 19-May-2012 fredc <fredc@broadcom.com> Fixed displaying images in pbap browse and pull when configured

Change-Id: I8315d4db76d7cbfeaefe4187100984d12bd952ed
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
942da5b41b0c9e45e83e9801f80b982f1e4cd011 18-May-2012 Kausik Sinnaswamy <kausik@broadcom.com> Ensure that A2DP stream is suspended during Voice Dial when SCO
connection is established. This is needed to be compliant with the SIG's
AV+HF whitepaper

Change-Id: Ie072782ea70de0f1b13c6cf8bfcb88c072a1d093
ndroid/bluetooth/hfp/HeadsetStateMachine.java
755aa8f5359a933205552c40b6446b001ae42378 15-May-2012 Priti Aghera <paghera@broadcom.com> Fix for force closing HDP app: Included review comments
Included a callback to linkToDeath and notify the HealthService when BluetoothHealth is dead

Change-Id: Ie34a391f78c4fba0a74bcefd3dedccaa63f7bba3
ndroid/bluetooth/hdp/HealthService.java
75e9fd59f4d4011ba7155732a41b06f0df40bada 15-May-2012 Swaminatha Balaji <swbalaji@broadcom.com> Fix for A2dp/hf connection happening even when profile is disabled in Settings

Change-Id: I32145db12e0107b858e2e25ad1ae6cba6eadb55d
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
a7e8ef3f77ac74449f817f36f570a3545285be85 11-May-2012 fredc <fredc@broadcom.com> Added support for enabling/disabling profiles

Change-Id: I819ca7920d9d866bd3aca88d4365a18e2369ee81
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/Config.java
ndroid/bluetooth/pan/PanService.java
c181b8b49f5ad5b49b33334a9ba8f342ddb3545c 14-May-2012 Kausik Sinnaswamy <kausik@broadcom.com> Fix to ensure that we are able to pair with a device that was just unpaired. The fix was to clear a boolean variable which was causing some stale data to be maintained

Change-Id: Iaad0e21794b0b6e47d12c837ef36e026b6ece655
ndroid/bluetooth/btservice/BondStateMachine.java
d807ba48ed4418c1a60549abe1c3a98ced8c428d 14-May-2012 Sreenidhi T <nidhit@broadcom.com> Change done to clear mUuid - local copy of Uuid. If not cleared, the cachedBluetoothDevice issued a connect using the local cached copy of uuids, without waiting for the ACTION_UUID intent. This was resulting in multiple calls to connect().

Change-Id: Ida6fd2e805dee8c19b4d7d656b4102891f51fd00
ndroid/bluetooth/btservice/RemoteDevices.java
970baea8e58a7b537e76e8bcbba34f428cede061 12-May-2012 Priti Aghera <paghera@broadcom.com> Fixed HDP Disconnection issue. Included channel to list of channels when channel state callback is received

Change-Id: Icd361a3f19b883b3cca27fe9eb0cafc3b969290b
ndroid/bluetooth/hdp/HealthService.java
c7a57f31515107366589bd6875c3cc4af1fc806e 07-May-2012 fredc <fredc@broadcom.com> Added PBAP support for fetching owner vcard info from phone's profile. Added PBAP image support

Change-Id: Ieb2993c9505185d4f85cbbf6b5c554936618cff0
ndroid/bluetooth/Utils.java
ndroid/bluetooth/pbap/BluetoothPbapConfig.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapUtils.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4852c5686229f1014e9851f4e9a3a19547581b45 10-May-2012 fredc <fredc@broadcom.com> Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to BluetoothManagerService

Change-Id: Ic9911359c1d9e04a5d803807ea7cf4ad39616960
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
74ae04c73312403e89db0f8e9bd9601d403b4783 07-May-2012 fredc <fredc@broadcom.com> Fixed memory leak in Binder objects from repeatedly turning on/off Bluetooth

Change-Id: Ibee5382816d47b1e9b846461942a9daccc4210a7
ndroid/bluetooth/Utils.java
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ce4edb8ed132976651b32b337f3d90e1a170afa9 08-May-2012 Sreenidhi T <nidhit@broadcom.com> Changes done for disconnecting sco connection based on disconnectAudioNative() return status, instead of waiting till BTA_AG_AUDIO_CLOSE_EVT is received. The delay in disconnecting sco was causing audio to be routed to earpiece instead of speaker, when selected from incall screen.

Change-Id: I307c3e9c114676649750cb64f1043fc7fe79d71b
ndroid/bluetooth/hfp/HeadsetStateMachine.java
405b6148a168c05f9c9eac6a80db68b9a58392e2 27-Apr-2012 Sreenidhi T <nidhit@broadcom.com> Added AT+CPBR support

Change-Id: Ice860d8f97350d805a5478e94a27ae19cf42dafd
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/BluetoothCmeError.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ac7e62c64b4cd8d864f125d3225474a04b867606 27-Apr-2012 zzy <zhenye@broadcom.com> Added code to turn off pan connection when tethering state changed
ndroid/bluetooth/pan/PanService.java
d288c0dac06748780916bf438b7c84482545672f 26-Apr-2012 fredc <fredc@broadcom.com> Backed out workaround for RFCOMM socket close issue when BT is turning off

Change-Id: I793fa2a0fa0127b6ff70aeb448c97c3cc9154d6f
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
31ba132491053bc86d419a7d51fc04af3299c076 26-Apr-2012 fredc <fredc@broadcom.com> Fixed Bluetooth on/off issues. Removed singleton instances causing issues when services reload. Updated adapter state machine

Change-Id: Ie1ff4284f507c7da102569f3c0acfd55612a5f6b
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
7aab11364743cbca6eeefecbbde19f0434aff362 24-Apr-2012 fredc <fredc@broadcom.com> Fixed exception in BondStateMachine when quit message occurs. Fixed exception in OPP when remote does not accept incoming request.

Change-Id: Ibb43a26ee0ac62967518468d243880a0af987ba0
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
68e7fc4f2c62ebc76e86109a919592ad25ec11d7 24-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> Handle NREC. On connect, enable echo cancellation locally, headset will then override it

Change-Id: I8fca1e82d1457b47122c17393ffbff362e1f3134
ndroid/bluetooth/hfp/HeadsetStateMachine.java
01a8cf98f070a6996b2e8974edc229ac402f3f0c 03-Apr-2012 Kausik Sinnaswamy <kausik@broadcom.com> Added ACL connect/disconnect state callbacks

Change-Id: Ibd44de8601521a11b106711ccad9261fb40beca8
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
b8a77aa1b386baaf6381f7b356b9485673e1f942 20-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> On disable send the disable event to stack right away, as the stack will take care of tearing down the active connections. ALL_DEVICES_DISCONNECTED was not being sent (as no profiles handled it), causing 3 second delay on BT off

Change-Id: I8aa83f3cd2019f521d5522e9455303a413dddcc1
ndroid/bluetooth/btservice/AdapterState.java
6de8229571ce56dcb0010c63cbef65e01ecd5c2a 22-Apr-2012 Priti Aghera <paghera@broadcom.com> Fixed random pin generation for pairing with HID keyboard

Change-Id: I7e6fd39289c6c5ebefd94f45e24de86e6aeaa625
ndroid/bluetooth/btservice/RemoteDevices.java
b5cc776c9353a203cdde97e62b25f05d9633d14c 19-Apr-2012 fredc <fredc@broadcom.com> Fixed BT on/off issue

Change-Id: I47cbac9fc694d5604a664f20170eeed90eeee8e6

Conflicts:

jni/com_android_bluetooth_btservice_AdapterService.cpp
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/ProfileService.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
1404ab28fd296373a98b766b0b01193985446eab 21-Apr-2012 Harish Paryani <hparyani@broadcom.com> Added a comment

Change-Id: Ia52a0f58ee2085f3452877e23a591dcd842bafac
ndroid/bluetooth/hid/HidService.java
522003462124b08ef9345a6778df4089d202d6fa 20-Apr-2012 Harish Paryani <hparyani@broadcom.com> Corrected a comment

Change-Id: I365bf2dd835385629b7e7bbff649e9fdd6646db8
ndroid/bluetooth/hid/HidService.java
42a6e53f2ec04cbd78fea952fc926fdf3e5b8cd9 19-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> Connection state change has to be handled in AudioOn state. Some headsets send RFCOMM disconnect prior to disconnecting the SCO. In this case the state machine has to handle the connection state change

Change-Id: Ib80a49cbd959055624baae6e5a35022c628f4bba
ndroid/bluetooth/hfp/HeadsetStateMachine.java
3fafe61ef25c1899fdc817c52163aec16c31055c 19-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> Memory profiling changes : Updated the Bluetooth code to handle cleaning up 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
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ac234ef0ddd67471d82f77c41535a5ea1b68b443 19-Apr-2012 Kausik Sinnaswamy <kausik@broadcom.com> Added support to handle A2DP audio state changed events and broadcast
A2dp API intents

Change-Id: I1938e5e0acbbaf602239e14e1dfd3c890712930a
ndroid/bluetooth/a2dp/A2dpStateMachine.java
404743adf7bde44df9c8571f7890bc11f613d7ae 17-Apr-2012 Kausik Sinnaswamy <kausik@broadcom.com> BT icon not getting updated on profile connection due to incorrect handling of the prevState

Change-Id: Ibd3836047faebcaacb335898cc3d7392ab7571f4
ndroid/bluetooth/btservice/AdapterService.java
9a0efb0ee8c63797280b3b9309782541134e9205 16-Apr-2012 fredc <fredc@broadcom.com> adapter non persistent service. Fixed null exception when profile services connect/disconnect

Change-Id: Iefafd1115471256d3107f039897e2af16077cdae
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/pan/PanService.java
6654f5c903de510a70f9e72cd5ad7837b615d93f 12-Apr-2012 fredc <fredc@broadcom.com> Non persistent adapter service

Change-Id: I65e1c18e2899cea0a1e5c0102c4d24d39dce0249

Conflicts:

jni/com_android_bluetooth_hdp.cpp
jni/com_android_bluetooth_hid.cpp

Conflicts:

jni/com_android_bluetooth_hid.cpp
ndroid/bluetooth/Utils.java
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterApp.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
ndroid/bluetooth/hdp/HealthService.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ndroid/bluetooth/hid/HidService.java
ndroid/bluetooth/pan/PanService.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
990b2cd65392bc6db58eda732ad41de22b713202 12-Apr-2012 Priti Aghera <paghera@broadcom.com> Patch for inconsistent pair-unpair state

Change-Id: I356cd978c6b30b415a94267c9e535dc0297d6540
ndroid/bluetooth/btservice/AdapterProperties.java
206363c7e1d2a7eb116aa6559c83431cd3f55def 11-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> AT Response needs to be send for CNUM

Change-Id: Ia6aa0e91bc42b9a77143087f65b95c81117b9e3c
ndroid/bluetooth/hfp/HeadsetStateMachine.java
aa90f0cbb860434c5310ae6bfa16987834f582f0 11-Apr-2012 Priti Aghera <paghera@broadcom.com> Patch to fix getBondedDevices and inconsistent pair state

Change-Id: Idaf2a18dcaaaca422d3d5ee9245dbfa75cbbb96c
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/BondStateMachine.java
57addccaa75691f8eb6f35204d608a63695a9705 09-Apr-2012 Priti Aghera <paghera@broadcom.com> HID-PTS:Included API and calbabkcs for hid pts tests

Change-Id: I7f3b19dbcda24dbb0cd4700a54f7cd05e84d3745
ndroid/bluetooth/hid/HidService.java
d570893c5ec3bc9fd1860aa0355c550d3a51f8dd 09-Apr-2012 Kausik Sinnaswamy <kausik@broadcom.com> Improve BT enable/disable stability under stress tests

Change-Id: Ie6323a225b5e1ccd1ad9f65e90b144c93b957a8b
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterState.java
25ec7de5ff422f50f3dbfd0822423c85b47f4794 09-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> Implement the getDevicesMatchingConnectionStates for A2DP

Change-Id: Icf5b14d13c4ee6564876aac529e992a22747ac41
ndroid/bluetooth/a2dp/A2dpStateMachine.java
c55ac7d42cf2d78c7edc67abf6c66813245b2c93 06-Apr-2012 fredc <fredc@broadcom.com> Added support for BluetoothDevice.fetchUuidsWithSdp()

Change-Id: Icd260b0cafd7fee72a7ad0275b62052257c6fc13
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/RemoteDevices.java
19da573973557408b1b7398a2c3a167d8da9527d 04-Apr-2012 Srikanth Uppala <suppala@broadcom.com> Fix discoverability timeout issues. (a) implement timeout logic (b) persist 'never timeout' after reboot (c) code cleanup

Change-Id: I9313277c39c69f90d0b0556cf24d9c30a774a0a6
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/RemoteDevices.java
8826b161f865350f306e8f287aaca615e2f1e4a3 04-Apr-2012 Matthew Xie <mattx@google.com> check device.mAlias null case before copying to it

Change-Id: I705126ce11272d9c3a5577c0266982a6478e8a87
ndroid/bluetooth/btservice/RemoteDevices.java
9f0d856f41d443ec23d5aa2eecfc561d7a3c01d1 31-Mar-2012 fredc <fredc@broadcom.com> Initial checkin of OPP and PBAP

Change-Id: Ie43a26874bd5f0c00d69c2ce02430f4a16da327a
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
0708fe3087b690439dd9745b2cf1a96f29f570b0 04-Apr-2012 Syed Ibrahim M <syedibra@broadcom.com> Updated the AdapterState class to handle persisted Bluetooth setting after AIRPLANE MODE OFF event

Change-Id: I5e1ca111b72ff49498e87149c32769997e545c54
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
cc80b2261351dc74ad1bed237b0423c12d340514 14-Mar-2012 Matthew Xie <mattx@google.com> initial check in of rfcomm socket implementation Author: Zhenye Zhu, Matthew Xie

Change-Id: Ie3ab12c3bafc0a44e378a31c426c5eb41192f154
ndroid/bluetooth/Utils.java
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterService.java
676cb1bdd1c14c7af56562bab51f168e7f8f6d62 23-Mar-2012 Matthew Xie <mattx@google.com> Initial implementation of hdp service and jni

Change-Id: Ieca906080835098383cabbc13fa914363459f555
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hdp/HealthService.java
f8d98da947bbb9e2380a60df89acbcbd4ca680af 03-Apr-2012 Kausik Sinnaswamy <kausik@broadcom.com> Fixed incorrect handling of the RSSI during inquiry which causes the devices to not get sorted properly.

Change-Id: Ib4eca5405a3393aef79f43943853adf76da23e76
ndroid/bluetooth/btservice/AbstractionLayer.java
8f8e1bdc4dfc5d9d974b0e0b01dbe981707c9c6f 30-Mar-2012 Ravi Nagarajan <nravi@broadcom.com> ATD commands have a trailing ';'. Remove the trailing ';' prior to dialing a call. Else a send tone popup is received.

Change-Id: Icbd53166001d3be102bac6a8d2f782cb22c4dc56
ndroid/bluetooth/hfp/HeadsetStateMachine.java
b01cf4299897d227c7dbcbe4981b63a1ffe4ffca 30-Mar-2012 Sreenidhi T <nidhit@broadcom.com> Fixed the pairing variant check typo.

Change-Id: I1a835531bc35cc6b1a178a0d131a86715df6f3f0
ndroid/bluetooth/btservice/RemoteDevices.java
5f1bee8200197a49d8ffc49fe3e91d19c927ff52 28-Mar-2012 Ravi Nagarajan <nravi@broadcom.com> Resolved HSP PTS issues. When call is active, and CKPD is received: 1. If audio is not ON, audio will be enabled 2. If audio is ON, call with be disconnected (fixed a typo here, which answered the call, instead of hangup)

Change-Id: Ib60f7109f9fe982523c3db68ea6014c25bad8262
ndroid/bluetooth/hfp/HeadsetStateMachine.java
b18d6a7da48a6847df88abadd42fbb51316cb76d 27-Mar-2012 Ravi Nagarajan <nravi@broadcom.com> Integrate HFP with VR app. Handle both cases where VR is started by peer as well as launched from the phone

Change-Id: Icf2922f4caf20190fdb3f0afa2ddd19d1852c4fb
ndroid/bluetooth/hfp/HeadsetStateMachine.java
35207a5638f61caca5b9abb31e5c6850a9478a52 22-Mar-2012 Matthew Xie <mattx@google.com> initial implementation of hid service and jni

Change-Id: I527651bd85ad3adddbf4b89802f4a6128c9fa047
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hid/HidService.java
345d21b0575a4b866bfc9ccfde9c654e7b859ac6 20-Mar-2012 Matthew Xie <mattx@google.com> Fix persistent audio on, Donot connect_audio when enter CONNECTED state. Process DISCONNECT message in AudioOn state.

Change-Id: Id89842ff2179234c320752ae69dcf3c99b125bce
ndroid/bluetooth/hfp/HeadsetStateMachine.java
bcbeaf69468424800a939b3e8678eaef21efa3d6 09-Mar-2012 Matthew Xie <mattx@google.com> process slc_connect state change event, query and send stack the phone state

Change-Id: I4472384290d87f13f7be5647327c789c01582a7b
ndroid/bluetooth/hfp/HeadsetHalConstants.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
ab1a751670c1bceb23f3cf880f6ad9421c0487c2 19-Mar-2012 Matthew Xie <mattx@google.com> Revert "fix persistent audio on, Donot connect_audio when enter CONNECTED state"

This reverts commit 3ce52a01d734e73a21074ab8397cf67b16d6595f

Hi Matt,
I reviewed your changes (2), and they look good. However, your changes in (1), seem to be causing a side-effect while testing the headset connection setup while call is active/outgoing/incoming. Since this change was merged, I am sending my comments thru email.
Here is the scenario
1. No headset connection

2. Place an outgoing call, and answer it at the remote side

3. Initiate connection from headset

4. SCO seems to be setup by Java side even before SLC setup completes

ISSUE#1: Once Java receives connection event, it automatically calls connect_audio, even though SLC has not been setup
ð Can you make a change to call connect_audio, only after SLC is complete? If this difficult to do, can this code just be removed, as the stack will do automatically after SLC setup when phone_state_change is called

ISSUE#2: If we redo this for an outgoing call (call answered prior to headset connection), then the Java side does not initiate SCO audio
ð To have a consistent behavior, if Java side is setting up SCO for active call, shouldn’t we be doing the same for outgoing call too?

Thanks
Ravi
ndroid/bluetooth/hfp/HeadsetStateMachine.java
53b834a8a7f9f077ff751ade222d2f81d9d6fdad 09-Mar-2012 Matthew Xie <mattx@google.com> fix persistent audio on, Donot connect_audio when enter CONNECTED state

Change-Id: Ieb2c327ab562c02f293fa616e555ed5a8dc55570
ndroid/bluetooth/hfp/HeadsetStateMachine.java
47ead0fdf1786e6f0c5bde1c6b1b40b08168edb9 10-Mar-2012 Matthew Xie <mattx@google.com> output call back event information

Change-Id: I6a84a19f91fbb102668745623327f7e234c2ad5d
ndroid/bluetooth/hfp/HeadsetStateMachine.java
f0b6639617ce2245ffb88968e8a864d0fa99dd8c 09-Mar-2012 Matthew Xie <mattx@google.com> Save volumes and notify stack only when they change

Change-Id: Ibcf6a55111ee3d6ecab6ecd75ab957258b35e49c
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
986b5b03a378385bfea6c5cc6b6c1d7f0424e0a5 09-Mar-2012 Ravi Nagarajan <nravi@broadcom.com> Added new state BT_BOND_STATE_BONDING. Stack will send a callback for all three states, app does not have to rely on the api return code to switch to bonding. This addresses the incoming pairing as well as the remote unpaired test cases

Change-Id: I37208e5bae7264a0ff78195322ba0a6bd1d82f0f
ndroid/bluetooth/btservice/BondStateMachine.java
9b300c1a33952a22c3bba1521da2d01cbf607b7b 08-Mar-2012 Matthew Xie <mattx@google.com> update call state to match hf hal header, memory dial fix null pointer

Change-Id: I62f26d0259a910ac80d7a18c6bef49abb6eab820
ndroid/bluetooth/hfp/HeadsetHalConstants.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
6c91bc0a163cc7600c40d7fb979777fd911d1ef1 17-Feb-2012 Matthew Xie <mattx@google.com> Initial implementation of HFP and A2DP profile/service/statemachine.

Change-Id: Ic6e6d358b94313f237b7be61b70dcc6f4f7902e7
ndroid/bluetooth/a2dp/A2dpService.java
ndroid/bluetooth/a2dp/A2dpStateMachine.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/hfp/AtPhonebook.java
ndroid/bluetooth/hfp/HeadsetHalConstants.java
ndroid/bluetooth/hfp/HeadsetPhoneState.java
ndroid/bluetooth/hfp/HeadsetService.java
ndroid/bluetooth/hfp/HeadsetStateMachine.java
1444b5b09d07b1ad5ec2ce89b4267484be25e8bf 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Incoming pairing issue.

Change-Id: Idd77d49a9d6df94e6dc9dfe4f179e93641d48261
ndroid/bluetooth/btservice/RemoteDevices.java
b9122437dc3562f8306b1c8bc97124dc8c33ae45 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Fix Bond State Machine device list.

The device list was adding the device twice.
Note: This whole class should be removed and moved to
the stack.

Change-Id: I6086ee98bd1b4088a90b76f67a9fff21987f4b04
ndroid/bluetooth/btservice/BondStateMachine.java
44abcd2791995793a5de09906b0ce6ed51bb6080 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Set scan mode to be connectable when turning on.

If scan mode is not set, set it to be connectable.

Change-Id: I146505dade5d46aa70068cdaada94c06f30d75de
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
fba70fe2abecf70b9f9f7ee09a21cbfc6cb73998 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Add ability to persist Bluetooth state.

Currently, BT is turned on when the Service is started,
if needed. This needs to be changed when BT is not a persistent
process.

Change-Id: I1c36aa75824622a739241d6d4e9aeacbf46e56af
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
b7e70fcf8923b9452074b2b4ee685da424cc7d93 07-Mar-2012 Kausik Sinnaswamy <kausik@broadcom.com> Merged the Passkey request callback and the passkey reply APIs into the SSP API and callback respectively

Change-Id: I2b8fb1665586d32b0ada1b882cbde1d232233803
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/RemoteDevices.java
581bb31a8165ff0f9c7d638cfe4a81aaaafa2ded 06-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Remove passkey callback.

Use ssp callback for all 3 forms of 2.1 pairing.

Change-Id: I13af1eecc3469e4db8e656717700a1f9166177e3
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
fe90735bb6280ccaceb8a0a990781a810a2dd33e 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Fix scan mode bug.

The incorrect paramter was being passed.

Change-Id: Icc119811d61ffa537b837a6712a85ea9dcefaa87
ndroid/bluetooth/btservice/AdapterService.java
ff68148a7fb74947ea5e7a337161108363cbe9f5 21-Feb-2012 Jaikumar Ganesh <jaikumar@google.com> Fix Bluetooth enable issue.

The stack sends all the property changes,
before sending enable. Hence, we don't need to
wait anymore.

Also fix the return value check for get_property.

Change-Id: Icac32cd74f9028c40ab6b5018b576168c9dac3b9
ndroid/bluetooth/btservice/AdapterState.java
ff4f17bf64978d0738c66e1b6dd70be8664efc24 20-Dec-2011 Jaikumar Ganesh <jaikumar@google.com> Initial commit for new Bluetooth stack interface.

1. Changes to Android.mk file
2. changes to make the process persistent. This is temporary.
3. Addition of new java and jni classes.

Change-Id: I2453c7a1a475c66bf52f3a84cd8beb12dd37b87a
ndroid/bluetooth/Utils.java
ndroid/bluetooth/btservice/AbstractionLayer.java
ndroid/bluetooth/btservice/AdapterProperties.java
ndroid/bluetooth/btservice/AdapterService.java
ndroid/bluetooth/btservice/AdapterState.java
ndroid/bluetooth/btservice/BondStateMachine.java
ndroid/bluetooth/btservice/JniCallbacks.java
ndroid/bluetooth/btservice/RemoteDevices.java
2a6bf35f603d12e6533a69c773ac258b0e84941f 02-Feb-2012 Jaikumar Ganesh <jaikumar@google.com> Comments opp and PBAP init code when BT gets enabled.

Change-Id: Id1b9329cb4dba7f4d4e5f478a775bcfd18a68a66
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
1eb1a249ee36c3e037355cce6d50511864dc0e7f 17-Jul-2012 Matthew Xie <mattx@google.com> Revert "first patch of test submit"

This reverts commit 1429606cdb0c5b4410a224697e0ac2459ebe4cb7
ndroid/bluetooth/opp/BluetoothOppBatch.java
1429606cdb0c5b4410a224697e0ac2459ebe4cb7 16-Jul-2012 Matthew Xie <mattx@google.com> first patch of test submit

Change-Id: Ief4f86f471ac62b11b9dcd4cae937d7fb261ba69
ndroid/bluetooth/opp/BluetoothOppBatch.java
5cb59523d7d7e25c58bd99c100c50e49c78481ce 15-Jun-2012 Matthew Xie <mattx@google.com> Change timestamp type from int to long, timestamp(now) overflows int

BluetoothOppNotification NotificationItem.timeStamp is int, too
small to be a timestamp
bug 6670668

Change-Id: Ieec5377bac3b8c7fbaa24d059ad5957ba9a0544f
ndroid/bluetooth/opp/BluetoothOppNotification.java
03f25a2055e51bcc5e8870642763b502956b6830 18-May-2012 Martijn Coenen <maco@google.com> Bluetooth OPP: Allow sending all mime-types for handover.

This change allows sending of all mime-types through
ACTION_HANDOVER_SEND and ACTION_HANDOVER_SEND_MULTIPLE.
These intent actions are only used by NFC when doing
handover transfers, and require the whitelisting
permission that is only granted to system applications.

Similarly, for receiving, we will still reject certain
mimetypes, except if the transfer was whitelisted because
it was a handover transfer.

At this moment, only the NFC service has the signature
permission required for whitelisting.

This change also allows to send files without extension,
as long as OPP has a valid mimeType. This is useful when
using OPP in combination with a content provider, which
may specify filenames without any extension but with a
valid mime-type.

Bug: 6561169
Change-Id: Ia39418de6bcb2f8af678c7b8637b63b1697eb493
ndroid/bluetooth/opp/BluetoothOppHandoverReceiver.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/opp/Constants.java
acc04ecbd174b07d580248aaf6640c3d2b42ca49 24-May-2012 Martijn Coenen <maco@google.com> Merge "Fix variable initialization." into jb-dev
a1f935d1a2a21d82a4069d1832e2d7239d7a256f 24-May-2012 Martijn Coenen <maco@google.com> Fix variable initialization.

This could cause Bluetooth file transfers to fail.

Change-Id: I69b91e84cb7df1f147581e37f056eeacd54687d8
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
4bfe5662b7169484d32186a2042cb88cdbc446ba 17-May-2012 Martijn Coenen <maco@google.com> Merge "Allow bluetooth OPP transfers to be stopped." into jb-dev
584dfb2c53b45080347e412b3f7ed7fd1c9b53e7 16-May-2012 Martijn Coenen <maco@google.com> Allow bluetooth OPP transfers to be stopped.

If handover requesters such as NFC want to cancel an
ongoing transfer, they can use this intent. It requires
the same permission that is used for whitelisting,
which at this point is only granted to the NFC service.

Change-Id: I89e27550d700c4a29a892dba99fda740d8845642
ndroid/bluetooth/opp/BluetoothOppHandoverReceiver.java
ndroid/bluetooth/opp/Constants.java
d5e1472188b7e21123a02339ed8766256aa8f630 15-May-2012 Martijn Coenen <maco@google.com> Don't MediaScan files received through handover.

Handover providers such as NFC may move the file in the filesystem
(out of /bluetooth), hence it's better not to scan them here.

Change-Id: Ic374c5ae880cb65e2d8a9ce615115b51fdc29353
ndroid/bluetooth/opp/BluetoothOppService.java
7a4cc5c2f6ec06e8dc6f930680ce9aceff6df359 14-May-2012 Martijn Coenen <maco@google.com> Add BT address and mimeType to handover intents.

Also, allow refreshing whitelisted entries by sending
another whitelist intent.

Change-Id: If85db397e31364939c67b3018413b625a1888ae6
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/Constants.java
8099f5e7bfa7227ba674b5f0076f331e737bafd7 06-Apr-2012 Martijn Coenen <maco@google.com> Additional changes to support Bluetooth Beam.

- Added a whitelist permission, to ensure only system
services (such as NFC) can whitelist MAC addresses.
- Added HANDOVER_STATUS permission, to ensure handover
transfer status can only be received by eligible services
(such as NFC).
- Added new confirmation type HANDOVER_CONFIRMED; this indicates
the transfer was initiated by a handover, and doesn't need to be
confirmed. This type is also reused to send broadcasts
to the NFC service, so the NFC service can show notifications
and deal with the received data.
- Added 15 second timeout to whitelist.
- Modify notication code to not show any notifications for handover
transfers; instead, send broadcasts to indicate handover status.
- Modify "transfer complete" code to sendbroasts to indicate handover
status.
Change-Id: I00c08e09eaf44f0bd4bd837cb6b0c37b802742bc
ndroid/bluetooth/opp/BluetoothOppHandoverReceiver.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferInfo.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/BluetoothShare.java
ndroid/bluetooth/opp/Constants.java
d6eaf19f39e163e16d22e29907edec402b30622e 04-Apr-2012 Nick Pelly <npelly@google.com> First cut at Bluetooth Beam.

Add Bluetooth address white-listing to avoid receive confirmation from
Beam interactions.

Change-Id: I25720c6e902c494cbb9845a30a175edad4225b89
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
0ac98162ff293fdaa23f93f9839aaad5428af537 18-Nov-2011 Chih-Chung Chang <chihchung@google.com> Read the requested file size completely.

This was causing failures while sharing pictures
from Picassa over Bluetooth.

Bug:5632161.

Change-Id: Ieb2697513299270b2982ebc6c9f0b367adf36d3a
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
93ee510229f845a26f57630f32af0093869c1baf 21-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Only format PAUSE/WAIT character."
d956b40b2f59599447ae0fa0762e055c0c0ce1a3 19-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Only format PAUSE/WAIT character.

Must be after Iff9461d8c71c5800b0731c3708867003d75bb395

Bug: 5348938
Bug: 4177894
Change-Id: I0c5b5b759d11c9d494f9550b9a7bfe948a0690b6
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
eb1192b4208d4bf77c92011822e6d171b9f09980 20-Sep-2011 Jaikumar Ganesh <jaikumar@google.com> Reject OBEX connection request for OPP with Target.

According to OPP OBEX specification Sec 5.4, the Push
client should not use target header.

Patch contributed by: inshik.shin@samsung.com

Change-Id: Iaeaa2d488da6592f8bb76a9957ca4b784d032803
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
dca6152362544ce9d430ca8f2ece7d5dc0f278d1 08-Sep-2011 Jaikumar Ganesh <jaikumar@google.com> Enforce permissions for Connection dialog intents.

Change-Id: I240985998b0d245aacb051e64b5fdaa335c9c06a
ndroid/bluetooth/pbap/BluetoothPbapService.java
dec631a77ab9cc89c4d3867b80cfe300e7cf83e9 02-Sep-2011 Jake Hamby <jhamby@google.com> Use Notification.Builder.setProgress() for progress notifications.

- Convert OPP service to use the new API to create notifications
with a ProgressBar, replacing the previous custom layout.

Bug: 5143664
Change-Id: Iae5e2d417e735588e11c4d17e4172ca40b9dfe73
ndroid/bluetooth/opp/BluetoothOppNotification.java
ce8d51a3a43d113a4a6bad30d595c2a81d0f623c 21-Mar-2011 Yoshiharu Kurita <yoshiharu.x.kurita@sonyericsson.com> Handle PBAP response packet as raw bytes

Adjust PBAP response packet to be always handled as bytes.
Currently, it is handled as string when is read from internal data.
This causes the lack of PullvCardListing packet and the abort of
PullPhonebook transaction when multi-byte characters are contained
into corresponding contacts.
This fix will avoid the lack and the abort by writing whole packet
into the target stream as byte.

Change-Id: I17ee3ada25718cc263c9e0942f75605bd971b638
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
cab07635ea60924a4e9dc13f87a4408988ad4c57 23-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Fix SendConnection state params.

Reported by: sj222.choi@samsung.com

Change-Id: I67da4f8a19be72092aa6cd139e561f4e9dfc5f8f
ndroid/bluetooth/pbap/BluetoothPbapService.java
72d2952fcde46d8c2adc68718957c2fe9f5fa3b0 22-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Update sendConnectionState change function paramter.

Change-Id: Iaf7e43d35ab4a5da325ebae77cbb72617705c772
ndroid/bluetooth/pbap/BluetoothPbapService.java
1f18480dfa9ea5557bcd5928a4c152ab40b85c7e 15-Jun-2011 HÃ¥kan3 Johansson <hakan3.johansson@sonyericsson.com> Send local time, not GMT, in timestamp.

The missed, incoming and outgoing call list shall always have its
time specified in local time according to PBAP V10r00 chapter
"3.1.4.1 Call History extension".

Change-Id: If0c4733552db3813d636a2f4658e64df1c6a4efe
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ef697b0b9a74e15b5003e134307e72b20b48de12 02-Aug-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for the OPP service bug while BT on/off

Update patch set for removing BOOT_COMPLETED.

BluetoothOppService.java : use sendMSG instead of sendMSGdelayed
BluetoothOppReceiver.java : delete boot-complete line
AndroidManifest : delete boot-complete line

Change-Id: Icf9a2f48a70ba519cb3caf93a0b33e13472d1f54
Author: jhtop.kim <jhtop.kim@samsung.com>
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppService.java
66cbd62c4837f1e9a261fb1bde1d470c904f2346 04-Aug-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth :fix opp for socket error retry

When the pin or link key missing case occurs,
we need to retry the socket connection. Use a timeout
of 1.5 secs instead of 2.5 secs because the ACL inactivity
timer is 2 secs.

Change-Id: I3d4c096bd823e3204e91040bea608e44471dd4ce
ndroid/bluetooth/opp/BluetoothOppTransfer.java
6861c09108700815891920147247f2cf48261ee4 02-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Check if BT is already enabled before starting activity.

If BT is off, and if the user sends a file, BT will be turned on
and the "Enabling dialog" wil be shown. But with the hot feature,
BT turns on very fast which leads to the intent being missed and the
enabling dialog not being dismissed.

Change-Id: I4f4a6f08e04922a61eb7138b76383a77f8d37da4
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
77e6229d558b52c316fdba8dd29a6b26fb13fd28 30-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for pbap ANR while BT on/off

Don't wait to start the listener.

Change-Id: I257332bc38a25b3ca772267a974b4280a8074c40
ndroid/bluetooth/pbap/BluetoothPbapService.java
b0b662a98d8b7c099ee706d0e08bd239adcdffc7 27-Jul-2011 Jaikumar Ganesh <jaikumar@google.com> Fix notification issues with OPP.

Since its a notification event for an ongoing event, add the flag.
That prevents it from being scrollable.

Change-Id: Iaea2e7005cb4f8ab5d0b594c4ef9b30343b730fc
ndroid/bluetooth/opp/BluetoothOppNotification.java
7eab97d6be9228b1c210bbb171c3e5e88e02f3d8 28-Jun-2011 Matthew Xie <mattx@google.com> Move Pbap permission dialog to Settings app.

Strings and diglog are removed and will reappear and modified in Settings
app. We want phone AT commander to use the dialog too.
bug 4489572

Change-Id: I0283b5deff974e53384dc5a92bd01c02e12bbcd6
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
bf287751bfa6795493b80b0f22854f747f6f974a 22-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "pullVcard of unknown phone number"
d54a9ac9fd18e2f1df30774a0b6902b91752ea66 22-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "Revert "pullVcard of unknown phone number""
77ba5f6684f4dd7e4b7fc37982271da5654aec07 21-Dec-2010 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> pullVcard of unknown phone number

When performing a pullVcardListing, pullVcardEntry or pullPhonebook
on a phone with a call list which contains an unknown phone number,
the phone returns "-1" as number/name. Corresponding errors exist
for private and payphone numbers, where the phone returns the name
"-2" and "-3", respectively. During pullVcardListing the Name
attribute may contain the phone number, in case the name is not
known. The latter is already implemented today, however, instead of
using e.g. "-1" as name when the phone number is not known the
phone should use Name = "Unknown". Currently there are no other
matching corresponding strings defined for private and payphone
number, which means that for now "Unknown" may be returned as name
also for these numbers.
During pullVcardEntry and during pullPhonebook when the phone number
is unknown then the Number attribute should contain the string
"Unknown". During the same scenario the FN and N attributes both
should contain the string "" when the name is not known. When it
comes to private and payphone numbers the same as for
pullVcardListing apply here, i.e. "Unknown" may be used in the
Number attribute also for these numbers

Change-Id: Icf06e527032588f075ff848bea1ba90bf71e874f
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
2f429e31a13f81c9248173b144efca32c0070045 22-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Revert "pullVcard of unknown phone number"

This reverts commit 86d30be8aa68d0a2b561c36b53f4e5ebe586fe72.
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
44c347ad717ca51b00819736227f7a9c81905396 15-Jun-2011 Liejun Tao <L.J.Tao@motorola.com> Modify the Rfcomm retry logic

In BluetoothOppTransfer where we check mRetry and e.getMessage()
if mRetry is false and e is not "Invalid exchange", the transfer is stuck

Change-Id: Ie7a4da215c9e74e167db9fa29c6e113a7a7a2c77
ndroid/bluetooth/opp/BluetoothOppTransfer.java
d318d6a134efc5bd43653c463699802381f2e0cb 08-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am 9d67ffda: am c50dbb00: Merge "OPP: Notification position is changing"

* commit '9d67ffdac68b49cfc72491f7e2c340df922dbcca':
OPP: Notification position is changing
81512ba08c038366688fbe918373f7a9d3e31c9a 08-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am 6874774a: am e7df5087: Merge "Handle OBEX Abort packets sent from remote device"

* commit '6874774ab6b2fe5d90896be756d26a9887e4124b':
Handle OBEX Abort packets sent from remote device
9d67ffdac68b49cfc72491f7e2c340df922dbcca 07-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am c50dbb00: Merge "OPP: Notification position is changing"

* commit 'c50dbb0067de1772ced124f5982a59468ad81426':
OPP: Notification position is changing
6874774ab6b2fe5d90896be756d26a9887e4124b 07-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am e7df5087: Merge "Handle OBEX Abort packets sent from remote device"

* commit 'e7df508750728dc2bbd7729d54673bf16f7688c3':
Handle OBEX Abort packets sent from remote device
c96189602abe4cb3ca2ee97fa6fdc383a05930ba 06-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am 29cedf41: am a2407587: Merge "Require bonding and encryption for PBAP server"

* commit '29cedf4183144e450c226dec6668ff0d633cee93':
Require bonding and encryption for PBAP server
29cedf4183144e450c226dec6668ff0d633cee93 06-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> am a2407587: Merge "Require bonding and encryption for PBAP server"

* commit 'a2407587440d487aa0171638eef29526515fde59':
Require bonding and encryption for PBAP server
c50dbb0067de1772ced124f5982a59468ad81426 01-Jun-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "OPP: Notification position is changing"
9abe9c9e1ccad600b1069490293d78dfd984017b 22-Feb-2011 Andreas Areskoug <andreas.areskoug@stericsson.com> Handle OBEX Abort packets sent from remote device

This patch adds support for handling OBEX Abort packets
sent from remote device, where the remote device is acting
as a client, sending files to the server.

Depends-On: I0fc2255c463c5ce1e8fa1d7febf144b60965a1be

Change-Id: I4bce05a9007ba02e9d9987ec3cbbf1db380247f0
Signed-off-by: christian bejram <christian.bejram@stericsson.com>
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
86d30be8aa68d0a2b561c36b53f4e5ebe586fe72 21-Dec-2010 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> pullVcard of unknown phone number

When performing a pullVcardListing, pullVcardEntry or pullPhonebook
on a phone with a call list which contains an unknown phone number,
the phone returns "-1" as number/name. Corresponding errors exist
for private and payphone numbers, where the phone returns the name
"-2" and "-3", respectively. During pullVcardListing the Name
attribute may contain the phone number, in case the name is not
known. The latter is already implemented today, however, instead of
using e.g. "-1" as name when the phone number is not known the
phone should use Name = "Unknown". Currently there are no other
matching corresponding strings defined for private and payphone
number, which means that for now "Unknown" may be returned as name
also for these numbers.
During pullVcardEntry and during pullPhonebook when the phone number
is unknown then the Number attribute should contain the string
"Unknown". During the same scenario the FN and N attributes both
should contain the string "" when the name is not known. When it
comes to private and payphone numbers the same as for
pullVcardListing apply here, i.e. "Unknown" may be used in the
Number attribute also for these numbers

Change-Id: I33cf6ceecf5c8fba426eacbb3a507228f8e4de4d
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
74e5eba4a45ecca87eec3ac1762ca527cc614d78 12-Apr-2011 erik.ljungberg <erik.ljungberg@sonyericsson.com> OPP: Notification position is changing

If several transfers is ongoing the Bluetooth transfer notification
is changing position. The reason for this is that the when field is
not set in the notification. Solved by setting when.

Change-Id: If999fae6dd2d6b5de38c3bfeba786ad2df9da48f
ndroid/bluetooth/opp/BluetoothOppNotification.java
a2407587440d487aa0171638eef29526515fde59 26-May-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "Require bonding and encryption for PBAP server"
4672c98499234667141ddd7ffcdd7db6acc45fd3 22-May-2011 Jaikumar Ganesh <jaikumarg@android.com> am b5f6bb1a: am d8a9af40: Merge "BT: Fix for vCard Listing error"

* commit 'b5f6bb1afba8d322d7453cb6a24751599897234a':
BT: Fix for vCard Listing error
b5f6bb1afba8d322d7453cb6a24751599897234a 21-May-2011 Jaikumar Ganesh <jaikumarg@android.com> am d8a9af40: Merge "BT: Fix for vCard Listing error"

* commit 'd8a9af404413ad060eb4aa29a32370b44e61327e':
BT: Fix for vCard Listing error
d8a9af404413ad060eb4aa29a32370b44e61327e 20-May-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "BT: Fix for vCard Listing error"
73adcc0f5b6051ef514a3f16a2e28eabee2b367e 02-May-2011 Conley Owens <cco3@android.com> Merge commit 'a2f16c01' into m

Conflicts:
src/com/android/bluetooth/pbap/BluetoothPbapCallLogComposer.java
src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java

Change-Id: Ib3533b9713373c84636940dbe3e41203898aef46
a2f16c010b59d3bc9ff978b178ded62c1e2b9d8f 30-Apr-2011 Conley Owens <cco3@android.com> am 4da2545c: am f6dace4a: Merge "Bluetooth: Add vCard version support for call history."

* commit '4da2545c8543c7ba4729f63c86a38008309ec870':
Bluetooth: Add vCard version support for call history.
f6dace4a1ed909d9a5f87781a7c4e02cc06fc021 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Bluetooth: Add vCard version support for call history."
174a747944b553c654d149140d034612924d3ece 05-Apr-2011 Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> BT: Fix for vCard Listing error

This patch fixes listing of the incomplete vCard xml file, which
contains special characters which are larger than one byte.

Change-Id: Ice5a056004aa30255a06f8742428d4bcfa5813c8
Signed-off-by: christian bejram <christian.bejram@stericsson.com>
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
91fec75311a589cb56260c1c724217e2987055b2 26-Apr-2011 Jaikumar Ganesh <jaikumarg@android.com> am 2db76af8: am a96efa27: am 16fc087d: Merge "Fixing crash in BluetoothPbapService."

* commit '2db76af8fa625692430dfc1a21910be2eaa92581':
Fixing crash in BluetoothPbapService.
2db76af8fa625692430dfc1a21910be2eaa92581 26-Apr-2011 Jaikumar Ganesh <jaikumarg@android.com> am a96efa27: am 16fc087d: Merge "Fixing crash in BluetoothPbapService."

* commit 'a96efa270cf215602b0ab1f3603c24aadff808da':
Fixing crash in BluetoothPbapService.
7d6a3299b58c5b53de4016a2e199974b94ae90df 26-Apr-2011 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Fixing crash in BluetoothPbapService.

If Bluetooth is turned off while there is an PBAP connect request
pending, the status bar notification or yes/no activity will not
disappear. If user selects yes, an intent will start PbapService
again. PbapService will try to make the device trusted. As this
instance of PbapService don't have any connected device, crash will
occur.

Make sure status bar notification or yes/no activity disappears, by
sending timeout intent when Bluetooth is turned off.
Also, PbapReceiver should not forward any intents except STATE_ON
if Bluetooth is off as this will start the PbapService.

Change-Id: Iee4f95ab2de34db6e00ff9b1fd7f8677947b8f4f
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
013de33607d3bcde51074d12ffe4e2c2d734fdcd 14-Apr-2011 Jaikumar Ganesh <jaikumarg@android.com> am 929d38f9: am 3c68bca8: am 138654ff: Merge "The phone did not reject unsupported vCalendar item"

* commit '929d38f9226a00941571804a490e76eb4c6eef10':
The phone did not reject unsupported vCalendar item
929d38f9226a00941571804a490e76eb4c6eef10 14-Apr-2011 Jaikumar Ganesh <jaikumarg@android.com> am 3c68bca8: am 138654ff: Merge "The phone did not reject unsupported vCalendar item"

* commit '3c68bca80f40710b70e3f9173cea167b30a8dcb4':
The phone did not reject unsupported vCalendar item
76d17f9aff4a4aaad0f5af91eee1028473c10b16 06-Dec-2010 Olsson <ola1.olsson@sonyericsson.com> The phone did not reject unsupported vCalendar item

vCalendar is not supported in the phone but it was not
rejected. A blacklist was present in the code but not
used. Hence, this fix enables the blacklist functionality.

Change-Id: I4fefe0e819eb025d37c972cf7e74eabd4f6e6585
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
fdd53743b3498251e567e5bd842d945247bc22c4 31-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Reflect vCard API change"
4b6529651194554bffbeb36baf9b14b09d610e61 31-Mar-2011 Jaikumar Ganesh <jaikumarg@android.com> am 59199b74: am a4f55f77: am c298d29b: Merge "Add check for null pointer to avoid crash."

* commit '59199b744c6f107afaac8ec9347d1c04ca6b2ab8':
Add check for null pointer to avoid crash.
3c4d2c77c2fffe675fbe89ba58856686b6873d2f 17-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Reflect vCard API change

Remove dependency toward OneEntryHandler in vCard code.

This change doesn't take care of oom for simplicity.

See also Id623814e8f5961aaf9cf9b4dcc92f75ace401148

Bug: 4066223
Change-Id: I3c5a58fef5a404b992a3c17578eeb63518294231
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
59199b744c6f107afaac8ec9347d1c04ca6b2ab8 30-Mar-2011 Jaikumar Ganesh <jaikumarg@android.com> am a4f55f77: am c298d29b: Merge "Add check for null pointer to avoid crash."

* commit 'a4f55f7702bca57c0dbb543ee3e2cb1686e616fc':
Add check for null pointer to avoid crash.
c298d29b081e4240c80750e9431b7189d0b38513 30-Mar-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "Add check for null pointer to avoid crash."
b3c06ce9377661a63bc2fbd182c219fd69453b1d 21-Mar-2011 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Require bonding and encryption for PBAP server

The Phonebook Access Profile specification requires bonding and
encryption. For devices not supporting SSP (Secure Simple Pairing),
InsecureRfcomm will require neither. Adding EncryptedRfcomm to force
bonding and encryption but not requiring authenticated link key.

Change-Id: I987ca50ff7f60813b5311cead8d6a30a9123d54b
ndroid/bluetooth/pbap/BluetoothPbapService.java
6b923ee6bf0c80dc4edeabb3694132f3fd40ce03 10-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use old version of vCard composition method

Must be after I91b65f881e1712ecf82c2e119a92bc70c43c623c

Bug: 4066223
Change-Id: Icca2019b10fc84e437efbc2606cd5703b3ea0a5f
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
98a53e5bdb2500109c304f2b5364c1715ab745d8 06-Dec-2010 martin ma <martin.ma@sonyericsson.com> Add check for null pointer to avoid crash.

This is added in order to prevent a crash. Also, updating the name
of a device to null, making it appear as 'Unknown', is probably not
intended.

Change-Id: Ibd3c93741489aae9118ba7b45223d58d5de6812f
ndroid/bluetooth/opp/BluetoothOppPreference.java
c5813a6dcf079202d8dce16a37cbadd427804d9c 01-Mar-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "Check if BT is allowed in airplane mode"
72d2f1d8b81087c0a00310ff43e5d060dc8b7867 01-Mar-2011 Jaikumar Ganesh <jaikumarg@android.com> Merge "Handle pullVcardListing req without search value for Number attr."
d6a1c1c4bf3da920582e17c8c6e32c7ef74a555f 08-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Retry rfcomm socket connections after link key exchange error.

If the devices were paired before, but unpaired on the
remote end, it will return an error (when sending a file)for the auth
request for the socket connection. Link keys will get exchanged
but we need to retry the socket connection. There is no good way to
inform this socket asking it to retry apart from
a delayed retry. The socket is opened at the kernel level
but the link key retrys happen at the Bluez userspace level.

Note: This is a temporary change, once the new mgmt interface comes
up in Bluez, we wouldn't need this.

Change-Id: Ifbd93d7f69b93515dda6c6f4ad2796853f9d5841
ndroid/bluetooth/opp/BluetoothOppTransfer.java
a85ff0a96f7d5f64bf1e9ca99789cb8dc69f6d97 05-Jan-2011 Kevin LeBlanc <kevin.leblanc@sonyericsson.com> Check if BT is allowed in airplane mode

Currenty, the bluetooth sharing activity always quits with an error
message if airplane mode is on. Instead, the activity should check
if bluetooth may be enabled in airplane mode, given the current
system settings.

Change-Id: If9272a941504054d7819e0248f93a8b5bca8d41e
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
4bba23a751f042596561eab0e677135d5267bcdf 07-Jan-2011 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> Handle pullVcardListing req without search value for Number attr.

When sending pullVcardListing request to the phone while using
the search attribute "Number" without any search value, the
phone responds with error code "internal error".

Instead the phone should return all numbers in the phonebook.

Change-Id: I7c11b76bbd61882c62be3533b1c45c2c72f497b2
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
1ed96d522298e8f48690a4f4cbf2e0c6b402e3a0 26-Jan-2011 Jake Hamby <jhamby@google.com> Implement "show received files" intent for Settings.

Add a handler for a new intent (sent from the Settings app) to
show all files received via Bluetooth. This is equivalent to the
now deprecated live folder view of received files.

Bug: 3167219
Change-Id: Ibb8d3738d62301af5b012489a69ac078e554b66d
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
ndroid/bluetooth/opp/Constants.java
afdc7cbd31e835ce4610338b54e0de1337957cc8 07-Jan-2011 Yoshiharu Kurita <yoshiharu.x.kurita@sonyericsson.com> Fix 'New Missed Calls' count in PullvCardListing

When the phone receives a PullvCardListing request about mch
(Missed Call History), PBAP application sends a corresponding
response which contains the number of 'New Missed Calls' in
the header. Currently, the number of 'New Missed Calls' is
included into a response against the other type of
PullvCardListing request after the phone receives mch
PullvCardListing request which contains MaxListCount = 0 and
ListStartOffset = 0 (these parameters mean PCE only wants the
number of index), because any of PullvCardListing requests
are miss-detected as mch in this case. And then the internal
value for 'New Missed Calls' is also updated, so the number
of 'New Missed Calls' becomes incorrect when answering the
next PullvCardListing about mch.

The solution is to fix the miss detection.

Change-Id: Ic09257fc554d8b7af9498d2ff79e017f6e56510c
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
9522370104410f24602ac98172bfbda27f89780d 07-Jan-2011 Yoshiharu Kurita <yoshiharu.x.kurita@sonyericsson.com> Fix 'New Missed Calls' count in PullvCardListing

When the phone receives a PullvCardListing request about mch
(Missed Call History), PBAP application sends a corresponding
response which contains the number of 'New Missed Calls' in
the header. Currently, the number of 'New Missed Calls' is
included into a response against the other type of
PullvCardListing request after the phone receives mch
PullvCardListing request which contains MaxListCount = 0 and
ListStartOffset = 0 (these parameters mean PCE only wants the
number of index), because any of PullvCardListing requests
are miss-detected as mch in this case. And then the internal
value for 'New Missed Calls' is also updated, so the number
of 'New Missed Calls' becomes incorrect when answering the
next PullvCardListing about mch.

The solution is to fix the miss detection.

Change-Id: Ic09257fc554d8b7af9498d2ff79e017f6e56510c
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
0995f126a9835d63a87d4c2c985a43004978c94d 07-Jan-2011 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> Handle pullVcardListing req without search value for Number attr.

When sending pullVcardListing request to the phone while using
the search attribute "Number" without any search value, the
phone responds with error code "internal error".

Instead the phone should return all numbers in the phonebook.

Change-Id: I7c11b76bbd61882c62be3533b1c45c2c72f497b2
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
c83ffa5289995a4071b5d84055da07e2c72de2d9 05-Jan-2011 Kevin LeBlanc <kevin.leblanc@sonyericsson.com> Check if BT is allowed in airplane mode

Currenty, the bluetooth sharing activity always quits with an error
message if airplane mode is on. Instead, the activity should check
if bluetooth may be enabled in airplane mode, given the current
system settings.

Change-Id: If9272a941504054d7819e0248f93a8b5bca8d41e
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
091ff0151b6b3094ba712e63529d3caaf0f42090 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 3500d1cc: Merge "BT - Not possible to accept incoming obex transfers using key-presses."

* commit '3500d1cc714807945b1427e43eb3bde367849e43':
BT - Not possible to accept incoming obex transfers using key-presses.
3500d1cc714807945b1427e43eb3bde367849e43 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> Merge "BT - Not possible to accept incoming obex transfers using key-presses."
227e60370e1c070315a43044bfdb77e1efb1393b 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am cbb50b68: Merge "Incorrect response code after pull of invalid vCard handle."

* commit 'cbb50b684e181f78d3ca5b304e97f9c5a67809b6':
Incorrect response code after pull of invalid vCard handle.
f0e1bc31822d23c1c8bccf1ab17907a1d803a62d 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 89186622: Merge "Sanitise Bluetooth file name hint when receiving a contact"

* commit '89186622fa240083a46336a9e5e4ade52c5698d9':
Sanitise Bluetooth file name hint when receiving a contact
cbb50b684e181f78d3ca5b304e97f9c5a67809b6 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Incorrect response code after pull of invalid vCard handle."
6f02f510e5dc3fb994516128f2de1d78bc7f9b1e 07-Dec-2010 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> Incorrect response code after pull of invalid vCard handle.

When calling pullVcardEntry with an invalid / non-existing
vCard handle the response code is always "OK".

Instead the phone should respond "NOT FOUND" according
to Bluetooth PBAP specification.

The problem exists both for phonebook and call logs.

Change-Id: I339b1fe0cdb7fa9b6c6b425f1b1686c24cab9626
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
5e9a02df66c6044bd4a06b9d53e6cdbd8ad22606 28-Sep-2010 Edward Savage-Jones <edward.savage-jones@sonyericsson.com> Sanitise Bluetooth file name hint when receiving a contact

If a contact name is entered with any of the following characters

:"<>*?|\n\t

the transfer of that contact fails. This is due to the underlying
filesystem (FAT) not being able to handle these characters in a
file name. This fix corrects that situation by replacing any
whitespace characters with a space and illegal FAT filesystem
characters with underscore.

Change-Id: I5021bd26a16c31810a61bac3f70439c1153451c2
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
9935a310a4f36c9f835c5c3aa2f604ddc36cabb1 21-Dec-2010 Xiaodong Xu <xiaodong.xu@sonyericsson.com> Bluetooth: Add vCard version support for call history.

Under current implementation, PSE only deliver call history
under format VCard2.1 to PCE, this is not correct according to
PBAP specification, which says "The PSE shall support both
vCard2.1 and vCard3.0 versions and deliver the Entries to the
PCE under the format version that is requested by the PCE."
This fix is to make implementation following such PBAP
specificaiton.

Change-Id: Id0146d0887bad3bd066109ecd3be674b3106bced
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
0b13debc0aaca69bbef781da47a2ca5c0e6d9af7 08-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am e7f887da: resolved conflicts for merge of 55936599 to stage-korg-master

* commit 'e7f887dab2591a46ecf80616e00f33bb5d847935':
code cleanup. unused imports, local variabls and static constans removed from com.android.bluetooth.opp package.
e7f887dab2591a46ecf80616e00f33bb5d847935 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 55936599 to stage-korg-master

Change-Id: I5f04a3ae2f0246853f16b0fdb209e67df95e6ca8
e1fd97242bcac3c546c35a2576df3fafee04d25a 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 22e1e357 to master

Change-Id: I96ff536c0d1c000a6b6d5b0b2ea5a3849b21985e
22e1e357b6053b572820b54ed8f2b8fe3c1eb0f8 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 16d171b1: Merge "code cleanup. some unused import statement, local variabls, private members and static constants removed form classes in com.android.bluetooth/pbap package."

* commit '16d171b1ba7bd2b74c15b9f4d0289de84117cbb5':
code cleanup. some unused import statement, local variabls, private members and static constants removed form classes in com.android.bluetooth/pbap package.
a930b6831d0c70b6c5d34e548e6b1dceaa6529a0 01-Nov-2010 Mohammad Shamsi <m.h.shams@gmail.com> code cleanup.
unused imports, local variabls and static constans removed from
com.android.bluetooth.opp package.

Change-Id: I0fd682a190221e216fac71723c05d3828b9fa42d
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
ndroid/bluetooth/opp/TestActivity.java
cff3303d1878037f35c9feb58e0c747aef403d4d 01-Nov-2010 Mohammad Shamsi <m.h.shams@gmail.com> code cleanup.
some unused import statement, local variabls, private members and static constants removed form
classes in com.android.bluetooth/pbap package.

Change-Id: I95d7d403ab78afa6f9ada82cfb357056a6bf61d0
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
84ec2fa756c3e918b6083726271128096de57ffb 23-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Send CONNECTION_STATE_CHANGE intent.

Change-Id: Ibbf53b1f96d92c9d0c6acbfc491e93046136e95d
ndroid/bluetooth/pbap/BluetoothPbapService.java
affbd828459349396e000624a90a4ea800a7108b 14-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> am 5eadab02: am 4492b2c6: Fix OPP crash and Call Log sort order.

Merge commit '5eadab02ea3202f417434a13a7637379fffc43de'

* commit '5eadab02ea3202f417434a13a7637379fffc43de':
Fix OPP crash and Call Log sort order.
4492b2c66cf3b26fd988f3b7f1f5df6cc9ed49f2 12-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Fix OPP crash and Call Log sort order.

Bug: 3067780 3067770
Dr No: jerry

Change-Id: I2ac39e2f1f0233a6ada84af39d8addfe0fe04cea
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
99c41899699fef2cea41cb227003eeda851f93ad 11-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> am c47e9733: am 3f475149: Merge "Make "search by number" function work" into gingerbread

Merge commit 'c47e9733b12c81b24ec32f0707f2cd5288aaf6b0'

* commit 'c47e9733b12c81b24ec32f0707f2cd5288aaf6b0':
Make "search by number" function work
8fb1d457e213dfa7b4f2f7057a7d7340a1db972c 07-Oct-2010 Nick Pelly <npelly@google.com> am a6a28724: am 82d9bdb1: Merge "Don\'t enforce Authenticated Link key (MITM protection) on PBAP." into gingerbread

Merge commit 'a6a28724002f61ad69d240192e3886be11a61693'

* commit 'a6a28724002f61ad69d240192e3886be11a61693':
Don't enforce Authenticated Link key (MITM protection) on PBAP.
0dcd2262d853c2011e11617a8efba6758370c41f 05-Oct-2010 Liejun Tao <L.J.Tao@motorola.com> Make "search by number" function work

Previous "search by number" is wrong. Re-implement it to make it work.
Add flexible to handle searchValue as both null-terminated and not
null-terminated.

Change-Id: Ie50f8d29dfcbae868c43d482467b09b08ed2be0f
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4fbc7412b96934831ce29a7af54b170056f8c2de 04-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Don't enforce Authenticated Link key (MITM protection) on PBAP.

Gory Details:
SecureRfcomm API => authentication is true and encyrption is true. (HIGH)
InSecureRfcomm API => authentication is false and encryption is true. (MEDIUM)
The authentication above refers to the authentication of the link
key i.e prevention of MITM attacks.
Bluetooth 2.0 legacy pairing doesn't provide MITM protection.

Bluetooth 2.1 -> If pairing is done with MITM protection already,
this doesn't matter. If pairing is NOT done with MITM protection
we have the same security as the other core profiles. It dones't make
sense to enfore MITM for this profile while having Handsfree profile
to not have MITM i.e some attacker can listen in on conversations.

Why are we changing this now: More headsets with 2.1 and No Input/Output
have started to support PBAP. So we pair without MITM with them and then
when the PBAP request comes it fails because we need MITM protection and
we try to exchange keys (i.e pair again)
The headset don't allow pairing to happen at any time because its a security
issue and hence PBAP request fails.

Change-Id: Ia80c15c545e9396e7c6882b731c90a8ede119827
ndroid/bluetooth/pbap/BluetoothPbapService.java
4ce32fccf381a3b448f0d5ff56665201c0e0e6d3 16-Jun-2010 Ola Johnsson <ola.johnsson@sonyericsson.com> PullvCardList implemented according to specification

The value tag sent as a byte array was not parsed correctly
leading to illegal strings. The list count value was not used
according to the specification, now refers to number of entries
that should be returned. Specification for Phone book access
profile chapter 5.3 default max list size of OxFFFF (65535)
taken from 5.3.4.4. Now uses default values when Application
Parameter headers are missing.

Change-Id: Ib17f2208a91b4f896d9beebaf3a21566502ac291
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
7a93f67e130cd9d0972d4f1346c8bcf3250e687e 29-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> am 8b08754f: am 5f78d4ef: Merge "Update BT folder icon." into gingerbread

Merge commit '8b08754fe9d87d6f6f3b19b81330622889ac8264'

* commit '8b08754fe9d87d6f6f3b19b81330622889ac8264':
Update BT folder icon.
8b08754fe9d87d6f6f3b19b81330622889ac8264 29-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> am 5f78d4ef: Merge "Update BT folder icon." into gingerbread

Merge commit '5f78d4ef75710e3dbf608644b16da7c6f88d00ed' into gingerbread-plus-aosp

* commit '5f78d4ef75710e3dbf608644b16da7c6f88d00ed':
Update BT folder icon.
5f78d4ef75710e3dbf608644b16da7c6f88d00ed 29-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Update BT folder icon." into gingerbread
5b09b7148807c3f864da0a671141f2a2379445b2 29-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT folder icon.

Change-Id: I1aecca20d4a9aaaf8e4aad37eb5c2e2357fad6ad
ndroid/bluetooth/opp/BluetoothOppLiveFolder.java
3fba9e8d40649b06fe1f4f7d99f4655e9e2500fe 28-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am c24d5e25: am 0a79bdbb: Trim the Bluetooth database off the main thread.

Merge commit 'c24d5e2584346d02fe6a6cabae2ada4cf3e04ee1'

* commit 'c24d5e2584346d02fe6a6cabae2ada4cf3e04ee1':
Trim the Bluetooth database off the main thread.
c24d5e2584346d02fe6a6cabae2ada4cf3e04ee1 28-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 0a79bdbb: Trim the Bluetooth database off the main thread.

Merge commit '0a79bdbbfa3b79b808cbbe7490731e5aae4489e9' into gingerbread-plus-aosp

* commit '0a79bdbbfa3b79b808cbbe7490731e5aae4489e9':
Trim the Bluetooth database off the main thread.
0a79bdbbfa3b79b808cbbe7490731e5aae4489e9 28-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Trim the Bluetooth database off the main thread.

This looks to be most if not all of the remaining StrictMode
violations in this process. Not a huge deal, but cleaning up noise
will make bigger problems stand out easier in the future.

Change-Id: I262194c12114114fbe059d73475afb1bbb5654ab
ndroid/bluetooth/opp/BluetoothOppService.java
453050fdaf7dcd488f399d3549ce257e7b9e7e79 17-May-2010 Wojciech Jowsa <wojciech.jowsa@stericsson.com> BT - Not possible to accept incoming obex transfers using key-presses.

It is not possible to accept/reject an incoming obex file transfer
using key-press. Only touch screen press was working.

With this fix, key press down is not ignored and it is possible
to accept/reject an incoming obex file transfer with key-press.

ST-Ericsson Change ID: ER260817
Change-Id: Ic7f668bd1b0efa549d0218edc8719efee1984941

Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
6dfc94e0b2a57f95432dd2dd4e505f7d80f6b594 22-Sep-2010 a5206c <a5206c@motorola.com> am 541939ff: am 77b122f5: For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT

Merge commit '541939ff48867b2a8656503d29f29eb6bf6f1a30'

* commit '541939ff48867b2a8656503d29f29eb6bf6f1a30':
For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT
541939ff48867b2a8656503d29f29eb6bf6f1a30 22-Sep-2010 a5206c <a5206c@motorola.com> am 77b122f5: For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT

Merge commit '77b122f551ae37811c75ae76fa2029f7b3f2f404' into gingerbread-plus-aosp

* commit '77b122f551ae37811c75ae76fa2029f7b3f2f404':
For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT
77b122f551ae37811c75ae76fa2029f7b3f2f404 22-Sep-2010 a5206c <a5206c@motorola.com> For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
f3d6b25c0ea3b2bcd01ab457967c7b40ccd20b5b 13-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let BT use FLAG_REFRAIN_IMAGE_EXPORT.

Bug: 2603200
Change-Id: I385e831b8c5684cc75c249ee6d41d5256a29f3c5
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
0fd720422f69837c3c121c2debeac71794d27e30 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am d4693ca9: am 55470710: Replace use of SharedPreference commit() with apply().

Merge commit 'd4693ca99284a12703a0de9fd6c70f50262073e0'

* commit 'd4693ca99284a12703a0de9fd6c70f50262073e0':
Replace use of SharedPreference commit() with apply().
d4693ca99284a12703a0de9fd6c70f50262073e0 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 55470710: Replace use of SharedPreference commit() with apply().

Merge commit '55470710c2624bde2aa56275d29b60055638c06c' into gingerbread-plus-aosp

* commit '55470710c2624bde2aa56275d29b60055638c06c':
Replace use of SharedPreference commit() with apply().
55470710c2624bde2aa56275d29b60055638c06c 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Replace use of SharedPreference commit() with apply().

Also fix a typo and replace a bunch of redundant
SharedPreference.Editor commits with one at the end.

Change-Id: I75623cb6809a363d05421f80f1560d586ae1ab80
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
6a962312358451fbb3c77ff7f6048388178f5677 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 0ddb8aab: Modify variables used in vCard code.

Merge commit '0ddb8aabe0f62d7741ee0aa040e43643b823c441' into gingerbread-plus-aosp

* commit '0ddb8aabe0f62d7741ee0aa040e43643b823c441':
Modify variables used in vCard code.
0ddb8aabe0f62d7741ee0aa040e43643b823c441 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify variables used in vCard code.

See also Icf265ce7f83c1e2bd5db0c3d9bd4c142afd6db34

Change-Id: I3a94e86d0788a395ac0744bdf6e31c8e64fb0c15
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
addc5ca6de80b9956faf7b3fff9815a4ccde8e93 30-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> am 44fbf5a3: am 8e658ce5: Merge "Send vCard with Unicode encoded Strings over BT" into gingerbread

Merge commit '44fbf5a3537d1d701eedbd85e7115c36ef851c58'

* commit '44fbf5a3537d1d701eedbd85e7115c36ef851c58':
Send vCard with Unicode encoded Strings over BT
44fbf5a3537d1d701eedbd85e7115c36ef851c58 30-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> am 8e658ce5: Merge "Send vCard with Unicode encoded Strings over BT" into gingerbread

Merge commit '8e658ce507d2525616ca27aa7135032eee9a5e75' into gingerbread-plus-aosp

* commit '8e658ce507d2525616ca27aa7135032eee9a5e75':
Send vCard with Unicode encoded Strings over BT
8e658ce507d2525616ca27aa7135032eee9a5e75 30-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Send vCard with Unicode encoded Strings over BT" into gingerbread
f890b9395afee07aef2ae93e1213819919bc5e9f 27-Aug-2010 Edward Savage-Jones <edward.savage-jones@sonyericsson.com> Send vCard with Unicode encoded Strings over BT

The standard Android code doesn't correctly handle creation of byte
packets when sending vCard data. The length of a String is used to
specify the number of bytes being sent, which works if all
characters are ASCII (1 byte per char), but if Unicode characters
exist within the string, then bytes vs String length differ which
causes a truncation of the vCard during Bluetooth send.

Change-Id: Ic39dd53a38f1f353523c625940b0317b00e86d4f
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
b8c5dba8b3e9a46873b8568d5cbead6d7390f96b 27-Aug-2010 Edward Savage-Jones <edward.savage-jones@sonyericsson.com> Send vCard with Unicode encoded Strings over BT

The standard Android code doesn't correctly handle creation of byte
packets when sending vCard data. The length of a String is used to
specify the number of bytes being sent, which works if all
characters are ASCII (1 byte per char), but if Unicode characters
exist within the string, then bytes vs String length differ which
causes a truncation of the vCard during Bluetooth send.

Change-Id: Ic39dd53a38f1f353523c625940b0317b00e86d4f
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
accd7a537cabd7d0a8f83471a4f635a2b44f9c00 11-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> am d5b94fe6: am ff2927dc: Merge "Optimize Opp Notification" into gingerbread

Merge commit 'd5b94fe6cd8144b9c6f0d6de35080f8ca49c601d'

* commit 'd5b94fe6cd8144b9c6f0d6de35080f8ca49c601d':
Optimize Opp Notification
d5b94fe6cd8144b9c6f0d6de35080f8ca49c601d 11-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> am ff2927dc: Merge "Optimize Opp Notification" into gingerbread

Merge commit 'ff2927dcdff66114e56b0636d6b29ac71f62508b' into gingerbread-plus-aosp

* commit 'ff2927dcdff66114e56b0636d6b29ac71f62508b':
Optimize Opp Notification
eb77c4b1d9aa71d7dd8dd934e9d1971583f9c0e2 03-Aug-2010 Liejun Tao <L.J.Tao@motorola.com> Optimize Opp Notification

Current Opp notification is running too frequently. When file transfer
speed is fast, it could update notification 7-8 times in 1 second.
Use a timer to limit the notification to once per second.

Change-Id: I162033d9e12148260515c8ed318928e4de9a4392
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
b6885cba0539ea82025862394e0dac010a5a8f33 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 587ef795: merge from open-source master

Merge commit '587ef79589b5b453e71f8472baea583390579e20'

* commit '587ef79589b5b453e71f8472baea583390579e20':
PullvCardList implemented according to specification
587ef79589b5b453e71f8472baea583390579e20 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Id325ee50130e50b8080fd3a1e51a4fda8371e4c8
12f500b84c1a635d0ed951c8c586f81b55fb9f6b 16-Jun-2010 Ola Johnsson <ola.johnsson@sonyericsson.com> PullvCardList implemented according to specification

The value tag sent as a byte array was not parsed correctly
leading to illegal strings. The list count value was not used
according to the specification, now refers to number of entries
that should be returned. Specification for Phone book access
profile chapter 5.3 default max list size of OxFFFF (65535)
taken from 5.3.4.4. Now uses default values when Application
Parameter headers are missing.

Change-Id: Ib17f2208a91b4f896d9beebaf3a21566502ac291
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
0d17dc3f5be65452b7998125e22537868bdfa9ed 08-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> am 69b2c318: Merge "Set number as "Unknown" for private numbers." into kraken
00aee7a70e3c76b6c9ef59133d59fcdc592fea99 07-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Set number as "Unknown" for private numbers.

Change-Id: I54bb9595913c90e72eef659627d95bb63398e84a
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
920ed171213a79b0d9877f4f7ce3a9046bed58a6 28-May-2010 David Yue <a5206c@motorola.com> am 0c21a35d: correct PBAP call log parameters
0c21a35d6d56dd42c97a80e3233df578d0a1cb21 27-May-2010 David Yue <a5206c@motorola.com> correct PBAP call log parameters
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
12cb33f6d9fd269944a5618661e3880beea58b6e 17-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Use a static version of vCard library.

See also I435e1057.

Bug: 2689523
Change-Id: I6aaa893d13ad2ff66f1439731ef7dbcf079b5011
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
f7df7a88230c525e2973ca5603f54a77fe47445d 13-May-2010 Jaikumar Ganesh <jaikumar@google.com> Use FLAG_REFRAIN_PHONE_NUMBER_FORMATTING to prevent discard
of "+", "p", "w" etc in phone numbers.

Change-Id: I20aa8d697925ac68dbfd9dc997dcf66fc0d7f5d8
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
ff55fbfa8cf30fe8a72e1a68420cd744ce957828 15-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Use FLAG_REFRAIN_PHONE_NUMBER_FORMATTING to prevent discard
of "+", "p", "w" etc in phone numbers.

Change-Id: Ic69d60e5831e59a497c523aa62c753922edf06f6
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
a988a391b2093fd2f9a50bde63177fe8a416da96 12-May-2010 David Yue <a5206c@motorola.com> am 00cd32b6: am b7533e86: Add missing moveToNext() calling.
00cd32b6c83164f942149613c03e41d7cd61a9fb 12-May-2010 David Yue <a5206c@motorola.com> am b7533e86: Add missing moveToNext() calling.

Merge commit 'b7533e86bb84a2f95c2cff62c1565a8e1696d1ea' into kraken

* commit 'b7533e86bb84a2f95c2cff62c1565a8e1696d1ea':
Add missing moveToNext() calling.
b7533e86bb84a2f95c2cff62c1565a8e1696d1ea 11-May-2010 David Yue <a5206c@motorola.com> Add missing moveToNext() calling.

Bug: 2674275
Change-Id: Ib5f5d2ebe3ff6ab02e43df38097a89541e132b55
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
b754e49db1753161dab1fe32e417101bcfabc9aa 05-May-2010 Lixin Yue <L.X.YUE@motorola.com> am 1d222264: Fix the %1 bug in UI when sdcard full
1d2222642c372e5635a906b6d6620ac35a304cf9 16-Apr-2010 Lixin Yue <L.X.YUE@motorola.com> Fix the %1 bug in UI when sdcard full
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppTransferAdapter.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
0894f16289755e5d3e81e0d8c1c8097179aeb7f7 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove wrong merge.

Change-Id: I94ff5633226d37fcc2df39fdcb7ad313a523d435
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
a7b31bac7cbea0382a14d7dcd22a01c3af370b54 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 96ae98f9: Make BluetoothPbapCallLogComposer use FLAG_REFRAIN_IMAGE_EXPORT.
96ae98f996c5809bb34156b85bfc9e3d01008246 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make BluetoothPbapCallLogComposer use FLAG_REFRAIN_IMAGE_EXPORT.

Bug: 2603200
Change-Id: Ie6a40c12fafac5927b616f31a8335df0181f9e18
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
e05d3a710c592db386b55a265a1e657b0467e49f 16-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make BT new structure.

Change-Id: If1400731a1ba9a91d493ca96f2cc0364ef9b5b18
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
ec6f2d44491bf1e3ffa7c75875985f9c16cf721d 26-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Clear notifications when the user presses clear from the notifications bar.

Bug: 2542260
Change-Id: I00f9d8216d70543b93cfbcdb2cd8da8331044d77
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/Constants.java
0bd5f7b5c36a60687ffe895368fd8df6df38acab 24-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Fix pbap and opp running bluetooth in phone process problems.

1. Use the right context instead of application context.
2. Make PbapActivity run in the same process as PbapService as they
share state.

Change-Id: Ib50c63c271dd8b30108f22734c47ee8645cd4839
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
20b5a93b6e18cd441065edfdf676ad612affc507 18-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Fix Typo.

Change-Id: Ia71a5b3bb970463132b2c25b90cf3897fc227fb9
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
7b0dbafb310175a465c8d06c44b748c1344d1d86 18-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Add ABORT request handling to PBAP"
2cd80b69baa6c96f1ab759fb45cd98e2cbc5f845 18-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Enhanced support to OPP content share"
151f41949621e082e127fe468bedd28289bc3a19 12-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Enhanced support to OPP content share

Add support to Browser link share via BT;
Add support to share files via BT in 3rd party file manager;

Change-Id: I9a93eb0891d0f670109afd44ab4064f7f15b01f3
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
60c43926b63509fa0607fc671e6fd91106d4a827 17-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Update notification in Transfer history manually when BT if off"
75fc857d22de0ec22e082bddb720d8465c9e3552 12-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> optimize deleting operation in trimDatabase()
ndroid/bluetooth/opp/BluetoothOppService.java
0b1b0069658326e8c12dc0f887e4319c5227feb5 16-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Add ABORT request handling to PBAP
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
de773e60fed15a4ad13325089a5609c9bc6ede59 15-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Update notification in Transfer history manually when BT if off
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
df25af65a20d30b18b4715d47ca6c0b2557116ad 10-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Trim Opp database when service restarts."
389f6dd45f7a45b12af847a510086125777e1198 03-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Trim Opp database when service restarts.

When Opp service restart, we will trim the database.
a) No visible case is deleted.
b) Invisible complete outbound (failed and successful) are deleted.
c) Invisible complete failed inbound are deleted.
d) Invisible complete success inbound are deleted if needed to keep records max
to 1000.

Live folder only has received files, so the above makes sense.

Change-Id: If27080721d9abed025162ff805f661fde01564d3
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/Constants.java
20844c451b1a82d683b3dd6169b00b03373f6531 10-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Not update TransferActivity button during activity creating."
0e927e914b80baf2d37439f8b99134cfe274a1d5 08-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Not update TransferActivity button during activity creating.

This is to fix below issue: when an ongoing transfer is almost to complete,
click the ongoing notification to launch TransferActivity, there will be
possible crash due to NullPointerException.
Root casue is: when TransferActivity onCreate() is called, the transfer is
still ongoing, so mIsComplete is false; but when onCreate() call to
updateProgressbar(), the transfer may change to complete, and then updateButton()
will be called; In updateButton(), mAlert (which will be initialized in father
class AlertActivity) still not intialized, which caused NullPointerException.

Change-Id: Ibfe363f3822386a38b9b108e29f60ad6673f70f6
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
509a6cd43906cce5f9bc78a83bd2058a4e5249e7 05-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Remove the number above status icon for Opp transfers
ndroid/bluetooth/opp/BluetoothOppNotification.java
f6c72e8d6ec3d3eae78ef4850cfda7364d44a9bf 04-Mar-2010 Michael Chan <mchan@android.com> Merge "Add opp Transfer history to avoid cluster of notificatoins To reduce the cluster of Opp nofications, we introduce the concept of Opp transfer history. Only 2 notifications exist for finished opp transfers, one is for outbound transfers, and another is for inbound transfers. User can see all detailed items in corresponding screen when click the notification."
5cc617943765df27844e459362c4bc1821305216 26-Feb-2010 Lixin Yue <L.X.YUE@motorola.com> Add opp Transfer history to avoid cluster of notificatoins To reduce the cluster of Opp nofications, we introduce the concept of Opp transfer history. Only 2 notifications exist for finished opp transfers, one is for outbound transfers, and another is for inbound transfers. User can see all detailed items in corresponding screen when click the notification.

Change-Id: Iffed353ea6b0d7c958c71fe8d3996937058ced30
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransferAdapter.java
ndroid/bluetooth/opp/BluetoothOppTransferHistory.java
ndroid/bluetooth/opp/Constants.java
fcce2453c8d9370d515f655b2706d5e00b9da139 04-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add missing addHandler().

Bug: 2485875
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
198e5d109571b27b7c45c30ed3ea42febcb99201 23-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Move Pbap logic to Bluetooth package so that we do not have unnecessary tight coupling.
ndroid/bluetooth/pbap/BluetoothPbapCallLogComposer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
c6f1bacf1d4c39d7efd5dc98004d936c18ed51f1 23-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Move insert share info operation to a thread to avoid Receiver timeout

In OppReceiver, the function mOppManager.startTransfer(remoteDevice), which
is used to insert share records to DB, can be really a time-consuming
operation in case of 300 or more objects sharing case.
For onReceive() function in BroadcastReceiver, there are below specification:
The function is normally called within the main thread of its process, so you should never
perform long-running operations in it (there is a timeout of 10 seconds that the system allows
before considering the receiver to be blocked and a candidate to be killed)

Add handle to concurrent sending case
In Gellary, user can multiple select files (say 50files), and share via bluetooth to device1,
and then right away share via bluetooth to device2, and also can share to device3. In such
extream case, we need ensure all share info are saved to db.

Complete the TODO in OppManager
Store application data to SharedPreferences and restore them when service restart.
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
1f0fc26568c1babf0c66d2c75812b72e894eb0de 16-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Fix non-existing received file still appearing in live folder issue

After receiving a file by OPP from Bluetooth remote device, user can delete
this file from Gallery or 3rd party application. In Opp live folder, user
could still open this file, but with dialog "file not exist" displayed, and
there is no way to make this file disappear from liver folder.
Current solution is to delete the BT OPP DB record after openning an invalid
uri associated with the file in folder, as an easy method without syncing.
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
a4508589f298c67fda54c344760ae39f0f375c11 10-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Update the error codes to be compatible with PBAP spec.

Catch IndexOutOfBoundsException and NullPointerException in Opp sendFile().
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
6ef730f85e90a8246d06c7a58bb21eee5074945c 17-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Enable vcard share in OPP

Bluetooth OPP to handle x-vcard MIME type from contacts share
Handle vcard size by content type instead of tightening with contacts
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/Constants.java
6414394c20cd885f5bd4561e06bbecac9c93cfb1 02-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> am 6ee2d0e0: Fix Opp notifications timestamp not correct issue

Merge commit '6ee2d0e0405a074cf827e0c0ac4bfbffd1850cea' into eclair-mr2

* commit '6ee2d0e0405a074cf827e0c0ac4bfbffd1850cea':
Fix Opp notifications timestamp not correct issue
019188fd686dbe7a9610255ea8aa61bd589a6bd1 30-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ifb8562d3 into eclair-mr2

* changes:
Add a few specific file type support
6ee2d0e0405a074cf827e0c0ac4bfbffd1850cea 02-Nov-2009 Lixin Yue <L.X.YUE@motorola.com> Fix Opp notifications timestamp not correct issue

Should set the value of Notification.when before calling
setLatestEventInfo()

Dr No:Eastham
Bug: 2292381
ndroid/bluetooth/opp/BluetoothOppNotification.java
fb8562d35d3b7d2fc60e1bb01a9c15cfe9824a94 18-Nov-2009 Tao Liejun <a19884@motorola.com> Add a few specific file type support

Support to receive and send a few specific file types
.xls, .zip, .doc, .ppt, .pdf
ndroid/bluetooth/opp/Constants.java
975bc7ee50d8d5b596b1801f2c60057de122d2b0 26-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> am 03f598ba: Catch all exceptions while trying to send a file.

Merge commit '03f598bafa0fc0cbde0c5ab8fed89e07a67d482e' into eclair-mr2

* commit '03f598bafa0fc0cbde0c5ab8fed89e07a67d482e':
Catch all exceptions while trying to send a file.
03f598bafa0fc0cbde0c5ab8fed89e07a67d482e 25-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> Catch all exceptions while trying to send a file.

While trying to share pictures, some applications might
not have given the adequate permissions.

DrNo:Jsh
Bug:2284822
ndroid/bluetooth/opp/BluetoothOppService.java
5dc084a9ecbe35da9ac506ea4385e58d68e08aa5 13-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> am 39a9c98e: Merge change I8b791d4f into eclair

Merge commit '39a9c98edca4633348d91027b3481ee43d4aa588' into eclair-mr2

* commit '39a9c98edca4633348d91027b3481ee43d4aa588':
Don't send default phone number for 0.vcf card.
8b791d4f581f31acf69f1297952c24aa39f01855 13-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> Don't send default phone number for 0.vcf card.

This prevents an entry "My name" with "000000" in the car kit contacts.
We now send only the name and the version in the vcf.
Ideally, we could like to send an empty vcard, but we would need to test
with various car kits with that works well.

Original Change by: Lixin Yue
Bug: 2247067
Dr No: Eastham
ndroid/bluetooth/pbap/BluetoothPbapService.java
5ce62e929e6ce169be5c32c173efc44f76684e2d 06-Nov-2009 Lixin Yue <L.X.YUE@motorola.com> am cd5ed0c7: PBAP only transfer contacts that are visible in contacts application.

Merge commit 'cd5ed0c7d04119e508fbddfd9656ef8559e3e524' into eclair-mr2

* commit 'cd5ed0c7d04119e508fbddfd9656ef8559e3e524':
PBAP only transfer contacts that are visible in contacts application.
cd5ed0c7d04119e508fbddfd9656ef8559e3e524 05-Nov-2009 Lixin Yue <L.X.YUE@motorola.com> PBAP only transfer contacts that are visible in contacts application.

This is to address below issue:
There have been reports by users where they are seeing contacts in the
carkit that are not present in the Contacts App UI but are present in the
database.

Bug: 2245178
Dr No: Eastham
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
ae7f70563660d02d56365092fa27f195b54d5d15 05-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> am 2b36e173: Fix get contact size not correct issue.

Merge commit '2b36e1731eb5ed784abc1a374eb69d8523123df1' into eclair-mr2

* commit '2b36e1731eb5ed784abc1a374eb69d8523123df1':
Fix get contact size not correct issue.
2b36e1731eb5ed784abc1a374eb69d8523123df1 30-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Fix get contact size not correct issue.

Call history handles should be ordered by "date DESC" per spec. The first
handle 1.vcf should be the most recently happend call.

Add order support for pullVcardListing reqeust:
One typical use case for PBAP is: first use pullVcardListing request to
display the contacts list, then use pullVcardEntry request to tirgger
the selected contact vcard. In such case, we need keep the contact db
query consistent for pullVcardListing and pullVcardEntry.

Use "Own number" for phone owner number instead of "Unknown name" in case
can not get the name from system.

Original Change: Fan Jackson
Dr No: Eastham
Bug Id: 2183320
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
e10881ae39eb4affb7a78827f2060964e8534515 02-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix a typo.
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
c065fc5530cc0e8f14261f8c347984cdde070169 30-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Disable sending Photo field for PBAP. Do Not Merge.

Some car kits don't handle contacts with Photo Fields well.
Disable this field for the time being.

Original Change by: Yue Lixin

Bug: 2183320
Dr No: Eastham
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
59582607bc341f9e9662d6ec5c1a93bb4c537d38 15-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix a build breakage.

Make Bluetooth code use new type instead of old.
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4ceaa3e03dc7a68d4e7c0c8e14a461cfd7c4c19c 12-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Adapt to the new interface of vCard code.

Internal Issue number: 2160039
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
b506e52fabbc02445f3652049ed8a390d4fcaa7f 09-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I428bc0fc into eclair

* changes:
Remove STOPSHIP BT logging.
0e6233ffba67e757f60171803d7ab376cf73c16c 09-Oct-2009 Nick Pelly <npelly@google.com> Remove STOPSHIP BT logging.

Do not merge.

Change-Id: I428bc0fc67030f24112f2e9c865824dfaea4897d
DrNo: eastham
Bug: 2089423
Joke: Why does E.T. have such big eyes? Because he saw his phone bill.
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
59256dee3f9787fd660c346d61e0271ecd4bfe9a 08-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Update PBAP code for Contacts database changes and check for OPP
file extension.

Original Author for PBAP - Yue Lixin
Dr No: Eastham
Bug: 2174759
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
3a88b20fcd71e42451e402d27374b19eeb2ff0da 08-Oct-2009 Nick Pelly <npelly@google.com> Update application code for BluetoothAdapter.getDefaultAdapter().

Change-Id: I7baafb909b74783da4e51d48f2465e7aacf07eb5
DrNo: eastham
Bug: 2158765
Joke: What goes 99-thump, 99-thump? A centipede with a wooden leg.
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
773ca65d26f0eb0eda3ec44c2a788043387981cf 05-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Remove Disconnected and Connected PBAP toasts.

Original Author: Fan Jackson
Bug number: 2060933
Dr No: Eastham
ndroid/bluetooth/pbap/BluetoothPbapService.java
0eb2230d3b7c184a00599e8ab70331c599e9ef1c 02-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Fix ANR by repeating BT ON/OFF caused by PBAP closeservice deadlock

Move back socket closing sequence ahead of Thread.shutdown and join operation;
Seperate socket closing and resetting as null to avoid NPE during service close

Original Author: Fan Jackson
Bug: 2158262
DrNo: Paul

Change-Id: I2b36f3fb920c80602f5734a67a8cf6c6fbd00de4
ndroid/bluetooth/pbap/BluetoothPbapService.java
29a07d9c52cde18ee818fd21528288cd5c8127c8 30-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Remove redundant dependency toward android.syncml.
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
e42f4c90d20e3192c18bbe8fad98059b0c910cd7 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8222c790 into eclair

* changes:
Update OPP/PBAP service to use onStartCommand() Adjust function call seqence in PBAP closeService
8222c7902a2281929fd31e840f6012038e6fa44a 29-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update OPP/PBAP service to use onStartCommand()
Adjust function call seqence in PBAP closeService
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
b0fa09caef6a0748a568dc2a89f5d94b85423bb2 29-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update OPP/PBAP UI

Add timeout handling to incoming file confirm dialog, to avoid uncertain
behavior when timeout happen
Fix PBAP request timeout issue when open/close slider, dismiss timeout
dialog to avoid uncertain behavior
Fix typo in strings
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothShare.java
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
4ef0999864c582e64b62ecf46a569574e7cae9a1 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I18bde766 into eclair

* changes:
Update PBAP to make compatiable with spec
18bde766b20c899310ebdd5ca823e30ff27d407f 27-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to make compatiable with spec

Add check to incoming application parameter, be nice to accept PCE request
Fix minor pullvCardEntry issue for call logs
Fix one pullPhoneBook issue about request size
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
668a8d617ac827770a484ad6b3f329ee248745ee 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ifb946935 into eclair

* changes:
Added WhiteList of acceptable MIME types for OBEX transfers. Part of OBEX/OPP security review. Bug information: http://b/issue?id=1972237
fb946935fe50d957e835ac00a592bd3d222edef3 28-Sep-2009 Oscar Montemayor <oam@android.com> Added WhiteList of acceptable MIME types for OBEX transfers. Part of OBEX/OPP security review.
Bug information: http://b/issue?id=1972237
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/Constants.java
202e9f669d8972d6371c349ed65f311de465be1a 28-Sep-2009 Nick Pelly <npelly@google.com> Update application for android.bluetooth.ParcelUuid -> android.os.ParcelUuid

Change-Id: Ia0eb46d9bdff6a8ab3333bb0ad1f66d0303c135a
ndroid/bluetooth/opp/BluetoothOppTransfer.java
6fbad3dd950238d871c4efce4eb258ae1a54b878 27-Sep-2009 Oscar Montemayor <oam@android.com> Proposed file canonical path prevetion for directory trasvesal attacks. Fix suggested by meder@google.com.
More fixes form CR comments.
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
2f8fe66f45bac2bc61395bd4f8de553f4c2b7c30 24-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to use new VCardComposer

Totally removed the use of old syncml.pim.vcard.VCardComposer
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapRfcommTransport.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
9d9e511fe7425fb3105ece227ecedb43d6333333 21-Sep-2009 Tao Liejun <L.J.Tao@motorola.com> Use new SDP API for OPP

Use new API BluetoothDevice.fetchUuidsWithSdp() to query SDP for un-paired device, and request SDP
update when Opp is not in cache.
Handle a concurrent case when incoming connection and file share happens together
Some other minor changes

Change-Id: I7ebf34801518867553551d8f7bba7ac62e22667e
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppShareInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/Constants.java
c4b72ebe2ed9cd29c40a75411702ca9dca9424ac 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26736 into eclair

* changes:
Update opp/pbap look and feel
38416553a26e55963e11276f1029d78e9e6cad70 23-Sep-2009 Rich Cannings <richc@google.com> Fixes NullPointerException that crashes Bluetooth when filename ends end with slash, e.g.: 'fooo..txt/'.

choosefilename() can return null. We should handle this result and grecefully fail.
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
dc3bacd6eb626a93f2c3c4c62b3ef6aa9e575d92 21-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update opp/pbap look and feel

Update OPP BtEnabling Dialog-add timeout handling, handle Bluetooth ON intent, handle back key

Change-Id: I3d3ade3a9a4de645ddb7195e8b81ca42afb3d31e
ndroid/bluetooth/opp/BluetoothOppBtEnableActivity.java
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
1f556d99c4bb7cae5ed55c171ce7f65b5010fa57 22-Sep-2009 Oscar Montemayor <oam@android.com> Replaced back-slashes on hint path URI with forward-slahes, more in line with Linux FS conventions.
Code review changes incorporated patch set 3 rev.
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
68ea2a43de2e7cee20c03332ed9f5ff004e42884 02-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Change handling of remoteUuids.
ndroid/bluetooth/opp/BluetoothOppTransfer.java
f2c447b81c6c03cb1c8a3e64a10381e23934834a 10-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API changes.

Change-Id: I618553f2aa4e8705e3dff1247752e5fc357ef94d
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
613bae227d65f61903e196944a9c718b4394f25a 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change: deprecation of BluetoothError.
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
f4a286ee2aba5a75abe41881334bbdb5d0080105 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change.
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
c5495c585c0d19cdd20963e5a2144e5f984a306e 09-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to be compatible with Mecel stack

The response to the targeted connect operation should contain a Who with the same UUID as
sent in the request's matching Target header. If the Who header was present in the request,
a Target header identifying the same client should be sent in the response.

Play ringtone for incoming PBAP connection request
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
4446eaa935994bc91d6d308303e8d27526b4590d 31-Aug-2009 Lixin Yue <L.X.YUE@motorola.com> Pbap update

Improve PBAP download contacts performance greatly
Add 10 times retry for creation of listening socket
Change PbapReciever to be clearer
Rename functions and adjust function sequence in PbapService
Cleanup logging
Remove unused functions
Remove serversocket polling
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapAuthenticator.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
5c670ec88d1c59e5ad32b0264552199f3d6073c5 01-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23495 into eclair

* changes:
Workaround bug in Poloroid Pogo.
fa5d402906010cd17c8ed7de0dbcbfdcb78dab20 01-Sep-2009 Nick Pelly <npelly@google.com> Workaround bug in Poloroid Pogo.

Rename extra dots to underscores.

Working with Poloroid to get an updated list of affected MAC addresses. For now
we just have 00:04:48.
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
acab258c177d82338b1696360cd0b8c9821b0f03 26-Aug-2009 Lixin Yue <L.X.YUE@motorola.com> Allow Pbap if device is trusted
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
888485a3f5fe991116c5536bb6d6903d47b63a70 31-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Cleanup Opp debug code

Stop Rfcomm polling
Delete a few unused functions
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/opp/TestActivity.java
ndroid/bluetooth/opp/TestTcpListener.java
ndroid/bluetooth/opp/TestTcpServer.java
ndroid/bluetooth/opp/TestTcpSessionNotifier.java
ndroid/bluetooth/opp/TestTcpTransport.java
32e47df203390052c1ef771d78b22fc4aa5f9e72 27-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Simplify wakelock release for Obex Server
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ce4d93666275df294cb073fe41de5b85932570a8 28-Aug-2009 Nick Pelly <npelly@google.com> Clean up Logging.

Use the pattern if (V) Log.v(...); for logging. The Android style prefers curly braces, but for log lines it is ok to use a one-liner to keep the code manageable.

Remove spaces from some log tags, and rename TAG BluetoothShareProvider to BluetoothOpp.

Rename LOGVV to V, and LOGV to D.

Just before ship we will change Constants.DEBUG and Constants.VERBOSE to false to compile out all the logging code.
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppBtEnableActivity.java
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
ndroid/bluetooth/opp/BluetoothOppBtErrorActivity.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/opp/TestTcpListener.java
ndroid/bluetooth/opp/TestTcpServer.java
d6641e4a7bb22833e1c07cb3af7989835fa7e16d 19-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Remove Device picker
ndroid/bluetooth/opp/BluetoothDevicePickerActivity.java
ndroid/bluetooth/opp/BluetoothDevicePickerBtStatus.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevice.java
ndroid/bluetooth/opp/BluetoothDevicePickerDeviceManager.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevicePreference.java
ndroid/bluetooth/opp/BluetoothDevicePickerListener.java
ndroid/bluetooth/opp/BluetoothDevicePickerManager.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothPinDialog.java
ndroid/bluetooth/opp/BluetoothShare.java
ndroid/bluetooth/opp/ProgressCategory.java
1ac5507790a87810061a19dadec36eb328a222ea 07-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> OPP update

Rewrite provider permission to allow LiveFolders work
Support file:// uri to share file
Support multiple share from gallery
Fully support sending file queue
Hold incoming connection for a while when OPP is busy instead of reject directly
Move notification update to a thread
Handle many error cases to display correct error messages
Improve server/client timeout
Delete empty file after reject incoming file
Support upper case incoming file extension
Avoid multiple mediascanner connections
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/Constants.java
41ef8d494511c040451f2f887cb31c3100746b61 07-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: Update Bluetooth.apk to match BT 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).
ndroid/bluetooth/opp/BluetoothDevicePickerActivity.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevice.java
ndroid/bluetooth/opp/BluetoothDevicePickerDeviceManager.java
ndroid/bluetooth/opp/BluetoothDevicePickerListener.java
ndroid/bluetooth/opp/BluetoothDevicePickerManager.java
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppRfcommTransport.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppShareInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/BluetoothPinDialog.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
464d9d216ab1a6cf192e3e526596073c7e35e4a7 13-Aug-2009 L.X.YUE <L.X.YUE@motorola.com> Update Opp icons

Update incomming file notification icon to be consistent with system;
Update OPP launcher icon per Anroid guidline;
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
52236de777c23788df8147de15912a57e8bc36dd 04-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Fix a few OPP issues

Grab wakelock for server session
Fix send small file bug
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/Constants.java
d896162ef022a5607b13bae5177637ff3f18b737 28-Jul-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP per review comments:

Patch 3 fix listing call-history issue
Remove the use of Enum in PbapObexServer.java
Simplify codes by using function and paras
Change some informal usage in codes
Fix minor issues
Rename some function and vars
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapAuthenticator.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
239bc526513429995c61c4148c105725c395b1a9 27-Jul-2009 Jackson Fan <xyfan@motorola.com> Enable Opp Livefolder, modify localizable resource

Update on patchset 2
Update icon for Bluetooth share and Incoming file
Fix minor Opp UI issue
Update log print for mimetype got from android system.
Update return response code for un-supported media type
Patchset 1
remove the use of replace() of localizable resource
Enable Opp Livefolder by using local certificate
Reject vcard actively
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppLiveFolder.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/Constants.java
37b69bd05e4b7a7d0e43575a6c22734b2d8c3f69 24-Jul-2009 Jackson Fan <xyfan@motorola.com> Remove TODOs for frameworks change

Modify for aidl added in frameworks
ndroid/bluetooth/pbap/BluetoothPbapService.java
87f9a72cc2d9544f65eab18893f7dc0de4f6ee31 23-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Disable verbose logging.

TODO: We need to fix logging according to new verbose logging in OPP and PBAP.
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
b9cd7fee03a41e56a0cea9aa2e1af3b28c5be590 23-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Add copyright and fix some style issues.
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapAuthenticator.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapRfcommTransport.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
2c282d5898ac0916470ebfa9ff26ba784cf4bb24 18-Jul-2009 Jackson Fan <xyfan@motorola.com> Add pbap into bluetooth package

Update PBAP as patchset 5
Adjust some resouces strings after UI test
Change localized resource usage
Modify exception handle, rename a confusing variable name
Remove compile dependency on 240 for now. Add TODO in code
Some minor changes to address the comments
Submit on-behalf of Yue Lixin <a5206c@motorola.com>

Update PBAP as patchset 4 according to comments
Format resource files
Re-organize the logs
Submit on-behalf of Jiafa Liu <pbx376@motorola.com>
ndroid/bluetooth/pbap/BluetoothPbapActivity.java
ndroid/bluetooth/pbap/BluetoothPbapAuthenticator.java
ndroid/bluetooth/pbap/BluetoothPbapObexServer.java
ndroid/bluetooth/pbap/BluetoothPbapReceiver.java
ndroid/bluetooth/pbap/BluetoothPbapRfcommTransport.java
ndroid/bluetooth/pbap/BluetoothPbapService.java
ndroid/bluetooth/pbap/BluetoothPbapVcardManager.java
eb37b3c2c9d59bc1c0f09f911f5bde077a63f4da 18-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Rename cancelPin to cancelPairingUserInput for Bluetooth 2.1
ndroid/bluetooth/opp/BluetoothPinDialog.java
af9af3c451fde7712e86c9430169c306b91836a4 15-Jul-2009 Jackson Fan <xyfan@motorola.com> Cleanup resources of OPP

Modify according to Ranian's comments
- adjust layout
- remove Capitalized resource names
- format
ndroid/bluetooth/opp/TestActivity.java
df7415da0e510ab8e4b73831a5ade38306982fe1 16-Jul-2009 Tao Liejun <L.J.Tao@motorola.com> Fix OPP receive bug

Fix the bug that second receving would fail
Show display name instead of full name in notification
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
6769b59d715ea98bd72eafcfea9acd2714a887da 15-Jul-2009 Tao Liejun <L.J.Tao@motorola.com> Make opp compile

Modify to make opp application compliable in new git
-change package name
-change manifest
-modify a few comments
ndroid/bluetooth/opp/BluetoothDevicePickerActivity.java
ndroid/bluetooth/opp/BluetoothDevicePickerBtStatus.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevice.java
ndroid/bluetooth/opp/BluetoothDevicePickerDeviceManager.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevicePreference.java
ndroid/bluetooth/opp/BluetoothDevicePickerManager.java
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppBtEnableActivity.java
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
ndroid/bluetooth/opp/BluetoothOppBtErrorActivity.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppLiveFolder.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppShareInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/BluetoothPinDialog.java
ndroid/bluetooth/opp/BluetoothShare.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/opp/ProgressCategory.java
ndroid/bluetooth/opp/TestActivity.java
ndroid/bluetooth/opp/TestTcpListener.java
ndroid/bluetooth/opp/TestTcpServer.java
ndroid/bluetooth/opp/TestTcpSessionNotifier.java
09e9cba205af60b3f42e7a4d891a7d1392e1f2a5 11-Jul-2009 Nick Pelly <npelly@google.com> Initial drop of Motorola Bluetooth OPP code.

Minor changes from Moto code:
- Added Motorola BSD license
- Moved com.motorola.bluetoothshare to com.android.bluetooth.opp
- Updated com.motorola.obex to javax.obex
- Moved Android.mk to Android.mk.hide: does not yet compile due to changes in
Obex library.
ndroid/bluetooth/opp/BluetoothDevicePickerActivity.java
ndroid/bluetooth/opp/BluetoothDevicePickerBtStatus.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevice.java
ndroid/bluetooth/opp/BluetoothDevicePickerDeviceManager.java
ndroid/bluetooth/opp/BluetoothDevicePickerDevicePreference.java
ndroid/bluetooth/opp/BluetoothDevicePickerListener.java
ndroid/bluetooth/opp/BluetoothDevicePickerManager.java
ndroid/bluetooth/opp/BluetoothOppBatch.java
ndroid/bluetooth/opp/BluetoothOppBtEnableActivity.java
ndroid/bluetooth/opp/BluetoothOppBtEnablingActivity.java
ndroid/bluetooth/opp/BluetoothOppBtErrorActivity.java
ndroid/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
ndroid/bluetooth/opp/BluetoothOppLauncherActivity.java
ndroid/bluetooth/opp/BluetoothOppLiveFolder.java
ndroid/bluetooth/opp/BluetoothOppManager.java
ndroid/bluetooth/opp/BluetoothOppNotification.java
ndroid/bluetooth/opp/BluetoothOppObexClientSession.java
ndroid/bluetooth/opp/BluetoothOppObexServerSession.java
ndroid/bluetooth/opp/BluetoothOppObexSession.java
ndroid/bluetooth/opp/BluetoothOppPreference.java
ndroid/bluetooth/opp/BluetoothOppProvider.java
ndroid/bluetooth/opp/BluetoothOppReceiveFileInfo.java
ndroid/bluetooth/opp/BluetoothOppReceiver.java
ndroid/bluetooth/opp/BluetoothOppRfcommListener.java
ndroid/bluetooth/opp/BluetoothOppRfcommTransport.java
ndroid/bluetooth/opp/BluetoothOppSendFileInfo.java
ndroid/bluetooth/opp/BluetoothOppService.java
ndroid/bluetooth/opp/BluetoothOppShareInfo.java
ndroid/bluetooth/opp/BluetoothOppTransfer.java
ndroid/bluetooth/opp/BluetoothOppTransferActivity.java
ndroid/bluetooth/opp/BluetoothOppTransferInfo.java
ndroid/bluetooth/opp/BluetoothOppUtility.java
ndroid/bluetooth/opp/BluetoothPinDialog.java
ndroid/bluetooth/opp/BluetoothShare.java
ndroid/bluetooth/opp/Constants.java
ndroid/bluetooth/opp/ProgressCategory.java
ndroid/bluetooth/opp/TestActivity.java
ndroid/bluetooth/opp/TestTcpListener.java
ndroid/bluetooth/opp/TestTcpServer.java
ndroid/bluetooth/opp/TestTcpSessionNotifier.java
ndroid/bluetooth/opp/TestTcpTransport.java