OSDN Git Service

android-x86/packages-apps-Bluetooth.git
8 years agoHealthService: Fix not adding channel to channel list kitkat-x86
Szymon Janc [Fri, 4 Jul 2014 12:24:10 +0000 (14:24 +0200)]
HealthService: Fix not adding channel to channel list

Channel is not added to channel list on success of connect channel
request. Upon connection status (connecting) callback it searches
for channel id but id does not exists and treating it as incoming
connection.

Change-Id: Id1b2bcbbf9b5eaf958d391055dd0ffeaf9aa0a64

8 years agoPBAP: Add strict phonebook name checking
Szymon Janc [Tue, 1 Jul 2014 14:18:46 +0000 (16:18 +0200)]
PBAP: Add strict phonebook name checking

This change adds strict phone book name checking
for every Get request for getting phonebook.

This is affecting TC_PSE_PBD_BI_01_C qualification PTS test.

This patch is based on ae6e8004f263f1f4c7e2da64d3aed93188956242
and 3a3453527ced6aef659151fa9453d8ab7e3f3a68 from CodeAurora but
was adjusted to fit AOSP.

Change-Id: I6adc09f6890300057ab26b391c87b59025833b1c

8 years agoGATT: Fix parameters order for gattClientGetIncludedServiceNative
Szymon Janc [Mon, 30 Jun 2014 15:51:55 +0000 (17:51 +0200)]
GATT: Fix parameters order for gattClientGetIncludedServiceNative

inclSrvcInstId and inclSrvcType were in reverse order.

Change-Id: I28c1f464344af2893c1a63f72cae8d49eb7bb990

8 years agoHFP: Fix missing OK for AT+CLCC in virtual call
Andrzej Kaczmarek [Wed, 19 Mar 2014 18:35:48 +0000 (19:35 +0100)]
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

8 years agoMAP: Fix reply code for UpdateInbox function
Szymon Janc [Wed, 19 Feb 2014 15:13:57 +0000 (16:13 +0100)]
MAP: Fix reply code for UpdateInbox function

From MAP 1.1 specification, section 5.9:
"If MSE does not allow the polling of its mailbox it shall answer
with a "Not Implemented" error response."

This was affecting TC_MSE_MMB_BV_16_I qualification test case.

Change-Id: I19c2a0627826f27150b44f2f98e56c7663e1e7f9

10 years agoDO NOT MERGE: Add status callback for start/stop advertising.
Wei Wang [Wed, 12 Mar 2014 05:25:01 +0000 (22:25 -0700)]
DO NOT MERGE: Add status callback for start/stop advertising.
cherrypick from master to fix b/13289050

Change-Id: I666969442b756ce461ff64eff0d09f5283431fb3

10 years agoMerge "DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid...
Zhihai Xu [Wed, 12 Mar 2014 23:05:02 +0000 (23:05 +0000)]
Merge "DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste power." into klp-dev

10 years agoMerge "DO NOT MERGE Add Bluetooth privileged permission to bluetooth app. fix b/13226...
Wei Wang [Mon, 10 Mar 2014 17:23:36 +0000 (17:23 +0000)]
Merge "DO NOT MERGE Add Bluetooth privileged permission to bluetooth app. fix b/13226130." into klp-dev

10 years agoDO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste...
Zhihai Xu [Wed, 27 Nov 2013 07:09:54 +0000 (23:09 -0800)]
DO NOT MERGE release wakelock if no activity in Bluetooth MAP profile to avoid waste power.

bug:11138488
Change-Id: Ie7d8903cc917aee51711fa47f275863e4046f3d8

10 years agoDO NOT MERGE MAP: fixed missing filtering on Priority
kschulz [Fri, 11 Oct 2013 13:13:25 +0000 (15:13 +0200)]
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

10 years agoDO NOT MERGE update play status based on A2dp audio state from stack.
Zhihai Xu [Wed, 8 Jan 2014 01:34:43 +0000 (17:34 -0800)]
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

10 years agoDO NOT MERGE Add Bluetooth privileged permission to bluetooth app. fix b/13226130.
Wei Wang [Fri, 28 Feb 2014 22:45:31 +0000 (14:45 -0800)]
DO NOT MERGE Add Bluetooth privileged permission to bluetooth app. fix b/13226130.

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

Change-Id: Iba48f4757a6b54911277900b875d83eaa81488b7

10 years agoMerge "DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change." into klp-dev
Wei Wang [Sat, 8 Mar 2014 02:00:26 +0000 (02:00 +0000)]
Merge "DO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change." into klp-dev

10 years agoDO NOT MERGE BLE peripheral mode (2/4): Gatt Service Change.
Wei Wang [Wed, 30 Oct 2013 04:20:05 +0000 (21:20 -0700)]
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

10 years agoDevice cannot go to sleep while connected to HBM-570 BT headset
Zhihai Xu [Mon, 14 Oct 2013 19:16:39 +0000 (12:16 -0700)]
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

10 years agoam e9428c35: am 7677468e: am 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefi...
Daniel Cashman [Wed, 15 Jan 2014 20:00:01 +0000 (12:00 -0800)]
am e9428c35: am 7677468e: am 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

* commit 'e9428c35344af989f9e643964a81e2dc0ce1ffe1':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 7677468e: am 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefix filter...
Daniel Cashman [Wed, 15 Jan 2014 19:57:08 +0000 (11:57 -0800)]
am 7677468e: am 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

* commit '7677468ea5a2a71780e8bcf69a97c939b2ebc39b':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path...
Daniel Cashman [Wed, 15 Jan 2014 19:47:54 +0000 (11:47 -0800)]
am 884362fe: am ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

* commit '884362fee9df9f2c61d61bc0926033de82e58f14':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp...
Daniel Cashman [Wed, 15 Jan 2014 19:21:11 +0000 (11:21 -0800)]
am ada9e950: am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

* commit 'ada9e95000f65d4ad7e5c697d48c76e6b9e54cf0':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into...
Daniel Cashman [Wed, 15 Jan 2014 19:10:48 +0000 (11:10 -0800)]
am 727741cd: Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

* commit '727741cd610b35e675e7b7769ddf431e5763344d':
  Use pathPrefix filter instead of path for /btopp content

10 years agoMerge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev
Daniel Cashman [Wed, 15 Jan 2014 19:07:18 +0000 (19:07 +0000)]
Merge "Use pathPrefix filter instead of path for /btopp content" into jb-mr1-dev

10 years agoam c4d45b2f: am e6643ed4: am 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am...
Matthew Xie [Mon, 13 Jan 2014 21:00:08 +0000 (13:00 -0800)]
am c4d45b2f: am e6643ed4: am 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit 'c4d45b2f898d77b61f8614e22645bfb8ecd00930':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam e6643ed4: am 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use...
Matthew Xie [Mon, 13 Jan 2014 20:57:04 +0000 (12:57 -0800)]
am e6643ed4: am 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit 'e6643ed4cbe6d5ebe4f1a4979a78f81f6aeff1f0':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filte...
Matthew Xie [Mon, 13 Jan 2014 20:50:14 +0000 (12:50 -0800)]
am 12533801: am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit '125338015bd96550c2d15d87a506640499820885':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead...
Matthew Xie [Mon, 13 Jan 2014 20:47:18 +0000 (12:47 -0800)]
am 8e13dea5: am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit '8e13dea5f919737738db6e38c56cc83f43a7d555':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for...
Matthew Xie [Mon, 13 Jan 2014 20:38:07 +0000 (12:38 -0800)]
am fdcf4028: am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit 'fdcf402834c3f108a085a9c9b2f3be4848174f3b':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content
Matthew Xie [Mon, 13 Jan 2014 20:34:58 +0000 (12:34 -0800)]
am a162ec5d: am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit 'a162ec5d684e4bf3e14ef1ddbd4a910c82915b93':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam bf0aa27e: am 14b74c3c: Use pathPrefix filter instead of path for /btopp content
Matthew Xie [Mon, 13 Jan 2014 18:53:16 +0000 (10:53 -0800)]
am bf0aa27e: am 14b74c3c: Use pathPrefix filter instead of path for /btopp content

* commit 'bf0aa27ec7e106deb4fe61a10deebffcfe68b4bd':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam 14b74c3c: Use pathPrefix filter instead of path for /btopp content
Matthew Xie [Mon, 13 Jan 2014 18:50:01 +0000 (10:50 -0800)]
am 14b74c3c: Use pathPrefix filter instead of path for /btopp content

* commit '14b74c3c20e06cb69b4b624c3ebb9b72bb14090d':
  Use pathPrefix filter instead of path for /btopp content

10 years agoam deb7bdad: Use pathPrefix filter instead of path for /btopp content
Matthew Xie [Mon, 13 Jan 2014 18:45:58 +0000 (10:45 -0800)]
am deb7bdad: Use pathPrefix filter instead of path for /btopp content

* commit 'deb7bdad8cbe0501d414fdec698387714837f927':
  Use pathPrefix filter instead of path for /btopp content

10 years agoMerge "Use pathPrefix filter instead of path for /btopp content" into klp-dev
Daniel Cashman [Mon, 13 Jan 2014 18:43:30 +0000 (18:43 +0000)]
Merge "Use pathPrefix filter instead of path for /btopp content" into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 6 Jan 2014 18:13:09 +0000 (10:13 -0800)]
Import translations. DO NOT MERGE

Change-Id: I8452ddf1d6c278a8c0e8de1f501f000d5bcc8525
Auto-generated-cl: translation import

10 years agoUse pathPrefix filter instead of path for /btopp content
Matthew Xie [Fri, 6 Dec 2013 20:19:36 +0000 (12:19 -0800)]
Use pathPrefix filter instead of path for /btopp content

path is doing a full path match. It did not guard /btopp/
also fix a minor problem in tests/AndroidManifest.xml
bug 11148516

Change-Id: I8f4a614f999e643e8ae122baf0bf898b2b3008d5
Conflicts:
tests/AndroidManifest.xml

10 years agoUse pathPrefix filter instead of path for /btopp content
Matthew Xie [Fri, 6 Dec 2013 20:19:36 +0000 (12:19 -0800)]
Use pathPrefix filter instead of path for /btopp content

path is doing a full path match. It did not guard /btopp/
also fix a minor problem in tests/AndroidManifest.xml
bug 11148516

Change-Id: I8f4a614f999e643e8ae122baf0bf898b2b3008d5
Conflicts:
tests/AndroidManifest.xml

10 years agoUse pathPrefix filter instead of path for /btopp content
Matthew Xie [Fri, 6 Dec 2013 20:19:36 +0000 (12:19 -0800)]
Use pathPrefix filter instead of path for /btopp content

path is doing a full path match. It did not guard /btopp/
also fix a minor problem in tests/AndroidManifest.xml
bug 11148516

Change-Id: I8f4a614f999e643e8ae122baf0bf898b2b3008d5
Conflicts:
tests/AndroidManifest.xml

10 years agoUse pathPrefix filter instead of path for /btopp content
Matthew Xie [Fri, 6 Dec 2013 20:19:36 +0000 (12:19 -0800)]
Use pathPrefix filter instead of path for /btopp content

path is doing a full path match. It did not guard /btopp/
also fix a minor problem in tests/AndroidManifest.xml
bug 11148516

(cherry picked from commit 2819c1dbef39a712ab8adfcd36d2cb01f2379259)

Change-Id: I00b23e5c3a98422c2dd1cc220f2c121578ff5c8f

10 years agoMerge "remove a read lock to work around a platform deadlock problem." into klp-dev
Zhihai Xu [Fri, 15 Nov 2013 22:30:38 +0000 (22:30 +0000)]
Merge "remove a read lock to work around a platform deadlock problem." into klp-dev

10 years agoremove a read lock to work around a platform deadlock problem.
Zhihai Xu [Fri, 15 Nov 2013 18:01:15 +0000 (10:01 -0800)]
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

10 years agoMerge "LE: Fix stack crash on invalid descriptor write request" into klp-dev
Matthew Xie [Thu, 7 Nov 2013 22:08:31 +0000 (22:08 +0000)]
Merge "LE: Fix stack crash on invalid descriptor write request" into klp-dev

10 years agoLE: Fix stack crash on invalid descriptor write request
Andre Eisenbach [Fri, 1 Nov 2013 21:54:22 +0000 (14:54 -0700)]
LE: Fix stack crash on invalid descriptor write request

Fix stack crash when an application attempts to writes a NULL array
using the writeDescriptor() function.
bug 11574019
Change-Id: Id2d7e49216fcc6e3af369047005fb7e67e0923db

10 years agoMerge "cancel device discovery before start pairing process" into klp-dev
Matthew Xie [Thu, 7 Nov 2013 05:49:26 +0000 (05:49 +0000)]
Merge "cancel device discovery before start pairing process" into klp-dev

10 years agocancel device discovery before start pairing process
Matthew Xie [Wed, 6 Nov 2013 19:10:37 +0000 (11:10 -0800)]
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

10 years agoMerge "FF/REW is not correctly for AVRCP." into klp-dev
Zhihai Xu [Wed, 6 Nov 2013 00:15:52 +0000 (00:15 +0000)]
Merge "FF/REW is not correctly for AVRCP." into klp-dev

10 years agoHandles AT+BVRA=1 received during an open SCO session.
Edward Jee [Tue, 8 Oct 2013 22:19:14 +0000 (15:19 -0700)]
Handles AT+BVRA=1 received during an open SCO session.

Bug: 11072505
Change-Id: If665517cd9efa087154edd57b23163e7cc098f6f

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 4 Nov 2013 16:15:07 +0000 (08:15 -0800)]
Import translations. DO NOT MERGE

Change-Id: I5ca5b6507989bc70ccc1cb5790e9a5b8b45caeb4
Auto-generated-cl: translation import

10 years agoMerge "NPE in bluetooth MAP cause bluetooth process crash" into klp-dev
Zhihai Xu [Fri, 1 Nov 2013 23:39:51 +0000 (23:39 +0000)]
Merge "NPE in bluetooth MAP cause bluetooth process crash" into klp-dev

10 years agoFF/REW is not correctly for AVRCP.
Zhihai Xu [Fri, 1 Nov 2013 23:19:14 +0000 (16:19 -0700)]
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

10 years agoNPE in bluetooth MAP cause bluetooth process crash
Zhihai Xu [Thu, 31 Oct 2013 02:41:16 +0000 (19:41 -0700)]
NPE in bluetooth MAP cause bluetooth process crash

bug:11448104
Change-Id: I30045162c89e2150a9ef476f33e1b322e7cc9a44

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 28 Oct 2013 15:18:25 +0000 (08:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I75b1aeb7c88fa9a3c678f91a2d88a95fa63f80df
Auto-generated-cl: translation import

10 years agoMAP: fix problem with MNS not disconnecting correctly
Zhihai Xu [Wed, 23 Oct 2013 00:48:06 +0000 (17:48 -0700)]
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

10 years agoMerge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev
Matthew Xie [Mon, 21 Oct 2013 22:59:05 +0000 (22:59 +0000)]
Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev

10 years agoChange pairing api/intent permission from PRIVILEGED to ADMIN
Matthew Xie [Mon, 21 Oct 2013 22:07:29 +0000 (15:07 -0700)]
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

10 years agoBluetooth Application Crash while try to pairing with laptop - IKDVXPSE-345
Zhihai Xu [Thu, 17 Oct 2013 19:07:46 +0000 (12:07 -0700)]
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

10 years agomerge in klp-release (no-op)
Ed Heyl [Thu, 17 Oct 2013 00:44:43 +0000 (17:44 -0700)]
merge in klp-release (no-op)

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 13 Oct 2013 13:02:15 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoFix for MAP/PBAP: Race-condition when requesting authorization from Settings app
Casper Bonde [Fri, 11 Oct 2013 13:01:04 +0000 (15:01 +0200)]
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

10 years agoAllows another GMS core app to handle ACTION_PAIRING_REQUEST .
Edward Jee [Sat, 5 Oct 2013 01:01:55 +0000 (18:01 -0700)]
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

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 10 Oct 2013 13:01:20 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "Remove MMS support from MAP profile" into klp-dev
Zhihai Xu [Thu, 10 Oct 2013 00:44:36 +0000 (00:44 +0000)]
Merge "Remove MMS support from MAP profile" into klp-dev

10 years agoRemove MMS support from MAP profile
Zhihai Xu [Wed, 9 Oct 2013 23:26:00 +0000 (16:26 -0700)]
Remove MMS support from MAP profile

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

Change-Id: Idf2aa081b049e323422223d7b24f6404de2d7184

10 years agomerge in KQS81M
Ed Heyl [Tue, 8 Oct 2013 22:42:05 +0000 (15:42 -0700)]
merge in KQS81M

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 8 Oct 2013 13:00:54 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "Update AVRCP implementation of IRemoteControlDisplay" into klp-dev
Jean-Michel Trivi [Mon, 7 Oct 2013 17:04:41 +0000 (17:04 +0000)]
Merge "Update AVRCP implementation of IRemoteControlDisplay" into klp-dev

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 6 Oct 2013 13:01:40 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 4 Oct 2013 17:12:11 +0000 (10:12 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4aa104f811eb821da26ed448b93ae70bbb87712a
Auto-generated-cl: translation import

10 years agoUpdate AVRCP implementation of IRemoteControlDisplay
Jean-Michel Trivi [Fri, 4 Oct 2013 01:06:17 +0000 (18:06 -0700)]
Update AVRCP implementation of IRemoteControlDisplay

Add implementation of new method in IRemoteControlDisplay.

Bug 8209392

Change-Id: Ic700be5476cb2f70b6a26098cbed3e8e130b3573

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 1 Oct 2013 13:01:11 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PR...
Matthew Xie [Mon, 30 Sep 2013 18:57:02 +0000 (18:57 +0000)]
Merge "Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED" into klp-dev

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 29 Sep 2013 13:01:29 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoChange setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED
Matthew Xie [Tue, 24 Sep 2013 07:48:48 +0000 (00:48 -0700)]
Change setPin, setPin, setPairingConfirmation permission level to BLUETOOTH_PRIVILEGED

bug 9987787

Change-Id: I2fe88f4c284d8403d79e08194bf7a720b305d029

10 years agoMerge "Unable to receive Text Message to CAR Kit(nuvi3580LM)" into klp-dev
Zhihai Xu [Thu, 26 Sep 2013 23:16:50 +0000 (23:16 +0000)]
Merge "Unable to receive Text Message to CAR Kit(nuvi3580LM)" into klp-dev

10 years agoUnable to receive Text Message to CAR Kit(nuvi3580LM)
Zhihai Xu [Tue, 24 Sep 2013 21:22:13 +0000 (14:22 -0700)]
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

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 26 Sep 2013 13:01:37 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "bluetooth crash caused by read phone book with invalid colummn number -1"...
Zhihai Xu [Wed, 25 Sep 2013 21:59:34 +0000 (21:59 +0000)]
Merge "bluetooth crash caused by read phone book with invalid colummn number -1" into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 25 Sep 2013 15:29:13 +0000 (08:29 -0700)]
Import translations. DO NOT MERGE

Change-Id: Icd8a04f9f9c4d9564fa2dda13be067ce6cc868c8
Auto-generated-cl: translation import

10 years agobluetooth crash caused by read phone book with invalid colummn number -1
Zhihai Xu [Wed, 25 Sep 2013 01:22:29 +0000 (18:22 -0700)]
bluetooth crash caused by read phone book with invalid colummn number -1

bug:10919257
Change-Id: I584d5c5c65e26cacfab227742b98c49282710f68

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 22 Sep 2013 17:51:21 +0000 (10:51 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "resource leakage in bluetooth MAP when empty message in phone." into klp-dev
Zhihai Xu [Fri, 20 Sep 2013 20:57:12 +0000 (20:57 +0000)]
Merge "resource leakage in bluetooth MAP when empty message in phone." into klp-dev

10 years agoAdd MEDIA_CONTENT_CONTROL permission
Jean-Michel Trivi [Wed, 18 Sep 2013 03:21:22 +0000 (20:21 -0700)]
Add MEDIA_CONTENT_CONTROL permission

Required to register IRemoteControlDisplay implementation

b/8209392
Change-Id: Ide88e9a11bcfa68e7d5e2095208e63afdb5c511e

10 years agoMerge "Check null condition of number before contact query" into klp-dev
Matthew Xie [Fri, 20 Sep 2013 17:31:09 +0000 (17:31 +0000)]
Merge "Check null condition of number before contact query" into klp-dev

10 years agoCheck null condition of number before contact query
Matthew Xie [Fri, 20 Sep 2013 00:25:05 +0000 (17:25 -0700)]
Check null condition of number before contact query

bug 10571304

Change-Id: Idb23e7085dc1dc7119e0e2aa8901743707e72285

10 years agoAdd MEDIA_CONTENT_CONTROL permission
Jean-Michel Trivi [Wed, 18 Sep 2013 03:21:22 +0000 (20:21 -0700)]
Add MEDIA_CONTENT_CONTROL permission

Required to register IRemoteControlDisplay implementation

b/8209392
Change-Id: Ide88e9a11bcfa68e7d5e2095208e63afdb5c511e

10 years agoresource leakage in bluetooth MAP when empty message in phone.
Zhihai Xu [Thu, 19 Sep 2013 23:20:52 +0000 (16:20 -0700)]
resource leakage in bluetooth MAP when empty message in phone.

bug:10844044
Change-Id: I60c1b0206d7ba4653d149bee2f9f0dd6da6a5afb

10 years agoChange Volume step scale. Use setStreamVolume instead of avrcpUpdateVolume
Matthew Xie [Thu, 12 Sep 2013 07:21:59 +0000 (00:21 -0700)]
Change Volume step scale. Use setStreamVolume instead of avrcpUpdateVolume

bug 10681804

Change-Id: I553dac18d48c86bdb8b11428f56956f04ea87f27

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Sun, 15 Sep 2013 02:50:46 +0000 (19:50 -0700)]
Import translations. DO NOT MERGE

Change-Id: I585f487a522776ee1c529309d359452233abed15
Auto-generated-cl: translation import

10 years agoMerge "Fix build." into klp-dev
Ying Wang [Sat, 14 Sep 2013 03:47:21 +0000 (03:47 +0000)]
Merge "Fix build." into klp-dev

10 years agoFix build.
Ying Wang [Sat, 14 Sep 2013 03:46:08 +0000 (20:46 -0700)]
Fix build.

Change-Id: I02a9d4dfa84c5778a1136d39b7bb14a2e523a9ca

10 years agodisable broken tests
Guang Zhu [Sat, 14 Sep 2013 02:30:57 +0000 (19:30 -0700)]
disable broken tests

tests are causing build breakage

Bug: 10692365

Change-Id: Ieb4b8c6946cf2de4230f1320d940c89de53b100c

10 years agoMerge "Fixes to the google review comments + spec 1.1" into klp-dev
Zhihai Xu [Fri, 13 Sep 2013 23:00:43 +0000 (23:00 +0000)]
Merge "Fixes to the google review comments + spec 1.1" into klp-dev

10 years agoFixes to the google review comments + spec 1.1
Kim Schulz [Thu, 22 Aug 2013 08:57:59 +0000 (10:57 +0200)]
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

10 years agoRemove dependency on JNIHelp header side effects.
Ruben Brunk [Wed, 11 Sep 2013 03:35:38 +0000 (20:35 -0700)]
Remove dependency on JNIHelp header side effects.

Bug: 10680559
Change-Id: If5c6e22dd89a41886bb72303a85ca674c60d1946

10 years agoStop scan when client binder dies
John Du [Fri, 16 Aug 2013 00:40:24 +0000 (17:40 -0700)]
Stop scan when client binder dies

bug 10213756
Change-Id: I01b397070f729df7c6000c2dc2613efbe8801681
(cherry picked from commit 45ba247afa1cb3c61a871b0c13f6546411afe68b)

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 3 Sep 2013 15:33:40 +0000 (08:33 -0700)]
Import translations. DO NOT MERGE

Change-Id: I134988fe16520246474f92a6f7b035e30d0b6afb
Auto-generated-cl: translation import

10 years agoMerge "Enables AT+ANDROID command in Bluetooth HFP." into klp-dev
Edward Jee [Mon, 26 Aug 2013 20:33:36 +0000 (20:33 +0000)]
Merge "Enables AT+ANDROID command in Bluetooth HFP." into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 23 Aug 2013 05:23:57 +0000 (22:23 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0cccc9b44a66829a7f781986c6aee97c8744d17e
Auto-generated-cl: translation import

10 years agoEnables AT+ANDROID command in Bluetooth HFP.
Edward Jee [Fri, 16 Aug 2013 11:10:56 +0000 (04:10 -0700)]
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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 19 Aug 2013 14:17:34 +0000 (07:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie4e94f0caf464133c4fb2e3c993d066ceeb8edb3
Auto-generated-cl: translation import

10 years agoAdding support for Absolute Volume
John Du [Thu, 18 Jul 2013 22:48:16 +0000 (15:48 -0700)]
Adding support for Absolute Volume

Change-Id: Ie2ccaad7aaf56a89fe44b168026df3d84b373c06

Conflicts:
jni/com_android_bluetooth_avrcp.cpp
src/com/android/bluetooth/a2dp/Avrcp.java

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Fri, 16 Aug 2013 00:25:26 +0000 (00:25 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoAdd support for ff/rew
John Du [Fri, 28 Jun 2013 01:39:42 +0000 (18:39 -0700)]
Add support for ff/rew

Change-Id: I7ec60d94313b9ba5e4e8e62c82f19ae332b6fdd3
(cherry picked from commit 55123eff985f4d15ec198569a5db895ea086447a)