/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/ |
D | basic.rb | 27 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/ |
D | antlr3rewritestreams.c | 40 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/sonic/ |
D | sonic.c | 89 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/drivers/i915/ |
D | i915_debug.c | 71 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 …]
|
D | i915_debug_fp.c | 37 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/mesa3d/src/gallium/auxiliary/util/ |
D | u_dump_state.c | 43 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/pdfium/third_party/freetype/src/base/ |
D | ftstream.c | 35 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/freetype/src/base/ |
D | ftstream.c | 35 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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/ |
D | ftstream.c | 35 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/antlr-3.4/runtime/Python/unittests/ |
D | teststreams.py | 15 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/opencv3/3rdparty/libjasper/ |
D | jas_stream.c | 99 static void jas_stream_destroy(jas_stream_t *stream); 101 static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf, 150 jas_stream_t *stream; in jas_stream_create() local 152 if (!(stream = jas_malloc(sizeof(jas_stream_t)))) { in jas_stream_create() 155 stream->openmode_ = 0; in jas_stream_create() 156 stream->bufmode_ = 0; in jas_stream_create() 157 stream->flags_ = 0; in jas_stream_create() 158 stream->bufbase_ = 0; in jas_stream_create() 159 stream->bufstart_ = 0; in jas_stream_create() 160 stream->bufsize_ = 0; in jas_stream_create() [all …]
|
/external/skia/tools/ |
D | skdiff_html.cpp | 28 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/ |
D | binarystream_unittest.cc | 46 binarystream stream; member in __anonf8c12b5a0111::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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
D | ScenarioStatusTable.java | 28 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/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
D | TestANTLRStringStream.as | 15 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/opencv3/3rdparty/libjasper/jasper/ |
D | jas_stream.h | 311 int jas_stream_close(jas_stream_t *stream); 318 #define jas_stream_eof(stream) \ argument 319 (((stream)->flags_ & JAS_STREAM_EOF) != 0) 322 #define jas_stream_error(stream) \ argument 323 (((stream)->flags_ & JAS_STREAM_ERR) != 0) 326 #define jas_stream_clearerr(stream) \ argument 327 ((stream)->flags_ &= ~(JAS_STREAM_ERR | JAS_STREAM_EOF)) 330 #define jas_stream_getrwlimit(stream) \ argument 331 (((const jas_stream_t *)(stream))->rwlimit_) 334 int jas_stream_setrwlimit(jas_stream_t *stream, long rwlimit); [all …]
|
/external/dng_sdk/source/ |
D | dng_iptc.cpp | 183 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/nanopb-c/ |
D | pb_encode.c | 22 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 …]
|
D | pb_decode.c | 34 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn; 36 static bool checkreturn buf_read(pb_istream_t *stream, uint8_t *buf, size_t count); 37 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 38 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, uint8_t *buf… 42 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel… 43 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi… 44 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_itera… 45 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, … 46 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_ty… 49 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest); [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ITreeNodeStreamFixture.cs | 61 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 …]
|
D | ANTLRxxxxStreamFixture.cs | 240 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/deqp/framework/delibs/destream/ |
D | deIOStream.h | 52 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/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_debug.c | 35 debug(struct debug_stream *stream, const char *name, GLuint len) in debug() argument 38 GLuint *ptr = (GLuint *)(stream->ptr + stream->offset); in debug() 41 printf("Error - zero length packet (0x%08x)\n", stream->ptr[0]); in debug() 46 if (stream->print_addresses) in debug() 47 printf("%08x: ", stream->offset); in debug() 55 stream->offset += len * sizeof(GLuint); in debug() 81 debug_prim(struct debug_stream *stream, const char *name, in debug_prim() argument 84 GLuint *ptr = (GLuint *)(stream->ptr + stream->offset); in debug_prim() 102 stream->offset += len * sizeof(GLuint); in debug_prim() 111 debug_program(struct debug_stream *stream, const char *name, GLuint len) in debug_program() argument [all …]
|
/external/libbrillo/brillo/streams/ |
D | memory_stream_unittest.cc | 26 int ReadByte(Stream* stream, brillo::ErrorPtr* error) { in ReadByte() argument 28 return stream->ReadAllBlocking(&byte, sizeof(byte), error) ? byte : -1; in ReadByte() 206 StreamPtr stream = MemoryStream::OpenRef(buffer, sizeof(buffer), nullptr); in TEST() local 208 EXPECT_EQ(3, stream->GetSize()); in TEST() 209 EXPECT_EQ(5, ReadByte(stream.get(), nullptr)); in TEST() 210 EXPECT_EQ(2, ReadByte(stream.get(), nullptr)); in TEST() 211 EXPECT_EQ(3, ReadByte(stream.get(), nullptr)); in TEST() 213 EXPECT_EQ(-1, ReadByte(stream.get(), &error)); in TEST() 214 EXPECT_EQ(errors::stream::kPartialData, error->GetCode()); in TEST() 220 StreamPtr stream = MemoryStream::OpenCopyOf(buffer, sizeof(buffer), nullptr); in TEST() local [all …]
|
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 13 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 …]
|