History log of /packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e655d4f8e730346c7f424bd9ddbb7c2a6fd90648 07-Jun-2018 Ajay Panicker <apanicke@google.com> Merge "Add checks when retrieving data for the JNI layer for AVRCP" into pi-dev
0687431c8c1ca4e19688db61d030c98687651b9b 01-Jun-2018 Ajay Panicker <apanicke@google.com> Add checks when retrieving data for the JNI layer for AVRCP

Bug: 80510649
Test: Call getPlayStatus after the service has stopped and see that a
crash doesn't occur.

Change-Id: I1ce7618296d83d60ee78ede405e7334a43970047
/packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp
80ceebddbb4583ab30207f14757ab08f1d29f265 05-Jun-2018 Ajay Panicker <apanicke@google.com> Delete JNI Object references created from arrays

JNI Objects are deleted automatically when the native function returns,
but for large arrays this can not be enough and lead to running out of
resources before the native function returns. Prevent this by deleting
the references as they are created and finished being used.

Bug: 80527811
Test: Try sending a Now Playing List with a large number of items
Change-Id: I34ac44cdafca5b3edade8992a856f2f2fc14f23d
/packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp
7293a9642b571f3f2592575f7701a26e881c316e 07-May-2018 Ajay Panicker <apanicke@google.com> Send correct key state and ignore keys from inactive device (2/2)

Also make it clearer whether the key state is pushed or released.

Bug: 79178216
Test: Run host native test net_test_avrcp
Change-Id: I92a2006412fad2fec8f0a5d57e71c63d344f87ae
(cherry picked from commit e68b1b5fcf7aaf3b656e36d13e9f1f082f4a22e1)
/packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp
33d00214948bb0266490d98428cab5a453895007 01-May-2018 Ajay Panicker <apanicke@google.com> Add locking to AVRCP Target JNI

This prevents a race condition from occuring where a call can be sent
form native while or after cleanup has occured.

Bug: 78517259
Test: Compile and switch users with multiple devices connected
Change-Id: Ibde219746bb1ade2fc90c366bf63b0c0f1ea27af
(cherry picked from commit cbabc47eea49769527eba1ea9f11fe2de1a3fa7c)
/packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp
3cf7e318416748f0e57be387bd94820a34ef1185 15-Mar-2018 Ajay Panicker <apanicke@google.com> Implement the JNI layer for the AVRCP Service (1/3)

Add the JNI interface for the AVRCP Target Service and the Java class
that controls it.

Bug: 68854188
Test: Compile
Change-Id: Id368ea817439763eb2d0edd581a84ce32515b1f2
(cherry picked from commit d8806e81c6aedce36125db5d682a06adcfab24f9)
Merged-In: Id368ea817439763eb2d0edd581a84ce32515b1f2
/packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_target.cpp