/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/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/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/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/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/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/r8/src/main/java/com/android/tools/r8/code/ |
D | BaseInstructionFactory.java | 10 static Instruction create(int high, int opcode, BytecodeStream stream, in create() argument 14 return Nop.create(high, stream); in create() 16 return new Move(high, stream); in create() 18 return new MoveFrom16(high, stream); in create() 20 return new Move16(high, stream); in create() 22 return new MoveWide(high, stream); in create() 24 return new MoveWideFrom16(high, stream); in create() 26 return new MoveWide16(high, stream); in create() 28 return new MoveObject(high, stream); in create() 30 return new MoveObjectFrom16(high, stream); in create() [all …]
|
/external/skia/tools/skdiff/ |
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 __anon52e4202d0111::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/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/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/libdrm/tests/etnaviv/ |
D | etnaviv_cmd_stream_test.c | 36 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 …]
|
D | etnaviv_2d_test.c | 46 static inline void etna_emit_load_state(struct etna_cmd_stream *stream, in etna_emit_load_state() argument 54 etna_cmd_stream_emit(stream, v); in etna_emit_load_state() 57 static inline void etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) in etna_set_state() argument 59 etna_cmd_stream_reserve(stream, 2); in etna_set_state() 60 etna_emit_load_state(stream, address >> 2, 1); in etna_set_state() 61 etna_cmd_stream_emit(stream, value); in etna_set_state() 64 static inline void etna_set_state_from_bo(struct etna_cmd_stream *stream, in etna_set_state_from_bo() argument 67 etna_cmd_stream_reserve(stream, 2); in etna_set_state_from_bo() 68 etna_emit_load_state(stream, address >> 2, 1); in etna_set_state_from_bo() 70 etna_cmd_stream_reloc(stream, &(struct etna_reloc){ in etna_set_state_from_bo() [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/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/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestTreeNodeStream.java | 43 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 …]
|
/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 …]
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | RandomAccessFileInputStreamTest.java | 39 private RandomAccessFileInputStream stream = null; field in RandomAccessFileInputStreamTest 72 stream = new RandomAccessFileInputStream(tempFile); in setup() 78 stream.close(); in tearDown() 92 Assert.assertEquals(x, stream.read()); in testRead_OneByte() 94 Assert.assertEquals(-1, stream.read()); in testRead_OneByte() 103 int numRead = stream.read(buffer); in testRead_WithBuffer() 109 Assert.assertEquals(-1, stream.read(buffer, 0, 1)); in testRead_WithBuffer() 115 Assert.assertEquals(0, stream.read(new byte[] {}, 0, -1)); in testRead_WithBuffer_NegativeLength() 124 int numRead = stream.read(buffer, 0, 2); // At most 2 bytes of the buffer can be used in testRead_WithPartialBuffer() 130 Assert.assertEquals(-1, stream.read()); in testRead_WithPartialBuffer() [all …]
|