(state: &AppState, udid: &str)
| 3697 | } |
| 3698 | |
| 3699 | async fn native_ax_available_sources(state: &AppState, udid: &str) -> Vec<String> { |
| 3700 | match timeout( |
| 3701 | ACCESSIBILITY_SOURCE_DISCOVERY_TIMEOUT, |
| 3702 | inspector_session_for_state(state, udid), |
| 3703 | ) |
| 3704 | .await |
| 3705 | { |
| 3706 | Ok(Ok(session)) => available_sources_with_native_ax(Some(&session)), |
| 3707 | Ok(Err(error)) => { |
| 3708 | tracing::debug!("Native AX source discovery found no inspector for {udid}: {error}"); |
| 3709 | available_sources_with_native_ax(None) |
| 3710 | } |
| 3711 | Err(_) => { |
| 3712 | tracing::debug!("Native AX source discovery timed out for {udid}"); |
| 3713 | available_sources_with_native_ax(None) |
| 3714 | } |
| 3715 | } |
| 3716 | } |
| 3717 | |
| 3718 | async fn accessibility_point( |
| 3719 | State(state): State<AppState>, |
no test coverage detected