OSDN Git Service

android-x86/packages-apps-Bluetooth.git
9 years agoMoving STATE_DISCONNECTED broadcast.
Tyler Gunn [Wed, 8 Oct 2014 21:12:38 +0000 (14:12 -0700)]
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

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 8 Oct 2014 13:19:06 +0000 (06:19 -0700)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 6 Oct 2014 16:11:26 +0000 (09:11 -0700)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Sat, 4 Oct 2014 16:04:09 +0000 (09:04 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "MAP: Return OBEX_HTTP_NOT_IMPLEMENTED for msgUpdate for sms/mms" into lmp-dev
Matthew Xie [Thu, 2 Oct 2014 07:02:02 +0000 (07:02 +0000)]
Merge "MAP: Return OBEX_HTTP_NOT_IMPLEMENTED for msgUpdate for sms/mms" into lmp-dev

9 years agoMerge "Add HOGP as hid profile when the remote device contain HOGP service" into...
Prem Kumar [Thu, 2 Oct 2014 06:43:21 +0000 (06:43 +0000)]
Merge "Add HOGP as hid profile when the remote device contain HOGP service" into lmp-dev

9 years agoMAP: Return OBEX_HTTP_NOT_IMPLEMENTED for msgUpdate for sms/mms
Matthew Xie [Wed, 1 Oct 2014 17:36:29 +0000 (10:36 -0700)]
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

9 years agoAdd HOGP as hid profile when the remote device contain HOGP service
Matthew Xie [Tue, 30 Sep 2014 03:54:34 +0000 (20:54 -0700)]
Add HOGP as hid profile when the remote device contain HOGP service

bug 17409862

Change-Id: I018f12facefa7fb7bf2c3b46e639c40a8a67eae4

9 years agoFixed a Bluetooth MAP bug.
PauloftheWest [Mon, 29 Sep 2014 17:37:29 +0000 (10:37 -0700)]
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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 29 Sep 2014 02:37:49 +0000 (19:37 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "BT MAP: fix problem with fetching CDMA messages" into lmp-dev
Matthew Xie [Sun, 28 Sep 2014 21:38:41 +0000 (21:38 +0000)]
Merge "BT MAP: fix problem with fetching CDMA messages" into lmp-dev

9 years agoBT MAP: fix problem with fetching CDMA messages
kschulz [Thu, 25 Sep 2014 07:41:39 +0000 (09:41 +0200)]
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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 25 Sep 2014 05:03:37 +0000 (22:03 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Defer callbacks if the transport is congested" into lmp-dev
Andre Eisenbach [Wed, 24 Sep 2014 22:06:23 +0000 (22:06 +0000)]
Merge "Defer callbacks if the transport is congested" into lmp-dev

9 years agoDefer callbacks if the transport is congested
Prerepa Viswanadham [Fri, 19 Sep 2014 19:54:04 +0000 (12:54 -0700)]
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

9 years agoSet FLAG_RECEIVER_FOREGROUND when broadcasting
Ariel Gertzenstein [Tue, 23 Sep 2014 18:34:04 +0000 (14:34 -0400)]
Set FLAG_RECEIVER_FOREGROUND when broadcasting
  ACTION_PAIRING_REQUEST.

Bug: 17590080

Change-Id: I0a7cde5953f706a2b41b02878f0fdbd2d9e8ae35

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Sat, 20 Sep 2014 18:04:26 +0000 (11:04 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Save alias in RemoteDevice property before passing it to native layer" into...
Matthew Xie [Fri, 19 Sep 2014 04:42:05 +0000 (04:42 +0000)]
Merge "Save alias in RemoteDevice property before passing it to native layer" into lmp-dev

9 years agoSave alias in RemoteDevice property before passing it to native layer
Matthew Xie [Thu, 18 Sep 2014 21:32:57 +0000 (14:32 -0700)]
Save alias in RemoteDevice property before passing it to native layer

bug 17287682

Change-Id: Id7da194f66cf44d41e60f35665dfb1b279cac28f

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-dev
Baligh Uddin [Thu, 18 Sep 2014 17:56:01 +0000 (17:56 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-dev

9 years agoMerge "Use unified Tethering Permission Check" into lmp-dev
Robert Greenwalt [Thu, 18 Sep 2014 00:03:38 +0000 (00:03 +0000)]
Merge "Use unified Tethering Permission Check" into lmp-dev

9 years agoFix a typo that compares scanMode with callback types.
Wei Wang [Wed, 17 Sep 2014 19:30:07 +0000 (12:30 -0700)]
Fix a typo that compares scanMode with callback types.

Bug: 17187159
Change-Id: Ieca583e7cf02d63b9eceda7872511c9db280c04a

9 years agoMerge "Don't leak PII into the logs." into lmp-dev
Rakesh Iyer [Wed, 17 Sep 2014 17:14:36 +0000 (17:14 +0000)]
Merge "Don't leak PII into the logs." into lmp-dev

9 years agoMerge "Enforce permissions for BLE hidden APIs." into lmp-dev
Wei Wang [Wed, 17 Sep 2014 07:23:42 +0000 (07:23 +0000)]
Merge "Enforce permissions for BLE hidden APIs." into lmp-dev

9 years agoUse unified Tethering Permission Check
Robert Greenwalt [Wed, 17 Sep 2014 00:47:34 +0000 (17:47 -0700)]
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

9 years agoDon't leak PII into the logs.
Rakesh Iyer [Tue, 16 Sep 2014 22:23:04 +0000 (15:23 -0700)]
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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 16 Sep 2014 16:00:56 +0000 (09:00 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Migrates PBAP and MAP access permission data from Settings to Bluetooth."...
Edward Jee [Tue, 16 Sep 2014 01:19:23 +0000 (01:19 +0000)]
Merge "Migrates PBAP and MAP access permission data from Settings to Bluetooth." into lmp-dev

9 years agoBluetooth now properly saves A2DP status.
PauloftheWest [Mon, 15 Sep 2014 19:20:25 +0000 (12:20 -0700)]
Bluetooth now properly saves A2DP status.

Bug: 17115629
Change-Id: I5e9bc4d492a9714a87b15d131b25cf9a5a0aeecd

9 years agoMigrates PBAP and MAP access permission data from Settings to Bluetooth.
Edward Jee [Fri, 5 Sep 2014 07:30:41 +0000 (00:30 -0700)]
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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 15 Sep 2014 01:31:49 +0000 (18:31 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Do not reuse all pass filter index." into lmp-dev
Wei Wang [Fri, 12 Sep 2014 22:15:37 +0000 (22:15 +0000)]
Merge "Do not reuse all pass filter index." into lmp-dev

9 years agoEnforce permissions for BLE hidden APIs.
Wei Wang [Fri, 12 Sep 2014 18:50:09 +0000 (11:50 -0700)]
Enforce permissions for BLE hidden APIs.

Bug:17187159
Change-Id: Ibe467fa52fdead036a80922947cc295257221530

9 years agoMAP: Workaround for missing size values in message data base
Casper Bonde [Wed, 10 Sep 2014 09:02:38 +0000 (11:02 +0200)]
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>
9 years agoMerge "Applied Material theme to Bluetooth file acceptance dialog." into lmp-dev
PauloftheWest [Thu, 11 Sep 2014 14:22:44 +0000 (14:22 +0000)]
Merge "Applied Material theme to Bluetooth file acceptance dialog." into lmp-dev

9 years agoMerge "Change broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered." into lmp-dev
Ang Li [Thu, 11 Sep 2014 01:29:11 +0000 (01:29 +0000)]
Merge "Change broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered." into lmp-dev

9 years agoApplied Material theme to Bluetooth file acceptance dialog.
PauloftheWest [Wed, 10 Sep 2014 17:18:30 +0000 (10:18 -0700)]
Applied Material theme to Bluetooth file acceptance dialog.

Bug: 17334507
Change-Id: I36d3ef5575ad84a27cda415c1d0e262f097e98a7

9 years agoMerge "Pairing failed after 50 attempts" into lmp-dev
Andre Eisenbach [Wed, 10 Sep 2014 17:27:55 +0000 (17:27 +0000)]
Merge "Pairing failed after 50 attempts" into lmp-dev

9 years agoMerge "BT-HF: Disable Multi HF feature." into lmp-dev
Prem Kumar [Wed, 10 Sep 2014 01:36:21 +0000 (01:36 +0000)]
Merge "BT-HF: Disable Multi HF feature." into lmp-dev

9 years agoBT-HF: Disable Multi HF feature.
Nitin Arora [Fri, 5 Sep 2014 21:12:09 +0000 (14:12 -0700)]
BT-HF: Disable Multi HF feature.

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

Change-Id: Ia477c728bfb1457def7f302d5533ce63446dffc7

9 years agoPairing failed after 50 attempts
Mudumba Ananth [Tue, 29 Jul 2014 13:19:43 +0000 (06:19 -0700)]
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

9 years agoMerge "Make directory structure + Java packages consistent." into lmp-dev
Jeff Davidson [Tue, 9 Sep 2014 17:59:08 +0000 (17:59 +0000)]
Merge "Make directory structure + Java packages consistent." into lmp-dev

9 years agoChange broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered.
Ang Li [Mon, 8 Sep 2014 22:35:14 +0000 (15:35 -0700)]
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

9 years agoDo not reuse all pass filter index.
Wei Wang [Fri, 5 Sep 2014 18:03:46 +0000 (11:03 -0700)]
Do not reuse all pass filter index.

Bug:17425379
Change-Id: Iba4c40f8822b182718db060c3f2eeff7aabdb286

9 years agoMerge "Fixed batch scan returning status 12 when restarted." into lmp-dev
Wei Wang [Fri, 5 Sep 2014 18:49:28 +0000 (18:49 +0000)]
Merge "Fixed batch scan returning status 12 when restarted." into lmp-dev

9 years agoFixed batch scan returning status 12 when restarted.
Wei Wang [Wed, 3 Sep 2014 00:46:47 +0000 (17:46 -0700)]
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

9 years agoReturn right connection status when connection failed
Prerepa Viswanadham [Fri, 5 Sep 2014 17:49:45 +0000 (10:49 -0700)]
Return right connection status when connection failed

bug: 17326529
Change-Id: I57abf2f6a98c469248613ea386f0fa2ffaf5eac4

9 years agoProtect against Bluetooth share crash because of invalid timer callback
Andre Eisenbach [Fri, 29 Aug 2014 01:36:28 +0000 (18:36 -0700)]
Protect against Bluetooth share crash because of invalid timer callback

If the timer callback is not set when fired, a SIGSEGV will ensue. This
patch checks to make sure the callback is set before invoking the
function.

Bug: 17307367
Change-Id: I2ee284bdbd3b54a368e373d9ac9e6e47205dcff6

9 years agoMerge "redirect the ff/rw key event to ff/rw enabled player" into lmp-dev
Andre Eisenbach [Fri, 29 Aug 2014 17:06:41 +0000 (17:06 +0000)]
Merge "redirect the ff/rw key event to ff/rw enabled player" into lmp-dev

9 years agoMerge "More precise control of batch alarm." into lmp-dev
Wei Wang [Fri, 29 Aug 2014 07:18:32 +0000 (07:18 +0000)]
Merge "More precise control of batch alarm." into lmp-dev

9 years agoMerge "Colored notifications" into lmp-dev
Selim Cinek [Thu, 28 Aug 2014 09:36:04 +0000 (09:36 +0000)]
Merge "Colored notifications" into lmp-dev

9 years agoMerge "Listen for phone state on connect instead of SLC" into lmp-dev
Matthew Xie [Thu, 28 Aug 2014 05:40:59 +0000 (05:40 +0000)]
Merge "Listen for phone state on connect instead of SLC" into lmp-dev

9 years agoMore precise control of batch alarm.
Wei Wang [Thu, 21 Aug 2014 17:27:45 +0000 (10:27 -0700)]
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

9 years agoredirect the ff/rw key event to ff/rw enabled player
Zhenye Zhu [Tue, 26 Aug 2014 22:16:30 +0000 (15:16 -0700)]
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

9 years agoColored notifications
Selim Cinek [Wed, 27 Aug 2014 13:51:25 +0000 (15:51 +0200)]
Colored notifications

Bug: 17128331
Change-Id: Ic1a4d9803790cc0f3e8003ede4da8cc8f26729cf

9 years agoSet batch scan params based on scan settings.
Prerepa Viswanadham [Mon, 25 Aug 2014 21:27:15 +0000 (14:27 -0700)]
Set batch scan params based on scan settings.

bug 17134263

Change-Id: Id0d314ad1c14ad20e32830ae2c8ad5f80765b28b

9 years agoListen for phone state on connect instead of SLC
Ravi Nagarajan [Fri, 19 Apr 2013 10:03:54 +0000 (03:03 -0700)]
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

9 years agoam 28d13bff: (-s ours) am bbea2cec: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Mon, 25 Aug 2014 22:07:17 +0000 (22:07 +0000)]
am 28d13bff: (-s ours) am bbea2cec: (-s ours) Import translations. DO NOT MERGE

* commit '28d13bff5306fa45e41d7ea675aafe9e8a1113f4':
  Import translations. DO NOT MERGE

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-dev
Baligh Uddin [Mon, 25 Aug 2014 16:11:05 +0000 (16:11 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-dev

9 years agoMerge "Fix API council review comments. Also hide certain APIs(2/3)." into lmp-dev
Wei Wang [Sun, 24 Aug 2014 23:00:39 +0000 (23:00 +0000)]
Merge "Fix API council review comments. Also hide certain APIs(2/3)." into lmp-dev

9 years agoMerge "Fix race condition when advertising app dies." into lmp-dev
Wei Wang [Sun, 24 Aug 2014 19:00:08 +0000 (19:00 +0000)]
Merge "Fix race condition when advertising app dies." into lmp-dev

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Sun, 24 Aug 2014 15:42:20 +0000 (08:42 -0700)]
Import translations. DO NOT MERGE

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

9 years agoam bbea2cec: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Fri, 22 Aug 2014 17:16:24 +0000 (17:16 +0000)]
am bbea2cec: (-s ours) Import translations. DO NOT MERGE

* commit 'bbea2cec7b27babcd06dc8ade731978d19e79e7b':
  Import translations. DO NOT MERGE

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 22 Aug 2014 16:30:17 +0000 (09:30 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "LE: Rename new MTU and connection paramter update APIs" into lmp-dev
Andre Eisenbach [Thu, 21 Aug 2014 17:56:41 +0000 (17:56 +0000)]
Merge "LE: Rename new MTU and connection paramter update APIs" into lmp-dev

9 years agoFix race condition when advertising app dies.
Wei Wang [Tue, 12 Aug 2014 21:48:18 +0000 (14:48 -0700)]
Fix race condition when advertising app dies.

Bug: 16565960
Change-Id: Ica801a1186e62fcba666deabe5989dd47d404b68

9 years agoLE: Rename new MTU and connection paramter update APIs
Andre Eisenbach [Wed, 20 Aug 2014 01:01:08 +0000 (18:01 -0700)]
LE: Rename new MTU and connection paramter update APIs

bug 17005342
Change-Id: Ic773b5c4bb3da9777613c8094ad21ea6f720110d

9 years agoStop using LinkProperties for static configuration.
Lorenzo Colitti [Tue, 12 Aug 2014 01:44:31 +0000 (10:44 +0900)]
Stop using LinkProperties for static configuration.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-dev
Baligh Uddin [Sun, 17 Aug 2014 13:42:47 +0000 (13:42 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-dev

9 years agoam b35d0599: (-s ours) am 2396c919: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Sat, 16 Aug 2014 04:00:17 +0000 (04:00 +0000)]
am b35d0599: (-s ours) am 2396c919: (-s ours) Import translations. DO NOT MERGE

* commit 'b35d0599bc5846886913147aff52ddd8ee6b05ff':
  Import translations. DO NOT MERGE

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Sat, 16 Aug 2014 02:39:30 +0000 (19:39 -0700)]
Import translations. DO NOT MERGE

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

9 years agoam 2396c919: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Fri, 15 Aug 2014 22:20:00 +0000 (22:20 +0000)]
am 2396c919: (-s ours) Import translations. DO NOT MERGE

* commit '2396c919e3eba633feb37a84bd195bfde5f48629':
  Import translations. DO NOT MERGE

9 years agoFix API council review comments. Also hide certain APIs(2/3).
Wei Wang [Fri, 15 Aug 2014 21:02:45 +0000 (14:02 -0700)]
Fix API council review comments. Also hide certain APIs(2/3).

b/17006825

Change-Id: I6c0e739e44f8a9d26f3f2b03937b38d4dec893e7

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 15 Aug 2014 19:20:32 +0000 (12:20 -0700)]
Import translations. DO NOT MERGE

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

9 years agoAdd protection before cleaning up adv and scan manager.
Wei Wang [Wed, 13 Aug 2014 05:41:28 +0000 (22:41 -0700)]
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

9 years agoMerge "Use nanos instead of micros in BLE scan." into lmp-dev
Wei Wang [Wed, 13 Aug 2014 05:03:34 +0000 (05:03 +0000)]
Merge "Use nanos instead of micros in BLE scan." into lmp-dev

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 11 Aug 2014 17:59:37 +0000 (10:59 -0700)]
Import translations. DO NOT MERGE

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

9 years agoUse nanos instead of micros in BLE scan.
Wei Wang [Mon, 11 Aug 2014 17:42:10 +0000 (10:42 -0700)]
Use nanos instead of micros in BLE scan.

Change-Id: Ifdaf101f92ae4c8d2bcecf62a1942961d6610151

9 years agoMake directory structure + Java packages consistent.
Jeff Davidson [Fri, 8 Aug 2014 20:59:52 +0000 (13:59 -0700)]
Make directory structure + Java packages consistent.

Fixes Eclipse compilation errors.

Change-Id: I2898a2aaf2b19b4c64fd523f792bb224c79b5d75

9 years agoMerge "fix build." into lmp-dev
Wei Wang [Fri, 8 Aug 2014 02:32:04 +0000 (02:32 +0000)]
Merge "fix build." into lmp-dev

9 years agofix build.
Wei Wang [Fri, 8 Aug 2014 01:28:52 +0000 (18:28 -0700)]
fix build.

Change-Id: I034cc118ea4dca67ed6240b700d4ac504562ddfc

9 years agoFix build.
Wei Wang [Thu, 7 Aug 2014 21:01:18 +0000 (14:01 -0700)]
Fix build.

Change-Id: Ied3bd289b662cd342ba05f5038175007d3211a63

9 years agoOnFound/Lost reporting: s/w detects the first match and
Prerepa Viswanadham [Thu, 7 Aug 2014 19:36:51 +0000 (12:36 -0700)]
OnFound/Lost reporting: s/w detects the first match and
hw signal is used to report onlost.

Bug 16733710

Change-Id: I4d1d0320b6894fe1af59192eb56a4a801609049a

9 years agoMerge "LE: Add limited advertising duration capability (3/3)" into lmp-dev
Andre Eisenbach [Fri, 8 Aug 2014 02:29:37 +0000 (02:29 +0000)]
Merge "LE: Add limited advertising duration capability (3/3)" into lmp-dev

9 years agoLE: Add limited advertising duration capability (3/3)
Andre Eisenbach [Thu, 7 Aug 2014 22:19:45 +0000 (15:19 -0700)]
LE: Add limited advertising duration capability (3/3)

Change-Id: Ib025d8a10cce07e8f731c005d963245aa988be73

9 years agoMerge "Clear pending data and allow all filter when batch stopped." into lmp-dev
Wei Wang [Thu, 7 Aug 2014 18:47:17 +0000 (18:47 +0000)]
Merge "Clear pending data and allow all filter when batch stopped." into lmp-dev

9 years agoClear pending data and allow all filter when batch stopped.
Wei Wang [Tue, 5 Aug 2014 06:17:29 +0000 (23:17 -0700)]
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

9 years agoBT MAP: added support for email sharing over BT
Casper Bonde [Thu, 24 Jul 2014 11:47:23 +0000 (13:47 +0200)]
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

9 years agoWorkaround for reversed mac addresses in batch scan.
Wei Wang [Tue, 5 Aug 2014 04:08:34 +0000 (21:08 -0700)]
Workaround for reversed mac addresses in batch scan.

b/16803363

Change-Id: I47299ed2a6191e7f05c229feb1f1f0424e486907

9 years agoMerge "Add transport parameter to createBond() function (3/4)" into lmp-dev
Andre Eisenbach [Tue, 5 Aug 2014 16:57:58 +0000 (16:57 +0000)]
Merge "Add transport parameter to createBond() function (3/4)" into lmp-dev

9 years agoAdd transport parameter to createBond() function (3/4)
Andre Eisenbach [Tue, 5 Aug 2014 00:51:10 +0000 (17:51 -0700)]
Add transport parameter to createBond() function (3/4)

Change-Id: Id3c59bcc8f9efb20fffdebaff34d6b2593f5e5ca

9 years agoCheck null mHandler condition before invoking method on it
Matthew Xie [Mon, 4 Aug 2014 17:40:24 +0000 (10:40 -0700)]
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

9 years agoMHF: Return the correct connection state for headset.
Nitin Srivastava [Wed, 30 Jul 2014 19:50:54 +0000 (01:20 +0530)]
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

9 years agoChange discard rule.
Wei Wang [Sun, 3 Aug 2014 21:14:02 +0000 (14:14 -0700)]
Change discard rule.

Change-Id: Icfc43371acb0e901a7f67a4c32c5dd2e63de49c3

9 years agoAdd a default impelementation of IBluetoothGattCallback(2/2).
Wei Wang [Wed, 30 Jul 2014 04:38:29 +0000 (21:38 -0700)]
Add a default impelementation of IBluetoothGattCallback(2/2).

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

Change-Id: Ib152239cdee0becf3f49f1b610dfe1c2296c3647

9 years agoMerge "Change service data and manufacturer data to be repeated." into lmp-dev
Wei Wang [Fri, 1 Aug 2014 20:29:54 +0000 (20:29 +0000)]
Merge "Change service data and manufacturer data to be repeated." into lmp-dev

9 years agoChange service data and manufacturer data to be repeated.
Wei Wang [Tue, 29 Jul 2014 23:15:44 +0000 (16:15 -0700)]
Change service data and manufacturer data to be repeated.

Change-Id: Ie45ca40d3d84d192d65003ea3ac9ad428b281f94

10 years agoMerge "Remove client from advertiseManager correctly" into lmp-dev
Yicheng Fan [Thu, 31 Jul 2014 21:43:31 +0000 (21:43 +0000)]
Merge "Remove client from advertiseManager correctly" into lmp-dev

9 years agoRemove client from advertiseManager correctly
Yicheng Fan [Thu, 31 Jul 2014 21:22:44 +0000 (14:22 -0700)]
Remove client from advertiseManager correctly

Bug: 16711409
Change-Id: I3881593818edcf822ec07353da4a5ea6970f5d7c

9 years agoReduce batch supported threshold to 1024 bytes
Prerepa Viswanadham [Thu, 31 Jul 2014 00:25:47 +0000 (17:25 -0700)]
Reduce batch supported threshold to 1024 bytes

b/16680086

Change-Id: I671abd7dba321ab111280d1a1cb27aa93635a6d1