/external/elfutils/0.153/libelf/ |
note_xlate.h | 51 elf_cvt_note (void *dest, const void *src, size_t len, int encode) 55 while (len >= sizeof (Elf32_Nhdr)) 63 len -= sizeof *n; 67 if (namesz > len) 69 len -= namesz; 70 if (descsz > len) 72 len -= descsz;
|
/external/webrtc/src/common_audio/signal_processing/ |
resample_by_2_internal.h | 26 void WebRtcSpl_DownBy2IntToShort(WebRtc_Word32 *in, WebRtc_Word32 len, WebRtc_Word16 *out, 29 void WebRtcSpl_DownBy2ShortToInt(const WebRtc_Word16 *in, WebRtc_Word32 len, 32 void WebRtcSpl_UpBy2ShortToInt(const WebRtc_Word16 *in, WebRtc_Word32 len, 35 void WebRtcSpl_UpBy2IntToInt(const WebRtc_Word32 *in, WebRtc_Word32 len, WebRtc_Word32 *out, 38 void WebRtcSpl_UpBy2IntToShort(const WebRtc_Word32 *in, WebRtc_Word32 len, 41 void WebRtcSpl_LPBy2ShortToInt(const WebRtc_Word16* in, WebRtc_Word32 len, 44 void WebRtcSpl_LPBy2IntToInt(const WebRtc_Word32* in, WebRtc_Word32 len, WebRtc_Word32* out,
|
/external/wpa_supplicant_8/src/tls/ |
asn1.c | 16 .len = 6 21 .len = 9 25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) 32 end = buf + len; 90 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) 99 end = buf + len; 111 if (oid->len >= ASN1_MAX_OID_LEN) { 115 if (oid->len == 0) { 125 oid->len = 2; 127 oid->oid[oid->len++] = val [all...] |
/external/zlib/src/contrib/infback9/ |
inftree9.c | 40 unsigned len; /* a code's length in bits */ local 109 for (len = 0; len <= MAXBITS; len++) 110 count[len] = 0; 126 for (len = 1; len <= MAXBITS; len++) { 128 left -= count[len]; 136 for (len = 1; len < MAXBITS; len++ [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
stream.c | 40 int len; local 41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len); 42 pMemOP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, len); 43 stream->set_len -= len; 44 stream->set_ptr += len; 45 stream->framebuffer_len = stream->frame_storelen + len; 47 stream->used_len += len;
|
/frameworks/wilhelm/tools/mphtogen/ |
mphtogen.c | 31 unsigned len = 0; local 33 if (len > 0) { 35 ++len; 37 if (len > 78) { 39 len = 0; 42 len += 3; 44 if (len > 0) {
|
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleInputStream.java | 20 public int len; field in class:Support_ASimpleInputStream 37 len = buf.length; 42 len = input.length; 43 buf = new byte[len]; 44 System.arraycopy(input, 0, buf, 0, len); 59 return len - pos; 67 if (pos < len) {
|
/external/qemu/distrib/ext4_utils/src/ |
indirect.c | 42 u32 len; local 45 len = min(region_len * info.block_size, backing_len); 47 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block); 48 ptr += len; 49 backing_len -= len; 55 static void reserve_indirect_block(struct block_allocation *alloc, int len) 62 if (advance_blocks(alloc, len)) { 63 error("failed to advance %d blocks", len); 68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) 75 while (len > 0) 169 int len = min(*block_len, EXT4_NDIR_BLOCKS); local 192 int len = min(*block_len, aux_info.blocks_per_ind); local 224 int len = min(*block_len, aux_info.blocks_per_dind); local 256 int len = min(*block_len, aux_info.blocks_per_tind); local [all...] |
/system/extras/ext4_utils/ |
indirect.c | 42 u32 len; local 45 len = min(region_len * info.block_size, backing_len); 47 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block); 48 ptr += len; 49 backing_len -= len; 55 static void reserve_indirect_block(struct block_allocation *alloc, int len) 62 if (advance_blocks(alloc, len)) { 63 error("failed to advance %d blocks", len); 68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) 75 while (len > 0) 169 int len = min(*block_len, EXT4_NDIR_BLOCKS); local 192 int len = min(*block_len, aux_info.blocks_per_ind); local 224 int len = min(*block_len, aux_info.blocks_per_dind); local 256 int len = min(*block_len, aux_info.blocks_per_tind); local [all...] |
/external/elfutils/0.153/libebl/ |
eblstrtab.c | 75 size_t len; member in struct:Ebl_Strent 128 ret->null.len = 1; 138 morememory (struct Ebl_Strtab *st, size_t len) 141 len += overhead + MALLOC_OVERHEAD; 143 /* Allocate nearest multiple of pagesize >= len. */ 144 len = ((len / ps) + (len % ps != 0)) * ps - MALLOC_OVERHEAD; 146 struct memoryblock *newmem = (struct memoryblock *) malloc (len); 153 st->left = len - overhead [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
state_construct.c | 32 int16_t len /* (i) length of a state vector */ 57 tmp2 = &idxVec[len-1]; 60 for(k=0; k<len; k++){ 68 for(k=0; k<len; k++){ 76 for(k=0; k<len; k++){ 86 WebRtcSpl_MemSetW16(&sampleVal[len], 0, len); 96 numerator, LPC_FILTERORDER+1, (int16_t)(len + LPC_FILTERORDER)); 97 WebRtcSpl_MemSetW16(&sampleMa[len + LPC_FILTERORDER], 0, (len - LPC_FILTERORDER)) [all...] |
/external/iproute2/lib/ |
dnet_ntop.c | 19 static __inline__ int do_digit(char *str, u_int16_t *addr, u_int16_t scale, size_t *pos, size_t len, int *started) 23 if (*pos == len) 37 static const char *dnet_ntop1(const struct dn_naddr *dna, char *str, size_t len) 52 if (len == 0) 55 if (do_digit(str + pos, &area, 10, &pos, len, &started)) 58 if (do_digit(str + pos, &area, 1, &pos, len, &started)) 61 if (pos == len) 68 if (do_digit(str + pos, &addr, 1000, &pos, len, &started)) 71 if (do_digit(str + pos, &addr, 100, &pos, len, &started)) 74 if (do_digit(str + pos, &addr, 10, &pos, len, &started) [all...] |
/prebuilts/misc/common/swig/include/2.0.11/go/ |
cdata.i | 10 int len; 16 $result.data = (char*)_swig_goallocate($1.len); 17 memcpy($result.data, $1.data, $1.len); 18 $result.len = (int)$1.len; 38 d.len = nelements*sizeof(TYPE); 40 d.len = nelements;
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
PacketReflector.java | 64 private static void swapBytes(byte[] buf, int pos1, int pos2, int len) { 65 for (int i = 0; i < len; i++) { 91 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { 92 if (len < hdrLen + TCP_HEADER_LENGTH) { 100 writePacket(buf, len); 105 private void processUdpPacket(byte[] buf, int version, int len, int hdrLen) { 106 if (len < hdrLen + UDP_HEADER_LENGTH) { 118 writePacket(buf, len); 121 private void processIcmpPacket(byte[] buf, int version, int len, int hdrLen) { 122 if (len < hdrLen + ICMP_HEADER_LENGTH) 175 int len; local 187 int len = readPacket(mBuf); local [all...] |
/external/chromium_org/third_party/smhasher/src/ |
Hashes.cpp | 15 void BadHash ( const void * key, int len, uint32_t seed, void * out ) 21 for(int i = 0; i < len; i++) 31 void sumhash ( const void * key, int len, uint32_t seed, void * out ) 37 for(int i = 0; i < len; i++) 45 void sumhash32 ( const void * key, int len, uint32_t seed, void * out ) 51 for(int i = 0; i < len/4; i++) 66 uint32_t MurmurOAAT ( const void * key, int len, uint32_t seed ) 72 for(int i = 0; i < len; i++) 82 void MurmurOAAT_test ( const void * key, int len, uint32_t seed, void * out ) 84 *(uint32_t*)out = MurmurOAAT(key,len,seed) [all...] |
/external/chromium_org/third_party/speex/libspeex/ |
buffer.c | 68 EXPORT int speex_buffer_write(SpeexBuffer *st, void *_data, int len) 73 if (len > st->size) 75 data += len-st->size; 76 len = st->size; 78 end = st->write_ptr + len; 88 st->available += len; 94 st->write_ptr += len; 97 return len; 100 EXPORT int speex_buffer_writezeros(SpeexBuffer *st, int len) 106 if (len > st->size [all...] |
/external/speex/libspeex/ |
buffer.c | 68 EXPORT int speex_buffer_write(SpeexBuffer *st, void *_data, int len) 73 if (len > st->size) 75 data += len-st->size; 76 len = st->size; 78 end = st->write_ptr + len; 88 st->available += len; 94 st->write_ptr += len; 97 return len; 100 EXPORT int speex_buffer_writezeros(SpeexBuffer *st, int len) 106 if (len > st->size [all...] |
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
rtputils.cc | 89 bool GetRtpFlags(const void* data, size_t len, int* value) { 90 if (len < kMinRtpPacketLen) { 96 bool GetRtpPayloadType(const void* data, size_t len, int* value) { 97 if (len < kMinRtpPacketLen) { 107 bool GetRtpSeqNum(const void* data, size_t len, int* value) { 108 if (len < kMinRtpPacketLen) { 114 bool GetRtpTimestamp(const void* data, size_t len, uint32* value) { 115 if (len < kMinRtpPacketLen) { 121 bool GetRtpSsrc(const void* data, size_t len, uint32* value) { 122 if (len < kMinRtpPacketLen) [all...] |
/external/openssl/crypto/bio/ |
b_dump.c | 71 int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), 72 void *u, const char *s, int len) 74 return BIO_dump_indent_cb(cb, u, s, len, 0); 77 int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), 78 void *u, const char *s, int len, int indent) 89 for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--) 103 rows=(len/dump_width) [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
fifo_char.cc | 35 bool FIFOChar::Resize(size_t len) { 37 if (len < avail_) 41 buffer_ = (char*)realloc(buffer_, len); 45 size_ = len; 57 size_t FIFOChar::Peek(void* buf, size_t len) { 61 len = std::min(len, avail_); 64 while (len > 0) { 65 size_t read_len = std::min(len, size_ - offs); 75 len -= read_len [all...] |
/external/smack/src/org/xbill/DNS/ |
DNSInput.java | 58 * @param len The number of bytes in the active region. 63 setActive(int len) { 64 if (len > array.length - pos) { 68 end = pos + len; 188 * @param len The number of bytes to copy. 192 readByteArray(byte [] b, int off, int len) throws WireParseException { 193 require(len); 194 System.arraycopy(array, pos, b, off, len); 195 pos += len; 204 readByteArray(int len) throws WireParseException 219 int len = remaining(); local 235 int len = array[pos++] & 0xFF; local [all...] |
/external/tcpdump/ |
print-bootp.c | 370 register u_int len; local 404 len = 0; 408 len = *bp++; 411 printf("\n\t %s Option %u, length %u%s", cp, tag, len, 412 len > 0 ? ": " : ""); 424 if (!TTEST2(*bp, len)) { 425 printf("[|rfc1048 %u]", len); 429 if (tag == TAG_DHCP_MESSAGE && len == 1) { 437 while (len-- > 0) { 452 while (len > 1) [all...] |
/bionic/libc/kernel/uapi/linux/netfilter/ |
nfnetlink_compat.h | 39 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) 40 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <= (len)) 42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) 44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) 49 #define NFA_NEST_END(skb, start) ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); (skb)->len; }) [all...] |
/development/ndk/platforms/android-L/include/linux/netfilter/ |
nfnetlink_compat.h | 39 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) 40 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <= (len)) 42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) 44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) 49 #define NFA_NEST_END(skb, start) ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); (skb)->len; }) [all...] |
/device/generic/goldfish/opengl/host/include/libOpenglRender/ |
IOStream.h | 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0; 37 virtual int writeFully(const void* buf, size_t len) = 0; 44 unsigned char *alloc(size_t len) { 46 if (m_buf && len > m_free) { 53 if (!m_buf || len > m_bufsize) { 54 int allocLen = m_bufsize < len ? len : m_bufsize; 66 m_free -= len; 81 const unsigned char *readback(void *buf, size_t len) { 83 return readFully(buf, len); [all...] |