AVRCP(T): Add support for AVRCP 1.6.
This patch adds supports for following AVRCP 1.6 target features:
- Get Total Number of Items
- Cover Art Feature
Change-Id: Ib06ef4c5337a755034ec95c632570bdfb4c76440
CRs-Fixed: 715683
AVRCP Cover Art: Handle empty encoding
This patch handles the case when remote ends sends empty encoding in
image-descriptor xml for Get Image Request indicating it can accept
any encoding.
Change-Id: Ifd28a686171ba078adcfdbd51f395f018d4cc77a
CRs-Fixed: 970677
AvrcpBipRsp: Use adapter state to start listening
This patch uses adapter state to start listening on BluetoothSocket to
prevent probable ANR in cases where intent of adapter state change might
get delayed, and if listening of socket is started at that time when
adapter is actually off/being turned off, then main thread might be blocked
leading to ANR's.
Change-Id: I178e077b8b7a116ff29f1a40b9a36a657e5f7767
CRs-Fixed: 958492
AVRCP(T): Fix BAD_REQUEST error sent during Get Image Request
Use Case:
1) Cotroller sends Get Image Properties request.
2) Controller sends Get ImageRequest with max_size set in Image
Descriptor to the native image of the requested image.
Expectation:
Request to be completed successfully, and Controller is able to receive
image within the max_size requested.
Observation:
AVRCP TG responds with BAD_REQUEST for OBEX Get Request but still sends
the image.
Root Cause:
Image data was filled in obex OutputStream, and then the check for file size
was performed, which was leading to OBEX bad request in case file size exceeded
the value requested by Controller.
Fix:
Use lower compression to compress the Image Data as 100% compression usually
exceeds the size of native image. Also add check to not add data to OBEX
OutputStream if the file size is more than the requested limit.
Change-Id: I370a1878d27f0441002816fc26d226b037205f8b
CRs-Fixed: 993842
6 files changed