/external/grub/stage2/ |
filesys.h | 26 int ffs_read (char *buf, int len); 36 int ufs2_read (char *buf, int len); 46 int fat_read (char *buf, int len); 55 int ext2fs_read (char *buf, int len); 64 int minix_read (char *buf, int len); 73 int reiserfs_read (char *buf, int len); 83 int vstafs_read (char *buf, int len); 92 int jfs_read (char *buf, int len); 102 int xfs_read (char *buf, int len); 111 int tftp_read (char *buf, int len); [all...] |
/external/opencore/baselibs/gen_data_structures/src/ |
mime_registry.h | 63 registerSDPParser(const char *n, const int len, SDP_ERROR_CODE(*p)(const char*, const int, SDPInfo *)) 67 if ((parserMIME[parserCount] = OSCL_ARRAY_NEW(char, (len + 1))) != NULL) 69 oscl_strncpy(parserMIME[parserCount], n, len); 70 parserMIME[parserCount][len] = '\0'; 87 registerSDPComposer(const char *n, const int len, SDP_ERROR_CODE(*p)(char*, mediaInfo *, int32 &, bool)) 91 if ((composerMIME[composerCount] = OSCL_ARRAY_NEW(char, len + 1)) != NULL) 93 oscl_strncpy(composerMIME[composerCount], n, len); 94 composerMIME[composerCount][len] = '\0'; 111 (*lookupSDPParser(char * n, int len))(const char*, const int, SDPInfo *) 116 if (!oscl_strncmp(parserMIME[ii], n, len)) [all...] |
/external/oprofile/libutil/ |
op_growable_buffer.c | 39 void add_data(struct growable_buffer * b, void const * data, size_t len) 42 b->size += len; 45 memcpy(b->p + old_size, data, len);
|
op_growable_buffer.h | 27 * when add_data() with a non zero len param will be called. 41 * @param len number of byte to add to the buffer 43 void add_data(struct growable_buffer * b, void const * data, size_t len);
|
op_string.c | 16 char * op_xstrndup(char const * s, size_t len) 18 return xmemdup(s, len, len + 1);
|
/external/skia/src/core/ |
SkTSearch.cpp | 70 size_t len, size_t elemSize) 74 SkAutoAsciiToLC tolc(target, len); 76 return SkStrSearch(base, count, tolc.lc(), len, elemSize); 87 SkAutoAsciiToLC::SkAutoAsciiToLC(const char str[], size_t len) 90 if ((long)len < 0) { 91 len = strlen(str); 93 fLength = len; 95 // assign lc to our preallocated storage if len is small enough, or allocate 98 if (len <= STORAGE) { 101 lc = (char*)sk_malloc_throw(len + 1) [all...] |
/hardware/libhardware_legacy/power/ |
power.c | 139 ssize_t len = write(g_fds[RELEASE_WAKE_LOCK], id, strlen(id)); 140 return len >= 0; 151 ssize_t len; local 152 len = sprintf(buf, "%d", ((int)(delay))); 153 len = write(fd, buf, len); 176 int len; local 178 len = sprintf(buf, on_state); 180 len = sprintf(buf, off_state); 181 len = write(g_fds[REQUEST_STATE], buf, len) [all...] |
/frameworks/base/core/jni/ |
android_util_EventLog.cpp | 77 jint len = strlen(str); local 78 const int max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline 79 if (len > max) len = max; 82 memcpy(&buf[1], &len, sizeof(len)); 83 memcpy(&buf[1 + sizeof(len)], str, len); 84 buf[1 + sizeof(len) + len] = '\n' 110 jint len = strlen(str); local 187 int len = read(fd, buf, sizeof(buf)); local 209 jsize len = sizeof(*entry) + entry->len; local [all...] |
/external/opencore/oscl/oscl/osclutil/src/ |
oscl_string_containers.cpp | 35 OSCL_EXPORT_REF void CHeapRep::set_rep(CHeapRep*& aRep, Oscl_DefAlloc& aAlloc, const char* cp, uint32 len) 40 && newrep->set(len, cp, aAlloc)) 54 OSCL_EXPORT_REF void CHeapRep::set_rep(CHeapRep*& aRep, Oscl_DefAlloc& aAlloc, const oscl_wchar* cp, uint32 len) 59 && newrep->set(len, cp, aAlloc)) 73 OSCL_EXPORT_REF void CHeapRep::append_rep(CHeapRep*& aRep, Oscl_DefAlloc& aAlloc, const char* cp, uint32 len) 78 && newrep->append((aRep) ? aRep->size : 0, (char*)((aRep) ? aRep->buffer : NULL), len, cp, aAlloc)) 92 OSCL_EXPORT_REF void CHeapRep::append_rep(CHeapRep*& aRep, Oscl_DefAlloc& aAlloc, const oscl_wchar* cp, uint32 len) 97 && newrep->append((aRep) ? aRep->size : 0, (oscl_wchar*)((aRep) ? aRep->buffer : NULL), len, cp, aAlloc)) 253 void OSCL_HeapStringA::set_rep(const chartype* cp, uint32 len) 256 CHeapRep::set_rep(iRep, *iAlloc, cp, len); 281 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 287 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 295 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 301 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 645 uint32 len = alen; local 657 uint32 len = alen; local 737 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 743 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 750 uint32 len = (cp) ? oscl_strlen(cp) : 0; local 756 uint32 len = (cp) ? oscl_strlen(cp) : 0; local [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
ReadWriteDirectByteBuffer.java | 127 public ByteBuffer put(byte[] src, int off, int len) { 129 if (off < 0 || len < 0 || (long) off + (long) len > length) { 132 if (len > remaining()) { 135 getBaseAddress().setByteArray(offset + position, src, off, len); 136 position += len; 151 * @param len 157 * <code>len</code> 159 * If either <code>off</code> or <code>len</code> is 164 ByteBuffer put(short[] src, int off, int len) { [all...] |
/external/bluetooth/bluez/sbc/ |
sbcinfo.c | 154 ssize_t len, pos = 0; local 157 len = read(fd, buf + pos, count); 158 if (len <= 0) 159 return len; 161 count -= len; 162 pos += len; 178 ssize_t len; local 192 len = __read(fd, &hdr, sizeof(hdr)); 193 if (len != sizeof(hdr) || hdr.syncword != 0x9c) { 219 len = __read(fd, buf, size) [all...] |
/external/bluetooth/glib/gio/tests/ |
memory-input-stream.c | 35 gsize bytes_read, pos, len, chunk_size; local 46 len = strlen (data1) + strlen (data2); 48 for (chunk_size = 1; chunk_size < len - 1; chunk_size++) 51 while (pos < len) 55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); 61 g_assert_cmpint (pos, ==, len);
|
/external/dropbear/ |
circbuffer.h | 43 unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */ 44 unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */ 46 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len); 47 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len); 48 void cbuf_incrwrite(circbuffer *cbuf, unsigned int len); 49 void cbuf_incrread(circbuffer *cbuf, unsigned int len);
|
/external/dropbear/libtomcrypt/src/modes/ecb/ |
ecb_decrypt.c | 24 @param len The number of octets to process (must be multiple of the cipher block size) 28 int ecb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_ECB *ecb) 37 if (len % cipher_descriptor[ecb->cipher].block_length) { 43 return cipher_descriptor[ecb->cipher].accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key); 45 while (len) { 51 len -= cipher_descriptor[ecb->cipher].block_length;
|
ecb_encrypt.c | 24 @param len The number of octets to process (must be multiple of the cipher block size) 28 int ecb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_ECB *ecb) 37 if (len % cipher_descriptor[ecb->cipher].block_length) { 43 return cipher_descriptor[ecb->cipher].accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key); 45 while (len) { 51 len -= cipher_descriptor[ecb->cipher].block_length;
|
/external/elfutils/libebl/ |
eblmachineflagname.c | 25 ebl_machine_flag_name (ebl, flags, buf, len) 29 size_t len; 46 if (cp + 1 >= buf + len) 55 snprintf (cp, buf + len - cp, "%#x", flags); 60 if ((size_t) (buf + len - cp) < machstrlen) 62 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0';
|
eblsegmenttypename.c | 24 ebl_segment_type_name (ebl, segment, buf, len) 28 size_t len; 32 res = ebl != NULL ? ebl->segment_type_name (segment, buf, len) : NULL; 64 snprintf (buf, len, "LOOS+%d", segment - PT_LOOS); 66 snprintf (buf, len, "LOPROC+%d", segment - PT_LOPROC); 68 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), segment);
|
eblsymboltypename.c | 24 ebl_symbol_type_name (ebl, symbol, buf, len) 28 size_t len; 32 res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL; 52 snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC); 54 snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS); 56 snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
|
/frameworks/base/libs/surfaceflinger_client/ |
LayerState.cpp | 27 size_t len = transparentRegion.write(NULL, 0); local 28 err = output.writeInt32(len); 31 void* buf = output.writeInplace(len); 34 err = transparentRegion.write(buf, len); 47 size_t len = input.readInt32(); local 48 void const* buf = input.readInplace(len);
|
/external/qemu/hw/ |
bt-l2cap.c | 51 const l2cap_hdr *hdr, int len); 142 static uint16_t l2cap_fcs16(const uint8_t *message, int len) 146 while (len --) 193 uint16_t len; local 196 len = cpu_to_le16(L2CAP_CMD_REJ_SIZE + plen); 205 memcpy(&hdr->len, &len, sizeof(hdr->len)); 238 hdr->len = cpu_to_le16(L2CAP_CONN_RSP_SIZE); 249 int dcid, int flag, const uint8_t *data, int len) 761 int len = 0; local 1063 uint16_t len = le16_to_cpu(frame->len); local [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/ |
BufferedAsymmetricBlockCipher.java | 101 * add len bytes to the buffer for processing. 105 * @param len the length of the block to be processed. 110 int len) 112 if (len == 0) 117 if (len < 0) 122 if (bufOff + len > buf.length) 127 System.arraycopy(in, inOff, buf, bufOff, len); 128 bufOff += len;
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/ |
MGF1BytesGenerator.java | 64 * fill len bytes of the output buffer with bytes generated from 72 int len) 75 if ((out.length - len) < outOff) 86 if (len > hLen) 98 while (++counter < (len / hLen)); 101 if ((counter * hLen) < len) 109 System.arraycopy(hashBuf, 0, out, outOff + counter * hLen, len - (counter * hLen)); 112 return len;
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/io/ |
DigestInputStream.java | 37 int len) 40 int n = in.read(b, off, len);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/ |
der_length_integer.c | 28 unsigned long z, len; local 45 z = len = leading_zero + mp_unsigned_bin_size(num); 53 len = z = z >> 3; 59 ++len; 62 ++len; 65 ++len; 71 ++len; 74 *outlen = len;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/object_identifier/ |
der_decode_object_identifier.c | 30 unsigned long x, y, t, len; local 54 len = in[x++]; 60 len = 0; 62 len = (len << 8) | (unsigned long)in[x++]; 66 if (len < 1 || (len + x) > inlen) { 73 while (len--) {
|