Searched defs:size (Results 26 - 50 of 141) sorted by relevance

123456

/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp34 ScanlineAssembly(needs_t needs, size_t size) argument
35 : Assembly(size), mKey(needs) { }
/system/core/libutils/tests/
H A DBlobCache_test.cpp274 size_t size = mBC->getFlattenedSize(); local
275 uint8_t* flat = new uint8_t[size];
276 ASSERT_EQ(OK, mBC->flatten(flat, size));
277 ASSERT_EQ(OK, mBC2->unflatten(flat, size));
322 size_t size = mBC->getFlattenedSize(); local
323 uint8_t* flat = new uint8_t[size];
324 ASSERT_EQ(OK, mBC->flatten(flat, size));
344 size_t size = mBC->getFlattenedSize() - 1; local
345 uint8_t* flat = new uint8_t[size];
346 ASSERT_EQ(BAD_VALUE, mBC->flatten(flat, size));
354 size_t size = mBC->getFlattenedSize(); local
371 size_t size = mBC->getFlattenedSize(); local
390 size_t size = mBC->getFlattenedSize(); local
409 size_t size = mBC->getFlattenedSize(); local
[all...]
/system/core/toolbox/
H A Dinsmod.c18 ssize_t size; local
29 size = sb.st_size;
32 buffer = malloc(size);
37 ret = read(fd, buffer, size);
38 if (ret != size)
42 *_size = size;
52 ssize_t size = 0; local
63 file = read_file(argv[1], &size);
85 ret = init_module(file, size, opts);
/system/extras/tests/storage/
H A Dwipe_blkdev.c39 u64 size = 0; local
42 ret = ioctl(fd, BLKGETSIZE64, &size);
47 return size;
122 fprintf(stderr, "Cannot get size of block device %s\n", devname);
/system/keymaster/include/keymaster/
H A Dgoogle_keymaster_utils.h43 * for operating on c-style arrays. C-style arrays actually do have a defined size associated with
45 * to allow size-based array operations without explicitly specifying the size. If passed a pointer
50 * Return the size in bytes of the array \p a.
65 * responsibility. Note that the dup is necessarily returned as a pointer, so size is lost. Call
66 * array_length() on the original array to discover the size.
80 uint8_t* dup_buffer(const void* buf, size_t size);
143 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} argument
/system/core/adb/
H A Dframebuffer_service.c42 unsigned int size; member in struct:fbinfo
91 fbinfo.size = w * h * 4;
105 fbinfo.size = w * h * 4;
119 fbinfo.size = w * h * 3;
133 fbinfo.size = w * h * 2;
147 fbinfo.size = w * h * 4;
167 for(i = 0; i < fbinfo.size; i += bsize) {
169 if (i + bsize > fbinfo.size)
170 bsize = fbinfo.size - i;
H A Dtransport_usb.c84 unsigned size = p->msg.data_length; local
93 if(usb_write(t->usb, &p->data, size)) {
H A Dfile_sync_service.h58 unsigned size; member in struct:__anon6::__anon8
64 unsigned size; member in struct:__anon6::__anon9
70 unsigned size; member in struct:__anon6::__anon10
/system/core/fastbootd/commands/
H A Dflash.c84 int64_t size; local
85 size = get_block_device_size(fd);
86 D(DEBUG, "erase %"PRId64" data from %d\n", size, fd);
88 return wipe_block_device(fd, size);
91 int flash_write(int partition_fd, int data_fd, ssize_t size, ssize_t skip) argument
97 while (written < size) {
98 int current_size = MIN(size - written, BUFFER_SIZE);
101 D(ERR, "Error in writing data, unable to map data file %zd at %zd size %d", size, skip, current_size);
/system/core/include/utils/
H A DFlattenable.h32 static size_t align(size_t size) { argument
34 return (size + (N-1)) & ~(N-1);
50 static void advance(void*& buffer, size_t& size, size_t offset) { argument
52 size -= offset;
55 static void advance(void const*& buffer, size_t& size, size_t offset) { argument
57 size -= offset;
62 static void write(void*& buffer, size_t& size, const T& value) { argument
64 advance(buffer, size, sizeof(T));
69 static void read(void const*& buffer, size_t& size, T& value) { argument
71 advance(buffer, size, sizeo
117 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
122 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
163 unflatten(void const* buffer, size_t size) argument
[all...]
H A DString16.h67 inline size_t size() const;
147 inline size_t String16::size() const function in class:android::String16
178 return strzcmp16(mString, size(), other.mString, other.size());
183 return strzcmp16(mString, size(), other.mString, other.size()) < 0;
188 return strzcmp16(mString, size(), other.mString, other.size()) <= 0;
193 return strzcmp16(mString, size(), other.mString, other.size())
[all...]
/system/core/libcutils/
H A Dopen_memstream.c71 size_t allocSize; /* size of buffer */
80 * Ensure that we have enough storage to write "size" bytes at the
88 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize));
105 DBUG(("+++ realloc %p->%p to size=%d\n",
123 static int write_memstream(void* cookie, const char* buf, int size) argument
127 if (ensureCapacity(stream, size) < 0)
139 memcpy(*stream->bufp + stream->offset, buf, size);
140 stream->offset += size;
156 return size;
/system/core/libion/tests/
H A Ddevice_test.cpp37 void readDMA(int fd, void *buf, size_t size);
38 void writeDMA(int fd, void *buf, size_t size);
39 void readKernel(int fd, void *buf, size_t size);
40 void writeKernel(int fd, void *buf, size_t size);
42 void dirtyCache(void *ptr, size_t size);
58 void Device::readDMA(int fd, void *buf, size_t size) argument
64 .size = size,
72 void Device::writeDMA(int fd, void *buf, size_t size) argument
78 .size
86 readKernel(int fd, void *buf, size_t size) argument
100 writeKernel(int fd, void *buf, size_t size) argument
125 dirtyCache(void *ptr, size_t size) argument
[all...]
/system/core/libpixelflinger/
H A Dclear.cpp53 const uint32_t size = c->formats[s.format].size; local
54 const int32_t stride = s.stride * size;
55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size;
56 w *= size;
64 switch (size) {
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DSortedVector.h62 inline size_t size() const { return VectorImpl::size(); } function in class:android::tinyutils::SortedVector
67 //! setst the capacity. capacity can never be reduced less than size()
68 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
186 assert( index<size() );
197 assert( (index>0 ? index : -index)<size() );
198 return *(array() + ((index<0) ? (size()-index) : index));
203 return *(array() + size() - 1);
/system/core/logd/
H A Dlibaudit.c78 * @param size
83 static int audit_send(int fd, int type, const void *data, size_t size) argument
98 req.nlh.nlmsg_len = NLMSG_SPACE(size);
110 if (NLMSG_SPACE(size) > MAX_AUDIT_MESSAGE_LENGTH) {
116 if (size && data) {
117 memcpy(NLMSG_DATA(&req.nlh), data, size); local
129 * in size. The only safe type to use here is a signed 16
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c165 buffer_write(const char *str, size_t size, int flush) argument
172 for (i = 0; i < size; i++) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfastgrep.c283 size_t size; local
288 if ((size = mbstowcs(NULL, (const char *)data, 0)) ==
292 wdata = grep_malloc(size * sizeof(wint_t));
294 if (mbstowcs(wdata, (const char *)data, size) ==
298 if ((size = mbstowcs(NULL, (const char *)pat, 0)) ==
302 wpat = grep_malloc(size * sizeof(wint_t));
304 if (mbstowcs(wpat, (const char *)pat, size) == ((size_t) - 1))
/system/extras/tests/memtest/
H A Dmemtest.cpp42 " copy_bandwidth [--size BYTES_TO_COPY]\n"
43 " write_bandwidth [--size BYTES_TO_WRITE]\n"
44 " read_bandwidth [--size BYTES_TO_COPY]\n"
45 " per_core_bandwidth [--size BYTES]\n"
50 " multithread_bandwidth [--size BYTES]\n"
119 size_t size = 0x40000000; local
120 while (size) {
121 void* addr = malloc(size);
123 printf("size = %9zd failed\n", size);
144 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local
[all...]
/system/extras/tests/sdcard/
H A Dstopwatch.cpp36 #define SNPRINTF_OR_RETURN(str, size, format, ...) { \
37 int len = snprintf((str), (size), (format), ## __VA_ARGS__); \
39 if (len > static_cast<int>(size)) { \
43 (size) -= len; (str) += len; \
106 void StopWatch::sprint(char **str, size_t *size) argument
118 if (kVerbose) SNPRINTF_OR_RETURN(*str, *size, "# Got %d samples for %s\n", mDataLen, mName);
121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n",
123 printThroughput(str, size);
124 printAverageMinMax(str, size);
130 SNPRINTF_OR_RETURN(*str, *size, "# Nam
217 printAverageMinMax(char **str, size_t *size) argument
228 printThroughput(char **str, size_t *size) argument
[all...]
/system/keymaster/
H A Dauthorization_set_test.cpp46 EXPECT_EQ(8U, set.size());
77 EXPECT_EQ(8U, set.size());
109 EXPECT_EQ(8U, set.size());
135 EXPECT_EQ(8U, set.size());
161 size_t size = set.SerializedSize(); local
162 EXPECT_TRUE(size > 0);
164 UniquePtr<uint8_t[]> buf(new uint8_t[size]);
165 EXPECT_EQ(buf.get() + size, set.Serialize(buf.get(), buf.get() + size));
166 AuthorizationSet deserialized(buf.get(), size);
191 size_t size = set.SerializedSize(); local
238 size_t size = set.SerializedSize(); local
272 size_t size = set.SerializedSize(); local
[all...]
H A Dserializable.cpp28 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { argument
29 if (end < *buf_ptr + size)
31 memcpy(dest, *buf_ptr, size);
32 *buf_ptr += size;
36 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, argument
38 if (!copy_uint32_from_buf(buf_ptr, end, size) || *buf_ptr + *size > end) {
41 if (*size == 0) {
45 dest->reset(new uint8_t[*size]);
48 return copy_from_buf(buf_ptr, end, dest->get(), *size);
51 reserve(size_t size) argument
67 Reinitialize(size_t size) argument
[all...]
/system/vold/
H A DExt4.cpp82 SLOGE("Filesystem (ext4) resize failed to set size");
127 const char *size = tmp; local
129 args[5] = size;
/system/core/fastboot/
H A Dprotocol.c50 static int check_response(usb_handle *usb, unsigned int size, char *response) argument
91 if(!memcmp(status, "DATA", 4) && size > 0){
93 if(dsize > size) {
94 strcpy(ERROR, "data size too large");
109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument
129 return check_response(usb, size, response);
132 static int _command_data(usb_handle *usb, const void *data, unsigned size) argument
136 r = usb_write(usb, data, size);
142 if(r != ((int) size)) {
162 const void *data, unsigned size,
161 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument
204 fb_download_data(usb_handle *usb, const void *data, unsigned size) argument
292 int size = sparse_file_len(s, true, false); local
[all...]
/system/core/fastbootd/other/
H A Dgptedit.c212 uint64_t size = entry->last_lba - entry->first_lba + 1; local
225 printf(" partition_size %"PRId64"\n", size);

Completed in 873 milliseconds

123456