/**
  * Get the friendly Bluetooth name of the local Bluetooth adapter.
  *
  * <p>This name is visible to remote Bluetooth devices.
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
  *
  * @return the Bluetooth name, or null on error
  */
 public String getName() {
   try {
     return mService.getName();
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return null;
 }