class ConnectedAndroidDevice implements AndroidDevice {

  @NotNull
  @Override
  public String getName() {
    if (myDeviceNameRenderer != null) {
      return myDeviceNameRenderer.getName(myDevice);
    }

    if (isVirtual()) {
      if (myAvdName != null) {
        return myAvdName;
      }
      else {
        // if the avd name is not available, then include the serial number in order to differentiate
        // between multiple emulators
        return getDeviceName() + " [" + getSerial() + "]";
      }
    }
    return getDeviceName();
  }

  public  ConnectedAndroidDevice(@NotNull IDevice device, @Nullable List<AvdInfo> avdInfos);

}