/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_parse.c | 21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument 24 id, len); in wps_set_vendor_ext_wfa_subelem() 27 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 29 "%u", len); in wps_set_vendor_ext_wfa_subelem() 36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem() 39 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 41 "Shareable length %u", len); in wps_set_vendor_ext_wfa_subelem() 47 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 49 "length %u", len); in wps_set_vendor_ext_wfa_subelem() 55 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() [all …]
|
/external/liblzf/ |
D | lzf_c.c | 163 unsigned int len = 2; in lzf_compress() local 164 unsigned int maxlen = in_end - ip - len; in lzf_compress() 178 len++; if (ref [len] != ip [len]) break; in lzf_compress() 179 len++; if (ref [len] != ip [len]) break; in lzf_compress() 180 len++; if (ref [len] != ip [len]) break; in lzf_compress() 181 len++; if (ref [len] != ip [len]) break; in lzf_compress() 183 len++; if (ref [len] != ip [len]) break; in lzf_compress() 184 len++; if (ref [len] != ip [len]) break; in lzf_compress() 185 len++; if (ref [len] != ip [len]) break; in lzf_compress() 186 len++; if (ref [len] != ip [len]) break; in lzf_compress() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | ByteArrayBuffer.java | 51 private int len; field in ByteArrayBuffer 63 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 67 public void append(final byte[] b, int off, int len) { in append() argument 71 if ((off < 0) || (off > b.length) || (len < 0) || in append() 72 ((off + len) < 0) || ((off + len) > b.length)) { in append() 75 if (len == 0) { in append() 78 int newlen = this.len + len; in append() 82 System.arraycopy(b, off, this.buffer, this.len, len); in append() 83 this.len = newlen; in append() 87 int newlen = this.len + 1; in append() [all …]
|
D | CharArrayBuffer.java | 53 private int len; field in CharArrayBuffer 65 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 69 public void append(final char[] b, int off, int len) { in append() argument 73 if ((off < 0) || (off > b.length) || (len < 0) || in append() 74 ((off + len) < 0) || ((off + len) > b.length)) { in append() 77 if (len == 0) { in append() 80 int newlen = this.len + len; in append() 84 System.arraycopy(b, off, this.buffer, this.len, len); in append() 85 this.len = newlen; in append() 93 int newlen = this.len + strlen; in append() [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | strbuf.c | 22 sb->alloc = sb->len = 0; in strbuf_init() 40 *sz = sb->len; in strbuf_detach() 47 if (sb->len + extra + 1 <= sb->len) in strbuf_grow() 51 ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc); in strbuf_grow() 54 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice() argument 57 if (pos + len < pos) in strbuf_splice() 59 if (pos > sb->len) in strbuf_splice() 61 if (pos + len > sb->len) in strbuf_splice() 64 if (dlen >= len) in strbuf_splice() 65 strbuf_grow(sb, dlen - len); in strbuf_splice() [all …]
|
D | path.c | 31 size_t len = (ret >= size) ? size - 1 : ret; in strlcpy() local 32 memcpy(dest, src, len); in strlcpy() 33 dest[len] = '\0'; in strlcpy() 61 size_t len; in perf_vsnpath() local 63 len = strlen(perf_dir); in perf_vsnpath() 64 if (n < len + 1) in perf_vsnpath() 66 memcpy(buf, perf_dir, len); in perf_vsnpath() 67 if (len && !is_dir_sep(perf_dir[len-1])) in perf_vsnpath() 68 buf[len++] = '/'; in perf_vsnpath() 69 len += vsnprintf(buf + len, n - len, fmt, args); in perf_vsnpath() [all …]
|
/external/libopus/src/ |
D | repacketizer.c | 61 …tizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len, int self_delimited) in opus_repacketizer_cat_impl() argument 66 if (len<1) return OPUS_INVALID_PACKET; in opus_repacketizer_cat_impl() 76 curr_nb_frames = opus_packet_get_nb_frames(data, len); in opus_repacketizer_cat_impl() 85 …ret=opus_packet_parse_impl(data, len, self_delimited, &tmp_toc, &rp->frames[rp->nb_frames], &rp->l… in opus_repacketizer_cat_impl() 92 int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) in opus_repacketizer_cat() argument 94 return opus_repacketizer_cat_impl(rp, data, len, 0); in opus_repacketizer_cat() 107 opus_int16 *len; in opus_repacketizer_out_range_impl() local 118 len = rp->len+begin; in opus_repacketizer_out_range_impl() 121 tot_size = 1 + (len[count-1]>=252); in opus_repacketizer_out_range_impl() 129 tot_size += len[0]+1; in opus_repacketizer_out_range_impl() [all …]
|
/external/chromium_org/third_party/opus/src/src/ |
D | repacketizer.c | 61 …tizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len, int self_delimited) in opus_repacketizer_cat_impl() argument 66 if (len<1) return OPUS_INVALID_PACKET; in opus_repacketizer_cat_impl() 76 curr_nb_frames = opus_packet_get_nb_frames(data, len); in opus_repacketizer_cat_impl() 85 …ret=opus_packet_parse_impl(data, len, self_delimited, &tmp_toc, &rp->frames[rp->nb_frames], &rp->l… in opus_repacketizer_cat_impl() 92 int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) in opus_repacketizer_cat() argument 94 return opus_repacketizer_cat_impl(rp, data, len, 0); in opus_repacketizer_cat() 107 opus_int16 *len; in opus_repacketizer_out_range_impl() local 118 len = rp->len+begin; in opus_repacketizer_out_range_impl() 121 tot_size = 1 + (len[count-1]>=252); in opus_repacketizer_out_range_impl() 129 tot_size += len[0]+1; in opus_repacketizer_out_range_impl() [all …]
|
/external/chromium_org/third_party/smhasher/src/ |
D | Hashes.h | 12 void sumhash ( const void * key, int len, uint32_t seed, void * out ); 13 void sumhash32 ( const void * key, int len, uint32_t seed, void * out ); 15 void DoNothingHash ( const void * key, int len, uint32_t seed, void * out ); 16 void crc32 ( const void * key, int len, uint32_t seed, void * out ); 18 void randhash_32 ( const void * key, int len, uint32_t seed, void * out ); 19 void randhash_64 ( const void * key, int len, uint32_t seed, void * out ); 20 void randhash_128 ( const void * key, int len, uint32_t seed, void * out ); 25 void md5_32 ( const void * key, int len, uint32_t seed, void * out ); 26 void sha1_32a ( const void * key, int len, uint32_t seed, void * out ); 31 void FNV ( const void * key, int len, uint32_t seed, void * out ); [all …]
|
D | Bitvec.h | 9 void printbits ( const void * blob, int len ); 10 void printhex32 ( const void * blob, int len ); 11 void printbytes ( const void * blob, int len ); 12 void printbytes2 ( const void * blob, int len ); 17 uint32_t getbit ( const void * blob, int len, uint32_t bit ); 18 uint32_t getbit_wrap ( const void * blob, int len, uint32_t bit ); 20 void setbit ( void * blob, int len, uint32_t bit ); 21 void setbit ( void * blob, int len, uint32_t bit, uint32_t val ); 23 void clearbit ( void * blob, int len, uint32_t bit ); 25 void flipbit ( void * blob, int len, uint32_t bit ); [all …]
|
D | City.cpp | 120 static uint64 HashLen0to16(const char *s, size_t len) { in HashLen0to16() argument 121 if (len > 8) { in HashLen0to16() 123 uint64 b = Fetch64(s + len - 8); in HashLen0to16() 124 return HashLen16(a, RotateByAtLeast1(b + len, len)) ^ b; in HashLen0to16() 126 if (len >= 4) { in HashLen0to16() 128 return HashLen16(len + (a << 3), Fetch32(s + len - 4)); in HashLen0to16() 130 if (len > 0) { in HashLen0to16() 132 uint8 b = s[len >> 1]; in HashLen0to16() 133 uint8 c = s[len - 1]; in HashLen0to16() 135 uint32 z = len + (static_cast<uint32>(c) << 2); in HashLen0to16() [all …]
|
/external/harfbuzz_ng/test/api/ |
D | test-blob.c | 49 unsigned int len; in test_blob_empty() local 60 len = hb_blob_get_length (blob); in test_blob_empty() 61 g_assert_cmpint (len, ==, 0); in test_blob_empty() 66 data = hb_blob_get_data (blob, &len); in test_blob_empty() 68 g_assert_cmpint (len, ==, 0); in test_blob_empty() 73 data_writable = hb_blob_get_data_writable (blob, &len); in test_blob_empty() 75 g_assert_cmpint (len, ==, 0); in test_blob_empty() 94 unsigned int len; member 144 unsigned int len; in fixture_init() local 152 len = sizeof (test_data); in fixture_init() [all …]
|
/external/qemu/distrib/ext4_utils/src/ |
D | indirect.c | 42 u32 len; in create_backing() local 45 len = min(region_len * info.block_size, backing_len); in create_backing() 47 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block); in create_backing() 48 ptr += len; in create_backing() 49 backing_len -= len; in create_backing() 55 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() argument 62 if (advance_blocks(alloc, len)) { in reserve_indirect_block() 63 error("failed to advance %d blocks", len); in reserve_indirect_block() 68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() argument 75 while (len > 0) { in reserve_dindirect_block() [all …]
|
/external/valgrind/main/none/tests/s390x/ |
D | cksm.c | 11 uint64_t len; member 19 cksm_by_insn(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_insn() argument 22 uint64_t init_length = len; in cksm_by_insn() 27 register uint64_t reg3 asm("3") = len; in cksm_by_insn() 36 len = reg3; in cksm_by_insn() 43 if(len != 0) in cksm_by_insn() 50 result.len = len; in cksm_by_insn() 60 cksm_by_hand(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_hand() argument 67 for (n=0; n < len/4; n++) { in cksm_by_hand() 79 if (len != 0) { in cksm_by_hand() [all …]
|
/external/tcpdump/ |
D | print-gre.c | 94 u_int len = length, vers; in gre_print() local 96 if (len < 2) { in gre_print() 105 gre_print_0(bp, len); in gre_print() 108 gre_print_1(bp, len); in gre_print() 121 u_int len = length; in gre_print_0() local 129 len -= 2; in gre_print_0() 132 if (len < 2) in gre_print_0() 135 len -= 2; in gre_print_0() 139 if (len < 2) in gre_print_0() 144 len -= 2; in gre_print_0() [all …]
|
/external/fio/ |
D | log.c | 12 size_t len; in log_valist() local 14 len = vsnprintf(buffer, sizeof(buffer), str, args); in log_valist() 15 len = min(len, sizeof(buffer) - 1); in log_valist() 18 len = fio_server_text_output(FIO_LOG_INFO, buffer, len); in log_valist() 22 len = fwrite(buffer, len, 1, f_out); in log_valist() 24 return len; in log_valist() 27 int log_local_buf(const char *buf, size_t len) in log_local_buf() argument 32 len = fwrite(buf, len, 1, f_out); in log_local_buf() 34 return len; in log_local_buf() 41 size_t len; in log_info() local [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/lib/traceevent/ |
D | trace-seq.c | 45 s->len = 0; in trace_seq_init() 60 s->len = 0; in trace_seq_reset() 105 int len; in trace_seq_printf() local 111 len = (s->buffer_size - 1) - s->len; in trace_seq_printf() 114 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf() 117 if (ret >= len) { in trace_seq_printf() 122 s->len += ret; in trace_seq_printf() 141 int len; in trace_seq_vprintf() local 147 len = (s->buffer_size - 1) - s->len; in trace_seq_vprintf() 149 ret = vsnprintf(s->buffer + s->len, len, fmt, args); in trace_seq_vprintf() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
D | rtputils.cc | 89 bool GetRtpFlags(const void* data, size_t len, int* value) { in GetRtpFlags() argument 90 if (len < kMinRtpPacketLen) { in GetRtpFlags() 96 bool GetRtpPayloadType(const void* data, size_t len, int* value) { in GetRtpPayloadType() argument 97 if (len < kMinRtpPacketLen) { in GetRtpPayloadType() 107 bool GetRtpSeqNum(const void* data, size_t len, int* value) { in GetRtpSeqNum() argument 108 if (len < kMinRtpPacketLen) { in GetRtpSeqNum() 114 bool GetRtpTimestamp(const void* data, size_t len, uint32* value) { in GetRtpTimestamp() argument 115 if (len < kMinRtpPacketLen) { in GetRtpTimestamp() 121 bool GetRtpSsrc(const void* data, size_t len, uint32* value) { in GetRtpSsrc() argument 122 if (len < kMinRtpPacketLen) { in GetRtpSsrc() [all …]
|
/external/expat/tests/ |
D | chardata.c | 26 int len = 0; in xmlstrlen() local 28 while (s[len] != 0) in xmlstrlen() 29 ++len; in xmlstrlen() 30 return len; in xmlstrlen() 45 int len; in CharData_AppendString() local 48 len = strlen(s); in CharData_AppendString() 51 if ((len + storage->count) > maxchars) { in CharData_AppendString() 52 len = (maxchars - storage->count); in CharData_AppendString() 54 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString() 55 memcpy(storage->data + storage->count, s, len); in CharData_AppendString() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkMiniData.cpp | 18 size_t len; member 21 static uint64_t Create(const void* data, size_t len) { in Create() 22 SkASSERT(len > 7); in Create() 23 LongData* s = (LongData*)sk_malloc_throw(sizeof(size_t) + len); in Create() 24 s->len = len; in Create() 25 memcpy(s->data, data, len); in Create() 37 uint8_t len; member 41 uint8_t len; 44 static uint64_t Create(const void* data, size_t len) { in Create() 45 SkASSERT(len <= 7); in Create() [all …]
|
/external/openssl/crypto/buffer/ |
D | buffer.c | 97 int BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow() argument 102 if (str->length >= len) in BUF_MEM_grow() 104 str->length=len; in BUF_MEM_grow() 105 return(len); in BUF_MEM_grow() 107 if (str->max >= len) in BUF_MEM_grow() 109 memset(&str->data[str->length],0,len-str->length); in BUF_MEM_grow() 110 str->length=len; in BUF_MEM_grow() 111 return(len); in BUF_MEM_grow() 114 if (len > LIMIT_BEFORE_EXPANSION) in BUF_MEM_grow() 119 n=(len+3)/3*4; in BUF_MEM_grow() [all …]
|
/external/chromium_org/third_party/icu/source/common/ |
D | charstr.cpp | 23 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom() 24 len=s.len; in copyFrom() 25 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); in copyFrom() 34 if(newLength<len) { in truncate() 35 buffer[len=newLength]=0; in truncate() 41 if(ensureCapacity(len+2, 0, errorCode)) { in append() 42 buffer[len++]=c; in append() 43 buffer[len]=0; in append() 60 if(s==(buffer.getAlias()+len)) { in append() 62 if(sLength>=(buffer.getCapacity()-len)) { in append() [all …]
|
/external/icu/icu4c/source/common/ |
D | charstr.cpp | 23 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom() 24 len=s.len; in copyFrom() 25 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); in copyFrom() 34 if(newLength<len) { in truncate() 35 buffer[len=newLength]=0; in truncate() 41 if(ensureCapacity(len+2, 0, errorCode)) { in append() 42 buffer[len++]=c; in append() 43 buffer[len]=0; in append() 60 if(s==(buffer.getAlias()+len)) { in append() 62 if(sLength>=(buffer.getCapacity()-len)) { in append() [all …]
|
/external/libxml2/ |
D | xmlstring.c | 41 xmlStrndup(const xmlChar *cur, int len) { in xmlStrndup() argument 44 if ((cur == NULL) || (len < 0)) return(NULL); in xmlStrndup() 45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlStrndup() 50 memcpy(ret, cur, len * sizeof(xmlChar)); in xmlStrndup() 51 ret[len] = 0; in xmlStrndup() 85 xmlCharStrndup(const char *cur, int len) { in xmlCharStrndup() argument 89 if ((cur == NULL) || (len < 0)) return(NULL); in xmlCharStrndup() 90 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlCharStrndup() 95 for (i = 0;i < len;i++) { in xmlCharStrndup() 99 ret[len] = 0; in xmlCharStrndup() [all …]
|
/external/chromium_org/third_party/libxml/src/ |
D | xmlstring.c | 41 xmlStrndup(const xmlChar *cur, int len) { in xmlStrndup() argument 44 if ((cur == NULL) || (len < 0)) return(NULL); in xmlStrndup() 45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlStrndup() 50 memcpy(ret, cur, len * sizeof(xmlChar)); in xmlStrndup() 51 ret[len] = 0; in xmlStrndup() 85 xmlCharStrndup(const char *cur, int len) { in xmlCharStrndup() argument 89 if ((cur == NULL) || (len < 0)) return(NULL); in xmlCharStrndup() 90 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlCharStrndup() 95 for (i = 0;i < len;i++) { in xmlCharStrndup() 99 ret[len] = 0; in xmlCharStrndup() [all …]
|