Merge "DO NOT MERGE Revert "Merge "Revert "Re-add getAliasName to fix build breakage"" am: 944fed6b66"" into qt-qpr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
35505f61a4
@@ -1094,6 +1094,24 @@ public final class BluetoothDevice implements Parcelable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Bluetooth alias of the remote device.
|
||||||
|
* If Alias is null, get the Bluetooth name instead.
|
||||||
|
*
|
||||||
|
* @return the Bluetooth alias, or null if no alias or there was a problem
|
||||||
|
* @hide
|
||||||
|
* @see #getAlias()
|
||||||
|
* @see #getName()
|
||||||
|
*/
|
||||||
|
@UnsupportedAppUsage(publicAlternatives = "Use {@link #getName()} instead.")
|
||||||
|
public String getAliasName() {
|
||||||
|
String name = getAlias();
|
||||||
|
if (name == null) {
|
||||||
|
name = getName();
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the most recent identified battery level of this Bluetooth device
|
* Get the most recent identified battery level of this Bluetooth device
|
||||||
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}
|
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}
|
||||||
|
|||||||
Reference in New Issue
Block a user