MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / all_device_values

Function all_device_values

packages/server/src/api/routes.rs:5474–5481  ·  view source on GitHub ↗
(state: AppState, force_refresh: bool)

Source from the content-addressed store, hash-verified

5472}
5473
5474async fn all_device_values(state: AppState, force_refresh: bool) -> Result<Vec<Value>, AppError> {
5475 let ios = list_simulators_cached(state.clone(), force_refresh).await?;
5476 let mut values = state.registry.enrich_simulators(ios);
5477 let android_devices =
5478 run_android_action(state.clone(), |android| android.list_devices()).await?;
5479 values.extend(state.android.enrich_devices(android_devices));
5480 Ok(booted_first(values))
5481}
5482
5483fn booted_first(values: Vec<Value>) -> Vec<Value> {
5484 let mut indexed_values = values.into_iter().enumerate().collect::<Vec<_>>();

Callers 5

list_simulatorsFunction · 0.85
create_simulatorFunction · 0.85
simulator_stateFunction · 0.85
simulator_display_signalFunction · 0.85
simulator_payloadFunction · 0.85

Calls 7

list_simulators_cachedFunction · 0.85
run_android_actionFunction · 0.85
booted_firstFunction · 0.85
enrich_simulatorsMethod · 0.80
list_devicesMethod · 0.80
enrich_devicesMethod · 0.80
cloneMethod · 0.65

Tested by

no test coverage detected