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

Commit f98b55f9 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6016664 from ce934c7d78819d28c5e33bc78859b9ccfc0d98ed to rvc-release

Change-Id: I260a52662971011efb9077bf5c5a86fc790dbbd8
parents 5e926c76 a4ffdde7
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -1094,6 +1094,24 @@ public final class BluetoothDevice implements Parcelable {
        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
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH}