Lines Matching refs:str
74 def __init__(self, file: str, trace_start: str, trace_stop: str) -> None: argument
117 def __init__(self, file: str, dump_command: str) -> None: argument
137 def get_token() -> str:
201 def register_endpoint(self, method: RequestType, name: str, endpoint: RequestEndpoint): argument
204 def __bad_request(self, error: str): argument
209 def __internal_error(self, error: str): argument
230 return self.__internal_error(str(ex))
232 return self.__bad_request(str(ex))
238 def call_adb(params: str, device: str = None, stdin: bytes = None): argument
251 def call_adb_outfile(params: str, outfile, device: str = None, stdin: bytes = None): argument
273 'authorised': str(m.group(2)) != 'unauthorized',
424 raise BadRequest("Missing Content-Length header\n" + str(err))
426 raise BadRequest("Content length unreadable\n" + str(err))
431 raise BadRequest("Unsupported trace target\n" + str(err))
473 …server.respond(HTTPStatus.OK, str(TRACE_THREADS[device_id].is_alive()).encode("utf-8"), "text/plai…
481 raise BadRequest("Missing Content-Length header\n" + str(err))
483 raise BadRequest("Content length unreadable\n" + str(err))
488 raise BadRequest("Unsupported trace target\n" + str(err))
520 def respond(self, code: int, data: bytes, mime: str) -> None: argument
540 log.info('{} {} {}'.format(self.requestline, str(code), str(size)))