(serial: string, rawModel: string)
| 87 | } |
| 88 | |
| 89 | async function resolveAndroidDeviceName(serial: string, rawModel: string): Promise<string> { |
| 90 | const modelName = rawModel.replace(/_/g, ' ').trim(); |
| 91 | if (!isEmulatorSerial(serial)) return modelName || serial; |
| 92 | const avdName = await resolveAndroidEmulatorAvdName(serial); |
| 93 | if (avdName) return avdName.replace(/_/g, ' '); |
| 94 | return modelName || serial; |
| 95 | } |
| 96 | |
| 97 | async function runBestEffortAndroidEmulatorNameProbe( |
| 98 | serial: string, |
no test coverage detected