/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/python/cpython3/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 = list(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/wpa_supplicant_8/src/eap_common/ |
eap_sim_common.c | 499 size_t alen, plen, i, list_len; local 526 alen = pos[1] * 4 - 2; 528 apos, alen); 534 alen -= 2; 535 if ((!aka && (alen % GSM_RAND_LEN)) || 536 (aka && alen != EAP_AKA_RAND_LEN)) { 539 (unsigned long) alen); 543 attr->num_chal = alen / GSM_RAND_LEN; 553 alen -= 2; 554 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_memdup(pos, alen); 275 "%d-octet ID_Peer", alen); 278 data->id_peer_len = alen; 281 pos += alen; 289 alen = WPA_GET_BE16(pos); 291 if (end - pos < alen) { 297 if (alen != sm->server_id_len | 476 u16 alen; local [all...] |
/external/iproute2/lib/ |
ll_addr.c | 31 const char *ll_addr_n2a(const unsigned char *addr, int alen, int type, char *buf, int blen) 36 if (alen == 4 && 40 if (alen == 16 && type == ARPHRD_TUNNEL6) { 44 for (i = 1, l = 2; i < alen && l < blen; i++, l += 3)
|
mpls_pton.c | 45 int mpls_pton(int af, const char *src, void *addr, size_t alen) 47 unsigned int maxlabels = alen / sizeof(struct mpls_label);
|
/frameworks/base/core/java/android/net/nsd/ |
DnsSdTxtRecord.java | 203 int aLen = 0; 205 for (aLen=0; aLen < avLen; aLen++) { 206 if (mData[avStart + aLen + 1] == mSeperator) break; 208 return new String(mData, avStart + 1, aLen); 228 int aLen = 0; 230 for (aLen=0; aLen < avLen; aLen++) [all...] |
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/lif/ |
address.go | 90 nlen, alen, slen := int(b[1]), int(b[2]), int(b[3]) 91 l := 4 + nlen + alen + slen 100 if alen > 0 { 101 addr = make([]byte, alen) 102 copy(addr, b[:alen])
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/lif/ |
address.go | 90 nlen, alen, slen := int(b[1]), int(b[2]), int(b[3]) 91 l := 4 + nlen + alen + slen 100 if alen > 0 { 101 addr = make([]byte, alen) 102 copy(addr, b[:alen])
|
/system/bt/osi/src/socket_utils/ |
socket_local_client.cc | 35 struct sockaddr_un* p_addr, socklen_t* alen) { 99 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; 115 socklen_t alen; local 118 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen); 124 OSI_NO_INTR(err = connect(fd, (struct sockaddr*)&addr, alen));
|
/system/core/libcutils/ |
socket_local_client_unix.cpp | 46 struct sockaddr_un *p_addr, socklen_t *alen) 111 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; 126 socklen_t alen; local 129 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen); 135 if(connect(fd, (struct sockaddr *) &addr, alen) < 0) {
|