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

Method screen_size_for_serial

packages/server/src/android.rs:938–941  ·  view source on GitHub ↗
(&self, serial: &str)

Source from the content-addressed store, hash-verified

936 }
937
938 fn screen_size_for_serial(&self, serial: &str) -> Result<(f64, f64), AppError> {
939 let metrics = self.display_metrics_for_serial(serial)?;
940 Ok((metrics.width, metrics.height))
941 }
942
943 fn display_metrics_for_serial(&self, serial: &str) -> Result<AndroidDisplayMetrics, AppError> {
944 let cache = android_display_metrics_cache();

Callers 3

send_touchMethod · 0.80
send_swipe_adbMethod · 0.80

Calls 1

Tested by

no test coverage detected