OSDN Git Service
Bill Yi [Mon, 15 Aug 2016 20:13:44 +0000 (20:13 +0000)]
Import translations. DO NOT MERGE
am:
3d66fe4171 -s ours
Change-Id: I5f4d02e1862ae2b89b1cab7f43efb4d0c3ceb81e
Bill Yi [Mon, 15 Aug 2016 17:31:01 +0000 (10:31 -0700)]
Import translations. DO NOT MERGE
Change-Id: I250197560618852d32013e4280fa1cb0ce835bb6
Auto-generated-cl: translation import
Bill Yi [Mon, 15 Aug 2016 17:29:16 +0000 (10:29 -0700)]
Import translations. DO NOT MERGE
Change-Id: I7e7ebd7b79f42c7ffd05c0b323cd706f8ed02f61
Auto-generated-cl: translation import
Myles Watson [Fri, 15 Jul 2016 00:43:11 +0000 (17:43 -0700)]
RemoteDevices: Optimize adding new remote devices
RemoteDevices keeps track of the Bluetooth devices which have been
seen since the Bluetooth stack was initialized. Each time a remote
device is discovered, it is added to a hash map. When the size of the
hash map grows beyond a few hundred devices, the performance degrades.
This patch:
- creates the address string once per search
reducing the average search time with 300 devices from ~20ms to ~1ms
- uses the hash of the address string to search
further reducing the time with 1200 devices from ~2ms to ~1ms
HashMap<BluetoothDevice, DeviceProperties> became
HashMap<String, DeviceProperties>
mDevice now stores the BluetoothDevice in each instance of
DeviceProperties.
TEST: Used System.nanoTime() to measure the elapsed time of
getDeviceProperties()
Bug:
30828758
Change-Id: Id44886143fb2910955294341d4938d638c72f7f9
Signed-off-by: Myles Watson <mylesgw@google.com>
(cherry picked from commit
1fb90c4f25ba33b0f951e6ac092d05f85d355e2f)
Ajay Panicker [Thu, 4 Aug 2016 02:18:50 +0000 (19:18 -0700)]
Prevent LE scanning apps from being wrongflully downgraded to opportunistic
Bug:
30648104
Change-Id: I9d749a20eefdbeb126fa25a425d636205a22b2ef
Ajay Panicker [Fri, 5 Aug 2016 20:20:55 +0000 (13:20 -0700)]
Prevent OPP connections from staying open forever
OPP connections could possibly stay open forever if no response to
the put request is received after transfering very small files. Fixed
by waiting to clear the timeout message until after the response is
received.
Bug:
30645605
Change-Id: I0743685e98e74195b99eff7012dc8c8044c425ca
Ajay Panicker [Wed, 3 Aug 2016 01:53:00 +0000 (18:53 -0700)]
Protect against SecurityException generated by query
Bug:
30444661
Change-Id: I1d93645f1d4475cf603cda8bb28df0b960ccb445
Ajay Panicker [Tue, 26 Jul 2016 18:54:21 +0000 (11:54 -0700)]
Move file lookup to its own thread for beaming
Bug:
28973021
Change-Id: I40f6d32ffadd58e60dbd1e44802a629b9fab64e4
Marie Janssen [Tue, 26 Jul 2016 23:23:54 +0000 (16:23 -0700)]
Fix bugs in play status and play pos notifications
Fix multiple issues with status notificatios:
* Playback state was not being sent when state wasn't sent
accompanying a metadata change
* Play state was being sent without an update
* Position was being sent without a change and with the wrong
indicator
* Position was not being scheduled for update when playing.
* Position was being scheduled for update when paused / stopped.
Bug:
30459664
Bug:
29400658
Bug:
28639383
Change-Id: Ic550dcab0430be45187b0267cc77875740388a2a
(cherry picked from commit
fa81085f6cda571d56c62eb1d646ae4a52cb90ee)
Ajay Panicker [Thu, 28 Jul 2016 00:18:35 +0000 (17:18 -0700)]
Change URI accessed to properly update read status
Bug:
28970262
Change-Id: I07d9ab24d10396baa4ddbfbdfad5b1eec1b8e9d5
Ajay Panicker [Wed, 27 Jul 2016 01:14:03 +0000 (01:14 +0000)]
Merge "Don't use SMS database until after the phone is unlocked" into nyc-mr1-dev
Chenjie Luo [Tue, 26 Jul 2016 23:32:44 +0000 (23:32 +0000)]
Merge "Add foreground flag to AG_CALL_CHANGED broadcast intent." into nyc-mr1-dev
Ajay Panicker [Thu, 21 Jul 2016 17:39:14 +0000 (10:39 -0700)]
Don't use SMS database until after the phone is unlocked
When the device is encrypted and a passcode is set,
the SMS database isn't available and the MAP service
crashes when trying to access it. The service will now
respond with OBEX_SERVICE_UNAVAILABLE until the phone
is unlocked. At this point, the SMS database will
notify the content observer that all the messages are
available, and send corresponding events.
Bug:
29990836
Change-Id: I53f12d0e114212d94f16b56df7c7dbe73f6254df
Lianchao Song [Fri, 8 Jul 2016 11:07:21 +0000 (19:07 +0800)]
Add foreground flag to AG_CALL_CHANGED broadcast intent.
To fix the issue that the watch is still ringing after answer an
incoming call on phone. It is caused by the ACTION_CALL_CHANGED
broadcast reception processing delayed.
Bug:
29931814
Change-Id: I8d8f297c3a13dfe65674eca94724a50d82618f5e
Signed-off-by: m00230717 <m00230717@notesmail.huawei.com>
(cherry picked from commit
6b375a456e971ae8ef7ddf1d7d41876ca39e44bc)
Bill Yi [Thu, 21 Jul 2016 01:56:51 +0000 (18:56 -0700)]
Import translations. DO NOT MERGE
Change-Id: I0b3ce711cda327fa16cba022b24b30fdeada9fb8
Auto-generated-cl: translation import
Marie Janssen [Mon, 18 Jul 2016 14:22:39 +0000 (14:22 +0000)]
Fix AVRCP crash, position and state tracking
am:
9b04e432de
Change-Id: Ibccde59d643df4ed3fe869eda05d34891f80147d
Marie Janssen [Mon, 18 Jul 2016 14:22:21 +0000 (14:22 +0000)]
Refactor playback position tracking
am:
2be5946285 -s ours
Change-Id: Ib67100dd6a0a21aee2c8fa5644ad932ce1dd5746
Marie Janssen [Tue, 12 Jul 2016 14:53:54 +0000 (07:53 -0700)]
Fix AVRCP crash, position and state tracking
When the MediaController goes away (media stops) a NPE would cause a
crash.
Initialize the position so that an initial notification gets sent
when position is requested, send it when the music is paused, and
send play state whenever the app sends us a play state update.
Bug:
30039744
Bug:
29416450
Change-Id: I44397b3dc40d328fa75a2c15875fad298a5090dd
(cherry picked from commit
84d3f084d4d1a65eb7a481e5a7fe4a6ac827be7b)
Marie Janssen [Thu, 30 Jun 2016 21:29:18 +0000 (14:29 -0700)]
Refactor playback position tracking
Use PlaybackState directly to track the position through time. Update
the state when necessary (track changes, etc.)
Remove complex logic and centralize sending of Play Position
Notificaiton response and scheduling.
Update dumpsys and add current package session.
Bug:
29416450
Bug:
29606822
Change-Id: Ie82b48d6d7f9e1a05b64835731433d05a3a3a41a
(cherry picked from commit
eb9e6ef0ecde4929fa2df1aa4cc8954d88d3b452)
Hemant Gupta [Mon, 6 Jun 2016 17:33:19 +0000 (23:03 +0530)]
MAP: Remove redundant call to sendShutdownMessage to prevent crash
Usecase:
Perform BT off/on repeatedly.
Issue:
Bluetooth crashes.
Fix:
Remove redundant call to sendShutdownMessage() from stop API to prevent
MapServiceMessageHandler becoming null and being dereferenced.
Bug:
29149190
Change-Id: I739664975043c4a1895fd2113869c87cdb704338
(cherry picked from commit
5847ca3c7068500b1f2a4cd4cf5ff373347f8fbf)
TreeHugger Robot [Thu, 14 Jul 2016 21:00:21 +0000 (21:00 +0000)]
Merge "PAN: Avoid reconfiguration of bt-pan interface in NAP role" into nyc-mr1-dev
Nitin Shivpure [Thu, 16 Jun 2016 15:15:29 +0000 (20:45 +0530)]
PAN: Avoid reconfiguration of bt-pan interface in NAP role
Issue:
Browsing is not working with multiple remote PANU Device(s).
Root Cause:
When the 1st remote PANU is connected, the bt-pan interface gets
configured. As soon as 2nd PANU is connected, the bt-pan interface
goes into a bad state. The second device is able to write Ethernet
packets on the bt-pan interface (TUN driver) after reconfiguration,
but it is unable to read Ethernet packets from the interface.
Fix:
If the bt-pan interface is already configured in the NAP role,
then do not reconfigure bt-pan when the 2nd PANU is connected.
Bug:
29992925
Change-Id: Ib6e0cb91d573649af45ffe25c7095a4bd74a5022
Marie Janssen [Tue, 12 Jul 2016 14:53:54 +0000 (07:53 -0700)]
Fix AVRCP crash, position and state tracking
When the MediaController goes away (media stops) a NPE would cause a
crash.
Initialize the position so that an initial notification gets sent
when position is requested, send it when the music is paused, and
send play state whenever the app sends us a play state update.
Bug:
30039744
Bug:
29416450
Change-Id: I44397b3dc40d328fa75a2c15875fad298a5090dd
Marie Janssen [Thu, 30 Jun 2016 21:29:18 +0000 (14:29 -0700)]
Refactor playback position tracking
Use PlaybackState directly to track the position through time. Update
the state when necessary (track changes, etc.)
Remove complex logic and centralize sending of Play Position
Notificaiton response and scheduling.
Update dumpsys and add current package session.
Bug:
29416450
Bug:
29606822
Change-Id: Ie82b48d6d7f9e1a05b64835731433d05a3a3a41a
Ajay Panicker [Wed, 6 Jul 2016 19:20:02 +0000 (12:20 -0700)]
Allow MAP to accept and list draft messages without recipients
Bug:
28970268
Change-Id: I5bdef6cd67708036352ed37ea35b027d6a54af03
Satish Kodishala [Wed, 4 May 2016 14:11:24 +0000 (19:41 +0530)]
Check for call/call setup state before creating SCO
Use case:
1. Run HFP AG PTS test cases.
or
1. Pair and connect phone with Sony xba-bt75 Bluetooth headset.
2. Make incoming call and accept it.
Failure:
PTS test cases fail. There will be no call audio on
Sony xba-bt75 headset.
Root cause:
Telephony asking to create SCO before incoming call
is accepted.
Fix:
If there is no active/held call, outgoing call setup
in progress, we should not create SCO. Telephony will
ask to create SCO for incoming call before the call
becomes active, this creates IOT issues and fail below
PTS test cases.
TC_AG_ACC_BV_08_I
TC_AG_ACC_BV_10_I
TC_AG_ACC_BV_11_I
TC_AG_ACC_BV_12_I
TC_AG_ACC_BV_13_I
TC_AG_ACC_BV_14_I
Bug:
29417803
Change-Id: I0c1002b31da65cbc0b0e74b590468d37ea51d065
(cherry picked from commit
c01a35486da7fa801b4cb6ad4d1bb7702ab4f272)
Pavlin Radoslavov [Sat, 25 Jun 2016 00:31:52 +0000 (17:31 -0700)]
Set the Adapter Service onCreate()
We should call setAdapterService(this) inside onCreate() instead of
inside BleOnProcessStart(). The former is more robust.
Change-Id: Ide1d98dfdde148645f3efe246e6fbf95659195a7
Calvin On [Fri, 24 Jun 2016 00:10:59 +0000 (00:10 +0000)]
Use the live AdapterService in ProfileService.
am:
d4152d61ac
Change-Id: I3e9f60f8589a62640055654d25fab66d270fec54
Calvin On [Wed, 22 Jun 2016 21:23:49 +0000 (14:23 -0700)]
Use the live AdapterService in ProfileService.
Previously, if AdapterService was null while ProfileService is
created, the ProfileService would never work because it would
store a stale reference to the AdapterService.
This change ensures that ProfileService accesses the current
AdapterService at any given time.
Bug:
29519304
Bug:
29610505
Change-Id: I25efbf4a58932f519ac9f0b89c4112a442c994eb
(cherry picked from commit
b55c6a1f4ce60ad552e9c9a6d06fab6781a4dadb)
Calvin On [Thu, 23 Jun 2016 21:06:58 +0000 (21:06 +0000)]
Merge "Use the live AdapterService in ProfileService." into nyc-mr1-dev
Ajay Panicker [Thu, 23 Jun 2016 20:46:46 +0000 (20:46 +0000)]
Close output stream before getting response
am:
e026ad5004
Change-Id: I54248b785427cce08568d7fed2bb329f90b3af02
Ajay Panicker [Thu, 23 Jun 2016 20:29:34 +0000 (13:29 -0700)]
Close output stream before getting response
If the output stream is still open after finishing the sending of
a file, a CONTINUE response code is received instead of an OK code.
Bug:
29583227
Change-Id: I1b2515e8fe5eec208bbbe1df17f96cc20c5ea884
Calvin On [Wed, 22 Jun 2016 21:23:49 +0000 (14:23 -0700)]
Use the live AdapterService in ProfileService.
Previously, if AdapterService was null while ProfileService is
created, the ProfileService would never work because it would
store a stale reference to the AdapterService.
This change ensures that ProfileService accesses the current
AdapterService at any given time.
Bug:
29519304
Change-Id: I25efbf4a58932f519ac9f0b89c4112a442c994eb
Adam Lesinski [Wed, 22 Jun 2016 18:57:32 +0000 (18:57 +0000)]
Merge \"Prevent energy data overflow\" into nyc-dev
am:
303ef0bd13
Change-Id: Ic6927d8d5b929954b78c616d64332c29b24e55bf
Adam Lesinski [Wed, 22 Jun 2016 18:48:20 +0000 (18:48 +0000)]
Merge "Prevent energy data overflow" into nyc-dev
Ajay Panicker [Wed, 22 Jun 2016 00:00:07 +0000 (00:00 +0000)]
Fix how file size is calculated if not provided
am:
120ba1db4d
Change-Id: I240f7fc0955aa6ec9d1e4e18cf217eac2b3aa394
Ajay Panicker [Tue, 21 Jun 2016 00:54:36 +0000 (17:54 -0700)]
Fix how file size is calculated if not provided
Currently if there is no file size provided, InputStream.available()
is used to guess how many bytes are available. According to the
java documentation, available() should not be used to calculate
file sizes, as it isn't guarenteed to return the total number of
bytes in the stream. This is fixed by reading the stream to
calculate the length, then resetting the stream.
Bug:
29334784
Change-Id: Ic851c46d053157e4d5404352d76f9ff87a509607
Adam Lesinski [Tue, 21 Jun 2016 01:46:55 +0000 (18:46 -0700)]
Prevent energy data overflow
- Stores energy data as longs
- Monitors for overflow and logs + discards sample
Bug:
27598905
Change-Id: I442c0f63adb5197a45e7982e68f1260c856ed351
Ajay Panicker [Fri, 19 Feb 2016 21:53:17 +0000 (13:53 -0800)]
Fix sender name string to match MAP spec
In section 3.1.6 of the Bluetooth MAP spec version
1.2.2, the field name should be "sender_name" instead
of "senderName".
Bug:
26904410
Change-Id: I0dacaf50b0830239d2c2e7e787dc7998f3ed6723
(cherry picked from commit
9a18a9fc4349f90e49d036ccafc91d8b5befe973)
ugo_yu [Fri, 27 May 2016 12:11:08 +0000 (20:11 +0800)]
Mercedes Benz MAP message listing workaround
Use case:
Sync MAP message to Benz NTG 4.5
Precondition:
1. One of SMS message contains any special characters not ASCII
Steps:
1. Connect with Benz NTG 4.5.
2. Sync SMS message from carkit.
Failure:
Carkit always shows "No Message".
Root Cause:
When this carkit requests the message listing, and any message subject has
non-ASCII special characters in it, the carkit will stop all MAP activity
and stay idle.
Fix:
Strip special characters in the subject tline in message listing
for this carkit.
This change also introduces a Java bases interop database for future
use/expansion.
Bug:
29025011
Change-Id: I4255cbeb068c82f32a68b1022285dfa723e199ec
Bill Yi [Sun, 5 Jun 2016 15:56:48 +0000 (15:56 +0000)]
Import translations. DO NOT MERGE
am:
397d9de948 -s ours
* commit '
397d9de948c3c5084468401ff1951f2db16260a2':
Import translations. DO NOT MERGE
Change-Id: I221cce3b46e062e60f4439ead38a97aa561d6edc
Bill Yi [Fri, 3 Jun 2016 23:45:47 +0000 (16:45 -0700)]
Import translations. DO NOT MERGE
Change-Id: I98fcef7d96fe6957419e34bdb4357e254d8e6fc0
Auto-generated-cl: translation import
Bill Yi [Fri, 3 Jun 2016 23:42:34 +0000 (16:42 -0700)]
Import translations. DO NOT MERGE
Change-Id: If896174730ea6a12d1d591aadf2eff5047d2e60a
Auto-generated-cl: translation import
Marie Janssen [Thu, 2 Jun 2016 22:05:45 +0000 (22:05 +0000)]
Check exception to prevent crash on invalid URIs
am:
eacf805631
* commit '
eacf805631c3fb557ba7210dc6da3eb4dd1a04b2':
Check exception to prevent crash on invalid URIs
Change-Id: I6c697a50c6078ba89f0f5bd0018ddcf99ef869d2
Mudumba Ananth [Mon, 29 Feb 2016 10:14:18 +0000 (02:14 -0800)]
HFP 1.7 profile update (4/4)
-> Added HF Indicator support.
-> Sent a Broadcast intent upon receiving AT + BIND and
AT + BIEV Events with the required parameters
-> Support for sending +BIND response on indicator
status change
Bug:
19983867
Change-Id: I2580fc771080f1bc92fc4ddd5ca7c7cb57773183
Marie Janssen [Wed, 25 May 2016 21:27:00 +0000 (14:27 -0700)]
Check exception to prevent crash on invalid URIs
Previously if an invalid URI for a notification is received,
Bluetooth crashed.
Bug:
28940687
Change-Id: I54e17b7180e770bb8a5cf48c3d4b2a35657cb67f
rongbo.x.chi [Wed, 25 May 2016 00:27:29 +0000 (00:27 +0000)]
Only allow access to MAP if SMS is not supported
am:
4d2c98fcf1
* commit '
4d2c98fcf1abc4b07dc2d4601952f30f5d008470':
Only allow access to MAP if SMS is not supported
Change-Id: I33a25eb06427b65297cb72fac7c7325dec0e2067
rongbo.x.chi [Mon, 7 Dec 2015 08:42:18 +0000 (16:42 +0800)]
Only allow access to MAP if SMS is not supported
Bluetooth MAP shows SMS/MMS instance and when SMS is not supported.
Don't create SMS/MMS instance if device does not support SMS.
Fixes:
28803983
Change-Id: I807fe7e10bf51316729fe56ff6181a9161a410ef
Ajay Panicker [Tue, 24 May 2016 22:27:38 +0000 (22:27 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002 am:
0b2a403b82 -s ours am:
6d74162bea am:
46790a61d3 am:
5b68598a5f am:
4b1a2258f7
am:
996e934491
* commit '
996e934491359a490a95f510da6f9eca6e684918':
Add guest mode functionality (3/3)
Change-Id: I1fc9922c46d768c0cc69b875c1a83bd44248aa43
Ajay Panicker [Tue, 24 May 2016 22:26:50 +0000 (22:26 +0000)]
Add guest mode functionality (3/3) am:
af5b1764da am:
69689c0098 -s ours am:
1d6901fdcf am:
749752db0d
am:
24bbc49362
* commit '
24bbc4936234ba42ef38c14d0f7c2174b98b1792':
Add guest mode functionality (3/3)
Change-Id: I47282efc33a5d9f7a7cd05dd57efb2af2aa8ca46
Ajay Panicker [Tue, 24 May 2016 22:26:00 +0000 (22:26 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002 am:
0b2a403b82 -s ours am:
6d74162bea am:
46790a61d3 am:
5b68598a5f
am:
4b1a2258f7
* commit '
4b1a2258f7b811312ddefb1af62a87544f574ab1':
Add guest mode functionality (3/3)
Change-Id: I0a69c7db93c9f510985107e31609c9b45dc3698f
Ajay Panicker [Tue, 24 May 2016 22:25:26 +0000 (22:25 +0000)]
Add guest mode functionality (3/3) am:
af5b1764da am:
69689c0098 -s ours am:
1d6901fdcf
am:
749752db0d
* commit '
749752db0d737e47f59347f01e9c304608f63e27':
Add guest mode functionality (3/3)
Change-Id: I8e8327d41c0ee3d6b6ed1c68b7517aca44dfab66
Ajay Panicker [Tue, 24 May 2016 22:21:47 +0000 (22:21 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002 am:
0b2a403b82 -s ours am:
6d74162bea am:
46790a61d3
am:
5b68598a5f
* commit '
5b68598a5f4e0bef1ee87671617be8476dbf30a6':
Add guest mode functionality (3/3)
Change-Id: Ib4ea170b03af67655426ab030032aeb36342f6ba
Ajay Panicker [Tue, 24 May 2016 22:21:27 +0000 (22:21 +0000)]
Add guest mode functionality (3/3) am:
af5b1764da am:
69689c0098 -s ours
am:
1d6901fdcf
* commit '
1d6901fdcf7e546b3bdbeb1bc1b9c1cae3688745':
Add guest mode functionality (3/3)
Change-Id: If3aaa4e34c015da99d38e984d8b0dd1bedd2e1f3
Ajay Panicker [Tue, 24 May 2016 22:16:17 +0000 (22:16 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002 am:
0b2a403b82 -s ours am:
6d74162bea
am:
46790a61d3
* commit '
46790a61d3722128f68bbfd2e12656923def72d0':
Add guest mode functionality (3/3)
Change-Id: I956eb988a5f80ff11af426a406251a852eb1a09a
Ajay Panicker [Tue, 24 May 2016 22:16:04 +0000 (22:16 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002 am:
0b2a403b82 -s ours
am:
6d74162bea
* commit '
6d74162bea2771991a434e0c463b58c080ee1b26':
Add guest mode functionality (3/3)
Change-Id: I90e7d0a5372f25eeb2a92f8773aa81caa3d1de1f
Ajay Panicker [Tue, 24 May 2016 22:15:53 +0000 (22:15 +0000)]
Add guest mode functionality (3/3) am:
af5b1764da
am:
69689c0098 -s ours
* commit '
69689c0098a7582f8bba393f72b2575ed5508e71':
Add guest mode functionality (3/3)
Change-Id: I0715575a2e7de20356c1b8c0b170eb85eb5e77e3
Ajay Panicker [Tue, 24 May 2016 22:13:11 +0000 (22:13 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641 am:
b01d679002
am:
0b2a403b82 -s ours
* commit '
0b2a403b821149b8d0c6ec3ab28db46beff3d75e':
Add guest mode functionality (3/3)
Change-Id: Ic32d37360b9a73b10b27bed3a73d9fdf865db346
Ajay Panicker [Tue, 24 May 2016 22:07:27 +0000 (22:07 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6 am:
480b762641
am:
b01d679002
* commit '
b01d6790028caf2ba951d5c6eeacf7d4f8ecbbd3':
Add guest mode functionality (3/3)
Change-Id: I98de45cdc87a200c4ff32ccfac88d42edac767a5
Ajay Panicker [Tue, 24 May 2016 22:05:26 +0000 (22:05 +0000)]
Add guest mode functionality (3/3) am:
e1ca5cccd6
am:
480b762641
* commit '
480b76264134b6a44aef6948f32b4bd6a62fcd0f':
Add guest mode functionality (3/3)
Change-Id: I512cef0d0c23d4702cf9de61be4bf8f47c164bac
Ajay Panicker [Tue, 24 May 2016 22:02:02 +0000 (22:02 +0000)]
Add guest mode functionality (3/3)
am:
af5b1764da
* commit '
af5b1764daa3b212d471f000d7091ac07c040453':
Add guest mode functionality (3/3)
Change-Id: I2591d37bb52e2bda796200100f7f21bf00f55d7a
Ajay Panicker [Tue, 24 May 2016 22:02:02 +0000 (22:02 +0000)]
Add guest mode functionality (3/3)
am:
e1ca5cccd6
* commit '
e1ca5cccd6c2b37f783aa0ee2d9371108ad5c855':
Add guest mode functionality (3/3)
Change-Id: I9f3c034215aadf5e5ebd77e4a3265c7fbcf21fe3
Alain Vongsouvanh [Tue, 24 May 2016 16:09:52 +0000 (16:09 +0000)]
Merge "GATT: Move connection parameters to config.xml" into nyc-mr1-dev
Pavlin Radoslavov [Tue, 24 May 2016 02:34:30 +0000 (02:34 +0000)]
Removed unnecessary "synchronized" statements
am:
e741f05c93
* commit '
e741f05c93343241123095acab011dc8a0700bc6':
Removed unnecessary "synchronized" statements
Change-Id: Id0db840569d83817dbb4a65619f9e63618370354
Pavlin Radoslavov [Mon, 23 May 2016 05:24:08 +0000 (22:24 -0700)]
Removed unnecessary "synchronized" statements
Bug:
28734075
Bug:
28799467
Change-Id: I6ba8867c179dc416bb0dd06c69ce426c10ea7585
Alain Vongsouvanh [Fri, 13 May 2016 20:27:59 +0000 (13:27 -0700)]
GATT: Move connection parameters to config.xml
This makes it easier for OEMs to customize the high prioriy, balanced
and low power mode connection parameters through overlays.
Bug:
18013697
Change-Id: I8b486b772fdb871f2800238cb5e45c4ff0663952
(cherry-picked from
d65009d591017319a429be1a920fdf763e71cebd)
venkata Jagadeesh [Mon, 23 May 2016 21:46:16 +0000 (21:46 +0000)]
Broadcast UUIDS on BT state transition to ON
am:
6fb4b2407f
* commit '
6fb4b2407f2ae6d87b1f026870f66d717a915973':
Broadcast UUIDS on BT state transition to ON
Change-Id: Ie3f311eb23193c3da4a5d54e0a956caeaf9a0084
venkata Jagadeesh [Tue, 12 Jan 2016 09:24:47 +0000 (14:54 +0530)]
Broadcast UUIDS on BT state transition to ON
Use case: Phone and media connection is not happening
after BT reset during swapping between the HeadSet.
Precondition:
1. WIFI should be on and connected with AP.
Steps:
1. Pair and connect from DUT to PLT legend device.
2. Make an Mobile originated (MO) call.
3. Pair and connect from DUT to sony carkit.
4. Swap connection between PLT legend and sony carkit.
5. During swapping turn OFF BT from DUT.
6. Turn ON DUT and wait for auto connection from DUT.
7. Repeat step from 4-6 10 times.
Failure: Failed to connect with HS.
Root cause:
Broadcarst UUIDS on receiving the on event
from lower layers even though the state is not
transitioned to ON.
Fix:
Broadcast UUIDS on BT state is transitioned to ON
to avoid timing issues related UUIDS.
Bug:
27665220
Change-Id: Ibdbaecd60cf36c599700b1ca353481b8149efa90
Jakub Pawlowski [Mon, 23 May 2016 20:48:16 +0000 (20:48 +0000)]
Fix LocalRef leakage in get_gatt_db
am:
c949f68641
* commit '
c949f686413deb9b711696d53d8064669a1475d0':
Fix LocalRef leakage in get_gatt_db
Change-Id: I2fecf9ff7527236c3b31248db035ae891cb68d28
Jakub Pawlowski [Mon, 23 May 2016 18:05:32 +0000 (11:05 -0700)]
Fix LocalRef leakage in get_gatt_db
Bug:
28878699
Change-Id: I81929d9f802d4f50eb7eb60d54ceca6ff19bb651
Ajay Panicker [Fri, 18 Mar 2016 00:12:08 +0000 (17:12 -0700)]
Add guest mode functionality (3/3)
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
Baligh Uddin [Sun, 22 May 2016 23:13:09 +0000 (23:13 +0000)]
Import translations. DO NOT MERGE
am:
b3ddda59b6 -s ours
* commit '
b3ddda59b674623296238121a6e81c3c1e434756':
Import translations. DO NOT MERGE
Change-Id: I7e9ab8623adba8a29b600f6ca11447533c925f1f
Baligh Uddin [Sat, 21 May 2016 19:12:24 +0000 (12:12 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
28857042
Change-Id: I7d9aa50ddc3826c10cf29aa91e3fae9ee79a1004
Ajay Panicker [Sat, 21 May 2016 02:40:29 +0000 (02:40 +0000)]
Change scan downgrade timeout from 5 min to 30 min
am:
63d9d9ffbe
* commit '
63d9d9ffbec2facf7b90aa552e37168e66c497eb':
Change scan downgrade timeout from 5 min to 30 min
Change-Id: I1d6e11fd61b70f5c2cb69a90671319f1b885e1e0
Ajay Panicker [Sat, 21 May 2016 00:35:12 +0000 (17:35 -0700)]
Change scan downgrade timeout from 5 min to 30 min
Bug:
28824606
Change-Id: Ic4d1f7832aaa33ce0177905f6a64fea8eb048eae
TreeHugger Robot [Fri, 20 May 2016 00:22:31 +0000 (00:22 +0000)]
Merge "Fix 2 instances of a field being assigned itself in a constructor." into nyc-mr1-dev
Ian Rogers [Thu, 19 May 2016 02:40:49 +0000 (19:40 -0700)]
Fix a test related to GATT client that could never succeed
Caught by Error Prone:
warning: [CollectionIncompatibleType] Argument 'clientIf' should not be
passed to this method; its type int is not compatible with its
collection's type argument AdvertiseClient.
Bug:
27723540
Change-Id: I395b17a46c3734afd0f49866b7aa0bd0f1c6cef4
(cherry picked from commit
c6064ccebc5f55b49628296ce578288b3ad704e1)
Ian Rogers [Wed, 16 Mar 2016 21:08:39 +0000 (14:08 -0700)]
Fix 2 instances of a field being assigned itself in a constructor.
The code had no effect so its safe to remove.
The issue was identified using error prone.
Bug:
27723540
Change-Id: I3803573c545c00e8066ba185c271b38a75bf28c6
(cherry picked from commit
3fc930b1883466cc0e3b35a57519e435426554ee)
Alain Vongsouvanh [Wed, 18 May 2016 16:20:57 +0000 (16:20 +0000)]
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml am:
26f325ad37 -s ours am:
6bc72a1fbf -s ours
am:
4457205c96 -s ours
* commit '
4457205c9640ce31ee5afb9c934bc45de5555a2a':
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml
Change-Id: I4f0d4eb4f185d3b83d5ae1254b73d0deea9a2666
Alain Vongsouvanh [Wed, 18 May 2016 16:17:59 +0000 (16:17 +0000)]
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml am:
26f325ad37 -s ours
am:
6bc72a1fbf -s ours
* commit '
6bc72a1fbfb09856983589e5bb19ba5bf67e7e94':
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml
Change-Id: I8a04e5f7269be7242cfdedf071319d1947e4be7e
Alain Vongsouvanh [Wed, 18 May 2016 16:15:29 +0000 (16:15 +0000)]
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml
am:
26f325ad37 -s ours
* commit '
26f325ad37145b0de56518f63c97319e322c976b':
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml
Change-Id: Ibe39628179845b7dd1c16604bcb78614eb397474
Alain Vongsouvanh [Fri, 13 May 2016 20:27:59 +0000 (13:27 -0700)]
DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xml
This makes it easier for OEMs to customize the high prioriy, balanced
and low power mode connection parameters through overlays.
Bug:
18013697
Change-Id: I8b486b772fdb871f2800238cb5e45c4ff0663952
(cherry-picked from
d65009d591017319a429be1a920fdf763e71cebd)
Adam Lesinski [Thu, 12 May 2016 01:26:14 +0000 (01:26 +0000)]
Merge "BluetoothManager: Make requestControllerActivityInfo one call" into nyc-dev
am:
fc57cab5ba
* commit '
fc57cab5ba191752d0091c808f940fb677bac0ab':
BluetoothManager: Make requestControllerActivityInfo one call
Change-Id: I16d66dc0e710548269ee15f775da20b65259f380
Adam Lesinski [Thu, 12 May 2016 00:59:28 +0000 (00:59 +0000)]
Merge "BluetoothManager: Make requestControllerActivityInfo one call" into nyc-dev
Bryce Lee [Tue, 10 May 2016 23:52:49 +0000 (23:52 +0000)]
Add config for enabling HFP Connection Service.
am:
70c7604401
* commit '
70c760440149a0ac78ff33346798253269abd937':
Add config for enabling HFP Connection Service.
Change-Id: I3a8b988dd1ce7b6df5459cc657239b41ff7750e7
Bryce Lee [Mon, 9 May 2016 20:52:14 +0000 (13:52 -0700)]
Add config for enabling HFP Connection Service.
By default, devices which use HFP Client profile should use the built-in
connection service. However, the service should be flexible enough to
allow other implementations.
Bug:
28068989
Change-Id: Ic1be5745541ccfbd838c5440e4cfc75620ae91c2
Adam Lesinski [Tue, 10 May 2016 21:03:03 +0000 (14:03 -0700)]
BluetoothManager: Make requestControllerActivityInfo one call
Instead of making multiple calls into the Bluetooth service,
make one call that can timeout. This helps prevent cases
when the Bluetooth process hangs and the system_server is calling into
it and causes a WATCHDOG restart.
Bug:
28658141
Change-Id: I84d2c025f4ffb452975444e794a64c82569deb0a
Lianchao Song [Tue, 10 May 2016 17:49:30 +0000 (17:49 +0000)]
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop() am:
3fe282a78e -s ours am:
8080442c99 -s ours
am:
432f43c938 -s ours
* commit '
432f43c938cc59e64b1e8130e5873357dae90769':
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop()
Change-Id: Ib142bcd99a6c6932bb3c404d364a391cebec6b76
Lianchao Song [Tue, 10 May 2016 17:46:49 +0000 (17:46 +0000)]
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop() am:
3fe282a78e -s ours
am:
8080442c99 -s ours
* commit '
8080442c99578192d91eb8fcc23ac9cc0c805587':
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop()
Change-Id: Id550b4448b5f3eab200c519e347e876579a4cc4c
Lianchao Song [Tue, 10 May 2016 17:43:58 +0000 (17:43 +0000)]
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop()
am:
3fe282a78e -s ours
* commit '
3fe282a78e8643329c5d6bc84ad5788cd4366b70':
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop()
Change-Id: I376d9ee987ce3c1d859fbc78095cc85ea78475fa
Lianchao Song [Mon, 9 May 2016 14:50:57 +0000 (22:50 +0800)]
DO NOT MERGE ANYWHERE Add missing null pointer check inside HeadSetClientService.stop()
Bug:
28664857
Change-Id: I62abc4eb4127db2d4f0cde44eca618996f099b49
Signed-off-by: Lianchao Song <songlianchao@huawei.com>
Ajay Panicker [Mon, 9 May 2016 19:22:03 +0000 (19:22 +0000)]
Add protection against LE scanning abuse
am:
aef39f16e4
* commit '
aef39f16e48cbae0ace8136c3235136c0a096061':
Add protection against LE scanning abuse
Change-Id: Ifb57541579eed30d4d34d3ec407987c2ea02d56e
Ajay Panicker [Wed, 13 Apr 2016 21:11:57 +0000 (14:11 -0700)]
Add protection against LE scanning abuse
Added two checks to prevent abuse. The first check ensures that an
app doesn't scan too frequently in a certain time period. It is
allowed to scan again after its oldest scan exceedes said time
period. The second check ensures that an app doesn't scan for too
long. Upon starting a scan, this code waits a certain amount of time.
If the app is still scanning by that point, this code stops
the scan and forces the app to use opportunistic scanning instead.
Bug:
27357274
Change-Id: Ic99ac1f838e15ed99fe2fae643ef073d74b5c96b
Sanket Agarwal [Mon, 9 May 2016 17:34:24 +0000 (17:34 +0000)]
HfpClientConnectionService does not synchronize state
am:
a8fc504fed
* commit '
a8fc504fed7dcb5dc074980b9d4cfa7a56445424':
HfpClientConnectionService does not synchronize state
Change-Id: I4e527e352ff0fe04f10b11bf782c4e0104811e65
Sanket Agarwal [Tue, 26 Apr 2016 22:35:43 +0000 (15:35 -0700)]
HfpClientConnectionService does not synchronize state
Currently active device is a synchronizable state and the current
implementation was simply waiving it. Also the mechanism to create a
phone account was invalid since the PhoneAccountHandle was not unique
per device. PhoneAccountHandle not being unique is OK for now but fails
in case of multiple devices.
Bug: b/
28068989
Change-Id: I729df5aa110a428b8ce23cf6658d81c5acbc16a2
Marie Janssen [Fri, 6 May 2016 18:53:53 +0000 (18:53 +0000)]
AVRCP: Provide more media attributes
am:
0fcd081ccc
* commit '
0fcd081cccbf624a3a886fe4eb68adc3498e695c':
AVRCP: Provide more media attributes
Change-Id: I7ccda700abaf47a0accf12a1220f0e1a3f2b2b4c
Ian Rogers [Thu, 5 May 2016 20:36:19 +0000 (20:36 +0000)]
Fix divergent equals and hashCode behavior
am:
27b250928c
* commit '
27b250928cb3401d9a0a3a3f4b2026f1a431b6df':
Fix divergent equals and hashCode behavior
Change-Id: I5a31d6166a0e1ed2d4f4c6cedb0afb5c831836f7
Marie Janssen [Mon, 25 Apr 2016 18:24:39 +0000 (11:24 -0700)]
AVRCP: Provide more media attributes
Add track number, total tracks, genre, and consolidate MediaAttribute
handling into a single place.
Bug:
28589463
Change-Id: I53049bc2a43c0f30af9639fbc3d6a02cd8a74900
Ian Rogers [Wed, 4 May 2016 17:37:28 +0000 (10:37 -0700)]
Fix divergent equals and hashCode behavior
Calling Objects.hash with a byte[] will call the identity hashCode on the
byte[] (data, data_mask) and this doesn't agree with the use of
Objects.deepEquals in equals.
Bug caught by error prone.
Bug:
27723540
Change-Id: Ic33f9a341165db6c9339321f81f7af63d627a2cb
Jakub Pawlowski [Wed, 4 May 2016 22:02:56 +0000 (22:02 +0000)]
Fix work profile app not being able to create bond
am:
11976279d5
* commit '
11976279d5403fb65d9f0ea72b0e450dfd841958':
Fix work profile app not being able to create bond
Change-Id: I99c8f2b889e0f0893e6b54bc312aef6a6eb19cd1