Searched refs:array (Results 1 - 20 of 20) sorted by relevance

/system/core/libcutils/
H A Darray.c17 #include <cutils/array.h>
36 void arrayFree(Array* array) { argument
37 assert(array != NULL);
39 // Free internal array.
40 free(array->contents);
43 free(array);
47 static int ensureCapacity(Array* array, int capacity) { argument
48 int oldCapacity = array->capacity;
71 if (array->contents == NULL) {
72 // Allocate new array
92 arrayAdd(Array* array, void* pointer) argument
104 checkBounds(Array* array, int index) argument
110 arrayGet(Array* array, int index) argument
115 arrayRemove(Array* array, int index) argument
133 arraySet(Array* array, int index, void* pointer) argument
140 arraySetSize(Array* array, int newSize) argument
163 arraySize(Array* array) argument
168 arrayUnwrap(Array* array) argument
[all...]
H A DAndroid.mk27 array.c \
H A Dselector.c27 #include <cutils/array.h>
H A Dmq.c32 #include <cutils/array.h>
/system/core/include/cutils/
H A Darray.h18 * A pointer array which intelligently expands its capacity ad needed.
30 /** An array. */
33 /** Constructs a new array. Returns NULL if we ran out of memory. */
36 /** Frees an array. Does not free elements themselves. */
37 void arrayFree(Array* array);
40 int arrayAdd(Array* array, void* pointer);
43 void* arrayGet(Array* array, int index);
46 void* arrayRemove(Array* array, int index);
49 void* arraySet(Array* array, int index, void* pointer);
51 /** Sets the array siz
[all...]
/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp252 void* array = sb->data();
253 _do_copy(array, mStorage, size());
255 mStorage = const_cast<void*>(array);
296 void* array = sb->data(); variable
298 _do_copy(array, mStorage, where);
302 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
306 mStorage = const_cast<void*>(array);
312 void* array = editArrayImpl(); variable
313 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
314 const void* from = reinterpret_cast<const uint8_t *>(array)
[all...]
H A DSortedVector.h70 * C-style array access
74 inline const TYPE* array() const;
76 //! read-write C-style access. BE VERY CAREFUL when modifying the array
101 * modifing the array
173 const TYPE* SortedVector<TYPE>::array() const { function in class:android::SortedVector
186 return *(array() + index);
197 return *(array() + ((index<0) ? (size()-index) : index));
202 return *(array() + size() - 1);
H A DVector.h70 * C-style array access
74 inline const TYPE* array() const;
92 * modifing the array
144 * sort (stable) the array
201 const TYPE* Vector<TYPE>::array() const { function in class:android::Vector
215 return *(array() + index);
228 return *(array() + ((index<0) ? (size()-index) : index));
233 return *(array() + size() - 1);
/system/extras/latencytop/
H A Dlatencytop.c369 struct latency_entry *e, **array; local
381 array = calloc(count, sizeof(struct latency_entry *));
382 if (!array) {
383 fprintf(stderr, "Error allocating array: %s\n", strerror(errno));
387 array[i] = e;
391 qsort(array, count, sizeof(struct latency_entry *), &lat_cmp);
395 e = array[i];
404 free(array);
/system/media/mca/filterfw/java/android/filterfw/basefilters/
H A DOutputStreamTarget.java59 mOutputStream.write(data.array(), 0, data.limit());
/system/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java90 byte[] bytes = buffer.array();
H A DSimpleFrame.java114 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
H A DNativeFrame.java149 byte[] bytes = buffer.array();
H A DGLFrame.java210 byte[] bytes = buffer.array();
H A DSerializedFrame.java57 * An unsynchronized output stream that writes data to an accessible byte array. Callers are
59 * there are no array copies or synchronization involved to read back written data.
119 * An unsynchronized input stream that reads data directly from a provided byte array. Callers
232 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
/system/extras/tests/sdcard/
H A Dplot_sdcard.py134 data = [] # array of dataset
247 x = numpy.array(dataset.time, dtype='float_')
277 x = numpy.array(dataset.time, dtype='int_')
/system/media/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DNativeMedia.java155 this, R.array.source_array, android.R.layout.simple_spinner_item);
175 this, R.array.sink_array, android.R.layout.simple_spinner_item);
/system/core/libnetutils/
H A Ddhcpclient.c235 static void hex2str(char *buf, const unsigned char *array, int len) argument
241 cp += sprintf(cp, " %02x ", array[i]);
/system/core/toolbox/
H A Dtop.c74 struct proc_info **array; member in struct:proc_list
356 if (!new_procs) die("Could not expand procs array.\n");
/system/media/mca/filterpacks/videoproc/java/
H A DBackDropperFilter.java197 // Column-major array for 4x4 matrix converting RGB to YCbCr, JPEG definition (no pedestal)
766 byte[] mask_average = mMaskAverageByteBuffer.array();

Completed in 173 milliseconds