Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 3700) sorted by relevance

12345678910>>...148

/external/antlr/runtime/C/src/
Dantlr3rewritestreams.c40 static void reset (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream);
41 static void add (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * el, void (ANTLR3_CDECL *f…
42 static void * next (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream);
43 static pANTLR3_BASE_TREE nextTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream);
44 static void * nextToken (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream);
45 static void * _next (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream);
46 static void * dupTok (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * el);
47 static void * dupTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * el);
48 static void * dupTreeNode (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * el);
49 static pANTLR3_BASE_TREE toTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element);
[all …]
/external/antlr/runtime/Ruby/test/functional/token-rewrite/
Dbasic.rb27 rewrite( 'abc', '0abc' ) do |stream|
28 stream.insert_before( 0, '0' )
33 rewrite( 'abc', 'abcx' ) do |stream|
34 stream.insert_after( 2, 'x' )
39 rewrite( 'abc', 'axbxc' ) do |stream|
40 stream.insert_before 1, 'x'
41 stream.insert_after 1, 'x'
46 rewrite( 'abc', 'xbc' ) do |stream|
47 stream.replace( 0, 'x' )
52 rewrite( 'abc', 'abx' ) do |stream|
[all …]
/external/sonic/
Dsonic.c89 sonicStream stream) in sonicGetSpeed() argument
91 return stream->speed; in sonicGetSpeed()
96 sonicStream stream, in sonicSetSpeed() argument
99 stream->speed = speed; in sonicSetSpeed()
104 sonicStream stream) in sonicGetPitch() argument
106 return stream->pitch; in sonicGetPitch()
111 sonicStream stream, in sonicSetPitch() argument
114 stream->pitch = pitch; in sonicSetPitch()
119 sonicStream stream) in sonicGetRate() argument
121 return stream->rate; in sonicGetRate()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_dump_state.c45 util_stream_writef(FILE *stream, const char *format, ...) in util_stream_writef() argument
53 fwrite(buf, len, 1, stream); in util_stream_writef()
57 util_dump_bool(FILE *stream, int value) in util_dump_bool() argument
59 util_stream_writef(stream, "%c", value ? '1' : '0'); in util_dump_bool()
63 util_dump_int(FILE *stream, long long int value) in util_dump_int() argument
65 util_stream_writef(stream, "%lli", value); in util_dump_int()
69 util_dump_uint(FILE *stream, long long unsigned value) in util_dump_uint() argument
71 util_stream_writef(stream, "%llu", value); in util_dump_uint()
75 util_dump_float(FILE *stream, double value) in util_dump_float() argument
77 util_stream_writef(stream, "%g", value); in util_dump_float()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_debug.c71 struct debug_stream *stream, in PRINTF() argument
83 static boolean debug( struct debug_stream *stream, const char *name, unsigned len ) in debug() argument
86 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); in debug()
89 PRINTF(stream, "Error - zero length packet (0x%08x)\n", stream->ptr[0]); in debug()
94 if (stream->print_addresses) in debug()
95 PRINTF(stream, "%08x: ", stream->offset); in debug()
98 PRINTF(stream, "%s (%d dwords):\n", name, len); in debug()
100 PRINTF(stream, "\t0x%08x\n", ptr[i]); in debug()
101 PRINTF(stream, "\n"); in debug()
103 stream->offset += len * sizeof(unsigned); in debug()
[all …]
Di915_debug_fp.c37 struct debug_stream *stream, in PRINTF() argument
133 print_reg_type_nr(struct debug_stream *stream, unsigned type, unsigned nr) in print_reg_type_nr() argument
139 PRINTF(stream, "T_DIFFUSE"); in print_reg_type_nr()
142 PRINTF(stream, "T_SPECULAR"); in print_reg_type_nr()
145 PRINTF(stream, "T_FOG_W"); in print_reg_type_nr()
148 PRINTF(stream, "T_TEX%d", nr); in print_reg_type_nr()
153 PRINTF(stream, "oC"); in print_reg_type_nr()
159 PRINTF(stream, "oD"); in print_reg_type_nr()
167 PRINTF(stream, "%s[%d]", regname[type], nr); in print_reg_type_nr()
180 print_reg_neg_swizzle(struct debug_stream *stream, unsigned reg) in print_reg_neg_swizzle() argument
[all …]
/external/freetype/src/base/
Dftstream.c35 FT_Stream_OpenMemory( FT_Stream stream, in FT_Stream_OpenMemory() argument
39 stream->base = (FT_Byte*) base; in FT_Stream_OpenMemory()
40 stream->size = size; in FT_Stream_OpenMemory()
41 stream->pos = 0; in FT_Stream_OpenMemory()
42 stream->cursor = NULL; in FT_Stream_OpenMemory()
43 stream->read = NULL; in FT_Stream_OpenMemory()
44 stream->close = NULL; in FT_Stream_OpenMemory()
49 FT_Stream_Close( FT_Stream stream ) in FT_Stream_Close() argument
51 if ( stream && stream->close ) in FT_Stream_Close()
52 stream->close( stream ); in FT_Stream_Close()
[all …]
/external/antlr/runtime/Python3/unittests/
Dteststreams.py14 stream = antlr3.StringStream('foo')
16 self.assertEqual(stream.size(), 3)
22 stream = antlr3.StringStream('foo')
24 self.assertEqual(stream.index(), 0)
30 stream = antlr3.StringStream('foo\nbar')
32 stream.consume() # f
33 self.assertEqual(stream.index(), 1)
34 self.assertEqual(stream.charPositionInLine, 1)
35 self.assertEqual(stream.line, 1)
37 stream.consume() # o
[all …]
/external/antlr/runtime/Python/unittests/
Dteststreams.py15 stream = antlr3.StringStream('foo')
17 self.failUnlessEqual(stream.size(), 3)
23 stream = antlr3.StringStream('foo')
25 self.failUnlessEqual(stream.index(), 0)
31 stream = antlr3.StringStream('foo\nbar')
33 stream.consume() # f
34 self.failUnlessEqual(stream.index(), 1)
35 self.failUnlessEqual(stream.charPositionInLine, 1)
36 self.failUnlessEqual(stream.line, 1)
38 stream.consume() # o
[all …]
/external/u-boot/fs/jffs2/
Dmini_inflate.c25 static void init_stream(struct bitstream *stream, unsigned char *data, in init_stream() argument
28 stream->error = NO_ERROR; in init_stream()
29 stream->memcpy = inflate_memcpy; in init_stream()
30 stream->decoded = 0; in init_stream()
31 stream->data = data; in init_stream()
32 stream->bit = 0; /* The first bit of the stream is the lsb of the in init_stream()
37 stream->codes.bits = 8; in init_stream()
38 stream->codes.num_symbols = 19; in init_stream()
39 stream->codes.lengths = stream->code_lengths; in init_stream()
40 stream->codes.symbols = stream->code_symbols; in init_stream()
[all …]
/external/skia/tools/skdiff/
Dskdiff_html.cpp28 static void print_table_header(SkFILEWStream* stream, in print_table_header() argument
35 stream->writeText("<table>\n"); in print_table_header()
36 stream->writeText("<tr><th>"); in print_table_header()
37 stream->writeText("select image</th>\n<th>"); in print_table_header()
41 stream->writeText("SkDiff run at "); in print_table_header()
42 stream->writeDecAsText(dt.fHour); in print_table_header()
43 stream->writeText(":"); in print_table_header()
45 stream->writeText("0"); in print_table_header()
47 stream->writeDecAsText(dt.fMinute); in print_table_header()
48 stream->writeText(":"); in print_table_header()
[all …]
/external/skqp/tools/skdiff/
Dskdiff_html.cpp28 static void print_table_header(SkFILEWStream* stream, in print_table_header() argument
35 stream->writeText("<table>\n"); in print_table_header()
36 stream->writeText("<tr><th>"); in print_table_header()
37 stream->writeText("select image</th>\n<th>"); in print_table_header()
41 stream->writeText("SkDiff run at "); in print_table_header()
42 stream->writeDecAsText(dt.fHour); in print_table_header()
43 stream->writeText(":"); in print_table_header()
45 stream->writeText("0"); in print_table_header()
47 stream->writeDecAsText(dt.fMinute); in print_table_header()
48 stream->writeText(":"); in print_table_header()
[all …]
/external/google-breakpad/src/processor/
Dbinarystream_unittest.cc46 binarystream stream; member in __anon544c16370111::BinaryStreamBasicTest
51 ASSERT_FALSE(stream.eof()); in TEST_F()
52 stream >> u8; in TEST_F()
53 ASSERT_TRUE(stream.eof()); in TEST_F()
55 stream.rewind(); in TEST_F()
56 stream.clear(); in TEST_F()
57 stream << (uint8_t)1; in TEST_F()
58 ASSERT_FALSE(stream.eof()); in TEST_F()
59 stream >> u8; in TEST_F()
61 EXPECT_FALSE(stream.eof()); in TEST_F()
[all …]
/external/oj-libjdwp/src/share/back/
DinStream.c41 inStream_init(PacketInputStream *stream, jdwpPacket packet) in inStream_init() argument
43 stream->packet = packet; in inStream_init()
44 stream->error = JDWP_ERROR(NONE); in inStream_init()
45 stream->left = packet.type.cmd.len; in inStream_init()
46 stream->current = packet.type.cmd.data; in inStream_init()
47 stream->refs = bagCreateBag(sizeof(jobject), INITIAL_REF_ALLOC); in inStream_init()
48 if (stream->refs == NULL) { in inStream_init()
49 stream->error = JDWP_ERROR(OUT_OF_MEMORY); in inStream_init()
54 inStream_id(PacketInputStream *stream) in inStream_id() argument
56 return stream->packet.type.cmd.id; in inStream_id()
[all …]
DoutStream.c39 commonInit(PacketOutputStream *stream) in commonInit() argument
41 stream->current = &stream->initialSegment[0]; in commonInit()
42 stream->left = sizeof(stream->initialSegment); in commonInit()
43 stream->segment = &stream->firstSegment; in commonInit()
44 stream->segment->length = 0; in commonInit()
45 stream->segment->data = &stream->initialSegment[0]; in commonInit()
46 stream->segment->next = NULL; in commonInit()
47 stream->error = JDWP_ERROR(NONE); in commonInit()
48 stream->sent = JNI_FALSE; in commonInit()
49 stream->ids = bagCreateBag(sizeof(jlong), INITIAL_ID_ALLOC); in commonInit()
[all …]
/external/antlr/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestANTLRStringStream.as15 var stream:CharStream = new ANTLRStringStream("abc");
16 assertEquals(stream.size, 3);
17 assertEquals(stream.charPositionInLine, 0);
18 assertEquals(stream.line, 1);
19 assertEquals(stream.index, 0);
21 for (var i:int = 0; i < stream.size; i++) {
22 stream.consume();
24 assertEquals(stream.size, 3); // invariant
25 assertEquals(stream.charPositionInLine, i + 1);
26 assertEquals(stream.line, 1); // invariant
[all …]
/external/libtextclassifier/annotator/
Dtypes.cc21 logging::LoggingStringStream& operator<<(logging::LoggingStringStream& stream, in operator <<() argument
24 return stream << "Token(\"" << token.value << "\", " << token.start << ", " in operator <<()
27 return stream << "Token()"; in operator <<()
41 logging::LoggingStringStream& operator<<(logging::LoggingStringStream& stream, in operator <<() argument
43 stream << "DatetimeParseResultSpan({" << value.span.first << ", " in operator <<()
46 stream << "{/*time_ms_utc=*/ " << data.time_ms_utc << " /* " in operator <<()
50 stream << "})"; in operator <<()
51 return stream; in operator <<()
54 logging::LoggingStringStream& operator<<(logging::LoggingStringStream& stream, in operator <<() argument
56 return stream << "ClassificationResult(" << result.collection in operator <<()
[all …]
/external/dng_sdk/source/
Ddng_iptc.cpp183 void dng_iptc::ParseString (dng_stream &stream, in ParseString() argument
188 uint32 length = stream.Get_uint16 (); in ParseString()
194 stream.Get (c, length); in ParseString()
229 dng_stream stream (blockData, in Parse() local
233 stream.SetBigEndian (); in Parse()
244 uint64 firstOffset = stream.Position (); in Parse()
248 while (nextOffset + 5 < stream.Length ()) in Parse()
251 stream.SetReadPosition (nextOffset); in Parse()
253 uint8 firstByte = stream.Get_uint8 (); in Parse()
257 uint8 record = stream.Get_uint8 (); in Parse()
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DITreeNodeStreamFixture.cs61 ITreeNodeStream stream = CreateCommonTreeNodeStream(t); in testSingleNode()
63 string actual = GetStringOfEntireStreamContentsWithNodeTypesOnly(stream); in testSingleNode()
67 actual = stream.ToString(); in testSingleNode()
82 ITreeNodeStream stream = CreateBufferedTreeNodeStream(t); in test4Nodes()
84 string actual = GetStringOfEntireStreamContentsWithNodeTypesOnly(stream); in test4Nodes()
88 actual = stream.ToString(); in test4Nodes()
107 BufferedTreeNodeStream stream = new BufferedTreeNodeStream(root); in testList()
109 string actual = GetStringOfEntireStreamContentsWithNodeTypesOnly(stream); in testList()
113 actual = stream.ToString(); in testList()
126 BufferedTreeNodeStream stream = new BufferedTreeNodeStream(root); in testFlatList()
[all …]
/external/libdrm/tests/etnaviv/
Detnaviv_2d_test.c42 static inline void etna_emit_load_state(struct etna_cmd_stream *stream, in etna_emit_load_state() argument
50 etna_cmd_stream_emit(stream, v); in etna_emit_load_state()
53 static inline void etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) in etna_set_state() argument
55 etna_cmd_stream_reserve(stream, 2); in etna_set_state()
56 etna_emit_load_state(stream, address >> 2, 1); in etna_set_state()
57 etna_cmd_stream_emit(stream, value); in etna_set_state()
60 static inline void etna_set_state_from_bo(struct etna_cmd_stream *stream, in etna_set_state_from_bo() argument
63 etna_cmd_stream_reserve(stream, 2); in etna_set_state_from_bo()
64 etna_emit_load_state(stream, address >> 2, 1); in etna_set_state_from_bo()
66 etna_cmd_stream_reloc(stream, &(struct etna_reloc){ in etna_set_state_from_bo()
[all …]
Detnaviv_cmd_stream_test.c36 struct etna_cmd_stream *stream; in test_avail() local
41 stream = etna_cmd_stream_new(NULL, 0, NULL, NULL); in test_avail()
42 assert(stream == NULL); in test_avail()
44 stream = etna_cmd_stream_new(NULL, 4, NULL, NULL); in test_avail()
45 assert(stream); in test_avail()
46 assert(etna_cmd_stream_avail(stream) == 2); in test_avail()
47 etna_cmd_stream_del(stream); in test_avail()
49 stream = etna_cmd_stream_new(NULL, 20, NULL, NULL); in test_avail()
50 assert(stream); in test_avail()
51 assert(etna_cmd_stream_avail(stream) == 18); in test_avail()
[all …]
/external/grpc-grpc/third_party/nanopb/
Dpb_encode.c23 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr…
25 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
26 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
27 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
28 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten…
29 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const…
30 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr…
31 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
32 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
33 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s…
[all …]
/external/nanopb-c/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c13 static bool write_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_varint() argument
15 return pb_encode_tag_for_field(stream, field) && in write_varint()
16 pb_encode_varint(stream, (long)*arg); in write_varint()
19 static bool write_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_svarint() argument
21 return pb_encode_tag_for_field(stream, field) && in write_svarint()
22 pb_encode_svarint(stream, (long)*arg); in write_svarint()
25 static bool write_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed32() argument
27 return pb_encode_tag_for_field(stream, field) && in write_fixed32()
28 pb_encode_fixed32(stream, *arg); in write_fixed32()
31 static bool write_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed64() argument
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_emit.h44 etna_emit_load_state(struct etna_cmd_stream *stream, const uint16_t offset, in etna_emit_load_state() argument
55 etna_cmd_stream_emit(stream, v); in etna_emit_load_state()
59 etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) in etna_set_state() argument
61 etna_cmd_stream_reserve(stream, 2); in etna_set_state()
62 etna_emit_load_state(stream, address >> 2, 1, 0); in etna_set_state()
63 etna_cmd_stream_emit(stream, value); in etna_set_state()
67 etna_set_state_reloc(struct etna_cmd_stream *stream, uint32_t address, in etna_set_state_reloc() argument
70 etna_cmd_stream_reserve(stream, 2); in etna_set_state_reloc()
71 etna_emit_load_state(stream, address >> 2, 1, 0); in etna_set_state_reloc()
72 etna_cmd_stream_reloc(stream, reloc); in etna_set_state_reloc()
[all …]
/external/nanopb-c/
Dpb_encode.c23 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr…
25 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
26 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
27 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
28 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten…
29 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const…
31 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr…
32 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
33 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
34 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s…
[all …]

12345678910>>...148