MCPcopy
hub / github.com/yume-chan/ya-webadb / set

Method set

libraries/android-bin/src/overlay-display.ts:84–111  ·  view source on GitHub ↗
(devices: readonly OverlayDisplayDevice[])

Source from the content-addressed store, hash-verified

82 }
83
84 async set(devices: readonly OverlayDisplayDevice[]): Promise<void> {
85 await this.#settings.put(
86 "global",
87 OverlayDisplay.SETTING_KEY,
88 OverlayDisplay.SETTING_FORMAT.stringify(
89 devices.map((device) => {
90 const flags: (
91 | "secure"
92 | "own_content_only"
93 | "show_system_decorations"
94 )[] = [];
95 if (device.secure) {
96 flags.push("secure");
97 }
98 if (device.ownContentOnly) {
99 flags.push("own_content_only");
100 }
101 if (device.showSystemDecorations) {
102 flags.push("show_system_decorations");
103 }
104 return {
105 modes: device.modes,
106 flags,
107 };
108 }),
109 ),
110 );
111 }
112}

Callers 15

copyMaybeDifferentLengthFunction · 0.80
bufferFunction · 0.80
serializeFunction · 0.80
defaultFieldSerializerFunction · 0.80
addReverseTunnelMethod · 0.80
addStringExtraMethod · 0.80
video.tsFile · 0.80
subscribePictureReadyFunction · 0.80
pushMethod · 0.80

Calls 3

putMethod · 0.80
stringifyMethod · 0.80
pushMethod · 0.80

Tested by 2

concatBuffersFunction · 0.64
testInPlaceEncodeBase64Function · 0.64