/hardware/invensense/65xx/libsensors_iio/ |
InputEventReader.cpp | 61 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event));
62 if (nread < 0 || nread % sizeof(input_event)) {
64 // nread, sizeof(input_event));
70 LOGV_IF(nread % sizeof(input_event),
71 "DEBUG:%s exit nread %% sizeof(input_event)\n",
77 numEventsRead = nread / sizeof(input_event);
83 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event));
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/asm-generic/ |
ioctl.h | 53 ((sizeof(t) == sizeof(t[1]) && \ 54 sizeof(t) < (1 << _IOC_SIZEBITS)) ? \ 55 sizeof(t) : __invalid_size_argument_for_IOC) 62 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 63 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 64 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/asm-generic/ |
ioctl.h | 53 ((sizeof(t) == sizeof(t[1]) && \ 54 sizeof(t) < (1 << _IOC_SIZEBITS)) ? \ 55 sizeof(t) : __invalid_size_argument_for_IOC) 62 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 63 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 64 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/asm-generic/ |
ioctl.h | 53 ((sizeof(t) == sizeof(t[1]) && \ 54 sizeof(t) < (1 << _IOC_SIZEBITS)) ? \ 55 sizeof(t) : __invalid_size_argument_for_IOC) 62 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 63 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 64 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
|
/system/core/sh/ |
nodes.c | 59 SHELL_ALIGN(sizeof (struct nbinary)), 60 SHELL_ALIGN(sizeof (struct ncmd)), 61 SHELL_ALIGN(sizeof (struct npipe)), 62 SHELL_ALIGN(sizeof (struct nredir)), 63 SHELL_ALIGN(sizeof (struct nredir)), 64 SHELL_ALIGN(sizeof (struct nredir)), 65 SHELL_ALIGN(sizeof (struct nbinary)), 66 SHELL_ALIGN(sizeof (struct nbinary)), 67 SHELL_ALIGN(sizeof (struct nif)), 68 SHELL_ALIGN(sizeof (struct nbinary)) [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cstrcase.c | 29 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) 48 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 49 beforeLower, sizeof(beforeLower)/U_SIZEOF_UCHAR, 53 length!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || 67 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); 68 buffer[sizeof(beforeLower)/U_SIZEOF_UCHAR]=0; 70 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 75 length!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) || 89 beforeLower, sizeof(beforeLower)/U_SIZEOF_UCHAR [all...] |
/external/icu4c/test/cintltst/ |
cstrcase.c | 29 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) 48 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 49 beforeLower, sizeof(beforeLower)/U_SIZEOF_UCHAR, 53 length!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || 67 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); 68 buffer[sizeof(beforeLower)/U_SIZEOF_UCHAR]=0; 70 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 75 length!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) || 89 beforeLower, sizeof(beforeLower)/U_SIZEOF_UCHAR [all...] |
/dalvik/vm/jdwp/ |
ExpandBuf.cpp | 45 newBuf = (ExpandBuf*) malloc(sizeof(*newBuf)); 125 ensureSpace(pBuf, sizeof(val)); 135 ensureSpace(pBuf, sizeof(val)); 137 pBuf->curLen += sizeof(val); 145 ensureSpace(pBuf, sizeof(val)); 147 pBuf->curLen += sizeof(val); 155 ensureSpace(pBuf, sizeof(val)); 157 pBuf->curLen += sizeof(val); 172 ensureSpace(pBuf, sizeof(u4) + strLen); 174 pBuf->curLen += sizeof(u4) + strLen [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stringencode_unittest.cc | 83 for (size_t i = 0; i < sizeof(data_); ++i) { 86 memset(decoded_, 0x7f, sizeof(decoded_)); 98 enc_res_ = hex_encode(encoded_, sizeof(encoded_), data_, sizeof(data_)); 99 ASSERT_EQ(sizeof(data_) * 2, enc_res_); 101 dec_res_ = hex_decode(decoded_, sizeof(decoded_), encoded_, enc_res_); 102 ASSERT_EQ(sizeof(data_), dec_res_); 108 enc_res_ = hex_encode_with_delimiter(encoded_, sizeof(encoded_), 109 data_, sizeof(data_), ':'); 110 ASSERT_EQ(sizeof(data_) * 3 - 1, enc_res_) [all...] |
/external/clang/test/SemaObjC/ |
sizeof-interface.m | 6 int g0 = sizeof(I0); // expected-error{{invalid application of 'sizeof' to an incomplete type 'I0'}} 26 int g1[ sizeof(I0) // expected-error {{application of 'sizeof' to interface 'I0' is not supported on this architecture and platform}} 34 // sizeof). 35 int g2[ sizeof(I0) // expected-error {{application of 'sizeof' to interface 'I0' is not supported on this architecture and platform}} 50 // int g3[ sizeof(I1) == 0 ? 1 : -1]; 67 unsigned long attributeRuns[1024 + sizeof(I)]; // expected-error {{application of 'sizeof' to interface 'I' is not supported on this architecture and platform} [all...] |
/external/jpeg/ |
jsimd_neon.c | 117 (sizeof(JCOEF) != 2) || 119 (sizeof(JDIMENSION) != 4) || 120 (sizeof(ISLOW_MULT_TYPE) != 2)) 131 (sizeof(JCOEF) != 2) || 133 (sizeof(JDIMENSION) != 4) || 134 (sizeof(ISLOW_MULT_TYPE) != 2)) 145 (sizeof(JCOEF) != 2) || 147 (sizeof(JDIMENSION) != 4) || 148 (sizeof(IFAST_MULT_TYPE) != 2) || 161 (sizeof(JDIMENSION) != 4) | [all...] |
/external/libusb-compat/examples/ |
testlibusb.c | 72 ret = usb_get_string_simple(udev, dev->descriptor.iManufacturer, string, sizeof(string)); 74 snprintf(description, sizeof(description), "%s - ", string); 76 snprintf(description, sizeof(description), "%04X - ", 79 snprintf(description, sizeof(description), "%04X - ", 83 ret = usb_get_string_simple(udev, dev->descriptor.iProduct, string, sizeof(string)); 85 snprintf(description + strlen(description), sizeof(description) - 88 snprintf(description + strlen(description), sizeof(description) - 91 snprintf(description + strlen(description), sizeof(description) - 95 snprintf(description, sizeof(description), "%04X - %04X", 103 ret = usb_get_string_simple(udev, dev->descriptor.iSerialNumber, string, sizeof(string)) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/ |
get_long_long.pass.cpp | 54 input_iterator<const char*>(str+sizeof(str)), 56 assert(iter.base() == str+sizeof(str)-1); 65 input_iterator<const char*>(str+sizeof(str)), 67 assert(iter.base() == str+sizeof(str)-1); 76 input_iterator<const char*>(str+sizeof(str)), 78 assert(iter.base() == str+sizeof(str)-1); 88 input_iterator<const char*>(str+sizeof(str)), 90 assert(iter.base() == str+sizeof(str)-1); 99 input_iterator<const char*>(str+sizeof(str)), 101 assert(iter.base() == str+sizeof(str)-1) [all...] |
/system/extras/libpagemap/ |
pm_kernel.c | 35 ker = calloc(1, sizeof(*ker)); 73 pids = malloc(INIT_PIDS * sizeof(pid_t)); 85 new_pids = realloc(pids, 2 * pids_size * sizeof(pid_t)); 103 new_pids = realloc(pids, pids_count * sizeof(pid_t)); 122 off = lseek(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET); 125 if (read(ker->kpagecount_fd, count_out, sizeof(uint64_t)) < 126 (ssize_t)sizeof(uint64_t)) 138 off = lseek(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET); 141 if (read(ker->kpageflags_fd, flags_out, sizeof(uint64_t)) < 142 (ssize_t)sizeof(uint64_t) [all...] |
/external/bluetooth/bluedroid/bta/dm/ |
bta_dm_api.c | 71 memset(&bta_dm_cb, 0, sizeof(bta_dm_cb)); 82 if ((p_msg = (tBTA_DM_API_ENABLE *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE))) != NULL) 108 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 137 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 162 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 206 if ((p_msg = (tBTA_DM_API_SET_NAME *) GKI_getbuf(sizeof(tBTA_DM_API_SET_NAME))) != NULL) 210 BCM_STRNCPY_S(p_msg->name, sizeof(p_msg->name), p_name, BD_NAME_LEN-1); 235 if ((p_msg = (tBTA_DM_API_SET_VISIBILITY *) GKI_getbuf(sizeof(tBTA_DM_MSG))) != NULL) 290 if ((p_msg = (tBTA_DM_API_SET_AFH_CHANNELS_EVT *) GKI_getbuf(sizeof(tBTA_DM_MSG))) != NULL) 314 if ((p_msg = (tBTA_DM_API_SET_AFH_CHANNEL_ASSESSMENT *) GKI_getbuf(sizeof(tBTA_DM_API_SET_AFH_CHANNEL_ASSESSMENT))) != NULL [all...] |
/bionic/libc/bionic/ |
pututline.c | 42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) 44 if (!strncmp(utmp->ut_line, u.ut_line, sizeof(u.ut_line) -1)) 48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) 50 fwrite(utmp, sizeof(struct utmp), 1, f); 60 fwrite(utmp, sizeof(struct utmp), 1, f);
|
/bionic/libc/kernel/common/sound/ |
tlv.h | 31 #define TLV_DB_SCALE_ITEM(min, step, mute) SNDRV_CTL_TLVT_DB_SCALE, 2 * sizeof(unsigned int), (min), ((step) & TLV_DB_SCALE_MASK) | ((mute) ? TLV_DB_SCALE_MUTE : 0) 34 #define TLV_DB_MINMAX_ITEM(min_dB, max_dB) SNDRV_CTL_TLVT_DB_MINMAX, 2 * sizeof(unsigned int), (min_dB), (max_dB) 35 #define TLV_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) SNDRV_CTL_TLVT_DB_MINMAX_MUTE, 2 * sizeof(unsigned int), (min_dB), (max_dB) 39 #define TLV_DB_LINEAR_ITEM(min_dB, max_dB) SNDRV_CTL_TLVT_DB_LINEAR, 2 * sizeof(unsigned int), (min_dB), (max_dB) 41 #define TLV_DB_RANGE_HEAD(num) SNDRV_CTL_TLVT_DB_RANGE, 6 * (num) * sizeof(unsigned int)
|
/external/chromium/base/win/ |
scoped_bstr_unittest.cc | 38 EXPECT_EQ(test1_len * sizeof(kTestString1[0]), b1.ByteLength()); 56 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); 59 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); 60 b2.SetByteLen(lstrlen(b2) * sizeof(kTestString2[0])); 65 b1.SetByteLen((test2_len - 1) * sizeof(kTestString2[0]));
|
/external/chromium_org/base/win/ |
scoped_bstr_unittest.cc | 38 EXPECT_EQ(test1_len * sizeof(kTestString1[0]), b1.ByteLength()); 56 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); 59 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); 60 b2.SetByteLen(lstrlen(b2) * sizeof(kTestString2[0])); 65 b1.SetByteLen((test2_len - 1) * sizeof(kTestString2[0]));
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
getdents_helper.cc | 47 entry.d_off = sizeof(dirent); 48 entry.d_reclen = sizeof(dirent); 70 if (size < sizeof(dirent)) 74 size -= size % sizeof(dirent); 76 size_t max = dirents_.size() * sizeof(dirent);
|
/external/chromium_org/third_party/skia/src/utils/ |
SkBitSet.cpp | 17 fBitData.set(malloc(fDwordCount * sizeof(uint32_t))); 33 fBitData.set(malloc(fDwordCount * sizeof(uint32_t))); 34 memcpy(fBitData.get(), rhs.fBitData.get(), fDwordCount * sizeof(uint32_t)); 42 fDwordCount * sizeof(uint32_t)) == 0); 55 sk_bzero(fBitData.get(), fDwordCount * sizeof(uint32_t));
|
/external/clang/test/Analysis/ |
NewDelete+MismatchedDeallocator_intersections.cpp | 5 typedef __typeof(sizeof(int)) size_t; 17 int *p1 = (int *)malloc(sizeof(int)); 20 int *p2 = (int *)malloc(sizeof(int)); 24 int *p3 = (int *)malloc(sizeof(int)); // no warn 26 int *p4 = (int *)malloc(sizeof(int));
|
/external/clang/test/SemaTemplate/ |
fun-template-def.cpp | 15 return (sizeof(x) == sizeof(int))? 0 : (sizeof(x) == sizeof(double))? 1 : 2; 42 dummy d1 = sizeof(t1); // expected-error {{no viable conversion}}
|
/external/e2fsprogs/contrib/ |
make-sparse.c | 64 got = full_read(0, buf, sizeof(buf)); 67 if (got == sizeof(buf)) { 68 for (i=0; i < sizeof(buf); i++) 71 if (i == sizeof(buf)) { 72 lseek(fd, sizeof(buf), SEEK_CUR);
|
/external/eigen/test/ |
sizeoverflow.cpp | 43 // Then in Memory.h we check for overflow in size * sizeof(T) computations. 44 // this is tested in tests of the form times_4_gives_0 * sizeof(float) 46 size_t times_itself_gives_0 = size_t(1) << (8 * sizeof(Index) / 2); 49 size_t times_4_gives_0 = size_t(1) << (8 * sizeof(Index) - 2); 52 size_t times_8_gives_0 = size_t(1) << (8 * sizeof(Index) - 3);
|