/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_arrays.py | 17 alen = len(init) 18 int_array = ARRAY(fmt, alen) 22 self.assertEqual(len(ia), alen) 30 new_values = range(42, 42+alen) 31 [setitem(ia, n, new_values[n]) for n in range(alen)] 41 self.assertRaises(IndexError, int_array, *range(alen*2)) 69 alen = 5 71 numarray = ARRAY(c_int, alen) 74 values = [na[i] for i in range(alen)] 75 self.assertEqual(values, [0] * alen) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
test_arrays.py | 17 alen = len(init) 18 int_array = ARRAY(fmt, alen) 22 self.assertEqual(len(ia), alen) 30 new_values = range(42, 42+alen) 31 [setitem(ia, n, new_values[n]) for n in range(alen)] 41 self.assertRaises(IndexError, int_array, *range(alen*2)) 69 alen = 5 71 numarray = ARRAY(c_int, alen) 74 values = [na[i] for i in range(alen)] 75 self.assertEqual(values, [0] * alen) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_arrays.py | 17 alen = len(init) 18 int_array = ARRAY(fmt, alen) 22 self.assertEqual(len(ia), alen) 30 new_values = range(42, 42+alen) 31 [setitem(ia, n, new_values[n]) for n in range(alen)] 41 self.assertRaises(IndexError, int_array, *range(alen*2)) 69 alen = 5 71 numarray = ARRAY(c_int, alen) 74 values = [na[i] for i in range(alen)] 75 self.assertEqual(values, [0] * alen) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_arrays.py | 17 alen = len(init) 18 int_array = ARRAY(fmt, alen) 22 self.assertEqual(len(ia), alen) 30 new_values = range(42, 42+alen) 31 [setitem(ia, n, new_values[n]) for n in range(alen)] 41 self.assertRaises(IndexError, int_array, *range(alen*2)) 69 alen = 5 71 numarray = ARRAY(c_int, alen) 74 values = [na[i] for i in range(alen)] 75 self.assertEqual(values, [0] * alen) [all...] |
/external/python/cpython2/Lib/ctypes/test/ |
test_arrays.py | 19 alen = len(init) 20 int_array = ARRAY(fmt, alen) 24 self.assertEqual(len(ia), alen) 27 values = [ia[i] for i in range(alen)] 31 with self.assertRaises(IndexError): ia[alen] 32 with self.assertRaises(IndexError): ia[-alen-1] 36 new_values = range(42, 42+alen) 37 [setitem(ia, n, new_values[n]) for n in range(alen)] 38 values = [ia[i] for i in range(alen)] 43 values = [ia[i] for i in range(alen)] [all...] |
/external/syslinux/com32/libupload/ |
upload_srec.c | 12 static int write_srecord(unsigned int len, unsigned int alen, 21 switch (alen) { 32 csum = (len+alen+1) + addr + (addr >> 8) + (addr >> 16) + (addr >> 24); 37 p += sprintf(p, "S%c%02X%0*X", type, len+alen+1, alen*2, addr);
|
/external/mesa3d/src/glx/ |
packsingle.h | 121 #define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ 123 GLint slop = alen*__GLX_SIZE_INT8 & 3; \ 124 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ 128 #define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ 130 GLint slop = alen*__GLX_SIZE_INT8 & 3; \ 131 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ 136 #define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ 138 GLint slop = (alen*__GLX_SIZE_INT16) & 3; \ 139 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16); \ 143 #define __GLX_SINGLE_GET_LONG_ARRAY(a,alen) \ [all...] |
packrender.h | 187 #define __GLX_PUT_CHAR_ARRAY(offset,a,alen) \ 188 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT8) 190 #define __GLX_PUT_SHORT_ARRAY(offset,a,alen) \ 191 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT16) 193 #define __GLX_PUT_LONG_ARRAY(offset,a,alen) \ 194 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT32) 196 #define __GLX_PUT_FLOAT_ARRAY(offset,a,alen) \ 197 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT32) 199 #define __GLX_PUT_DOUBLE_ARRAY(offset,a,alen) \ 200 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT64 [all...] |
/external/strace/tests/ |
sendfile.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { 97 sv[1], reg_in, (unsigned long) p_off, alen); 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) 101 == (long) alen); [all...] |
sendfile64.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) 95 == (long) alen); 97 sv[1], reg_in, alen, alen, alen); [all...] |
/external/strace/tests-m32/ |
sendfile.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { 97 sv[1], reg_in, (unsigned long) p_off, alen); 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) 101 == (long) alen); [all...] |
sendfile64.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) 95 == (long) alen); 97 sv[1], reg_in, alen, alen, alen); [all...] |
/external/strace/tests-mx32/ |
sendfile.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { 97 sv[1], reg_in, (unsigned long) p_off, alen); 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) 101 == (long) alen); [all...] |
sendfile64.c | 71 const unsigned int alen = file_size - blen; local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) 90 == (long) alen); 92 sv[1], reg_in, alen, alen); 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) 95 == (long) alen); 97 sv[1], reg_in, alen, alen, alen); [all...] |
/external/c-ares/ |
ares_expand_name.c | 39 int alen); 42 * containing message is given by abuf and alen. The result given by 66 int alen, char **s, long *enclen) 76 nlen.sig = name_length(encoded, abuf, alen); 144 int alen) 148 /* Allow the caller to pass us abuf + alen and have us check for it. */ 149 if (encoded == abuf + alen) 157 if (encoded + 1 >= abuf + alen) 160 if (offset >= alen) 167 if (++indir > alen) [all...] |
ares_parse_mx_reply.c | 49 ares_parse_mx_reply (const unsigned char *abuf, int alen, 65 if (alen < HFIXEDSZ) 78 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); 82 if (aptr + len + QFIXEDSZ > abuf + alen) 93 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); 99 if (aptr + RRFIXEDSZ > abuf + alen) 140 status = ares_expand_name (vptr, abuf, alen, &mx_curr->host, &len);
|
ares_parse_srv_reply.c | 54 ares_parse_srv_reply (const unsigned char *abuf, int alen, 70 if (alen < HFIXEDSZ) 83 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); 87 if (aptr + len + QFIXEDSZ > abuf + alen) 98 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); 104 if (aptr + RRFIXEDSZ > abuf + alen) 149 status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len);
|
ares_parse_a_reply.c | 54 int ares_parse_a_reply(const unsigned char *abuf, int alen, 77 if (alen < HFIXEDSZ) 88 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); 91 if (aptr + len + QFIXEDSZ > abuf + alen) 129 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); 133 if (aptr + RRFIXEDSZ > abuf + alen) 151 if (aptr + sizeof(struct in_addr) > abuf + alen) 162 if (aptr + sizeof(struct in_addr) > abuf + alen) 185 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, 200 if (aptr > abuf + alen) [all...] |
ares_parse_aaaa_reply.c | 56 int ares_parse_aaaa_reply(const unsigned char *abuf, int alen, 79 if (alen < HFIXEDSZ) 90 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); 93 if (aptr + len + QFIXEDSZ > abuf + alen) 129 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); 133 if (aptr + RRFIXEDSZ > abuf + alen) 151 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) 162 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) 185 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, 200 if (aptr > abuf + alen) [all...] |
ares_expand_string.c | 43 int alen, 53 if (encoded == abuf+alen) 57 if (encoded+elen.sig+1 > abuf+alen)
|
ares_parse_ptr_reply.c | 47 int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, 64 if (alen < HFIXEDSZ) 75 status = ares__expand_name_for_response(aptr, abuf, alen, &ptrname, &len); 78 if (aptr + len + QFIXEDSZ > abuf + alen) 96 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); 100 if (aptr + RRFIXEDSZ > abuf + alen) 115 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, 150 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, 163 if (aptr > abuf + alen)
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_sim_common.c | 501 size_t alen, plen, i, list_len; local 528 alen = pos[1] * 4 - 2; 530 apos, alen); 536 alen -= 2; 537 if ((!aka && (alen % GSM_RAND_LEN)) || 538 (aka && alen != EAP_AKA_RAND_LEN)) { 541 (unsigned long) alen); 545 attr->num_chal = alen / GSM_RAND_LEN; 555 alen -= 2; 556 if (alen != EAP_AKA_AUTN_LEN) [all...] |
/external/syslinux/com32/lib/syslinux/ |
floadfile.c | 50 size_t alen, clen, rlen, xlen; local 52 clen = alen = 0; 61 clen = alen = prefix_len; 70 alen += INCREMENTAL_CHUNK; 71 dp = realloc(data, alen); 76 rlen = fread((char *)data + clen, 1, alen - clen, f); 78 } while (clen == alen);
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_gpsk.c | 244 u16 alen; local 263 alen = WPA_GET_BE16(pos); 265 if (end - pos < alen) { 272 data->id_peer = os_malloc(alen); 275 "%d-octet ID_Peer", alen); 278 os_memcpy(data->id_peer, pos, alen); 279 data->id_peer_len = alen; 282 pos += alen; 290 alen = WPA_GET_BE16(pos); 292 if (end - pos < alen) { 477 u16 alen; local [all...] |
/external/iproute2/lib/ |
ll_addr.c | 32 const char *ll_addr_n2a(const unsigned char *addr, int alen, int type, char *buf, int blen) 37 if (alen == 4 && 41 if (alen == 16 && type == ARPHRD_TUNNEL6) { 45 for (i=0; i<alen; i++) {
|