Searched refs:size (Results 26 - 50 of 134) sorted by relevance

123456

/system/extras/showmap/
H A Dshowmap.c18 unsigned size; member in struct:mapinfo
89 int size; local
91 if (sscanf(line, "%63s %d kB", field, &size) != 2) {
96 mi->size = size;
98 mi->rss = size;
100 mi->pss = size;
102 mi->shared_clean = size;
104 mi->shared_dirty = size;
106 mi->private_clean = size;
252 unsigned size = 0; local
[all...]
/system/core/fastboot/
H A Dfastboot.h39 int fb_download_data(usb_handle *usb, const void *data, unsigned size);
59 void fb_queue_download(const char *name, void *data, unsigned size);
/system/extras/fatblock/
H A Dfatblock.h47 uint32_t size; member in struct:file
60 uint32_t size; member in struct:dir
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/tests/sdcard/
H A Dprofile_sdcard.sh40 adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
/system/core/include/cutils/
H A Darray.h51 /** Sets the array size. Sets new pointers to NULL. Returns 0 if successful, < 0 otherwise . */
52 int arraySetSize(Array* array, int size);
54 /** Returns the size of the given array. */
H A Dashmem.h19 int ashmem_create_region(const char *name, size_t size);
/system/core/include/zipfile/
H A Dzipfile.h30 zipfile_t init_zipfile(const void* data, size_t size);
40 // Return the size of the entry.
46 // The buffer must be 1.001 times the buffer size returned
/system/core/init/
H A Dkeychords.c38 int i, size; local
42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]);
43 keychords = realloc(keychords, keychords_length + size);
61 keychords_length += size;
/system/core/libpixelflinger/tinyutils/
H A DSharedBuffer.cpp20 SharedBuffer* SharedBuffer::alloc(size_t size) argument
22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size));
25 sb->mSize = size;
45 memcpy(sb->data(), data(), size());
H A DVectorImpl.cpp105 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize;
112 if (index > size())
114 void* where = _grow(index, vector.size());
116 _do_copy(where, vector.arrayImpl(), vector.size());
123 return insertVectorAt(vector, size());
133 if (index > size())
148 if (size())
149 removeItemsAt(size()-1, 1);
159 insertAt(item, size());
169 return insertAt(item, size());
[all...]
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/extras/libublock/include/ublock/
H A Dublock.h43 int ublock_init(struct ublock_ctx **ub, struct ublock_ops *ops, uint64_t size);
/system/core/adb/
H A Dfile_sync_service.h58 unsigned size; member in struct:__anon274::__anon276
64 unsigned size; member in struct:__anon274::__anon277
70 unsigned size; member in struct:__anon274::__anon278
H A Dfile_sync_client.c75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie);
106 ltohl(msg.dent.size),
120 unsigned size; member in struct:syncsendbuf
168 unsigned int *mode, unsigned int *size)
180 *size = ltohl(msg.stat.size);
235 sbuf->size = htoll(ret);
247 static int write_data_buffer(int fd, char* file_buffer, int size, syncsendbuf *sbuf) argument
253 while (total < size) {
254 int count = size
167 sync_finish_readtime(int fd, unsigned int *timestamp, unsigned int *mode, unsigned int *size) argument
304 int size = 0; local
535 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
566 unsigned int size; member in struct:copyinfo
708 unsigned int timestamp, mode, size; local
810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
[all...]
H A Dlog_service.c89 size_t size = sizeof(struct logger_entry) + buf->len; local
91 writex(fd, buf, size);
H A Dremount_service.c38 int size; local
48 size = adb_read(fd, buf, sizeof(buf) - 1);
H A Dfile_sync_service.c65 msg.stat.size = 0;
69 msg.stat.size = htoll(st.st_size);
107 msg.dent.size = htoll(st.st_size);
123 msg.dent.size = 0;
137 msg.data.size = htoll(len);
179 timestamp = ltohl(msg.data.size);
185 len = ltohl(msg.data.size);
241 len = ltohl(msg.data.size);
340 msg.data.size = htoll(r);
351 msg.data.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/core/libpixelflinger/codeflinger/
H A DCodeCache.h57 Assembly(size_t size);
60 ssize_t size() const;
62 ssize_t resize(size_t size);
81 CodeCache(size_t size);
H A Dblending.cpp77 if (!temp.size()) {
127 if (fb.size() < temp.size()) {
129 int new_size = temp.size() < 8 ? temp.size() : 8;
142 integer_t fragment(temp.reg, temp.size(), temp.flags);
325 // XXX: doesn't work if size==1
355 // btw, we're guaranteed that Ad's size is <= 8, because
445 fragment.reg : scratches.obtain(), fb.size(), CORRUPTIBLE);
446 const int shift = fragment.size()
[all...]
/system/extras/ext4_utils/
H A Dcontents.h25 unsigned long size; member in struct:dentry
/system/core/cpio/
H A Dmkbootfs.c167 int size = 32; local
169 char** names = malloc(size * sizeof(char*));
171 fprintf(stderr, "failed to allocate dir names array (size %d)\n", size);
182 if (entries >= size) {
183 size *= 2;
184 names = realloc(names, size * sizeof(char*));
186 fprintf(stderr, "failed to reallocate dir names array (size %d)\n",
187 size);
258 int size; local
[all...]
/system/core/libcutils/
H A Dashmem-dev.c40 * `size' is the size of the region, in page-aligned bytes
42 int ashmem_create_region(const char *name, size_t size) argument
59 ret = ioctl(fd, ASHMEM_SET_SIZE, size);
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp31 ScanlineAssembly(needs_t needs, size_t size) argument
32 : Assembly(size), mKey(needs) { }

Completed in 131 milliseconds

123456