/** * Sets the name of the AVD */ void setAvdName(String avdName) { if (!isEmulator()) { throw new IllegalArgumentException( "Cannot set the AVD name of the device is not an emulator"); } mAvdName = avdName; }
/** * Sets the name of the AVD */ void setAvdName(String avdName) { if (isEmulator() == false) { throw new IllegalArgumentException( "Cannot set the AVD name of the device is not an emulator"); } mAvdName = avdName; }
private String constructName() { if (isEmulator()) { String avdName = getAvdName(); if (avdName != null) {
if (device.isEmulator()) { EmulatorConsole console = EmulatorConsole.getConsole(device); if (console != null) {
private static void queryAvdName(@NonNull Device device) { if (!device.isEmulator()) { return; } EmulatorConsole console = EmulatorConsole.getConsole(device); if (console != null) { device.setAvdName(console.getAvdName()); console.close(); } }
if (device.isEmulator()) { EmulatorConsole console = EmulatorConsole.getConsole(device); if (console != null) {