HomeSort by relevance Sort by last modified time
    Searched full:sizeof (Results 951 - 975 of 23619) sorted by null

<<31323334353637383940>>

  /prebuilts/ndk/8/sources/cxx-stl/stlport/stlport/stl/
_stdexcept_base.c 22 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
28 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
45 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
51 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
71 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
77 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
  /prebuilts/ndk/9/sources/cxx-stl/EH/stlport/stlport/stl/
_stdexcept_base.c 22 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
28 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
45 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
51 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
71 _M_name = __STATIC_CAST(char*, malloc(__size * sizeof(char)));
77 *(__REINTERPRET_CAST(size_t*, &_M_static_name[0])) = __size * sizeof(char);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_frombuffer.py 40 x = (c_int * 15).from_buffer(a, sizeof(c_int))
43 self.assertRaises(ValueError, lambda: (c_int * 16).from_buffer(a, sizeof(c_int)))
44 self.assertRaises(ValueError, lambda: (c_int * 1).from_buffer(a, 16 * sizeof(c_int)))
72 x = (c_int * 15).from_buffer_copy(a, sizeof(c_int))
76 (c_int * 16).from_buffer_copy, a, sizeof(c_int))
78 (c_int * 1).from_buffer_copy, a, 16 * sizeof(c_int))
test_structures.py 17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
27 self.assertEqual(sizeof(X), 0)
32 self.assertEqual(sizeof(Y), sizeof(X))
38 self.assertEqual(sizeof(X), sizeof(c_int)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_frombuffer.py 40 x = (c_int * 15).from_buffer(a, sizeof(c_int))
43 self.assertRaises(ValueError, lambda: (c_int * 16).from_buffer(a, sizeof(c_int)))
44 self.assertRaises(ValueError, lambda: (c_int * 1).from_buffer(a, 16 * sizeof(c_int)))
72 x = (c_int * 15).from_buffer_copy(a, sizeof(c_int))
76 (c_int * 16).from_buffer_copy, a, sizeof(c_int))
78 (c_int * 1).from_buffer_copy, a, 16 * sizeof(c_int))
test_structures.py 17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
27 self.assertEqual(sizeof(X), 0)
32 self.assertEqual(sizeof(Y), sizeof(X))
38 self.assertEqual(sizeof(X), sizeof(c_int)
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
ucol_cnt.cpp 31 uint32_t *newData = (uint32_t *)uprv_realloc(tbl->CEs, 2*tbl->size*sizeof(uint32_t));
36 UChar *newCPs = (UChar *)uprv_realloc(tbl->codePoints, 2*tbl->size*sizeof(UChar));
54 CntTable *tbl = (CntTable *)uprv_malloc(sizeof(CntTable));
60 tbl->elements = (ContractionTable **)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
67 uprv_memset(tbl->elements, 0, INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
78 ContractionTable *el = (ContractionTable *)uprv_malloc(sizeof(ContractionTable));
82 el->CEs = (uint32_t *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
87 el->codePoints = (UChar *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(UChar));
95 uprv_memset(el->CEs, 0, INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
96 uprv_memset(el->codePoints, 0, INIT_EXP_TABLE_SIZE*sizeof(UChar))
    [all...]
  /external/icu4c/i18n/
ucol_cnt.cpp 31 uint32_t *newData = (uint32_t *)uprv_realloc(tbl->CEs, 2*tbl->size*sizeof(uint32_t));
36 UChar *newCPs = (UChar *)uprv_realloc(tbl->codePoints, 2*tbl->size*sizeof(UChar));
54 CntTable *tbl = (CntTable *)uprv_malloc(sizeof(CntTable));
60 tbl->elements = (ContractionTable **)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
67 uprv_memset(tbl->elements, 0, INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
78 ContractionTable *el = (ContractionTable *)uprv_malloc(sizeof(ContractionTable));
82 el->CEs = (uint32_t *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
87 el->codePoints = (UChar *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(UChar));
95 uprv_memset(el->CEs, 0, INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
96 uprv_memset(el->codePoints, 0, INIT_EXP_TABLE_SIZE*sizeof(UChar))
    [all...]
  /external/chromium_org/third_party/icu/source/test/cintltst/
utf16tst.c 24 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
59 for(i=0; i<sizeof(codeunit)/sizeof(codeunit[0]); i++){
97 for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=(int16_t)(i+2)){
150 for(offset=0; offset<sizeof(input)/U_SIZEOF_UCHAR; offset++) {
151 if(0<offset && offset<sizeof(input)/U_SIZEOF_UCHAR-1){
163 UTF16_GET_CHAR_SAFE(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c, FALSE);
168 U16_GET(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c)
    [all...]
uenumtst.c 70 cont->currUChar = (UChar *)malloc(1024*sizeof(UChar));
199 UEnumeration *en = (UEnumeration *)malloc(sizeof(UEnumeration));
200 memcpy(en, &chEnum, sizeof(UEnumeration));
209 UEnumeration *en = getchArrayEnum(test1, sizeof(test1)/sizeof(test1[0]));
225 UEnumeration *emptyEnum = uprv_malloc(sizeof(UEnumeration));
227 uprv_memcpy(emptyEnum, &emptyEnumerator, sizeof(UEnumeration));
260 emptyEnum = uprv_malloc(sizeof(UEnumeration));
261 uprv_memcpy(emptyEnum, &emptyPartialEnumerator, sizeof(UEnumeration));
270 UEnumeration *en = (UEnumeration *)malloc(sizeof(UEnumeration))
    [all...]
  /device/lge/mako/camera/mm-camera-interface/
mm_camera.c 73 memset (&queryctrl, 0, sizeof (queryctrl));
260 CAMERA_SET_PARM_FPS, sizeof(uint32_t), (void *)parm->p_value);
263 CAMERA_SET_FPS_MODE, sizeof(int32_t), (void *)parm->p_value);
266 CAMERA_SET_PARM_EXPOSURE_COMPENSATION, sizeof(int32_t), (void *)parm->p_value);
269 CAMERA_SET_PARM_LED_MODE, sizeof(int32_t), (void *)parm->p_value);
272 CAMERA_SET_PARM_ROLLOFF, sizeof(int32_t), (void *)parm->p_value);
278 CAMERA_SET_PARM_FOCUS_RECT, sizeof(int32_t), (void *)parm->p_value);
281 CAMERA_SET_PARM_AEC_ROI, sizeof(cam_set_aec_roi_t), (void *)parm->p_value);
284 CAMERA_SET_PARM_AF_ROI, sizeof(roi_info_t), (void *)parm->p_value);
287 CAMERA_SET_PARM_AF_MODE, sizeof(int32_t), (void *)parm->p_value)
    [all...]
  /external/chromium_org/net/disk_cache/
stats.cc 23 COMPILE_ASSERT(sizeof(OnDiskStats) < 512, needs_more_than_2_blocks);
79 if (static_cast<unsigned int>(stats->size) > sizeof(*stats)) {
80 memset(stats, 0, sizeof(*stats));
82 } else if (static_cast<unsigned int>(stats->size) != sizeof(*stats)) {
83 size_t delta = sizeof(*stats) - static_cast<unsigned int>(stats->size);
85 stats->size = sizeof(*stats);
104 memset(stats, 0, sizeof(local_stats));
106 local_stats.size = sizeof(local_stats);
107 } else if (num_bytes >= static_cast<int>(sizeof(*stats))) {
117 memcpy(data_sizes_, stats->data_sizes, sizeof(data_sizes_))
    [all...]
  /external/clang/test/Analysis/
MismatchedDeallocator-checker-test.mm 6 typedef __typeof__(sizeof(int)) size_t;
22 int *p = (int *)malloc(sizeof(int));
33 int *p = (int *)calloc(1, sizeof(int));
43 int *p = (int *)my_malloc(sizeof(int));
48 int *p = (int *)malloc(sizeof(int));
53 int *p = (int *)malloc(sizeof(int));
58 int *p = (int *)malloc(sizeof(int));
80 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not realloc()}}
85 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', not realloc()}}
90 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not (…)
    [all...]
  /system/extras/libublock/
ublock.c 79 if (in_len != sizeof(*in_h))
96 *out_len = sizeof(*out_h);
114 if (in_len != sizeof(struct ublock_ready_in))
117 *out_len = sizeof(struct ublock_ready_out);
136 if (in_len != sizeof(*in_h))
147 *out_len = sizeof(*out_h) + in_h->length;
149 *out_len = sizeof(*out_h);
166 if (in_len < sizeof(*in_h))
173 *out_len = sizeof(*out_h);
199 if (in_len < sizeof(*in_h)
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
nethelpers.cc 78 int total_len = sizeof(hostent);
81 total_len += sizeof(char*) + strlen(ent->h_aliases[num_aliases]) + 1;
84 total_len += sizeof(char*);
86 total_len += sizeof(char*) + ent->h_length;
89 total_len += sizeof(char*);
95 char* p = reinterpret_cast<char*>(result) + sizeof(hostent);
103 p += (num_aliases + 1) * sizeof(char*);
115 p += (num_addrs + 1) * sizeof(char*);
127 ASSERT(kInitHostentLen > sizeof(hostent));
134 char* aux = static_cast<char*>(buf) + sizeof(hostent)
    [all...]
  /external/chromium_org/third_party/icu/source/tools/genrb/
derb.c 118 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
331 printString(out, converter, bom, (int32_t)(sizeof(bom)/sizeof(*bom)));
352 printString(out, converter, sp, (int32_t)(sizeof(sp)/sizeof(*sp)));
388 newstr = (UChar *) uprv_malloc((1 + alen) * sizeof(*newstr));
421 char *bufp = buf, *bufend = buf + sizeof(buf) - 1 ;
441 UChar *bufp = buf, *bufend = buf + (sizeof(buf)/sizeof(buf[0])) - 1
    [all...]
  /external/dropbear/
random.c 72 memset((void*)&egdsock, 0x0, sizeof(egdsock));
75 sizeof(egdsock.sun_path));
83 sizeof(struct sockaddr_un)) < 0) {
139 m_burn(hashpool, sizeof(hashpool));
143 readrand(readbuf, sizeof(readbuf));
147 sha1_process(&hs, (void*)hashpool, sizeof(hashpool));
148 sha1_process(&hs, (void*)readbuf, sizeof(readbuf));
172 sha1_process(&hs, (void*)hashpool, sizeof(hashpool));
173 sha1_process(&hs, (void*)&pid, sizeof(pid));
174 sha1_process(&hs, (void*)&tv, sizeof(tv))
    [all...]
  /external/icu4c/tools/genrb/
derb.c 118 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
331 printString(out, converter, bom, (int32_t)(sizeof(bom)/sizeof(*bom)));
352 printString(out, converter, sp, (int32_t)(sizeof(sp)/sizeof(*sp)));
388 newstr = (UChar *) uprv_malloc((1 + alen) * sizeof(*newstr));
421 char *bufp = buf, *bufend = buf + sizeof(buf) - 1 ;
441 UChar *bufp = buf, *bufend = buf + (sizeof(buf)/sizeof(buf[0])) - 1
    [all...]
  /external/iproute2/ip/
xfrm.h 42 #define XFRMS_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))))
43 #define XFRMS_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_usersa_info))
45 #define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_info))))
46 #define XFRMP_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_userpoilcy_info))
48 #define XFRMSID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_id))))
49 #define XFRMSID_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_usersa_id))
51 #define XFRMPID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id))))
52 #define XFRMPID_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_userpoilcy_id))
54 #define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire))))
55 #define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire)))
    [all...]
  /external/openssh/
md5crypt.c 35 memset(buf, '\0', sizeof(buf));
102 memset(final, '\0', sizeof final);
112 snprintf(passwd, sizeof(passwd), "%s%s$", magic, salt_copy);
145 strlcat(passwd, to64(l, 4), sizeof(passwd));
147 strlcat(passwd, to64(l, 4), sizeof(passwd));
149 strlcat(passwd, to64(l, 4), sizeof(passwd));
151 strlcat(passwd, to64(l, 4), sizeof(passwd));
153 strlcat(passwd, to64(l, 4), sizeof(passwd));
155 strlcat(passwd, to64(l, 2), sizeof(passwd));
158 memset(final, 0, sizeof(final))
    [all...]
  /external/wpa_supplicant_8/src/ap/
vlan_init.c 55 os_memset(&ifr, 0, sizeof(ifr));
138 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name));
189 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name));
277 os_memset(&ifr, 0, sizeof(ifr));
316 os_memset(ifindices, 0, sizeof(ifindices));
317 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name));
347 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) {
359 os_memset(&if_request, 0, sizeof(if_request));
361 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1));
393 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1))
    [all...]
  /external/wpa_supplicant_8/src/l2_packet/
l2_packet_linux.c 52 os_memset(&ll, 0, sizeof(ll));
59 sizeof(ll));
77 os_memset(&ll, 0, sizeof(ll));
78 fromlen = sizeof(ll);
79 res = recvfrom(sock, buf, sizeof(buf), 0, (struct sockaddr *) &ll,
101 l2 = os_zalloc(sizeof(struct l2_packet_data));
104 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname));
117 os_memset(&ifr, 0, sizeof(ifr));
118 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name));
128 os_memset(&ll, 0, sizeof(ll))
    [all...]
  /external/yaffs2/yaffs2/direct/
yaffs_fileem2k.c 119 memset(dummyBuffer,0xff,sizeof(dummyBuffer));
177 written = write(h,tags,sizeof(yaffs_ExtendedTags));
178 if(written != sizeof(yaffs_ExtendedTags)) return YAFFS_FAIL;
185 written = write(h,&pt,sizeof(pt));
186 if(written != sizeof(pt)) return YAFFS_FAIL;
239 nread= read(h,tags,sizeof(yaffs_ExtendedTags));
240 if(nread != sizeof(yaffs_ExtendedTags)) return YAFFS_FAIL;
241 if(yaffs_CheckAllFF((__u8 *)tags,sizeof(yaffs_ExtendedTags)))
253 nread= read(h,&pt,sizeof(pt));
268 if(nread != sizeof(pt)) return YAFFS_FAIL
    [all...]
  /hardware/invensense/60xx/libsensors_iio/software/core/mllite/
storage_manager.c 52 memset(&ds, 0, sizeof(ds));
53 ds.total_size = sizeof(struct data_header_t);
85 ds.total_size += size + sizeof(struct data_header_t);
130 if (len < sizeof(struct data_header_t))
137 len -= sizeof(struct data_header_t);
138 data += sizeof(struct data_header_t);
143 while (len > (long)sizeof(struct data_header_t)) {
146 data += sizeof(struct data_header_t);
147 len -= sizeof(struct data_header_t);
179 cur = data + sizeof(struct data_header_t)
    [all...]
  /hardware/samsung_slsi/exynos5/mobicore/common/MobiCore/inc/
mcContainer.h 53 #define MC_BYTES_TO_WORDS(bytes) ( (bytes) / sizeof(uint32_t) )
225 - sizeof(mcSoHeader_t) \
230 - sizeof(mcSoHeader_t) \
242 uint8_t hashAndPad[SO_CONT_HASH_AND_PAD_SIZE(sizeof(mcSocCont_t), sizeof(mcCoSocCont_t))];
249 uint8_t hashAndPad[SO_CONT_HASH_AND_PAD_SIZE(sizeof(mcRootCont_t), sizeof(mcCoRootCont_t))];
256 uint8_t hashAndPad[SO_CONT_HASH_AND_PAD_SIZE(sizeof(mcSpCont_t), sizeof(mcCoSpCont_t))];
263 uint8_t hashAndPad[SO_CONT_HASH_AND_PAD_SIZE(sizeof(mcTltCont_t), sizeof(mcCoTltCont_t))]
    [all...]

Completed in 646 milliseconds

<<31323334353637383940>>