OSDN Git Service

Change BluetoothCodecStatus.sameCapabilities() to public
authorUgo Yu <ugoyu@google.com>
Mon, 25 Feb 2019 13:10:08 +0000 (21:10 +0800)
committerUgo Yu <ugoyu@google.com>
Wed, 27 Feb 2019 11:49:13 +0000 (19:49 +0800)
- Public this API to help A2DP state machine check selectable
  codec capabilities status.

Bug: 124254557
Bug: 125551347
Test: runtest bluetooth

Change-Id: If44887f756d2e8348e8f76dfb67b77b993ffd8db

core/java/android/bluetooth/BluetoothCodecStatus.java

index 78560d2..32bb681 100644 (file)
@@ -74,8 +74,8 @@ public final class BluetoothCodecStatus implements Parcelable {
      * @param c2 the second array of capabilities to compare
      * @return true if both arrays contain same capabilities
      */
-    private static boolean sameCapabilities(BluetoothCodecConfig[] c1,
-                                            BluetoothCodecConfig[] c2) {
+    public static boolean sameCapabilities(BluetoothCodecConfig[] c1,
+                                           BluetoothCodecConfig[] c2) {
         if (c1 == null) {
             return (c2 == null);
         }