Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 40) sorted by relevance

12

/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.cpp111 GpsDataReader reader; in gps_state_thread() local
117 memset(&reader, 0, sizeof(reader)); in gps_state_thread()
118 reader.fix.size = sizeof(reader.fix); in gps_state_thread()
135 reader_call_callback(&reader); in gps_state_thread()
159 reader.callback = NULL; in gps_state_thread()
167 reader.callback = state->callbacks.location_cb; in gps_state_thread()
168 D("Thread starting callback=%p", reader.callback); in gps_state_thread()
169 reader_call_callback(&reader); in gps_state_thread()
188 reader_accept_string(&reader, buff, ret); in gps_state_thread()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_codecs.py77 reader = getreader(input)
80 line = reader.readline(size=size, keepends=keepends)
108 reader = getreader(s)
111 reader.readline(keepends=True),
114 reader = getreader(s)
117 reader.readline(keepends=False),
186 reader = codecs.getreader(self.encoding)(stream)
187 for (i, line) in enumerate(reader):
193 reader = codecs.getreader(self.encoding)(q)
197 self.assertEqual(reader.readline(keepends=False), u"foo")
[all …]
Dtest_csv.py40 self._test_arg_valid(csv.reader, [])
64 self._test_default_attrs(csv.reader, [])
86 self._test_kw_attrs(csv.reader, [])
114 self._test_dialect_attrs(csv.reader, [])
211 reader = csv.reader(input, **kwargs)
212 result = list(reader)
276 for r in (csv.reader(['line,1', 'line,2', 'line,3']),
298 for i, row in enumerate(csv.reader(fileobj)):
339 self.assertEqual([['X', 'Y', 'Z']], list(csv.reader(['X;Y;Z'], name)))
357 rdr = csv.reader(fileobj, dialect=space())
[all …]
Dtest_multibytecodec_support.py32 self.reader = self.codec.streamreader
212 istream = self.reader(StringIO(self.tstring[0]))
Dtest_posix.py289 reader, writer = posix.pipe()
290 os.close(reader)
Dtest_multiprocessing.py1417 reader, writer = self.Pipe(duplex=False)
1419 self.assertEqual(reader.recv(), 1)
1421 self.assertEqual(reader.readable, True)
1422 self.assertEqual(reader.writable, False)
1425 self.assertRaises(IOError, reader.send, 2)
1807 reader, writer = multiprocessing.Pipe(duplex=False)
1811 self.assertEqual(LEVEL1, reader.recv())
1816 self.assertEqual(LEVEL2, reader.recv())
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlzio.c26 buff = z->reader(L, z->data, &size); in luaZ_fill()
36 void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) { in luaZ_init() argument
38 z->reader = reader; in luaZ_init()
Dlzio.h46 LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
57 lua_Reader reader; /* reader function */ member
Dluac.c119 static const char* reader(lua_State *L, void *ud, size_t *size) in reader() function
144 if (lua_load(L,reader,&i,"=(" PROGNAME ")",NULL)!=LUA_OK) fatal(lua_tostring(L,-1)); in combine()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpickletools.py184 def __init__(self, name, n, reader, doc): argument
194 self.reader = reader
216 reader=read_uint1,
237 reader=read_uint2,
258 reader=read_int4,
314 reader=read_stringnl,
327 reader=read_stringnl_noescape,
347 reader=read_stringnl_noescape_pair,
382 reader=read_string4,
411 reader=read_string1,
[all …]
Dcodecs.py665 self.reader = Reader(stream, errors)
671 return self.reader.read(size)
675 return self.reader.readline(size)
679 return self.reader.readlines(sizehint)
684 return self.reader.next()
699 self.reader.reset()
704 self.reader.reset()
775 self.reader = Reader(stream, errors)
781 data = self.reader.read(size)
788 data = self.reader.readline()
[all …]
Dcsv.py8 from _csv import Error, __version__, writer, reader, register_dialect, \
79 self.reader = reader(f, dialect, *args, **kwds)
90 self._fieldnames = self.reader.next()
93 self.line_num = self.reader.line_num
104 row = self.reader.next()
105 self.line_num = self.reader.line_num
111 row = self.reader.next()
392 rdr = reader(StringIO(sample), self.sniff(sample))
Dcgitb.py81 def scanvars(reader, frame, locals): argument
84 for ttype, token, start, end, line in tokenize.generate_tokens(reader):
133 def reader(lnum=[lnum]): function
137 vars = scanvars(reader, frame, locals)
217 def reader(lnum=[lnum]): function
221 vars = scanvars(reader, frame, locals)
D_pyio.py1160 def __init__(self, reader, writer, argument
1169 if not reader.readable():
1175 self.reader = BufferedReader(reader, buffer_size)
1181 return self.reader.read(n)
1184 return self.reader.readinto(b)
1190 return self.reader.peek(n)
1193 return self.reader.read1(n)
1196 return self.reader.readable()
1206 self.reader.close()
1209 return self.reader.isatty() or self.writer.isatty()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcodecs.py668 self.reader = Reader(stream, errors)
674 return self.reader.read(size)
678 return self.reader.readline(size)
682 return self.reader.readlines(sizehint)
687 return self.reader.next()
702 self.reader.reset()
707 self.reader.reset()
778 self.reader = Reader(stream, errors)
784 data = self.reader.read(size)
791 data = self.reader.readline()
[all …]
Dcsv.py8 from _csv import Error, __version__, writer, reader, register_dialect, \
79 self.reader = reader(f, dialect, *args, **kwds)
90 self._fieldnames = self.reader.next()
93 self.line_num = self.reader.line_num
108 row = self.reader.next()
109 self.line_num = self.reader.line_num
115 row = self.reader.next()
397 rdr = reader(StringIO(sample), self.sniff(sample))
/device/google/cuttlefish/host/commands/fetcher/
Dcurl_wrapper.cc148 Json::Reader reader; in DownloadToJson() local
150 if (!reader.parse(contents, json)) { in DownloadToJson()
151 LOG(ERROR) << "Could not parse json: " << reader.getFormattedErrorMessages(); in DownloadToJson()
/device/google/trout/hal/dumpstate/1.1/
DDumpstateDevice.cpp157 auto reader = mGrpcStub->GetSystemLogs(&context, ::google::protobuf::Empty()); in dumpHelperSystem() local
158 dumpRemoteLogs(reader.get(), helperSysLogPath / "system_log"); in dumpHelperSystem()
171 auto reader = mGrpcStub->GetServiceLogs(&context, request); in dumpHelperSystem() local
172 dumpRemoteLogs(reader.get(), helperSysLogPath / service); in dumpHelperSystem()
DDumpstateDevice.h50 bool dumpRemoteLogs(::grpc::ClientReaderInterface<dumpstate_proto::DumpstateBuffer>* reader,
/device/google/cuttlefish/host/libs/config/
Dfetcher_config.cpp118 Json::Reader reader; in LoadFromFile() local
120 if (!reader.parse(ifs, *dictionary_)) { in LoadFromFile()
122 << reader.getFormattedErrorMessages(); in LoadFromFile()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dbufferedio.c2024 buffered *reader; member
2033 PyObject *reader, *writer; in bufferedrwpair_init() local
2037 if (!PyArg_ParseTuple(args, "OO|nn:BufferedRWPair", &reader, &writer, in bufferedrwpair_init()
2045 if (_PyIOBase_check_readable(reader, Py_True) == NULL) in bufferedrwpair_init()
2050 self->reader = (buffered *) PyObject_CallFunction( in bufferedrwpair_init()
2051 (PyObject *) &PyBufferedReader_Type, "On", reader, buffer_size); in bufferedrwpair_init()
2052 if (self->reader == NULL) in bufferedrwpair_init()
2058 Py_CLEAR(self->reader); in bufferedrwpair_init()
2075 Py_CLEAR(self->reader); in bufferedrwpair_clear()
2085 Py_CLEAR(self->reader); in bufferedrwpair_dealloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Dbufferedio.c2055 buffered *reader; member
2064 PyObject *reader, *writer; in bufferedrwpair_init() local
2068 if (!PyArg_ParseTuple(args, "OO|nn:BufferedRWPair", &reader, &writer, in bufferedrwpair_init()
2076 if (_PyIOBase_check_readable(reader, Py_True) == NULL) in bufferedrwpair_init()
2081 self->reader = (buffered *) PyObject_CallFunction( in bufferedrwpair_init()
2082 (PyObject *) &PyBufferedReader_Type, "On", reader, buffer_size); in bufferedrwpair_init()
2083 if (self->reader == NULL) in bufferedrwpair_init()
2089 Py_CLEAR(self->reader); in bufferedrwpair_init()
2106 Py_CLEAR(self->reader); in bufferedrwpair_clear()
2118 Py_CLEAR(self->reader); in bufferedrwpair_dealloc()
[all …]
/device/google/cuttlefish/host/commands/assemble_cvd/
Dimage_aggregator.cc171 Json::Reader reader; in FdToJson() local
173 if (!reader.parse(contents, json)) { in FdToJson()
174 LOG(FATAL) << "Could not parse json: " << reader.getFormattedErrorMessages(); in FdToJson()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dtokenizer.c446 PyObject *reader, *stream, *readline; in fp_setreadl() local
453 reader = PyCodec_StreamReader(enc, stream, NULL); in fp_setreadl()
455 if (reader == NULL) in fp_setreadl()
458 readline = PyObject_GetAttrString(reader, "readline"); in fp_setreadl()
459 Py_DECREF(reader); in fp_setreadl()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
Dtokenizer.c466 PyObject *reader, *stream, *readline; in fp_setreadl() local
473 reader = PyCodec_StreamReader(enc, stream, NULL); in fp_setreadl()
475 if (reader == NULL) in fp_setreadl()
478 readline = PyObject_GetAttrString(reader, "readline"); in fp_setreadl()
479 Py_DECREF(reader); in fp_setreadl()

12