/external/syslinux/com32/gpllib/disk/ |
D | labels.c | 16 char *buffer = malloc(buffer_size); in get_label() local 17 *buffer_label = buffer; in get_label() 21 strlcpy(buffer, "DOS 12-bit fat", buffer_size); in get_label() 24 strlcpy(buffer, "XENIX root", buffer_size); in get_label() 27 strlcpy(buffer, "XENIX /usr", buffer_size); in get_label() 30 strlcpy(buffer, "DOS 3.0+ 16-bit FAT (up to 32M)", buffer_size); in get_label() 33 strlcpy(buffer, "DOS 3.3+ Extended Partition", buffer_size); in get_label() 36 strlcpy(buffer, "DOS 3.31+ 16-bit FAT (over 32M)", buffer_size); in get_label() 39 strlcpy(buffer, "NTFS/exFAT/HPFS", buffer_size); in get_label() 45 strlcpy(buffer, "AIX", buffer_size); in get_label() [all …]
|
D | mbrs.c | 23 void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) in get_mbr_string() argument 31 strlcpy(buffer, "No bootloader", buffer_size - 1); in get_mbr_string() 34 strlcpy(buffer, "ThinkPad", buffer_size - 1); in get_mbr_string() 37 strlcpy(buffer, "Acer 3", buffer_size - 1); in get_mbr_string() 42 strlcpy(buffer, "Windows", buffer_size - 1); in get_mbr_string() 44 strlcpy(buffer, "DiskCryptor", buffer_size - 1); in get_mbr_string() 46 strlcpy(buffer, "Syslinux", buffer_size - 1); in get_mbr_string() 48 strlcpy(buffer, "Unknown mbr", buffer_size - 1); in get_mbr_string() 51 strlcpy(buffer, "Syslinux ISOhybrid", buffer_size - 1); in get_mbr_string() 54 strlcpy(buffer, "HP/Gateway", buffer_size - 1); in get_mbr_string() [all …]
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_jpx_unittest.cpp | 46 unsigned char buffer[16]; in TEST() local 50 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), ptr)); in TEST() 51 EXPECT_EQ(kWriteError, opj_write_from_memory(buffer, sizeof(buffer), ptr)); in TEST() 58 unsigned char buffer[16]; in TEST() local 61 memset(buffer, 0xbd, sizeof(buffer)); in TEST() 62 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, 0, &dd)); in TEST() 63 EXPECT_EQ(0xbd, buffer[0]); in TEST() 66 memset(buffer, 0xbd, sizeof(buffer)); in TEST() 67 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), &dd)); in TEST() 68 EXPECT_EQ(0xbd, buffer[0]); in TEST() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-ot-shape-normalize.cc | 98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument 100 buffer->cur().glyph_index() = glyph; in output_char() 101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ in output_char() 102 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char() 106 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument 108 buffer->cur().glyph_index() = glyph; in next_char() 109 buffer->next_glyph (); in next_char() 113 skip_char (hb_buffer_t *buffer) in skip_char() argument 115 buffer->skip_glyph (); in skip_char() 123 hb_buffer_t * const buffer = c->buffer; in decompose() local [all …]
|
D | hb-ot-shape.cc | 216 hb_buffer_t *buffer; member 234 hb_set_unicode_props (hb_buffer_t *buffer) in hb_set_unicode_props() argument 236 unsigned int count = buffer->len; in hb_set_unicode_props() 237 hb_glyph_info_t *info = buffer->info; in hb_set_unicode_props() 239 _hb_glyph_info_set_unicode_props (&info[i], buffer); in hb_set_unicode_props() 243 hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font) in hb_insert_dotted_circle() argument 245 if (!(buffer->flags & HB_BUFFER_FLAG_BOT) || in hb_insert_dotted_circle() 246 buffer->context_len[0] || in hb_insert_dotted_circle() 247 _hb_glyph_info_get_general_category (&buffer->info[0]) != in hb_insert_dotted_circle() 256 _hb_glyph_info_set_unicode_props (&dottedcircle, buffer); in hb_insert_dotted_circle() [all …]
|
D | hb-buffer.cc | 691 hb_buffer_t *buffer; in hb_buffer_create() local 693 if (!(buffer = hb_object_create<hb_buffer_t> ())) in hb_buffer_create() 696 buffer->max_len = HB_BUFFER_MAX_LEN_DEFAULT; in hb_buffer_create() 698 buffer->reset (); in hb_buffer_create() 700 return buffer; in hb_buffer_create() 750 hb_buffer_reference (hb_buffer_t *buffer) in hb_buffer_reference() argument 752 return hb_object_reference (buffer); in hb_buffer_reference() 766 hb_buffer_destroy (hb_buffer_t *buffer) in hb_buffer_destroy() argument 768 if (!hb_object_destroy (buffer)) return; in hb_buffer_destroy() 770 hb_unicode_funcs_destroy (buffer->unicode); in hb_buffer_destroy() [all …]
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | ByteBufferTests.cs | 28 var buffer = new byte[1000]; in ByteBuffer_Length_MatchesBufferLength() 29 var uut = new ByteBuffer(buffer); in ByteBuffer_Length_MatchesBufferLength() 30 Assert.AreEqual(buffer.Length, uut.Length); in ByteBuffer_Length_MatchesBufferLength() 36 var buffer = new byte[1]; in ByteBuffer_PutBytePopulatesBufferAtZeroOffset() 37 var uut = new ByteBuffer(buffer); in ByteBuffer_PutBytePopulatesBufferAtZeroOffset() 40 Assert.AreEqual((byte)99, buffer[0]); in ByteBuffer_PutBytePopulatesBufferAtZeroOffset() 47 var buffer = new byte[1]; in ByteBuffer_PutByteCannotPutAtOffsetPastLength() 48 var uut = new ByteBuffer(buffer); in ByteBuffer_PutByteCannotPutAtOffsetPastLength() 56 var buffer = new byte[2]; in ByteBuffer_PutShortPopulatesBufferCorrectly() 57 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortPopulatesBufferCorrectly() [all …]
|
/external/syslinux/com32/hdt/ |
D | hdt-menu-dmi.c | 34 char buffer[SUBMENULEN + 1]; in compute_system() local 41 snprintf(buffer, sizeof buffer, "Vendor : %s", dmi->system.manufacturer); in compute_system() 44 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_system() 47 snprintf(buffer, sizeof buffer, "Product : %s", dmi->system.product_name); in compute_system() 50 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_system() 53 snprintf(buffer, sizeof buffer, "Version : %s", dmi->system.version); in compute_system() 55 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_system() 58 snprintf(buffer, sizeof buffer, "Serial : %s", dmi->system.serial); in compute_system() 61 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_system() 64 snprintf(buffer, sizeof buffer, "UUID : %s", dmi->system.uuid); in compute_system() [all …]
|
D | hdt-menu-memory.c | 36 char buffer[MENULEN + 1]; in compute_e820() local 39 sprintf(buffer, " e820 information "); in compute_e820() 41 menu->menu = add_menu(buffer, -1); in compute_e820() 49 snprintf(buffer, sizeof buffer, "Detected Memory - %lu MiB (%lu KiB)", in compute_e820() 54 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_e820() 59 snprintf(buffer, sizeof buffer, in compute_e820() 65 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); in compute_e820() 73 char buffer[MENULEN + 1]; in compute_e801() local 76 sprintf(buffer, " e801 information "); in compute_e801() 78 menu->menu = add_menu(buffer, -1); in compute_e801() [all …]
|
D | hdt-cli-cpu.c | 77 static void show_flag(char *buffer, bool flag, char *flag_name, bool flush) in show_flag() argument 85 if ((((strlen(buffer) + strlen(flag_name)) > 66) && flag) || flush) { in show_flag() 87 buffer); in show_flag() 89 memset(buffer, 0, sizeof(buffer)); in show_flag() 95 strcat(buffer, flag_name); in show_flag() 101 char buffer[81]; in show_cpu() local 160 memset(buffer, 0, sizeof(buffer)); in show_cpu() 161 show_flag(buffer, hardware->cpu.flags.fpu, "fpu ", false); in show_cpu() 162 show_flag(buffer, hardware->cpu.flags.vme, "vme ", false); in show_cpu() 163 show_flag(buffer, hardware->cpu.flags.de, "de ", false); in show_cpu() [all …]
|
/external/tpm2/ |
D | tpm_generated.h | 16 UINT16 uint8_t_Marshal(uint8_t* source, BYTE** buffer, INT32* size); 18 TPM_RC uint8_t_Unmarshal(uint8_t* target, BYTE** buffer, INT32* size); 20 UINT16 int8_t_Marshal(int8_t* source, BYTE** buffer, INT32* size); 22 TPM_RC int8_t_Unmarshal(int8_t* target, BYTE** buffer, INT32* size); 24 UINT16 uint16_t_Marshal(uint16_t* source, BYTE** buffer, INT32* size); 26 TPM_RC uint16_t_Unmarshal(uint16_t* target, BYTE** buffer, INT32* size); 28 UINT16 int16_t_Marshal(int16_t* source, BYTE** buffer, INT32* size); 30 TPM_RC int16_t_Unmarshal(int16_t* target, BYTE** buffer, INT32* size); 32 UINT16 uint32_t_Marshal(uint32_t* source, BYTE** buffer, INT32* size); 34 TPM_RC uint32_t_Unmarshal(uint32_t* target, BYTE** buffer, INT32* size); [all …]
|
D | tpm_generated.c | 9 UINT16 uint8_t_Marshal(uint8_t* source, BYTE** buffer, INT32* size) { in uint8_t_Marshal() argument 27 memcpy(*buffer, &value_net, sizeof(uint8_t)); in uint8_t_Marshal() 28 *buffer += sizeof(uint8_t); in uint8_t_Marshal() 33 TPM_RC uint8_t_Unmarshal(uint8_t* target, BYTE** buffer, INT32* size) { in uint8_t_Unmarshal() argument 38 memcpy(&value_net, *buffer, sizeof(uint8_t)); in uint8_t_Unmarshal() 52 *buffer += sizeof(uint8_t); in uint8_t_Unmarshal() 57 UINT16 int8_t_Marshal(int8_t* source, BYTE** buffer, INT32* size) { in int8_t_Marshal() argument 75 memcpy(*buffer, &value_net, sizeof(int8_t)); in int8_t_Marshal() 76 *buffer += sizeof(int8_t); in int8_t_Marshal() 81 TPM_RC int8_t_Unmarshal(int8_t* target, BYTE** buffer, INT32* size) { in int8_t_Unmarshal() argument [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | voip_metric.cc | 45 void VoipMetric::Parse(const uint8_t* buffer) { in Parse() argument 46 RTC_DCHECK(buffer[0] == kBlockType); in Parse() 48 RTC_DCHECK(ByteReader<uint16_t>::ReadBigEndian(&buffer[2]) == kBlockLength); in Parse() 49 ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in Parse() 50 voip_metric_.lossRate = buffer[8]; in Parse() 51 voip_metric_.discardRate = buffer[9]; in Parse() 52 voip_metric_.burstDensity = buffer[10]; in Parse() 53 voip_metric_.gapDensity = buffer[11]; in Parse() 54 voip_metric_.burstDuration = ByteReader<uint16_t>::ReadBigEndian(&buffer[12]); in Parse() 55 voip_metric_.gapDuration = ByteReader<uint16_t>::ReadBigEndian(&buffer[14]); in Parse() [all …]
|
/external/webrtc/webrtc/base/ |
D | bitbuffer_unittest.cc | 21 BitBuffer buffer(bytes, 32); in TEST() local 23 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST() 24 EXPECT_TRUE(buffer.ConsumeBits(3)); in TEST() 26 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST() 27 EXPECT_TRUE(buffer.ConsumeBits(3)); in TEST() 29 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST() 30 EXPECT_TRUE(buffer.ConsumeBits(15)); in TEST() 32 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST() 33 EXPECT_TRUE(buffer.ConsumeBits(37)); in TEST() 35 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST() [all …]
|
D | bytebuffer_unittest.cc | 57 ByteBuffer buffer; in TEST() local 59 EXPECT_EQ(size, buffer.Length()); in TEST() 61 buffer.WriteUInt8(1); in TEST() 63 EXPECT_EQ(size, buffer.Length()); in TEST() 65 buffer.WriteUInt16(1); in TEST() 67 EXPECT_EQ(size, buffer.Length()); in TEST() 69 buffer.WriteUInt24(1); in TEST() 71 EXPECT_EQ(size, buffer.Length()); in TEST() 73 buffer.WriteUInt32(1); in TEST() 75 EXPECT_EQ(size, buffer.Length()); in TEST() [all …]
|
/external/libcups/cups/ |
D | ppd-attr.c | 143 char *buffer, /* I - String buffer */ in _ppdNormalizeMakeAndModel() argument 149 if (!make_and_model || !buffer || bufsize < 1) in _ppdNormalizeMakeAndModel() 151 if (buffer) in _ppdNormalizeMakeAndModel() 152 *buffer = '\0'; in _ppdNormalizeMakeAndModel() 170 strlcpy(buffer, make_and_model + 1, bufsize); in _ppdNormalizeMakeAndModel() 172 if ((bufptr = strrchr(buffer, ')')) != NULL) in _ppdNormalizeMakeAndModel() 181 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in _ppdNormalizeMakeAndModel() 189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in _ppdNormalizeMakeAndModel() 197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in _ppdNormalizeMakeAndModel() 205 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in _ppdNormalizeMakeAndModel() [all …]
|
D | snmp.c | 31 static void asn1_debug(const char *prefix, unsigned char *buffer, 33 static int asn1_decode_snmp(unsigned char *buffer, size_t len, 35 static int asn1_encode_snmp(unsigned char *buffer, size_t len, 37 static int asn1_get_integer(unsigned char **buffer, 40 static int asn1_get_oid(unsigned char **buffer, 43 static int asn1_get_packed(unsigned char **buffer, 45 static char *asn1_get_string(unsigned char **buffer, 49 static unsigned asn1_get_length(unsigned char **buffer, 51 static int asn1_get_type(unsigned char **buffer, 53 static void asn1_set_integer(unsigned char **buffer, [all …]
|
/external/v8/src/wasm/ |
D | wasm-module-builder.cc | 35 size_t EmitSection(WasmSectionCode code, ZoneBuffer& buffer) { in EmitSection() argument 37 buffer.write_u8(code); in EmitSection() 40 return buffer.reserve_u32v(); in EmitSection() 44 void FixupSection(ZoneBuffer& buffer, size_t start) { in FixupSection() argument 45 buffer.patch_u32v(start, static_cast<uint32_t>(buffer.offset() - start - in FixupSection() 66 byte buffer[8]; in EmitVarInt() local 67 byte* ptr = buffer; in EmitVarInt() 69 for (byte* p = buffer; p < ptr; p++) { in EmitVarInt() 171 void WasmFunctionBuilder::WriteSignature(ZoneBuffer& buffer) const { in WriteSignature() 172 buffer.write_u32v(signature_index_); in WriteSignature() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | RealBufferedSource.java | 26 public final Buffer buffer; field in RealBufferedSource 30 public RealBufferedSource(Source source, Buffer buffer) { in RealBufferedSource() argument 32 this.buffer = buffer; in RealBufferedSource() 40 @Override public Buffer buffer() { in buffer() method in RealBufferedSource 41 return buffer; in buffer() 49 if (buffer.size == 0) { in read() 50 long read = source.read(buffer, Segment.SIZE); in read() 54 long toRead = Math.min(byteCount, buffer.size); in read() 55 return buffer.read(sink, toRead); in read() 60 return buffer.exhausted() && source.read(buffer, Segment.SIZE) == -1; in exhausted() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cstrcase.c | 42 UChar buffer[32]; in TestCaseLower() local 47 buffer[0]=0xabcd; in TestCaseLower() 49 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower() 55 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower() 56 buffer[length]!=0 in TestCaseLower() 61 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower() 62 buffer[length]==0 ? "yes" : "no", in TestCaseLower() 64 aescstrdup(buffer,-1)); in TestCaseLower() 68 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); in TestCaseLower() 69 buffer[UPRV_LENGTHOF(beforeLower)]=0; in TestCaseLower() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | Utf8Test.java | 80 Buffer buffer = new Buffer(); in stringSpansSegments() local 84 buffer.writeUtf8(a); in stringSpansSegments() 85 buffer.writeUtf8(b); in stringSpansSegments() 86 buffer.writeUtf8(c); in stringSpansSegments() 87 assertEquals(a + b + c, buffer.readUtf8()); in stringSpansSegments() 91 Buffer buffer = new Buffer(); in readEmptyBufferThrowsEofException() local 93 buffer.readUtf8CodePoint(); in readEmptyBufferThrowsEofException() 100 Buffer buffer = new Buffer(); in readLeadingContinuationByteReturnsReplacementCharacter() local 101 buffer.writeByte(0xbf); in readLeadingContinuationByteReturnsReplacementCharacter() 102 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readLeadingContinuationByteReturnsReplacementCharacter() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | ByteBuffer.java | 27 private byte[] buffer; field in ByteBuffer 39 this.buffer = new byte[initialCapacity]; in ByteBuffer() 47 public ByteBuffer(byte[] buffer) in ByteBuffer() argument 49 this.buffer = buffer; in ByteBuffer() 50 this.length = buffer.length; in ByteBuffer() 58 public ByteBuffer(byte[] buffer, int length) in ByteBuffer() argument 60 if (length > buffer.length) in ByteBuffer() 64 this.buffer = buffer; in ByteBuffer() 80 this.buffer = new byte[chunk]; in ByteBuffer() 83 while ((read = in.read(this.buffer, this.length, chunk)) > 0) in ByteBuffer() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | dtmf_buffer_unittest.cc | 57 DtmfBuffer* buffer = new DtmfBuffer(sample_rate_hz); in TEST() local 58 delete buffer; in TEST() 91 DtmfBuffer buffer(sample_rate_hz); in TEST() local 92 EXPECT_EQ(DtmfBuffer::kOK, buffer.InsertEvent(event)); in TEST() 93 EXPECT_EQ(1u, buffer.Length()); in TEST() 94 EXPECT_FALSE(buffer.Empty()); in TEST() 97 EXPECT_FALSE(buffer.GetEvent(timestamp - 10, &out_event)); in TEST() 98 EXPECT_EQ(1u, buffer.Length()); in TEST() 99 EXPECT_FALSE(buffer.Empty()); in TEST() 101 EXPECT_TRUE(buffer.GetEvent(timestamp, &out_event)); in TEST() [all …]
|
/external/e2fsprogs/ext2ed/ |
D | group_com.c | 26 char *ptr,buffer [80]; in type_ext2_group_desc___next() local 28 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___next() 30 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___next() 31 entry_offset=atol (buffer); in type_ext2_group_desc___next() 34 sprintf (buffer,"entry %ld",group_info.group_num+entry_offset); in type_ext2_group_desc___next() 35 dispatch (buffer); in type_ext2_group_desc___next() 42 char *ptr,buffer [80]; in type_ext2_group_desc___prev() local 44 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___prev() 46 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___prev() 47 entry_offset=atol (buffer); in type_ext2_group_desc___prev() [all …]
|
/external/webrtc/webrtc/common_video/ |
D | i420_buffer_pool_unittest.cc | 20 rtc::scoped_refptr<VideoFrameBuffer> buffer = pool.CreateBuffer(16, 16); in TEST() local 21 EXPECT_EQ(16, buffer->width()); in TEST() 22 EXPECT_EQ(16, buffer->height()); in TEST() 24 const uint8_t* y_ptr = buffer->data(kYPlane); in TEST() 25 const uint8_t* u_ptr = buffer->data(kUPlane); in TEST() 26 const uint8_t* v_ptr = buffer->data(kVPlane); in TEST() 28 buffer = nullptr; in TEST() 30 buffer = pool.CreateBuffer(16, 16); in TEST() 31 EXPECT_EQ(y_ptr, buffer->data(kYPlane)); in TEST() 32 EXPECT_EQ(u_ptr, buffer->data(kUPlane)); in TEST() [all …]
|