Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-apps-Bluetooth: List of commits

packages/apps/Bluetooth


RSS
Rev. Time Author
4ae2208 2017-06-08 19:03:07 android-build-team Robot

release-request-011e6329-d82e-4e46-980f-68776b0cd6b9-for-git_oc-release-4080367 snap-temp-L79900000072116775

Change-Id: Ifdf955676234eacb9e8577d7a33978a013eaffd6

8239c5c 2017-06-08 02:59:06 Ajay Panicker

Prevent opportunistic scans from changing the hardware filter

Before this patch opportunistic scans could set the hardware filter
to be an all pass filter. This would result large amounts of scan
results as short filtered scans would act as if they were unfiltered.
Now if an app is scanning opportunistically, its filter doesn't
get added to the hardware filter.

Fixes: 62280037
Test: Do a filtered scan while another app is scanning opportunistically
and see that the scan results only increase marginally.

Change-Id: I6214a2dd14d2c5ee4c21faa440c48ce7bab0b3fe
(cherry picked from commit b5d5a9563793d32bdafacfe93e303a13d5afd364)

fabcc6b 2017-06-04 16:12:45 android-build-team Robot

release-request-777c0f47-a42e-446a-b45c-0bb1aaa9612e-for-git_oc-release-4066915 snap-temp-L92300000070444114

Change-Id: Iaeb8690e1d44b23ecf65f1e2f45d63d5d6d94c6a

39652bd 2017-06-03 12:37:12 TreeHugger Robot

Merge "AVRCP: Fix issues around trackChanged notification" into oc-dev

8185630 2017-06-03 09:05:48 Sunny Kapdi

JNI: Fix callback obj for Advertisement

Use the Advertise callback object for all Advertisement
calls in jni

Bug: 62305016
Change-Id: I6511decdff48be58c6e45cb6b93932589ca6464e

aa977ce 2017-06-03 03:35:24 Jakub Pawlowski

Fix OnAdvertisingSetStopped callback not being called

Bug: 62031687
Test: sl4a AdvertisingSetTest
Change-Id: I6de84bb68d8c54d8c9685e701ca5ee4967a7b6f0

827c417 2017-06-03 01:47:52 Marie Janssen

AVRCP: Fix issues around trackChanged notification

When the track changes, sometimes the Queue ID changes before the
Metadata, and vice versa. Indicate that the track info has changed in
either case.

Guard against unsolicited responses since we are triggering more often.

Use the MediaController info for GetItemAttributes when the requested
id matches the current id.

Test: connect to Chrysler CK, switch to next track a few times, look for
good data.
Bug: 37707672
Change-Id: I6bffd419e22e1a029e11f9340afde54be00d3efc

1ed3480 2017-06-02 08:22:22 TreeHugger Robot

Merge "AVRCP: synchronize around mMediaController" into oc-dev

e820bda 2017-06-02 05:33:37 android-build-team Robot

Merge cherrypicks of [2344945, 2344576, 2344897, 2344874, 2344907, 2344949, 2345021, 2344909, 2344951, 2344837, 2344962, 2344838, 2345121, 2345141, 2345122, 2345062, 2344915] into oc-release

Change-Id: I8355ea5b0dd1077173b2ce03c6f94539e1c58ca2

3c2a9da 2017-06-02 05:26:07 Pavlin Radoslavov

Add mutex-based protection mechanism to the HFP JNI layer

The protection mechanism is needed to avoid a race condition during
graceful cleaning up of the Bluetooth Handsfree Interface when Bluetooth
is disabled, and native upcalls like connection_state_callback()

Bug: 62116636
Test: manual
Change-Id: I6be4c0bd996beca5252e881c55279ea4f7503e7b
(cherry picked from commit 273651938dbc9bab838945f1524fb588699419c7)
(cherry picked from commit f90eca34df4a5fb45bf4a073d21a02e7b3e616b8)

f4dd191 2017-06-02 05:06:25 TreeHugger Robot

Merge "Improve internal state synchronization of the A2dpStateMachine" into oc-dev

f90eca3 2017-06-02 01:06:37 Pavlin Radoslavov

Add mutex-based protection mechanism to the HFP JNI layer

The protection mechanism is needed to avoid a race condition during
graceful cleaning up of the Bluetooth Handsfree Interface when Bluetooth
is disabled, and native upcalls like connection_state_callback()

Bug: 62116636
Test: manual
Change-Id: I6be4c0bd996beca5252e881c55279ea4f7503e7b
(cherry picked from commit 273651938dbc9bab838945f1524fb588699419c7)

469e9bc 2017-06-02 01:04:28 Pavlin Radoslavov

Improve internal state synchronization of the A2dpStateMachine

* Don't block entering Disconnected state
If the mCurrentDevice or mTargetDevice or mIncomingDevice
is not null, print an error message and reset the state
* Add consistency checks when entering each state: Disconnected,
Pending, Connected
* Add a missing "synchronized" statement

Bug: 62164051
Test: Manual
Change-Id: I5856a88e58b42aa55d9075aa507bfa706ea52512
(cherry picked from commit 459978de76c5d152208538f61180e4a790c6e8d9)

f6168d9 2017-06-01 16:15:39 android-build-team Robot

release-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap-temp-L93200000069424216

Change-Id: I1272655b57bbfafe4a5f436a0d0c5aef7a549157

b4650c7 2017-06-01 04:26:59 Joe Onorato

Merge "Send ble scan type to Batterystats" into oc-dev

2b36dbd 2017-05-31 16:11:43 android-build-team Robot

release-request-49d3fda6-f7aa-4b8d-aeeb-eed9adb96e3c-for-git_oc-release-4053943 snap-temp-L63500000069017893

Change-Id: I7866276a466b8270b179221b12b651951d18a568

4a33b1a 2017-05-31 10:20:36 TreeHugger Robot

Merge "Turn off logspam (Bluetooth)" into oc-dev

8658254 2017-05-31 09:23:12 Marie Janssen

AVRCP: synchronize around mMediaController

There were small windows where mMediaController could be used and
modified by separate threads causing NullPointerExceptions. Synchronize
around mMediaController to avoid these issues.

Test: none
Bug: 62068020
Change-Id: I68acadefe793c4c0f7ffed108ec2e943ade138b8
(cherry picked from commit ad7a50ece55752b9b7e47cd86dc45de368c8c6d5)

792b3b6 2017-05-31 08:28:45 Joe Onorato

Turn off logspam (Bluetooth)

For more information, see https://source.android.com/source/code-style#log-sparingly

Bug: 37252687
Test: development/tools/logblame/medium_idle_test
Change-Id: I8c839eff19fa0b00d1b6a04fbb554b39010884d9

ca4e714 2017-05-31 05:33:05 Ajay Panicker

Switch GATT scan timekeeping to use a different clock

System.currentTimeMillis() could cause a scan to have a negative scan
time if the system time changed during a scan. Switch to
SystemClock.elapsedRealtime which is guaranteed to be monotonic.

Test: Start a scan and change system time
Bug: 62057540
Change-Id: Ie4d88df96c0a133955f46c355660756e587d29c5
(cherry picked from commit 4e58faa3aa59332e4d2394e6e54d8d1579e5cc73)

9789860 2017-05-31 02:05:12 Hemant Gupta

AVRCP: Fix GetItemAttributesCommand

Usecase:
1) Connect DUT with remote device supporting AVRCP 1.4
2) Connect browsing channel (if not already connected).
3) Send request to retrieve player list and select browsed player.
3) Send get item attribute commands to retrieve attributes of particular uid.

Expected Result:
Item attributes of particular UID are retrieved successfully.

Observation:
Get Item Attribute command does not return any response.

Root cause:
Media id passed as argument to MediaBrowse.subscribe is of children instead of
parent as required by the API

Fix:
Refactor to encapsulate requested ID in the subscribe callback, call the
MediaBrowser.subscribe with the correct id.

Test: connect to carkit and check if DUT responds correctly to GetItemAttribute
Bug: 37265436
Change-Id: Ifd7e17c600c0142cd29514eedf4ff8150f632570
(cherry picked from commit 3cd52581b21ef8c35382650170c9046119213f28)

3005576 2017-05-28 16:23:31 android-build-team Robot

release-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap-temp-L04900000068539456

Change-Id: I4b3ea75c9c4a644244723d2950f0b37acb61f406

6e3b527 2017-05-27 08:14:07 Pavlin Radoslavov

Remove usage of ScopedLocalFrame because it is not needed

ScopedLocalFrame is needed only when we need to reserve a large
number of JNI local references. The local references in the corresponding
code is small (below the default limit of 15).

Furthermore, using ScopedLocalFrame itself can be problematic:
it is excessive (reserves 128 entries out of total 512), and does
not check for errors.

Bug: 37969574
Test: Manual
Change-Id: Ia460fe9dd61ce91c940f64a980ec7256774d2fff
(cherry picked from commit ec462d88be2751b9a42adf67123877385562b7d8)

b7350e8 2017-05-26 06:50:48 Marie Janssen

Fix setFlags/addFlags typo

In aosp/352873 setFlags was used instead of addFlags which means wrong
semantics are used.

Test: sanity pairing tests with devices
Bug: 35853357
Change-Id: If27a870d880036aea60e8a07714a76af6de75081
(cherry picked from commit 117ee66c2a482df8ae99d4edbc1be1d03765d54a)

eeee579 2017-05-25 16:16:30 android-build-team Robot

release-request-33b11ddd-d658-45bf-bdb2-acceb024fe39-for-git_oc-release-4042766 snap-temp-L87400000067730042

Change-Id: Ib46ba9820dd9a7a694fac787733ba14ebdcefe43

90dcb46 2017-05-25 07:39:08 Marie Janssen

AVRCP: don't remove inactive media controllers

Some players change their controllers to inactive when they are
buffering, paused, or changing songs which causes us to lose track of
the controller in these states when it makes sense to keep track still.

In the case where we actually have no controller, simplify the logic
around tracking play state using A2DP feedback.

Test: Pause / Play with troublesome headphones
Bug: 38497029
Change-Id: I8e1258b85007c070fc083d9522f9fa8caa13e6f2
(cherry picked from commit c9f4e0d24e39b372452fa809b12f9c588b29abd9)

ffec5af 2017-05-24 05:24:38 Bookatz

Send ble scan type to Batterystats

Batterystats is now informed whether the ble scan is unoptimized or not.
In this context, unoptimized means that it is none of filtered, background,
or opportunistic.

Bug: 38461344
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testUnoptimizedBleScans
Change-Id: Idb199666830db24b2ef92797cdcc59e8eab16be3

958fca0 2017-05-23 21:20:20 android-build-team Robot

release-request-94bbded7-c270-40fa-9a74-fedecfd046c6-for-git_oc-release-4034177 snap-temp-L73200000066785187

Change-Id: I4ccd40a7ff9dc0e0ae4abeba34d7692e29078bae

85d0a38 2017-05-23 07:54:36 TreeHugger Robot

Merge "Remove logspam in service state changes" into oc-dev

e7de65e 2017-05-23 05:37:11 Ajay Panicker

Remove logspam in service state changes

Bug: 37803501
Test: Code still compiles
Change-Id: I9b2055476f74486a3d57957d2c9e6cf7946a139e
(cherry picked from commit edbf12256878f7d1a01c12f44342ec4ffe3405ba)

Show on old repository browser