( device: DeviceInfo, )
| 120 | } |
| 121 | |
| 122 | async function readAndroidAlertCandidate( |
| 123 | device: DeviceInfo, |
| 124 | ): Promise<AndroidAlertCandidate | null> { |
| 125 | const result = await withDiagnosticTimer( |
| 126 | 'snapshot_capture', |
| 127 | async () => |
| 128 | await snapshotAndroid(device, { |
| 129 | helperWaitForIdleTimeoutMs: 0, |
| 130 | includeHiddenContentHints: false, |
| 131 | }), |
| 132 | { backend: 'android', purpose: 'alert' }, |
| 133 | ); |
| 134 | return findAndroidAlertCandidate(result.nodes); |
| 135 | } |
| 136 | |
| 137 | function buildAndroidAlertStatusResponse(alert: AndroidAlertInfo | null): AndroidAlertResult { |
| 138 | return { |
no test coverage detected