Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/development/ndk/platforms/android-3/include/linux/
Dcirc_buf.h21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) argument
23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) argument
25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & (… argument
27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail… argument
/development/tutorials/MoarRam/jni/
Dbaz.c37 int size; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative() local
41 size = 17; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
44 size = 71; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
47 ptr = malloc(size); in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
52 size, ptr); in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
61 int size; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative() local
65 size = 17; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
68 size = 71; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
72 ALOGW("All %d-byte blocks are freed", size); in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
80 size, ptr); in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
/development/ndk/platforms/android-3/include/asm-generic/
Dioctl.h34 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr)… argument
40 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
41 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
42 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
43 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
44 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
45 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
/development/ndk/platforms/android-L/include/asm-generic/
Dioctl.h52 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr)… argument
56 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
57 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
59 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
60 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
61 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
62 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
/development/ndk/platforms/android-9/arch-mips/include/asm/
Dioctl.h45 …fine _IOC(dir, type, nr, size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr… argument
50 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) argument
51 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument
52 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument
54 #define _IOR_BAD(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) argument
55 #define _IOW_BAD(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), sizeof(size)) argument
56 #define _IOWR_BAD(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), sizeof(size)) argument
Duaccess.h44 #define __ua_size(size) ((__builtin_constant_p(size) && (signed long) (size) > 0) ? 0 : (size)) argument
46 #define __access_ok(addr, size, mask) (((signed long)((mask) & ((addr) | ((addr) + (size)) | __ua… argument
47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_ma… argument
57 #define __get_user_common(val, size, ptr) do { switch (size) { case 1: __get_user_asm(val, "lb… argument
59 #define __get_user_nocheck(x, ptr, size) ({ long __gu_err; __get_user_common((x), size, ptr)… argument
60size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if … argument
65 … __put_user_nocheck(x, ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu… argument
66size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); l… argument
Dio.h67 #define ioremap(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACHED) argument
69 #define ioremap_nocache(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACHED) argument
70 #define ioremap_cachable(offset, size) __ioremap_mode((offset), (size), _page_cachable_default) argument
71 #define ioremap_cacheable_cow(offset, size) __ioremap_mode((offset), (size), _CACHE_CACHABLE_COW) argument
72 #define ioremap_uncached_accelerated(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACH… argument
97 #define dma_cache_wback_inv(start,size) do { (void) (start); (void) (size); } while (0) argument
99 #define dma_cache_wback(start,size) do { (void) (start); (void) (size); } while (0) argument
100 #define dma_cache_inv(start,size) do { (void) (start); (void) (size); } while (0) argument
/development/ndk/platforms/android-L/include/sys/
Dxattr.h38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags);
39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags);
40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags);
42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size);
43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size);
44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size);
46 extern ssize_t listxattr(const char *path, char *list, size_t size);
47 extern ssize_t llistxattr(const char *path, char *list, size_t size);
48 extern ssize_t flistxattr(int fd, char *list, size_t size);
/development/ndk/platforms/android-3/include/asm-generic/bitops/
Dfind.h15 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) argument
16 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) argument
/development/ndk/platforms/android-9/arch-x86/include/asm/
Duaccess_32.h40size) ({ unsigned long flag,roksum; __chk_user_ptr(addr); asm("addl %3,%1 ; sbbl %0,%0; cmpl… argument
41 #define access_ok(type,addr,size) (likely(__range_ok(addr,size) == 0)) argument
47 #define __get_user_x(size,ret,x,ptr) __asm__ __volatile__("call __get_user_" #size :"=a" (ret),… argument
60 #define __put_user_nocheck(x,ptr,size) ({ long __pu_err; __put_user_size((x),(ptr),(size),__pu… argument
62 …size(x,ptr,size,retval,errret) do { __typeof__(*(ptr)) __pus_tmp = x; retval = 0; if(unli… argument
67 …efine __get_user_nocheck(x,ptr,size) ({ long __gu_err; unsigned long __gu_val; __get_user_s… argument
69 #define __get_user_size(x,ptr,size,retval,errret) do { retval = 0; __chk_user_ptr(ptr); swit… argument
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java67 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
68 double ratio = (double) size.width / size.height; in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
72 optimalSize = size; in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
80 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
82 optimalSize = size; in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java67 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
68 double ratio = (double) size.width / size.height; in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
72 optimalSize = size; in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
80 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
82 optimalSize = size; in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java67 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
68 double ratio = (double) size.width / size.height; in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
72 optimalSize = size; in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
80 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
82 optimalSize = size; in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/scripts/
Dcompare-installed-size.py50 size, name = line.split()
63 bin_sizes[idx][module] = int(size)
65 bin_sizes[idx][module] += int(size)
70 file_sizes[name] = [module, size, 0]
73 file_sizes[name][-1] = size
75 file_sizes[name] = [module, 0, size]
/development/ndk/platforms/android-L/include/
Dstdio.h369 int vsnprintf(char *dest, size_t size, const char *format, __va_list ap) in vsnprintf() argument
371 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); in vsnprintf()
383 …#define __wrap_snprintf(dest, size, ...) __builtin___snprintf_chk(dest, size, 0, __bos(dest), __VA… argument
389 int snprintf(char *dest, size_t size, const char *format, ...) in snprintf() argument
391 return __builtin___snprintf_chk(dest, size, 0, in snprintf()
419 char *fgets(char* dest, int size, FILE* stream) { in fgets() argument
424 if (__builtin_constant_p(size) && (size < 0)) { in fgets()
430 return __fgets_real(dest, size, stream); in fgets()
435 if (__builtin_constant_p(size) && (size <= (int) bos)) { in fgets()
436 return __fgets_real(dest, size, stream); in fgets()
[all …]
Dstring.h204 size_t strlcpy(char* __restrict dest, const char* __restrict src, size_t size) { in strlcpy() argument
210 return __strlcpy_real(dest, src, size); in strlcpy()
215 if (__builtin_constant_p(size) && (size <= bos)) { in strlcpy()
216 return __strlcpy_real(dest, src, size); in strlcpy()
221 if (__builtin_constant_p(size) && (size > bos)) { in strlcpy()
226 return __strlcpy_chk(dest, src, size, bos); in strlcpy()
236 size_t strlcat(char* __restrict dest, const char* __restrict src, size_t size) { in strlcat() argument
242 return __strlcat_real(dest, src, size); in strlcat()
247 if (__builtin_constant_p(size) && (size <= bos)) { in strlcat()
248 return __strlcat_real(dest, src, size); in strlcat()
[all …]
/development/host/windows/usb/api/
Dadb_interface_enum.cpp59 bool AdbInterfaceEnumObject::Next(AdbInterfaceInfo* info, ULONG* size) { in Next() argument
66 ATLASSERT(NULL != size); in Next()
67 if (NULL == size) { in Next()
81 if ((NULL == info) || (*size < entry.GetFlatSize())) { in Next()
82 *size = entry.GetFlatSize(); in Next()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DSimpleMenu.java83 for (int i = items.size() - 1; i >= 0; i--) { in findInsertIndex()
94 final int size = size(); in findItemIndex() local
96 for (int i = 0; i < size; i++) { in findItemIndex()
111 if ((index < 0) || (index >= mItems.size())) { in removeItemAtInt()
122 final int size = size(); in findItem() local
123 for (int i = 0; i < size; i++) { in findItem()
133 public int size() { in size() method in SimpleMenu
134 return mItems.size(); in size()
/development/tools/yuv420sp2rgb/
Ddebug.h47 static inline void *MALLOC(unsigned int size) { in MALLOC() argument
48 void *m = malloc(size); in MALLOC()
49 FAILIF(NULL == m, "malloc(%d) failed!\n", size); in MALLOC()
59 static inline void *REALLOC(void *ptr, unsigned int size) { in REALLOC() argument
60 void *m = realloc(ptr, size); in REALLOC()
61 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size); in REALLOC()
/development/ndk/platforms/android-L/arch-arm/include/asm/
Dsetup.h26 __u32 size; member
40 __u32 size; member
62 __u32 size; member
71 __u32 size; member
150 …r_present(tag,member) ((unsigned long)(&((struct tag *)0L)->member + 1) <= (tag)->hdr.size * 4)
151 #define tag_next(t) ((struct tag *)((__u32 *)(t) + (t)->hdr.size))
154 #define for_each_tag(t,base) for (t = base; t->hdr.size; t = tag_next(t))
/development/ndk/sources/android/libportable/common/include/
Dioctls_portable.h42 #define _IOC_PORTABLE(dir, type, nr, size) ( \ argument
46 ((size) << _IOC_SIZESHIFT_PORTABLE) \
59 #define _IOR_PORTABLE(type, nr, size) \ argument
60 _IOC_PORTABLE(_IOC_READ_PORTABLE, (type), (nr), (_IOC_TYPECHECK_PORTABLE(size)))
62 #define _IOW_PORTABLE(type, nr, size) \ argument
63 _IOC_PORTABLE(_IOC_WRITE_PORTABLE, (type), (nr), (_IOC_TYPECHECK_PORTABLE(size)))
65 #define _IOWR_PORTABLE(type, nr, size) \ argument
67 _IOC_WRITE_PORTABLE, (type), (nr), (IOC_TYPECHECK_PORTABLE(size)) )
/development/ndk/sources/android/libportable/arch-mips/
Dmmap.c92 void *WRAP(mmap)(void *addr, size_t size, int prot, int flags, int fd, long byte_offset) in WRAP()
100 addr, size, prot, flags, fd, byte_offset); in WRAP()
105 ret_addr = REAL(mmap)(addr, size, native_prot, native_flags, fd, byte_offset); in WRAP()
114 int WRAP(mprotect)(const void *addr, size_t size, int portable_prot) in WRAP()
121 addr, size, portable_prot); in WRAP()
125 rv = REAL(mprotect)(addr, size, native_prot); in WRAP()
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/
DSquareFrameLayout.java60 final int size; in onMeasure() local
64 size = Math.max(widthSize, heightSize); in onMeasure()
68 size = Math.min(widthSize, heightSize); in onMeasure()
71 final int newMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY); in onMeasure()
/development/ndk/platforms/android-L/include/linux/netfilter_arp/
Darp_tables.h40 #define ARPT_ENTRY_ITERATE(entries, size, fn, args...) XT_ENTRY_ITERATE(struct arpt_entry, entrie… argument
109 unsigned int size; member
116 unsigned int size; member
127 unsigned int size; member
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardFlip.java118 view.updateTranslation(mStackCards.get(stack).size()); in addNewCard()
150 int size = cardStack.size();
151 if (size > 0) {
152 rotateCardView(cardStack.get(size - 1), stack, v, v2);
188 rightStack.remove(rightStack.size() - 1); in rotateCardView()
190 cardView.flipRightToLeft(leftStack.size() - 1, (int)velocityX); in rotateCardView()
204 leftStack.remove(leftStack.size() - 1); in rotateCardView()
206 cardView.flipLeftToRight(rightStack.size() - 1, (int)velocityX); in rotateCardView()
248 for (int i = 0; i < cards.size(); i++) { in rotateCards()
278 for (int i = 0; i < cards.size(); i++) { in rotateCardsFullRotation()

12345678910>>...14