Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -503,6 +503,17 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> return mDevice.getAddress(); return mDevice.getAddress(); } } /** * Get identity address from remote device * @return {@link BluetoothDevice#getIdentityAddress()} if * {@link BluetoothDevice#getIdentityAddress()} is not null otherwise return * {@link BluetoothDevice#getAddress()} */ public String getIdentityAddress() { final String identityAddress = mDevice.getIdentityAddress(); return TextUtils.isEmpty(identityAddress) ? getAddress() : identityAddress; } /** /** * Get name from remote device * Get name from remote device * @return {@link BluetoothDevice#getAlias()} if * @return {@link BluetoothDevice#getAlias()} if Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -503,6 +503,17 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> return mDevice.getAddress(); return mDevice.getAddress(); } } /** * Get identity address from remote device * @return {@link BluetoothDevice#getIdentityAddress()} if * {@link BluetoothDevice#getIdentityAddress()} is not null otherwise return * {@link BluetoothDevice#getAddress()} */ public String getIdentityAddress() { final String identityAddress = mDevice.getIdentityAddress(); return TextUtils.isEmpty(identityAddress) ? getAddress() : identityAddress; } /** /** * Get name from remote device * Get name from remote device * @return {@link BluetoothDevice#getAlias()} if * @return {@link BluetoothDevice#getAlias()} if Loading