OSDN Git Service

android-x86/packages-apps-Bluetooth.git
8 years agoMerge "Absolute volume: Black list device if remote can\'t change volume" am: 0af237b
Treehugger Robot [Tue, 26 Apr 2016 17:26:05 +0000 (17:26 +0000)]
Merge "Absolute volume: Black list device if remote can\'t change volume" am: 0af237b
am: 82e7f6b

* commit '82e7f6b9d8acd290134a1b7b9eaea7077526dd35':
  Absolute volume: Black list device if remote can't change volume

Change-Id: I4ae92f84e1915c7b13acd16bfd4015fe1f86b992

8 years agoMerge "Absolute volume: Black list device if remote can\'t change volume"
Liejun Tao [Tue, 26 Apr 2016 17:22:46 +0000 (17:22 +0000)]
Merge "Absolute volume: Black list device if remote can\'t change volume"
am: 0af237b

* commit '0af237b682f07456c427108675115ed6cea1867e':
  Absolute volume: Black list device if remote can't change volume

Change-Id: I682269b2de70af42c86458c2bb6a9639ce207189

8 years agoMerge "Absolute volume: Black list device if remote can't change volume"
Treehugger Robot [Tue, 26 Apr 2016 17:13:50 +0000 (17:13 +0000)]
Merge "Absolute volume: Black list device if remote can't change volume"

8 years agoAbsolute volume: Black list device if remote can't change volume
Liejun Tao [Wed, 9 Mar 2016 05:04:17 +0000 (23:04 -0600)]
Absolute volume: Black list device if remote can't change volume

If remote device failed to change volume too many times, black list it
to avoid using Absolute volume feature.

Bug: 26694114
Change-Id: Idb7a772b0ef936b2351bfc92722ec3c0d748822c

8 years agoMerge "Properly label app as unregistered and add NPE protection" into nyc-dev
Ajay Panicker [Fri, 22 Apr 2016 23:47:42 +0000 (23:47 +0000)]
Merge "Properly label app as unregistered and add NPE protection" into nyc-dev
am: e062a53

* commit 'e062a53f929cfbb90a81c966f1e1b207510247f3':
  Properly label app as unregistered and add NPE protection

Change-Id: I0cd7d94ad119e95bb2a65e4d10cd2fe48abd9ad8

8 years agoMerge "Properly label app as unregistered and add NPE protection" into nyc-dev
Ajay Panicker [Fri, 22 Apr 2016 22:46:33 +0000 (22:46 +0000)]
Merge "Properly label app as unregistered and add NPE protection" into nyc-dev

8 years agoSynchronize access to ServiceDeclaration fields.
Calvin On [Fri, 22 Apr 2016 21:21:58 +0000 (21:21 +0000)]
Synchronize access to ServiceDeclaration fields.
am: f8ecbbb

* commit 'f8ecbbb375c6a41895e0144d8d8cd42587891570':
  Synchronize access to ServiceDeclaration fields.

Change-Id: Ia0fda64b79de8bfcbe49da005364377b44eda25e

8 years agoSynchronize access to ServiceDeclaration fields.
Calvin On [Wed, 20 Apr 2016 02:17:50 +0000 (19:17 -0700)]
Synchronize access to ServiceDeclaration fields.

ServiceDeclaration objects are accessed by both the binder thread
(addService, addCharacteristic, etc) and the GattService callback thread
(onServiceAdded, etc) and so must be made thread-safe.

Bug: 28201656
Change-Id: Ic2e4b5c21dafceb62f33738b781f908f502f60b3

8 years agoProperly label app as unregistered and add NPE protection
Ajay Panicker [Wed, 20 Apr 2016 21:14:33 +0000 (14:14 -0700)]
Properly label app as unregistered and add NPE protection

Bug: 28252914
Change-Id: I1e28a9af96bcf0d56914fcc676a8ff85400bc1c4

8 years agoresolve merge conflicts of ce65d54 to nyc-dev-plus-aosp
Marie Janssen [Fri, 22 Apr 2016 00:42:27 +0000 (17:42 -0700)]
resolve merge conflicts of ce65d54 to nyc-dev-plus-aosp

Change-Id: Icce0b121a472fda7d49ff00eb70f73a53ce62b1d

8 years agoMerge "AVRCP: Use MediaController"
Marie Janssen [Fri, 22 Apr 2016 00:25:57 +0000 (00:25 +0000)]
Merge "AVRCP: Use MediaController"
am: 1adfcb49b7

* commit '1adfcb49b72f62b2b59e54219d0150edf8195695':
  AVRCP: Use MediaController

Change-Id: If2bba78c2642bd4293acd5421b47c6e34230abe2

8 years agoAVRCP: Use MediaController
Marie Janssen [Fri, 22 Apr 2016 00:25:54 +0000 (00:25 +0000)]
AVRCP: Use MediaController
am: 2fc493d0ea

* commit '2fc493d0ea2b504df25d783a488dfadfe301329e':
  AVRCP: Use MediaController

Change-Id: I217d39edb9051fa400183317a9c7de66e8b9a2de

8 years agoMerge "AVRCP: Use MediaController"
Marie Janssen [Fri, 22 Apr 2016 00:07:17 +0000 (00:07 +0000)]
Merge "AVRCP: Use MediaController"

8 years agoAVRCP: Use MediaController
Marie Janssen [Tue, 19 Apr 2016 14:12:42 +0000 (07:12 -0700)]
AVRCP: Use MediaController

RemoteController has been depreciated since M.
MediaController lets us track a lot more things and update data as the
state of audio changes.

This also should fix some bugs related to metadata display not happening
on startup / track change / app change.

Bug: 27178384
Bug: 27745277
Bug: 26837775
Bug: 27534794
Bug: 27153373
Change-Id: I246d9641a5e921ed4434495f5c2dfac67d568952

8 years agoAVRCP: Use MediaController
Marie Janssen [Tue, 19 Apr 2016 14:12:42 +0000 (07:12 -0700)]
AVRCP: Use MediaController

RemoteController has been depreciated since M.
MediaController lets us track a lot more things and update data as the
state of audio changes.  We track and log some of these changes for bug
followup.

This also should fix some bugs related to metadata display not happening
on startup / track change / app change.

Bug: 27178384
Bug: 27745277
Bug: 26837775
Bug: 27534794
Bug: 27153373
Change-Id: I246d9641a5e921ed4434495f5c2dfac67d568952

8 years agoMerge "Properly label app as unregistered and add NPE protection" am: d4a672f597
Ajay Panicker [Thu, 21 Apr 2016 21:56:48 +0000 (21:56 +0000)]
Merge "Properly label app as unregistered and add NPE protection" am: d4a672f597
am: 73122688c6

* commit '73122688c60586956205665d43748da430bef95e':
  Properly label app as unregistered and add NPE protection

Change-Id: Ib46783b7eba4a7c359970b6369e0c6aa4eb3c506

8 years ago"DO NOT MERGE" Add write SMS protection
Seven Shen [Thu, 21 Apr 2016 21:54:27 +0000 (21:54 +0000)]
"DO NOT MERGE" Add write SMS protection
am: 60e306ba5c

* commit '60e306ba5c132d5408ccae3a290e7cace020a49f':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I095cdaa7bd2674003f2fea3779fcce180af1f5f0

8 years agoMerge "Properly label app as unregistered and add NPE protection"
Ajay Panicker [Thu, 21 Apr 2016 21:54:26 +0000 (21:54 +0000)]
Merge "Properly label app as unregistered and add NPE protection"
am: d4a672f597

* commit 'd4a672f5975a9712796fbcd76b23ee268df810e9':
  Properly label app as unregistered and add NPE protection

Change-Id: Ifb75f1ac8e6bd7893a6dd904338b66871b60ac72

8 years agoMerge "Properly label app as unregistered and add NPE protection"
Ajay Panicker [Thu, 21 Apr 2016 21:24:33 +0000 (21:24 +0000)]
Merge "Properly label app as unregistered and add NPE protection"

8 years agoProperly label app as unregistered and add NPE protection
Ajay Panicker [Wed, 20 Apr 2016 21:14:33 +0000 (14:14 -0700)]
Properly label app as unregistered and add NPE protection

Bug: 28252914
Change-Id: I1e28a9af96bcf0d56914fcc676a8ff85400bc1c4

8 years ago"DO NOT MERGE" Add write SMS protection
Seven Shen [Wed, 6 Apr 2016 19:25:17 +0000 (12:25 -0700)]
"DO NOT MERGE" Add write SMS protection

Bug: 25138326
Change-Id: I9f418370b8725d49e3734406b6f435107bcff021

8 years agoAdd guest mode functionality (1/5)
Ajay Panicker [Wed, 20 Apr 2016 01:20:51 +0000 (01:20 +0000)]
Add guest mode functionality (1/5)
am: 3558402

* commit '3558402aae35c6b01c505be012d6736b0c758802':
  Add guest mode functionality (1/5)

Change-Id: I0aaa943583d0d7ea464e74397740165e68dde979

8 years agoAdd guest mode functionality (1/5)
Ajay Panicker [Fri, 18 Mar 2016 00:12:08 +0000 (17:12 -0700)]
Add guest mode functionality (1/5)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: If4a8855faf362d7f6de509d7ddc7197d1ac75cee

8 years agoMerge "Add guest mode functionality (1/4)" am: fae54a8
Ajay Panicker [Tue, 19 Apr 2016 21:49:37 +0000 (21:49 +0000)]
Merge "Add guest mode functionality (1/4)" am: fae54a8
am: 35d1580

* commit '35d1580a975dc5e9b3d4a7c987e30eb7ab1763be':
  Add guest mode functionality (1/4)

Change-Id: I0d91fba1ca24c0868f6372cd811ba998bed2d190

8 years agoMerge "Add guest mode functionality (1/4)"
Ajay Panicker [Tue, 19 Apr 2016 21:45:45 +0000 (21:45 +0000)]
Merge "Add guest mode functionality (1/4)"
am: fae54a8

* commit 'fae54a8c750cb66cc5970ad15966d12485dd0226':
  Add guest mode functionality (1/4)

Change-Id: I258c1f62672ea83289ead61ce821ea71f2bb9e05

8 years agoMerge "Add guest mode functionality (1/4)"
Ajay Panicker [Tue, 19 Apr 2016 21:29:47 +0000 (21:29 +0000)]
Merge "Add guest mode functionality (1/4)"

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd...
Ajay Panicker [Tue, 19 Apr 2016 20:50:37 +0000 (20:50 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd am: 48115bb  -s ours am: e2dca1a am: 63bcffd am: c522820 am: 8a05cda  -s ours
am: ee763f7

* commit 'ee763f7526696a1c6eed92331397781d6eb7789c':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I6976c157f82f2f53ef55d2538f600cc2c91a8a3b

8 years ago"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36 am: 6c32c81 am: b90c2...
Seven Shen [Tue, 19 Apr 2016 20:50:37 +0000 (20:50 +0000)]
"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36 am: 6c32c81 am: b90c267  -s ours
am: fed0765

* commit 'fed0765ad788e5ee92b46993d64e74f9f5ac431a':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I63c1e0185f2a2c315c3746def21cdc664a75c632

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd...
Ajay Panicker [Tue, 19 Apr 2016 20:48:43 +0000 (20:48 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd am: 48115bb  -s ours am: e2dca1a am: 63bcffd am: c522820
am: 8a05cda  -s ours

* commit '8a05cdab974dc2c3eef692a721dcf8c2c892c92d':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Ida61f3ba3d91a67185cb06411251dea62d8eedc4

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd...
Ajay Panicker [Tue, 19 Apr 2016 20:45:25 +0000 (20:45 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd am: 48115bb  -s ours am: e2dca1a am: 63bcffd
am: c522820

* commit 'c5228202951c7bc4e52efa5fc37aded7a3447347':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I040910aa52e542acad0fffda4ae4ff5dad101008

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd...
Ajay Panicker [Tue, 19 Apr 2016 20:41:25 +0000 (20:41 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd am: 48115bb  -s ours am: e2dca1a
am: 63bcffd

* commit '63bcffd3da5054da678f927e75c60d71cc45df47':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Ia5e0c102295f430fc4ec1d4230b70016d8e4c33e

8 years ago"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36 am: 6c32c81
Seven Shen [Tue, 19 Apr 2016 20:41:24 +0000 (20:41 +0000)]
"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36 am: 6c32c81
am: b90c267  -s ours

* commit 'b90c26765772a8cf5cf20c86a89dc24490cb1ccd':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I7c3b38bd4ca8c28f20fc89ac936da6e2f0d80480

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd...
Ajay Panicker [Tue, 19 Apr 2016 20:38:06 +0000 (20:38 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd am: 48115bb  -s ours
am: e2dca1a

* commit 'e2dca1a7cf3fa6b4d1d8c5769f5d0e052726c699':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I79c8f9bc90ba6ad16b854d68c74b075188a6caa0

8 years ago"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36
Seven Shen [Tue, 19 Apr 2016 20:33:41 +0000 (20:33 +0000)]
"DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36
am: 6c32c81

* commit '6c32c815bfbe1058791c6dbee0a98c6b30792963':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I4cca8e8ac4b4659ce7dc28264ccd39a53d68098c

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67 am: 5eee2cd
Ajay Panicker [Tue, 19 Apr 2016 20:33:14 +0000 (20:33 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67 am: 5eee2cd
am: 48115bb  -s ours

* commit '48115bb85ee7c7692b9c70afaa8b0d6a32c24a95':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I39546ac3a880b12ddeb33c383184967e90209349

8 years ago"DO NOT MERGE" Add write SMS protection am: 64745b1
Seven Shen [Tue, 19 Apr 2016 20:30:39 +0000 (20:30 +0000)]
"DO NOT MERGE" Add write SMS protection am: 64745b1
am: 9accc36

* commit '9accc36b1a6a9779d31ea6edcc861a69167d37e5':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Id5bc27d73ed66c9f12ecf94ec2ef1dc727a6b5c4

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours am: daa8d67
Ajay Panicker [Tue, 19 Apr 2016 20:30:02 +0000 (20:30 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours am: daa8d67
am: 5eee2cd

* commit '5eee2cd8453f5990d1202d010df01eca724e1010':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Id83f27fd2d8b2431cea51c8eb5a4ca152a872647

8 years ago"DO NOT MERGE" Add write SMS protection am: fd7a794 -s ours
Ajay Panicker [Tue, 19 Apr 2016 20:26:39 +0000 (20:26 +0000)]
"DO NOT MERGE" Add write SMS protection am: fd7a794  -s ours
am: daa8d67

* commit 'daa8d67fe2e26eb9d5282006eb7ec17306b7e277':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Ia8f55d6ba4a5d008b107673d8830208c3eefd30a

8 years ago"DO NOT MERGE" Add write SMS protection
Seven Shen [Tue, 19 Apr 2016 20:23:31 +0000 (20:23 +0000)]
"DO NOT MERGE" Add write SMS protection
am: 64745b1

* commit '64745b114948ea0c774f74af5721b6283087247d':
  "DO NOT MERGE" Add write SMS protection

Change-Id: Idb905753e4e4d711b11b7d5274e622df4e9c4251

8 years ago"DO NOT MERGE" Add write SMS protection
Ajay Panicker [Tue, 19 Apr 2016 20:23:20 +0000 (20:23 +0000)]
"DO NOT MERGE" Add write SMS protection
am: fd7a794  -s ours

* commit 'fd7a794fc57e06606244b9fc1673c9c549cce5c4':
  "DO NOT MERGE" Add write SMS protection

Change-Id: I3dcb78c9213b10ad354c72ab756af773c04213c7

8 years agoAVRCP: Don\'t assume 0:00 on metadata change
Marie Janssen [Tue, 19 Apr 2016 19:05:12 +0000 (19:05 +0000)]
AVRCP: Don\'t assume 0:00 on metadata change
am: e2c4671

* commit 'e2c4671a8c5d01f053b5b8e0c728d69d561abdc2':
  AVRCP: Don't assume 0:00 on metadata change

Change-Id: Ia37861ef9a1c089e23efcb9e5bce085f046d90ca

8 years agoAVRCP: Don't assume 0:00 on metadata change
Marie Janssen [Fri, 15 Apr 2016 21:57:04 +0000 (14:57 -0700)]
AVRCP: Don't assume 0:00 on metadata change

When changing between apps, and changing between songs, the Media
framework sends us the position data before the metadata, so
setting it to 0 wipes out our position.

Fixes: 27745277
Change-Id: I2d309df424c8889928da9601b367d488bba89919

8 years agoMerge "Implement new async response method for controller activity info" into nyc-dev
Adam Lesinski [Mon, 18 Apr 2016 23:35:36 +0000 (23:35 +0000)]
Merge "Implement new async response method for controller activity info" into nyc-dev
am: 049173d

* commit '049173d572891011cc01f675d8bd0227ef55e381':
  Implement new async response method for controller activity info

Change-Id: Iae86ab380cd053b3bcb678b858b5877d8900b40c

8 years agoMerge "Implement new async response method for controller activity info" into nyc-dev
Adam Lesinski [Mon, 18 Apr 2016 23:27:08 +0000 (23:27 +0000)]
Merge "Implement new async response method for controller activity info" into nyc-dev

8 years agoAdd guest mode functionality (1/4)
Ajay Panicker [Fri, 18 Mar 2016 00:12:08 +0000 (17:12 -0700)]
Add guest mode functionality (1/4)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: I561225652509b29ac6b0d194a3a50e29c5569365

8 years agoMerge "AVRCP: Don\'t assume 0:00 on metadata change" am: b81be7b
Marie Janssen [Sat, 16 Apr 2016 01:49:50 +0000 (01:49 +0000)]
Merge "AVRCP: Don\'t assume 0:00 on metadata change" am: b81be7b
am: bd7e0bf

* commit 'bd7e0bf92708a8da7166fa521b80ee830cc1f7aa':
  AVRCP: Don't assume 0:00 on metadata change

Change-Id: If5b201739fbb6656b5d25930334c2af94d667531

8 years agoMerge "AVRCP: Don\'t assume 0:00 on metadata change"
Marie Janssen [Sat, 16 Apr 2016 01:47:16 +0000 (01:47 +0000)]
Merge "AVRCP: Don\'t assume 0:00 on metadata change"
am: b81be7b

* commit 'b81be7b7f28ed966e5aa4600ee6bb4481b9e7720':
  AVRCP: Don't assume 0:00 on metadata change

Change-Id: I89441bcdab9ae143eb60aa2dc9a31d7f13146972

8 years agoMerge "AVRCP: Don't assume 0:00 on metadata change"
Marie Janssen [Sat, 16 Apr 2016 01:40:24 +0000 (01:40 +0000)]
Merge "AVRCP: Don't assume 0:00 on metadata change"

8 years agoAVRCP: Don't assume 0:00 on metadata change
Marie Janssen [Fri, 15 Apr 2016 21:57:04 +0000 (14:57 -0700)]
AVRCP: Don't assume 0:00 on metadata change

When changing between apps, and changing between songs, the Media
framework sends us the position data before the metadata, so
setting it to 0 wipes out our position.

Fixes: 27745277
Change-Id: I2d309df424c8889928da9601b367d488bba89919

8 years agoHandle all kinds of focuses and make fault tolerant to phone calls.
Sanket Agarwal [Fri, 15 Apr 2016 23:20:03 +0000 (23:20 +0000)]
Handle all kinds of focuses and make fault tolerant to phone calls.
am: bacd337

* commit 'bacd3374a5b2c2193e45aac0eafb8cc39762d9f5':
  Handle all kinds of focuses and make fault tolerant to phone calls.

Change-Id: Ia5ba035536cfe8953fb7b6efc959ef06565c31b6

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 23:20:03 +0000 (23:20 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 003f0b6  -s ours

* commit '003f0b624af9474d43e594463d58bc795c98013e':
  Import translations. DO NOT MERGE

Change-Id: I1c93a34ed4e2a5984985bbb7763d38bb0b598ecc

8 years agoHandle all kinds of focuses and make fault tolerant to phone calls.
Sanket Agarwal [Thu, 7 Apr 2016 20:48:40 +0000 (13:48 -0700)]
Handle all kinds of focuses and make fault tolerant to phone calls.

Audio Focus Loss Transient: We stop music and wait for focus gain.
Audio Focus Loss Transient May Duck: We lower the volume (via Gain).

Sometimes phones do not resume even after sending play after the phone
call. This is possible if there is a race condition of when A2dp thinks
it got focus back vs phone actually releasing the call. To avoid this we
add retry logic to try playing again. This also avoids janky situations
when playing music will not initiate at first.

Bug: b/28003743
Bug: b/28065071

Change-Id: I1d31156d134d98959ff3044c98206c60515d7e5a

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:35:07 +0000 (22:35 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179 am: c4818...
Sanket Agarwal [Fri, 15 Apr 2016 21:24:24 +0000 (21:24 +0000)]
Merge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179 am: c481822 am: ef9aa9f
am: 16d0d57

* commit '16d0d57b17f5f85d0f6a5d560f3ee3e904ef2a36':
  Merge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179 am: c481822 am: ef9aa9f

Change-Id: I5c18a87d35d43fdafc57cffa0bcf4441d53ee5d9

8 years agoMerge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179 am: c481822
Sanket Agarwal [Fri, 15 Apr 2016 20:13:48 +0000 (20:13 +0000)]
Merge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179 am: c481822
am: ef9aa9f

* commit 'ef9aa9f2514bafcaee96901dac2baffdf149e848':
  Rename btif audio_focus_state -> set_audio_focus_state.

Change-Id: Ib250b9355a44eae5e6d2fbf575c2bd9c04ffbcd4
(cherry picked from commit c7056ffc0c16fb35fda2cfc5adb51a736c9bb56a)

8 years agoImplement new async response method for controller activity info
Adam Lesinski [Mon, 11 Apr 2016 21:50:36 +0000 (14:50 -0700)]
Implement new async response method for controller activity info

Bug:26842468
Change-Id: I35e6bd6996d408aa2c8ccda754d5b2f05bcb8056

8 years agoMerge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179
Treehugger Robot [Fri, 15 Apr 2016 20:10:35 +0000 (20:10 +0000)]
Merge "Rename btif audio_focus_state -> set_audio_focus_state." am: 93b6179
am: c481822

* commit 'c481822da34ab6f8a566553fd73c337ab50c7e4b':
  Rename btif audio_focus_state -> set_audio_focus_state.

Change-Id: I42d5f05d90d448116587973d1659772e91f9d304

8 years agoMerge "Rename btif audio_focus_state -> set_audio_focus_state."
Sanket Agarwal [Fri, 15 Apr 2016 20:07:17 +0000 (20:07 +0000)]
Merge "Rename btif audio_focus_state -> set_audio_focus_state."
am: 93b6179

* commit '93b6179962049896cdbde0fb575d63e6482c5cb7':
  Rename btif audio_focus_state -> set_audio_focus_state.

Change-Id: I54beae28905ba1b22c7a14dd424f045d560c712e

8 years agoMerge "Rename btif audio_focus_state -> set_audio_focus_state."
Treehugger Robot [Fri, 15 Apr 2016 19:57:21 +0000 (19:57 +0000)]
Merge "Rename btif audio_focus_state -> set_audio_focus_state."

8 years agoAdd a missing null-pointer check in HeadsetService.stop()
Pavlin Radoslavov [Fri, 15 Apr 2016 19:20:04 +0000 (19:20 +0000)]
Add a missing null-pointer check in HeadsetService.stop()
am: 1b09c8c

* commit '1b09c8cd4fa10c3f0918cb1e24bdd2fd60aeec88':
  Add a missing null-pointer check in HeadsetService.stop()

Change-Id: I9c2c15ec6023d2a71ce9e00a156a9e891e69220b

8 years agoRename btif audio_focus_state -> set_audio_focus_state.
Sanket Agarwal [Fri, 15 Apr 2016 19:10:01 +0000 (12:10 -0700)]
Rename btif audio_focus_state -> set_audio_focus_state.

Bug: b/28065071
Change-Id: I0b84adfce2c72f03a81693e598c38e1469d7f022

8 years agoMerge "Add a missing null-pointer check in HeadsetService.stop()" am: 7f0f52c
Pavlin Radoslavov [Fri, 15 Apr 2016 17:49:41 +0000 (17:49 +0000)]
Merge "Add a missing null-pointer check in HeadsetService.stop()" am: 7f0f52c
am: 2144045

* commit '214404558c638733aee9aec5a8481522ecaca86c':
  Add a missing null-pointer check in HeadsetService.stop()

Change-Id: Ib80cb345580c497ae6352b80d299bb915c29c4d7

8 years agoMerge "Add a missing null-pointer check in HeadsetService.stop()"
Pavlin Radoslavov [Fri, 15 Apr 2016 17:46:25 +0000 (17:46 +0000)]
Merge "Add a missing null-pointer check in HeadsetService.stop()"
am: 7f0f52c

* commit '7f0f52c9c302ccb138d14cf60b782ea7e3a7cb51':
  Add a missing null-pointer check in HeadsetService.stop()

Change-Id: I8f98d8282b66672af4cc6a2640364f12bcda6f97

8 years agoAdd a missing null-pointer check in HeadsetService.stop()
Pavlin Radoslavov [Fri, 15 Apr 2016 00:49:45 +0000 (17:49 -0700)]
Add a missing null-pointer check in HeadsetService.stop()

Bug: 27678483

Change-Id: I288b905d6b3f827a94365d512305cd29e186f3d4

8 years agoMerge "Add a missing null-pointer check in HeadsetService.stop()"
Pavlin Radoslavov [Fri, 15 Apr 2016 17:38:44 +0000 (17:38 +0000)]
Merge "Add a missing null-pointer check in HeadsetService.stop()"

8 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 15 Apr 2016 07:55:11 +0000 (00:55 -0700)]
Import translations. DO NOT MERGE

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

8 years agoAdd a missing null-pointer check in HeadsetService.stop()
Pavlin Radoslavov [Fri, 15 Apr 2016 00:49:45 +0000 (17:49 -0700)]
Add a missing null-pointer check in HeadsetService.stop()

Bug: 27678483

Change-Id: I288b905d6b3f827a94365d512305cd29e186f3d4

8 years agoMerge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning." am: a2129f1
con [Thu, 14 Apr 2016 00:48:30 +0000 (00:48 +0000)]
Merge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning." am: a2129f1
am: 2369f00

* commit '2369f00656165b339290879177c0b3104213bb9c':
  Fix PEERS_MAC_ADDRESS permission for Ble Scanning.

Change-Id: Ib9d76c40e46b8bc95ca2beecaab9b6fb62084c0f

8 years agoMerge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning."
Calvin On [Thu, 14 Apr 2016 00:40:54 +0000 (00:40 +0000)]
Merge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning."
am: a2129f1

* commit 'a2129f1e4c73e4795627f4662a58b3d2d186848f':
  Fix PEERS_MAC_ADDRESS permission for Ble Scanning.

Change-Id: I69f8fc96c4fc00bf18f4cb6daf79ca77ac1e9471

8 years agoMerge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning."
con [Thu, 14 Apr 2016 00:33:06 +0000 (00:33 +0000)]
Merge "Fix PEERS_MAC_ADDRESS permission for Ble Scanning."

8 years agoFix PEERS_MAC_ADDRESS permission for Ble Scanning.
Calvin On [Tue, 12 Apr 2016 22:43:59 +0000 (15:43 -0700)]
Fix PEERS_MAC_ADDRESS permission for Ble Scanning.

This changes the location permissions check to only throw a SecurityException
if *both* location and peers mac address permissions are missing.

Bug: 27837639
Change-Id: I5e10c8f0564d1f7edab23ad22dbd5aa5fdcbbf76

8 years agoFix PEERS_MAC_ADDRESS permission for Ble Scanning.
Calvin On [Wed, 13 Apr 2016 00:14:45 +0000 (00:14 +0000)]
Fix PEERS_MAC_ADDRESS permission for Ble Scanning.
am: e041e1b

* commit 'e041e1b073d81516073223da4aef23e91cc823e7':
  Fix PEERS_MAC_ADDRESS permission for Ble Scanning.

Change-Id: Ice6b8e751576badddcd814b8d9139af5d0ba387e

8 years agoFix PEERS_MAC_ADDRESS permission for Ble Scanning.
Calvin On [Tue, 12 Apr 2016 22:43:59 +0000 (15:43 -0700)]
Fix PEERS_MAC_ADDRESS permission for Ble Scanning.

This changes the location permissions check to only throw a SecurityException
if *both* location and peers mac address permissions are missing.

Bug: 27837639
Change-Id: I5e10c8f0564d1f7edab23ad22dbd5aa5fdcbbf76

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Apr 2016 14:11:19 +0000 (14:11 +0000)]
Import translations. DO NOT MERGE
am: b402d0b  -s ours

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

Change-Id: If548343d3fb4ac13d6313870990971b9534da6a4

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Apr 2016 13:51:28 +0000 (06:51 -0700)]
Import translations. DO NOT MERGE

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

8 years ago"DO NOT MERGE" Add write SMS protection
Seven Shen [Wed, 6 Apr 2016 19:25:17 +0000 (12:25 -0700)]
"DO NOT MERGE" Add write SMS protection

Bug: 25138326
Change-Id: I9f418370b8725d49e3734406b6f435107bcff021

8 years agoBluetooth streaming should wait for AVRCP to start.
Sanket Agarwal [Fri, 8 Apr 2016 00:28:54 +0000 (00:28 +0000)]
Bluetooth streaming should wait for AVRCP to start.
am: f3db7dc

* commit 'f3db7dcf88a585d133f73b8579012f8217965728':
  Bluetooth streaming should wait for AVRCP to start.

Change-Id: Id4a786f6b41e123d3bf4560fe21b8727d630cacd

8 years agoBluetooth streaming should wait for AVRCP to start.
Sanket Agarwal [Thu, 7 Apr 2016 18:56:26 +0000 (11:56 -0700)]
Bluetooth streaming should wait for AVRCP to start.

Currently we are waiting for A2DP to come up before we can start
streaming. This is not ideal since unless AVRCP comes up we cannot show
the UI reliably. That said, for compatibility with devices only having
A2DP we will need to modify this code. For now the A2DP SNK is only
supposed to work with AVRCP TG implementation on the remote.

Bug: b/27744764
Change-Id: I972cf94f5b276d9b0e08315175ae605ccfe6a423

8 years agoEnable logging for AVRCP Metadata changes
Marie Janssen [Thu, 7 Apr 2016 01:56:09 +0000 (01:56 +0000)]
Enable logging for AVRCP Metadata changes
am: 65e7943

* commit '65e7943d098113c5aa56e9822b68f0c51c6dbe36':
  Enable logging for AVRCP Metadata changes

Change-Id: I29e11f6f402c0b395e9a5dc3907554d085d1c02e

8 years agoMerge "Enable logging for AVRCP Metadata changes" am: 5faf9f0
Marie Janssen [Thu, 7 Apr 2016 00:50:29 +0000 (00:50 +0000)]
Merge "Enable logging for AVRCP Metadata changes" am: 5faf9f0
am: 353e820

* commit '353e820f5b64e26ea2b57ea997073e7616b55ad9':
  Enable logging for AVRCP Metadata changes

Change-Id: I9cf01a6ac27e6939c43a3d577ec5ad1213379f45

8 years agoEnable logging for AVRCP Metadata changes
Marie Janssen [Tue, 5 Apr 2016 17:49:19 +0000 (10:49 -0700)]
Enable logging for AVRCP Metadata changes

We're seeing a lot of AVRCP metadata issues, so enable some logging of
metadata in hopes of collecting more information.

Bug: 26837775
Bug: 27153373
Bug: 27178384
Bug: 27745277
Change-Id: Ie425ad2a5e090aa4363dab6b853479eeda35cef6

8 years agoMerge "Enable logging for AVRCP Metadata changes"
Marie Janssen [Wed, 6 Apr 2016 23:02:20 +0000 (23:02 +0000)]
Merge "Enable logging for AVRCP Metadata changes"
am: 5faf9f0

* commit '5faf9f070da9165e5ccb87c3c1505af71d20b1e0':
  Enable logging for AVRCP Metadata changes

Change-Id: I327d198160b37dd1d28f9364893c77b4adb928cb

8 years ago"DO NOT MERGE" Add write SMS protection
Ajay Panicker [Wed, 6 Apr 2016 22:55:15 +0000 (15:55 -0700)]
"DO NOT MERGE" Add write SMS protection

Bug: 25138326
Change-Id: I494db57e9291fac108e2abae85db367992ad81a1

8 years agoMerge "Enable logging for AVRCP Metadata changes"
Marie Janssen [Wed, 6 Apr 2016 22:53:41 +0000 (22:53 +0000)]
Merge "Enable logging for AVRCP Metadata changes"

8 years agoEnable logging for AVRCP Metadata changes
Marie Janssen [Tue, 5 Apr 2016 17:49:19 +0000 (10:49 -0700)]
Enable logging for AVRCP Metadata changes

We're seeing a lot of AVRCP metadata issues, so enable some logging of
metadata in hopes of collecting more information.

Bug: 26837775
Bug: 27153373
Bug: 27178384
Bug: 27745277
Change-Id: Ie425ad2a5e090aa4363dab6b853479eeda35cef6

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Wed, 6 Apr 2016 17:26:02 +0000 (17:26 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 8fc1976  -s ours

* commit '8fc1976a9e898beb5cbfede708ee584ca2ca155e':
  Import translations. DO NOT MERGE

Change-Id: I350d73755a499273cae70ce9f01808bc507c95b3

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Wed, 6 Apr 2016 17:07:53 +0000 (17:07 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Apr 2016 13:38:59 +0000 (06:38 -0700)]
Import translations. DO NOT MERGE

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

8 years agoFix name collected for scan initiator
Ajay Panicker [Wed, 6 Apr 2016 01:36:41 +0000 (01:36 +0000)]
Fix name collected for scan initiator
am: f6f7432

* commit 'f6f74322ced5c6fb4681c2a1cb42c66f8c82c774':
  Fix name collected for scan initiator

Change-Id: Ibf037410e2c599c6c22e57c14520d473da9cbcdd

8 years agoFix name collected for scan initiator
Ajay Panicker [Tue, 5 Apr 2016 00:31:19 +0000 (17:31 -0700)]
Fix name collected for scan initiator

Private information was being collected for the scan statistics.

Bug: 27996307
Change-Id: Idab438967f80f86f4f92e7f03cc5787f8d54e8a1

8 years agoMake PBAP PCE (Client) role auto-connectable.
Joseph Pirozzo [Wed, 6 Apr 2016 00:03:30 +0000 (00:03 +0000)]
Make PBAP PCE (Client) role auto-connectable.
am: 3c75851

* commit '3c75851b93fe42d7d4650adc6a5d680c6f43eb42':
  Make PBAP PCE (Client) role auto-connectable.

Change-Id: I759a1d25b65ee4f9dfe73e3c839d64e60a0ce206

8 years agoChange A2dpSinkService package from a2dp -> a2dpsink.
Sanket Agarwal [Wed, 6 Apr 2016 00:03:30 +0000 (00:03 +0000)]
Change A2dpSinkService package from a2dp -> a2dpsink.
am: eb47111

* commit 'eb471116243b322ee1574fd4dbf2b8e67e67a449':
  Change A2dpSinkService package from a2dp -> a2dpsink.

Change-Id: Ie2bcba8553b9088bab66e18440e548bb7cbf2c46

8 years agoMake PBAP PCE (Client) role auto-connectable.
Joseph Pirozzo [Tue, 5 Apr 2016 21:25:18 +0000 (14:25 -0700)]
Make PBAP PCE (Client) role auto-connectable.

Set the default flag to enable contact sharing from Car Kit by default
like the other autoconnect profiles.

Bug: 27977457
Change-Id: Ibbd09ea93ff402193e8a03ba77148dea9417a488

8 years agoMerge "Fix name collected for scan initiator" am: ca4d161
Ajay Panicker [Tue, 5 Apr 2016 23:40:37 +0000 (23:40 +0000)]
Merge "Fix name collected for scan initiator" am: ca4d161
am: 033bfdb

* commit '033bfdb04dbd5b6ad81421c9707c4dfe1e17e2d0':
  Fix name collected for scan initiator

Change-Id: I94dbd95910ba84109dcf418561b05b185563e460

8 years agoMerge "Fix name collected for scan initiator"
Ajay Panicker [Tue, 5 Apr 2016 23:37:22 +0000 (23:37 +0000)]
Merge "Fix name collected for scan initiator"
am: ca4d161

* commit 'ca4d1610ade1c1e8b871b4abb04b00582049b75d':
  Fix name collected for scan initiator

Change-Id: Icc000d8bd1e0142ff36addb192ed7121abfb198d

8 years agoMerge "Fix name collected for scan initiator"
Ajay Panicker [Tue, 5 Apr 2016 23:29:18 +0000 (23:29 +0000)]
Merge "Fix name collected for scan initiator"

8 years agoFix name collected for scan initiator
Ajay Panicker [Tue, 5 Apr 2016 00:31:19 +0000 (17:31 -0700)]
Fix name collected for scan initiator

Private information was being collected for the scan statistics.

Bug: 27996307
Change-Id: Idab438967f80f86f4f92e7f03cc5787f8d54e8a1

8 years agoChange A2dpSinkService package from a2dp -> a2dpsink.
Sanket Agarwal [Tue, 5 Apr 2016 23:26:29 +0000 (16:26 -0700)]
Change A2dpSinkService package from a2dp -> a2dpsink.

Change go/ag/901764/ changed the package of A2dpSinkService but the JNI
did not do the appropriate change.

Bug: 27744764
Bug: 28025011
Change-Id: I9a6cc0e695bef152c1bdf461a5f92468db5172ab

8 years agoMerge commit '92870384369a8a5345bfe868b97d2d384f433103' into manual_merge_9287038
Sanket Agarwal [Tue, 5 Apr 2016 23:08:59 +0000 (16:08 -0700)]
Merge commit '92870384369a8a5345bfe868b97d2d384f433103' into manual_merge_9287038

Change-Id: I7696c00ff3787104caeeb22d7225e2ba665fa7f6

8 years agoMove MediaBrowserService to Bluetooth Process
Sanket Agarwal [Thu, 31 Mar 2016 00:53:54 +0000 (17:53 -0700)]
Move MediaBrowserService to Bluetooth Process

MediaBrowserService exports A2DP streaming features to the rest of stack
using the MediaBrowser API. Currently it was being stareted by
BOOT_COMPLETE which made it start very late. Also that meant that some
of the broadcasts for the connection events is lost. Now it is started
by the A2DP state machine so that we do not miss any state changes.

Bug: 27744764
Change-Id: I193b4adfea09cbd90e41f1a217383b6aa234ef2b