Lines Matching refs:cmd
246 cmd = {"cmdName":"open", "cameraId":camera_id}
247 self.sock.send(json.dumps(cmd) + "\n")
253 cmd = {"cmdName":"close"}
254 self.sock.send(json.dumps(cmd) + "\n")
274 cmd = {}
275 cmd["cmdName"] = "doVibrate"
276 cmd["pattern"] = pattern
277 self.sock.send(json.dumps(cmd) + "\n")
290 cmd = {}
291 cmd["cmdName"] = "startSensorEvents"
292 self.sock.send(json.dumps(cmd) + "\n")
318 cmd = {}
319 cmd["cmdName"] = "getSensorEvents"
320 self.sock.send(json.dumps(cmd) + "\n")
332 cmd = {}
333 cmd["cmdName"] = "getCameraIds"
334 self.sock.send(json.dumps(cmd) + "\n")
346 cmd = {}
347 cmd["cmdName"] = "getCameraProperties"
348 self.sock.send(json.dumps(cmd) + "\n")
398 cmd = {}
399 cmd["cmdName"] = "do3A"
400 cmd["regions"] = {"ae": sum(regions_ae, []),
403 cmd["triggers"] = {"ae": do_ae, "af": do_af}
405 cmd["aeLock"] = True
407 cmd["awbLock"] = True
409 cmd["evComp"] = ev_comp
410 self.sock.send(json.dumps(cmd) + "\n")
556 cmd = {}
558 cmd["cmdName"] = "doReprocessCapture"
559 cmd["reprocessFormat"] = reprocess_format
561 cmd["cmdName"] = "doCapture"
563 cmd["captureRequests"] = [cap_request]
565 cmd["captureRequests"] = cap_request
568 cmd["outputSurfaces"] = [out_surfaces]
570 cmd["outputSurfaces"] = out_surfaces
572 for c in cmd["outputSurfaces"]]
576 ncap = len(cmd["captureRequests"])
577 nsurf = 1 if out_surfaces is None else len(cmd["outputSurfaces"])
587 for req in cmd["captureRequests"]:
599 self.sock.send(json.dumps(cmd) + "\n")
710 def _run(cmd): argument
715 cmd.split(), stdout=devnull, stderr=subprocess.STDOUT)