MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / chrome_profile

Method chrome_profile

packages/server/src/android.rs:686–708  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

684 }
685
686 pub fn chrome_profile(&self, id: &str) -> Result<Value, AppError> {
687 let serial = self.serial_for_id(id)?;
688 let metrics = self.display_metrics_for_serial(&serial)?;
689 let width = metrics.width;
690 let height = metrics.height;
691 let radii = metrics.corner_radii;
692 Ok(json!({
693 "totalWidth": width,
694 "totalHeight": height,
695 "screenX": 0,
696 "screenY": 0,
697 "screenWidth": width,
698 "screenHeight": height,
699 "cornerRadius": radii.max(),
700 "cornerRadii": {
701 "topLeft": radii.top_left,
702 "topRight": radii.top_right,
703 "bottomRight": radii.bottom_right,
704 "bottomLeft": radii.bottom_left,
705 },
706 "hasScreenMask": false,
707 }))
708 }
709
710 pub fn shared_video_frame_stream(
711 &self,

Callers 1

chrome_screen_sizeFunction · 0.45

Calls 2

serial_for_idMethod · 0.80

Tested by

no test coverage detected