Searched defs:size (Results 51 - 75 of 115) sorted by relevance

12345

/system/core/libzipfile/
H A Dzipfile.c10 init_zipfile(const void* data, size_t size) argument
18 file->bufsize = size;
/system/core/nexus/
H A DController.cpp63 unsigned int size; local
65 module = loadFile(modpath, &size);
71 int rc = init_module(module, size, args);
125 ssize_t size; local
136 size = sb.st_size;
139 buffer = malloc(size);
144 ret = read(fd, buffer, size);
145 if (ret != size)
149 *_size = size;
/system/core/toolbox/
H A Dnandread.c12 static int test_empty(const char *buf, size_t size) argument
14 while(size--) {
79 " -s <size> Number of spare bytes in file (default 64)\n"
132 printf("size: %u\n", mtdinfo.size);
133 printf("erase size: %u\n", mtdinfo.erasesize);
134 printf("write size: %u\n", mtdinfo.writesize);
135 printf("oob size: %u\n", mtdinfo.oobsize);
140 fprintf(stderr, "failed allocate readbuffer size %u\n",
161 printf("oobavail, %d > image spare size,
[all...]
H A Dschedtop.c51 size_t size = table->allocated; local
53 if (size < 128)
54 size = 128;
56 size *= 2;
58 new_table = realloc(table->data, size * sizeof(*table->data));
64 table->allocated = size;
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp68 // For read/write tests, size is the number of Kbytes to use.
73 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt
74 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
110 {"size", required_argument, 0, 's'},
111 {"chunk-size", required_argument, 0, 'S'},
130 " -s --size: Size in kbytes of the data.\n"
131 " -S --chunk-size: Size of a chunk. Default to size i
348 const size_t size = testCase->dataSize(); local
485 const size_t size = testCase->dataSize(); local
[all...]
/system/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java37 throw new IllegalArgumentException("Initializing vertex frame with zero size!");
92 throw new RuntimeException("Data size in setData does not match vertex frame size!");
132 private native boolean nativeAllocate(int size); argument
H A DNativeFrame.java151 throw new RuntimeException("Offset and length exceed buffer size in native setData: " +
155 throw new RuntimeException("Data size in setData does not match native frame size: " +
156 "Frame size is " + getFormat().getSize() + " bytes, but " +
208 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " +
209 "smaller native frame of size " + getFormat().getSize() + "!");
226 return "NativeFrame id: " + nativeFrameId + " (" + getFormat() + ") of size "
258 private native boolean setNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
260 private native boolean getNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
H A DSerializedFrame.java66 public DirectByteOutputStream(int size) { argument
67 mBuffer = new byte[size];
128 public DirectByteInputStream(byte[] buffer, int size) { argument
130 mSize = size;
/system/media/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp25 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1)
29 * Returns the size of an AAC ADTS frame.
30 * Note that if the returned value + offset > size, it means that a partial frame starts at that
31 * offset, but this function will still return the size of the full frame.
34 * @param size the size in bytes of the data block starting at data
35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument
41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) {
83 validateBufferStartEndOnFrameBoundaries(void* data, size_t size) argument
[all...]
/system/media/wilhelm/src/desktop/
H A DSndFile.c77 SLuint32 size = (SLuint32) (count * sizeof(short)); local
78 result = IBufferQueue_Enqueue(caller, pBuffer, size);
/system/media/wilhelm/tests/examples/
H A DslesTestPlayFdPath.cpp50 void TestPlayPathFromFD( SLObjectItf sl, const char* path, SLAint64 offset, SLAint64 size) argument
117 locatorFd.length = size;
220 fprintf(stdout, "no file size given, using SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE\n");
H A DslesTestSawtoothBufferQueue.cpp54 /* Audio data buffer size in 16 bit words. 8 data segments are used in
76 SLuint32 size; member in struct:CallbackCntxt_
92 if(pCntxt->pData < (pCntxt->pDataBase + pCntxt->size))
98 /* Increase data pointer by buffer size */
195 cntxt.size = sizeof(pcmData) / 2;
/system/vold/
H A Dcryptfs.h62 unsigned int size; member in struct:volume_info
/system/core/fastboot/
H A Dusb_linux.c64 /* The max bulk size for linux is 16384 which is defined
85 static int check(void *_desc, int len, unsigned type, int size) argument
89 if(len < size) return -1;
90 if(desc[0] < size) return -1;
/system/core/libcutils/
H A Dhashmap.c40 size_t size; member in struct:Hashmap
67 map->size = 0;
94 return map->size;
103 if (map->size > (map->bucketCount * 3 / 4)) {
204 map->size++;
269 map->size++;
296 map->size--;
/system/core/libpixelflinger/tinyutils/
H A DVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::Vector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
213 LOG_FATAL_IF( index>=size(),
214 "itemAt: index %d is past size %d", (int)index, (int)size() );
225 LOG_FATAL_IF( (index>0 ? index : -index)>=size(),
226 "mirrorItemAt: index %d is past size
[all...]
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp75 bool NetlinkEvent::parseBinaryNetlinkMessage(char *buffer, int size) { argument
76 size_t sz = size;
133 nh = NLMSG_NEXT(nh, size);
163 bool NetlinkEvent::parseAsciiNetlinkMessage(char *buffer, int size) { argument
170 if (size == 0)
174 buffer[size-1] = '\0';
176 end = s + size;
210 bool NetlinkEvent::decode(char *buffer, int size, int format) { argument
212 return parseBinaryNetlinkMessage(buffer, size);
214 return parseAsciiNetlinkMessage(buffer, size);
[all...]
/system/extras/ext4_utils/
H A Dindirect.c431 u64 size; local
470 size = (u64)last_block * info.block_size;
476 inode->i_size_lo = size;
477 inode->i_size_high = size >> 32;
/system/extras/fatblock/
H A Dimport.c91 uint32_t size; member in struct:imported
125 f->size = st.st_size;
132 f->size, EXTENT_TYPE_FILE, &out->first_cluster);
138 out->size = f->size;
294 d->size = sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2));
295 ret = fs_alloc_extent(fs, &d->extent, d->size, EXTENT_TYPE_DIR, &out->first_cluster);
317 item->imp.first_cluster, item->imp.size);
340 out->size = 0;
/system/extras/libublock/
H A Dublock.c33 uint64_t size; member in struct:ublock_ctx
89 out_h->size = ub_ctx->size;
344 size_t size; local
358 size = ublock_init_buf_size();
359 in_buf = malloc(size);
360 out_buf = malloc(size);
367 ub_ctx->size = dev_size;
377 result = ublock_do_request(ub_ctx, in_buf, size, out_buf, size);
[all...]
/system/extras/showmap/
H A Dshowmap.c18 unsigned size; member in struct:mapinfo
91 int size; local
93 if (sscanf(line, "%63s %d kB", field, &size) != 2) {
98 mi->size = size;
100 mi->rss = size;
102 mi->pss = size;
104 mi->shared_clean = size;
106 mi->shared_dirty = size;
108 mi->private_clean = size;
254 unsigned size = 0; local
[all...]
/system/extras/tests/directiotest/
H A Ddirectiotest.c51 static void *pagealign_alloc(size_t size) argument
53 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE,
63 static void pagealign_free(void *addr, size_t size) argument
65 int ret = munmap(addr, size);
120 * test area size.
/system/extras/tests/lib/testUtil/
H A DtestUtil.c310 * pointed to by buf, for the number of bytes given by size.
319 testXDump(const void *buf, size_t size) argument
325 size_t num = size;
/system/media/mca/filterfw/jni/
H A Djni_gl_frame.cpp219 jint size) {
225 const bool success = frame->WriteData(pixels, size);
216 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument
H A Djni_native_frame.cpp37 jint size) {
38 return ToJBool(WrapObjectInJava(new NativeFrame(size), env, thiz, true));
74 jint size) {
78 if (!data || size > frame->Size())
80 jbyteArray result = env->NewByteArray(size);
81 env->SetByteArrayRegion(result, 0, size, reinterpret_cast<const jbyte*>(data));
118 jint size) {
122 if (!data || size > frame->Size() || (size % sizeof(jint)) != 0)
124 const int count = size / sizeo
35 Java_android_filterfw_core_NativeFrame_nativeAllocate(JNIEnv* env, jobject thiz, jint size) argument
72 Java_android_filterfw_core_NativeFrame_getNativeData(JNIEnv* env, jobject thiz, jint size) argument
116 Java_android_filterfw_core_NativeFrame_getNativeInts(JNIEnv* env, jobject thiz, jint size) argument
150 Java_android_filterfw_core_NativeFrame_getNativeFloats(JNIEnv* env, jobject thiz, jint size) argument
166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
[all...]

Completed in 2967 milliseconds

12345