/system/core/libcutils/ |
H A D | array.c | 17 #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 D | Android.mk | 27 array.c \
|
H A D | selector.c | 27 #include <cutils/array.h>
|
H A D | mq.c | 32 #include <cutils/array.h>
|
/system/core/include/cutils/ |
H A D | array.h | 18 * 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 D | VectorImpl.cpp | 252 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 D | SortedVector.h | 70 * 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 D | Vector.h | 70 * 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 D | latencytop.c | 369 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 D | OutputStreamTarget.java | 59 mOutputStream.write(data.array(), 0, data.limit());
|
/system/media/mca/filterfw/java/android/filterfw/core/ |
H A D | VertexFrame.java | 90 byte[] bytes = buffer.array();
|
H A D | SimpleFrame.java | 114 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
|
H A D | NativeFrame.java | 149 byte[] bytes = buffer.array();
|
H A D | GLFrame.java | 210 byte[] bytes = buffer.array();
|
H A D | SerializedFrame.java | 57 * 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 D | plot_sdcard.py | 134 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 D | NativeMedia.java | 155 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 D | dhcpclient.c | 235 static void hex2str(char *buf, const unsigned char *array, int len) argument 241 cp += sprintf(cp, " %02x ", array[i]);
|
/system/core/toolbox/ |
H A D | top.c | 74 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 D | BackDropperFilter.java | 197 // Column-major array for 4x4 matrix converting RGB to YCbCr, JPEG definition (no pedestal) 766 byte[] mask_average = mMaskAverageByteBuffer.array();
|