Home
last modified time | relevance | path

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

12345678910>>...103

/external/antlr/antlr-3.4/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/antlr/antlr-3.4/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/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/chromium_org/third_party/mesa/src/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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_dump_state.c43 util_stream_writef(FILE *stream, const char *format, ...) in util_stream_writef() argument
51 fwrite(buf, len, 1, stream); in util_stream_writef()
55 util_dump_bool(FILE *stream, int value) in util_dump_bool() argument
57 util_stream_writef(stream, "%c", value ? '1' : '0'); in util_dump_bool()
61 util_dump_int(FILE *stream, long long int value) in util_dump_int() argument
63 util_stream_writef(stream, "%lli", value); in util_dump_int()
67 util_dump_uint(FILE *stream, long long unsigned value) in util_dump_uint() argument
69 util_stream_writef(stream, "%llu", value); in util_dump_uint()
73 util_dump_float(FILE *stream, double value) in util_dump_float() argument
75 util_stream_writef(stream, "%g", value); in util_dump_float()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_dump_state.c43 util_stream_writef(FILE *stream, const char *format, ...) in util_stream_writef() argument
51 fwrite(buf, len, 1, stream); in util_stream_writef()
55 util_dump_bool(FILE *stream, int value) in util_dump_bool() argument
57 util_stream_writef(stream, "%c", value ? '1' : '0'); in util_dump_bool()
61 util_dump_int(FILE *stream, long long int value) in util_dump_int() argument
63 util_stream_writef(stream, "%lli", value); in util_dump_int()
67 util_dump_uint(FILE *stream, long long unsigned value) in util_dump_uint() argument
69 util_stream_writef(stream, "%llu", value); in util_dump_uint()
73 util_dump_float(FILE *stream, double value) in util_dump_float() argument
75 util_stream_writef(stream, "%g", value); in util_dump_float()
[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 = 0; in FT_Stream_OpenMemory()
43 stream->read = 0; in FT_Stream_OpenMemory()
44 stream->close = 0; 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/chromium_org/third_party/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 = 0; in FT_Stream_OpenMemory()
43 stream->read = 0; in FT_Stream_OpenMemory()
44 stream->close = 0; 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/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/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 = 0; in FT_Stream_OpenMemory()
43 stream->read = 0; in FT_Stream_OpenMemory()
44 stream->close = 0; 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/antlr-3.4/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/skia/tools/
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/chromium_org/third_party/skia/tools/
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/antlr/antlr-3.4/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/
DScenarioStatusTable.java28 private PrintStream stream; field in ScenarioStatusTable
35 public ScenarioStatusTable(String name, PrintStream stream) { in ScenarioStatusTable() argument
37 this.stream = stream; in ScenarioStatusTable()
51 this.stream.print("<table border=\"1\">\n"); in print()
52 this.stream.print("<tr>\n"); in print()
53 this.stream.print("<td><h4>All "); in print()
54 this.stream.print(computeSize(scenarios)); in print()
55 this.stream.print(" scenarios</h4></td>\n"); in print()
63 this.stream.print("<tr>\n"); in print()
64 this.stream.print("<td>"); in print()
[all …]
/external/deqp/framework/delibs/destream/
DdeIOStream.h52 typedef deStreamResult (*deIOStreamReadFunc) (deStreamData* stream, void* buf, deInt32 bufSize, de…
53 typedef deStreamResult (*deIOStreamWriteFunc) (deStreamData* stream, const void* buf, deInt32 bufS…
54 typedef const char* (*deIOStreamGetErrorFunc) (deStreamData* stream);
55 typedef deStreamResult (*deIOStreamFlushFunc) (deStreamData* stream);
56 typedef deStreamResult (*deIOStreamDeinitFunc) (deStreamData* stream);
57 typedef deStreamStatus (*deIOStreamStatusFunc) (deStreamData* stream);
77 DE_INLINE deStreamResult deIOStream_read (deIOStream* stream, void* buf, deInt32 bufSize, deInt32…
78 DE_INLINE deStreamResult deIOStream_write (deIOStream* stream, const void* buf, deInt32 bufSize, d…
79 DE_INLINE const char* deIOStream_getError (deIOStream* stream);
80 DE_INLINE deStreamStatus deIOStream_getStatus (deIOStream* stream);
[all …]
/external/chromium_org/third_party/WebKit/Source/core/streams/
DReadableStreamTest.cpp107 … StringStream* stream = new StringStream(scriptState()->executionContext(), m_underlyingSource); in construct() local
108 stream->didSourceStart(); in construct()
109 return stream; in construct()
120 StringStream* stream = new StringStream(scriptState()->executionContext(), m_underlyingSource); in TEST_F() local
122 EXPECT_FALSE(stream->isStarted()); in TEST_F()
123 EXPECT_FALSE(stream->isDraining()); in TEST_F()
124 EXPECT_FALSE(stream->isPulling()); in TEST_F()
125 EXPECT_EQ(stream->state(), ReadableStream::Waiting); in TEST_F()
127 stream->didSourceStart(); in TEST_F()
129 EXPECT_TRUE(stream->isStarted()); in TEST_F()
[all …]
/external/nanopb-c/
Dpb_encode.c22 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr…
24 static bool checkreturn buf_write(pb_ostream_t *stream, const uint8_t *buf, size_t count);
25 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
26 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
27 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten…
28 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const…
29 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr…
30 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
31 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
32 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s…
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
Dcss.js33 function tokenBase(stream, state) { argument
34 var ch = stream.next();
36 var result = tokenHooks[ch](stream, state);
40 stream.eatWhile(/[\w\\\-]/);
41 return ret("def", stream.current());
42 } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
46 return state.tokenize(stream, state);
48 stream.eatWhile(/[\w\\\-]/);
51 stream.match(/^\s*\w*/);
53 } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
[all …]
Dcoffeescript.js50 function tokenBase(stream, state) { argument
52 if (stream.sol()) {
55 if (stream.eatSpace()) {
56 var lineOffset = stream.indentation();
65 dedent(stream, state);
69 if (stream.eatSpace()) {
73 var ch = stream.peek();
76 if (stream.match("####")) {
77 stream.skipToEnd();
82 if (stream.match("###")) {
[all …]
/external/antlr/antlr-3.4/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 …]
DANTLRxxxxStreamFixture.cs240 ANTLRInputStream stream = new ANTLRInputStream(grammarStream, encoding); in TestSubstringOnANTLRInputStream()
242 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRInputStream()
243 Assert.AreEqual("One", stream.Substring(0, 2)); in TestSubstringOnANTLRInputStream()
244 Assert.AreEqual("Three", stream.Substring(10, 14)); in TestSubstringOnANTLRInputStream()
246 stream.Consume(); in TestSubstringOnANTLRInputStream()
248 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRInputStream()
249 Assert.AreEqual("One", stream.Substring(0, 2)); in TestSubstringOnANTLRInputStream()
250 Assert.AreEqual("Three", stream.Substring(10, 14)); in TestSubstringOnANTLRInputStream()
260 ANTLRInputStream stream = new ANTLRInputStream(grammarStream, encoding); in TestSeekOnANTLRInputStream()
261 Assert.AreEqual('O', stream.LA(1)); in TestSeekOnANTLRInputStream()
[all …]
/external/nanopb-c/tests/alltypes_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/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTreeNodeStream.java43 public String toTokenTypeString(TreeNodeStream stream) { in toTokenTypeString() argument
44 return ((CommonTreeNodeStream)stream).toTokenTypeString(); in toTokenTypeString()
50 TreeNodeStream stream = newStream(t); in testSingleNode() local
52 String found = toNodesOnlyString(stream); in testSingleNode()
56 found = toTokenTypeString(stream); in testSingleNode()
67 TreeNodeStream stream = newStream(t); in test4Nodes() local
69 String found = toNodesOnlyString(stream); in test4Nodes()
73 found = toTokenTypeString(stream); in test4Nodes()
90 TreeNodeStream stream = newStream(root); in testList() local
92 String found = toNodesOnlyString(stream); in testList()
[all …]

12345678910>>...103