Searched refs:size (Results 1 - 25 of 195) sorted by relevance

12345678

/system/extras/ext4_utils/
H A Dsparse_crc32.h17 u32 sparse_crc32(u32 crc, const void *buf, size_t size);
/system/media/mca/filterfw/native/core/
H A Dvertex_frame.cpp32 VertexFrame::VertexFrame(int size) argument
34 size_(size) {
46 bool VertexFrame::WriteData(const uint8_t* data, int size) { argument
59 if (first_upload && size == size_)
60 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
61 else if (!first_upload && size <= size_)
62 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data);
65 "inside the vertex frame (%d bytes)!", size, size_);
73 // Subsequent uploads are now bound to the size given here
74 size_ = size;
[all...]
H A Dnative_frame.cpp22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { argument
30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument
31 if (size_ >= (offset + size)) {
32 memcpy(data_ + offset, data, size);
38 bool NativeFrame::SetData(uint8_t* data, int size) { argument
40 size_ = capacity_ = size;
H A Dnative_frame.h30 NativeFrame(int size);
34 // Set the frame data and size in bytes. The NativeFrame object takes ownership of the data.
36 bool SetData(uint8_t* data, int size);
38 // Write the specified data of the given size to the frame at the specified offset. The
40 bool WriteData(const uint8_t* data, int offset, int size);
52 // Resize the frame. You can only resize to a size that fits within the frame's capacity.
56 // Returns the size of the frame in bytes.
H A Dvertex_frame.h32 // Create a VertexFrame of the specified size (in bytes).
33 explicit VertexFrame(int size);
37 // Upload the given data to the vertex buffer. The size must match the size
39 // be able to fit within the allocated space (i.e. size must not exceed the
40 // frame's size).
41 bool WriteData(const uint8_t* data, int size);
43 // The size of the vertex buffer in bytes.
70 // The size of this frame in bytes
/system/core/libcutils/
H A Dmemory.c20 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument
22 size >>= 1;
23 while (size--) {
30 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument
32 size >>= 2;
33 while (size--) {
62 * Copy src to string dst of size siz. At most siz-1 characters
H A Dbuffer.c47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { argument
55 buffer->size = size;
72 buffer->size = 0;
78 assert(buffer->size < buffer->expected);
81 buffer->data + buffer->size,
82 buffer->expected - buffer->size);
85 buffer->size += bytesRead;
86 return buffer->size;
93 buffer->remaining = buffer->size;
[all...]
H A Darray.c28 int size; member in struct:Array
94 int size = array->size; local
95 int result = ensureCapacity(array, size + 1);
99 array->contents[size] = pointer;
100 array->size++;
106 assert(index < array->size);
120 int newSize = array->size - 1;
128 array->size = newSize;
144 int oldSize = array->size;
[all...]
/system/media/mca/filterfw/jni/
H A Djni_native_buffer.cpp20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument
29 if (size) {
30 *size = env->GetIntField(buffer, size_field);
39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument
48 env->SetIntField(buffer, size_field, size);
53 jboolean Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) { argument
54 char* data = new char[size];
55 return ToJBool(AttachDataToJBuffer(env, thiz, data, size));
72 int size; local
73 char* source_data = GetJBufferData(env, thiz, &size);
[all...]
H A Djni_native_buffer.h24 * Given a Java NativeBuffer instance, get access to the underlying C pointer and its size. The
25 * size argument may be NULL, in which case the object is not queried for its size.
27 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size);
30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After
35 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size);
43 Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size);
/system/core/include/cutils/
H A Dpartition_utils.h23 void erase_footer(const char *dev_path, long long size);
H A Dmemory.h27 /* size is given in bytes and must be multiple of 2 */
28 void android_memset16(uint16_t* dst, uint16_t value, size_t size);
30 /* size is given in bytes and must be multiple of 4 */
31 void android_memset32(uint32_t* dst, uint32_t value, size_t size);
35 size_t strlcpy(char *dst, const char *src, size_t size);
/system/extras/tests/memtest/
H A Dmemtest.cpp134 int validate_memcpy(char* s, char* d, size_t size);
135 int validate_memset(char* s, char c, size_t size);
162 struct result_t { int size; float res; }; member in struct:result_t
165 int size = 0; local
168 if (size<128) size += 8;
169 else if (size<1024) size += 128;
170 else if (size<16384) size
238 validate_memcpy(char* s, char* d, size_t size) argument
288 struct result_t { int size; float res; }; member in struct:result_t
291 int size = 0; local
345 validate_memset(char* d, char c, size_t size) argument
389 validate_memcmp(const char* s, const char* d, size_t size) argument
426 struct result_t { int size; float res; }; member in struct:result_t
429 int size = 0; local
538 struct result_t { int size; float res; }; member in struct:result_t
541 int size = 0; local
597 size_t size = 0x40000000; local
627 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local
[all...]
/system/core/fastboot/
H A Dprotocol.c43 static int check_response(usb_handle *usb, unsigned size, argument
87 if(dsize > size) {
88 strcpy(ERROR, "data size too large");
104 const void *data, unsigned size,
126 return check_response(usb, size, 0, response);
129 r = check_response(usb, size, 1, 0);
133 size = r;
135 if(size) {
136 r = usb_write(usb, data, size);
142 if(r != ((int) size)) {
103 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument
167 fb_download_data(usb_handle *usb, const void *data, unsigned size) argument
[all...]
/system/extras/tests/sdcard/
H A Dsysutil.cpp74 // @param size The size of the buffer pointed by str. Must be >= 1.
77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument
79 if (NULL == start || size == 0)
99 --size; // reserve space for trailing '\0'
101 while (size > 0 && !error && !eof && attempts < kMaxAttempts)
105 s = read(fd, end, size);
122 size -= s;
161 size_t size = len; local
165 while (size >
235 kernelVersion(char *str, size_t size) argument
285 schedFeatures(char *str, size_t size) argument
447 size_t size = sizeof(pid); local
525 size_t size; local
[all...]
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/core/toolbox/
H A Dinsmod.c17 ssize_t size; local
28 size = sb.st_size;
31 buffer = malloc(size);
36 ret = read(fd, buffer, size);
37 if (ret != size)
41 *_size = size;
52 ssize_t size = 0; local
63 file = read_file(argv[1], &size);
85 ret = init_module(file, size, opts);
/system/core/include/sysutils/
H A DNetlinkEvent.h41 bool decode(char *buffer, int size, int format = NetlinkListener::NETLINK_FORMAT_ASCII);
50 bool parseBinaryNetlinkMessage(char *buffer, int size);
51 bool parseAsciiNetlinkMessage(char *buffer, int size);
/system/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java38 public Rectangle(Point origin, Point size) { argument
40 origin.plus(size.x, 0.0f),
41 origin.plus(0.0f, size.y),
42 origin.plus(size.x, size.y));
45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { argument
46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f);
47 Point p1 = new Point(center.x + size.x/2f, center.y - size
60 fromCenterVerticalAxis(Point center, Point vAxis, Point size) argument
[all...]
/system/core/libzipfile/
H A Dtest_zipfile.c12 size_t size, unsize; local
41 size = ftell(f);
44 buf = malloc(size);
45 fread(buf, 1, size, f);
47 zip = init_zipfile(buf, size);
74 size = unsize * 1.001;
75 scratch = malloc(size);
77 err = decompress_zipentry(entry, scratch, size);
/system/core/sh/
H A Dmystring.c75 * truncation is performed. "Size" is the size of "to".
79 scopyn(const char *from, char *to, int size) argument
82 while (--size > 0) {
/system/media/wilhelm/src/desktop/
H A DOutputMixExt.h32 void (*FillBuffer)(SLOutputMixExtItf self, void *pBuffer, SLuint32 size);
48 extern void IOutputMixExt_FillBuffer(SLOutputMixExtItf self, void *pBuffer, SLuint32 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/debuggerd/
H A Dutility.c37 void get_remote_struct(int pid, void *src, void *dst, size_t size) argument
41 for (i = 0; i+4 <= size; i+=4) {
45 if (i < size) {
48 assert((size - i) < 4);
50 while (i < size) {
/system/core/libpixelflinger/tinyutils/
H A DSharedBuffer.h28 /*! allocate a buffer of size 'size' and acquire() it.
31 static SharedBuffer* alloc(size_t size);
49 //! get size of the buffer
50 inline size_t size() const;
58 //! get the size of a SharedBuffer object from its data
65 SharedBuffer* editResize(size_t size) const;
71 SharedBuffer* reset(size_t size) const;
111 size_t SharedBuffer::size() const { function in class:android::SharedBuffer

Completed in 204 milliseconds

12345678