( avdNames: string[], requestedName: string, )
| 296 | } |
| 297 | |
| 298 | export function resolveAndroidAvdName( |
| 299 | avdNames: string[], |
| 300 | requestedName: string, |
| 301 | ): string | undefined { |
| 302 | const direct = avdNames.find((name) => name === requestedName); |
| 303 | if (direct) return direct; |
| 304 | const target = normalizeAndroidName(requestedName); |
| 305 | return avdNames.find((name) => normalizeAndroidName(name) === target); |
| 306 | } |
| 307 | |
| 308 | async function listAndroidAvdNames(): Promise<string[]> { |
| 309 | const result = await runCmd('emulator', ['-list-avds'], { |
no test coverage detected