OSDN Git Service

AVRCP: Change notification variable when the interim response is sent
authorAjay Panicker <apanicke@google.com>
Tue, 26 Jun 2018 21:52:56 +0000 (14:52 -0700)
committerAjay Panicker <apanicke@google.com>
Fri, 9 Nov 2018 00:17:56 +0000 (16:17 -0800)
commit817e6bbdf750e7c0d27a6b6c74af696bcd1bf405
tree5a022d5853e7532054a4714dfabe75c7ec194e13
parentc5931e67b447f2dce77040e0b1cc4a785a578359
AVRCP: Change notification variable when the interim response is sent

This avoids the possibility of having a changed notification be sent
before an interim response is sent when the AVRCP service has to wait
for a response from the media layer for information regarding the
notification.

Also fix the PlayPosition test for AVRCP as it was testing for play
state correctness.

Bug: 109588762
Test: Run host test net_test_avrcp
Change-Id: Icb7bb1068191ecf2a2e390854084b6b9b47537fa
(cherry picked from commit 2d87908fe8825245dcc2e1dbde027331f1e2371d)
profile/avrcp/device.cc
profile/avrcp/tests/avrcp_device_test.cc