MCPcopy
hub / github.com/openstf/stf / runServiceCommand

Function runServiceCommand

lib/units/device/plugins/service.js:342–351  ·  view source on GitHub ↗
(type, cmd)

Source from the content-addressed store, hash-verified

340 }
341
342 function runServiceCommand(type, cmd) {
343 var resolver = Promise.defer()
344 var id = Math.floor(Math.random() * 0xFFFFFF)
345 service.writer.write(new apk.wire.Envelope(
346 id
347 , type
348 , cmd.encodeNB()
349 ).encodeNB())
350 return messageResolver.await(id, resolver)
351 }
352
353 plugin.getDisplay = function(id) {
354 return runServiceCommand(

Callers 1

service.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected