( devices: DeviceInfo[], avdName: string, serial?: string, )
| 345 | } |
| 346 | |
| 347 | function findAndroidEmulatorByAvdName( |
| 348 | devices: DeviceInfo[], |
| 349 | avdName: string, |
| 350 | serial?: string, |
| 351 | ): DeviceInfo | undefined { |
| 352 | const target = normalizeAndroidName(avdName); |
| 353 | return devices.find((device) => { |
| 354 | if (device.platform !== 'android' || device.kind !== 'emulator') return false; |
| 355 | if (serial && device.id !== serial) return false; |
| 356 | return normalizeAndroidName(device.name) === target; |
| 357 | }); |
| 358 | } |
| 359 | |
| 360 | async function waitForAndroidEmulatorByAvdName(params: { |
| 361 | avdName: string; |
no test coverage detected