Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c945a19 authored by Antony Sargent's avatar Antony Sargent Committed by android-build-merger
Browse files

Merge "Merge "Add a convenience method to facilitate tests" into oc-dr1-dev...

Merge "Merge "Add a convenience method to facilitate tests" into oc-dr1-dev am: 7a4157d7" into oc-dr1-dev-plus-aosp
am: f8aabcf6

Change-Id: I2fb364d7eaa6f155fa30dd2d04f1de3877e2cb56
parents 42d73799 f8aabcf6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -368,6 +368,15 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
        return mDevice;
    }

    /**
     * Convenience method that can be mocked - it lets tests avoid having to call getDevice() which
     * causes problems in tests since BluetoothDevice is final and cannot be mocked.
     * @return the address of this device
     */
    public String getAddress() {
        return mDevice.getAddress();
    }

    public String getName() {
        return mName;
    }