Lines Matching refs:device_id

289     def process_with_device(self, server, path, device_id):  argument
294 def process_with_device(self, server, path, device_id): argument
306 call_adb_outfile('exec-out su root cat ' + file_path, tmp, device_id)
308 call_adb('shell su root rm ' + file_path, device_id)
322 def check_root(device_id): argument
323 log.debug("Checking root access on {}".format(device_id))
324 return call_adb('shell su root id -u', device_id) == "0\n"
331 def __init__(self, device_id, command): argument
334 self._device_id = device_id
420 def process_with_device(self, server, path, device_id): argument
432 if device_id in TRACE_THREADS:
433 log.warning("Trace already in progress for {}", device_id)
435 if not check_root(device_id):
438 device_id))
442 … log.debug("Trace requested for {} with targets {}".format(device_id, ','.join(requested_types)))
443 TRACE_THREADS[device_id] = TraceThread(device_id, command.encode('utf-8'))
444 TRACE_THREADS[device_id].start()
449 def process_with_device(self, server, path, device_id): argument
450 if device_id not in TRACE_THREADS:
451 raise BadRequest("No trace in progress for {}".format(device_id))
452 if TRACE_THREADS[device_id].is_alive():
453 TRACE_THREADS[device_id].end_trace()
455 success = TRACE_THREADS[device_id].success()
456 out = TRACE_THREADS[device_id].out + b"\n" + TRACE_THREADS[device_id].err
457 command = TRACE_THREADS[device_id].trace_command
458 TRACE_THREADS.pop(device_id)
464 …"utf-8") + "\n### Command: adb -s {} shell ###\n### Input ###\n".format(device_id) + command.decod…
469 def process_with_device(self, server, path, device_id): argument
470 if device_id not in TRACE_THREADS:
471 raise BadRequest("No trace in progress for {}".format(device_id))
472 TRACE_THREADS[device_id].reset_timer()
473 …server.respond(HTTPStatus.OK, str(TRACE_THREADS[device_id].is_alive()).encode("utf-8"), "text/plai…
477 def process_with_device(self, server, path, device_id): argument
489 if device_id in TRACE_THREADS:
490 BadRequest("Trace in progress for {}".format(device_id))
491 if not check_root(device_id):
494 .format(device_id))
496 shell = ['adb', '-s', device_id, 'shell']
500 log.debug("Starting dump on device {}".format(device_id))
505 log.debug("Dump finished on device {}".format(device_id))