(&self, avd_name: &str)
| 881 | } |
| 882 | |
| 883 | fn known_avd(&self, avd_name: &str) -> Result<bool, AppError> { |
| 884 | Ok(self |
| 885 | .run_emulator(["-list-avds"])? |
| 886 | .lines() |
| 887 | .map(str::trim) |
| 888 | .any(|name| name == avd_name)) |
| 889 | } |
| 890 | |
| 891 | fn avd_name_for_serial(&self, serial: &str) -> Option<String> { |
| 892 | for property in ["ro.boot.qemu.avd_name", "ro.kernel.qemu.avd_name"] { |
no test coverage detected