OSDN Git Service

AVRCP: Fix EvictingQueue
authorMarie Janssen <jamuraa@google.com>
Thu, 20 Apr 2017 19:42:14 +0000 (12:42 -0700)
committerMarie Janssen <jamuraa@google.com>
Thu, 20 Apr 2017 20:01:34 +0000 (13:01 -0700)
commita6d4a7939896c36c0448b2bb058d2c8c0397aa95
treeb4fe7f1bf272dc4d0815bcf88d856d21046d0693
parentbdcf510515b5b251b0b88ba3c05937661ca5da3f
AVRCP: Fix EvictingQueue

Fixes EvictingQueue to not overflow the stack when a thing is added.

Test: runtest bluetooth -c com.android.bluetooth.avrcp.EvictingQueueTest
Bug: 33828042
Change-Id: I35f7f89152ff45edfacfe2c7e673adc1f31e1b3e
(cherry picked from commit 5e65f55d906687a682b4c7bbc9372084e4df3e53)
src/com/android/bluetooth/avrcp/AvrcpHelperClasses.java
tests/src/com/android/bluetooth/avrcp/EvictingQueueTest.java [new file with mode: 0644]