A2dpSrc: Use correct API to send passthrough command for PTS.

After refactoring of avrcpcontroller as part of AOSP, need to use
the correct API to send passthrough command in case of PTS.

CRs-Fixed: 2474873
Change-Id: Ie5a3f9629fd25c3747c8d88f87fd6ca0f6b1144b
diff --git a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
index 4bdfea4..77ad9fc 100644
--- a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
+++ b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
@@ -2745,23 +2745,23 @@
                     if (deviceFeatures[i].mCurrentDevice != null) {
                         Log.d(TAG, "SendPassThruPlay command sent for = "
                                 + deviceFeatures[i].mCurrentDevice);
-                        /*if (volume > mLocalVolume) {
+                        if (volume > mLocalVolume) {
                             Log.d(TAG, "Vol Passthrough Up");
-                            avrcpCtrlService.sendPassThroughCmd(
-                                deviceFeatures[i].mCurrentDevice, AVRC_ID_VOL_UP,
-                                AvrcpConstants_ext.KEY_STATE_PRESS);
-                            avrcpCtrlService.sendPassThroughCmd(
-                                deviceFeatures[i].mCurrentDevice, AVRC_ID_VOL_UP,
-                                AvrcpConstants_ext.KEY_STATE_RELEASE);
+                            avrcpCtrlService.sendPassThroughCommandNative(
+                                Utils.getByteAddress(deviceFeatures[i].mCurrentDevice),
+                                AVRC_ID_VOL_UP, AvrcpConstants_ext.KEY_STATE_PRESS);
+                            avrcpCtrlService.sendPassThroughCommandNative(
+                                Utils.getByteAddress(deviceFeatures[i].mCurrentDevice),
+                                AVRC_ID_VOL_UP, AvrcpConstants_ext.KEY_STATE_RELEASE);
                         } else if (volume < mLocalVolume) {
                            Log.d(TAG, "Vol Passthrough Down");
-                           avrcpCtrlService.sendPassThroughCmd(
-                                deviceFeatures[i].mCurrentDevice, AVRC_ID_VOL_DOWN,
-                                AvrcpConstants_ext.KEY_STATE_PRESS);
-                           avrcpCtrlService.sendPassThroughCmd(
-                                deviceFeatures[i].mCurrentDevice, AVRC_ID_VOL_DOWN,
-                                AvrcpConstants_ext.KEY_STATE_RELEASE);
-                         }*/
+                           avrcpCtrlService.sendPassThroughCommandNative(
+                                Utils.getByteAddress(deviceFeatures[i].mCurrentDevice),
+                                AVRC_ID_VOL_DOWN, AvrcpConstants_ext.KEY_STATE_PRESS);
+                            avrcpCtrlService.sendPassThroughCommandNative(
+                                Utils.getByteAddress(deviceFeatures[i].mCurrentDevice),
+                                AVRC_ID_VOL_DOWN, AvrcpConstants_ext.KEY_STATE_RELEASE);
+                        }
                         mLocalVolume = volume;
                     }
                 }