Home
last modified time | relevance | path

Searched refs:array (Results 1 – 13 of 13) sorted by relevance

/system/core/libcutils/
Darray.c36 void arrayFree(Array* array) { in arrayFree() argument
37 assert(array != NULL); in arrayFree()
40 free(array->contents); in arrayFree()
43 free(array); in arrayFree()
47 static int ensureCapacity(Array* array, int capacity) { in ensureCapacity() argument
48 int oldCapacity = array->capacity; in ensureCapacity()
71 if (array->contents == NULL) { in ensureCapacity()
79 newContents = realloc(array->contents, sizeof(void*) * newCapacity); in ensureCapacity()
85 array->capacity = newCapacity; in ensureCapacity()
86 array->contents = newContents; in ensureCapacity()
[all …]
DAndroid.mk27 array.c \
/system/core/include/cutils/
Darray.h37 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);
52 int arraySetSize(Array* array, int size);
55 int arraySize(Array* array);
61 const void** arrayUnwrap(Array* array);
/system/core/libpixelflinger/codeflinger/tinyutils/
DVectorImpl.cpp254 void* array = sb->data(); in setCapacity() local
255 _do_copy(array, mStorage, size()); in setCapacity()
257 mStorage = const_cast<void*>(array); in setCapacity()
298 void* array = sb->data(); in _grow() local
300 _do_copy(array, mStorage, where); in _grow()
304 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
308 mStorage = const_cast<void*>(array); in _grow()
314 void* array = editArrayImpl(); in _grow() local
315 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
316 const void* from = reinterpret_cast<const uint8_t *>(array) + where*mItemSize; in _grow()
[all …]
DSortedVector.h75 inline const TYPE* array() const;
174 const TYPE* SortedVector<TYPE>::array() const { in array() function
187 return *(array() + index);
198 return *(array() + ((index<0) ? (size()-index) : index)); in mirrorItemAt()
203 return *(array() + size() - 1); in top()
DVector.h83 inline const TYPE* array() const;
210 const TYPE* Vector<TYPE>::array() const { in array() function
224 return *(array() + index);
237 return *(array() + ((index<0) ? (size()-index) : index)); in mirrorItemAt()
242 return *(array() + size() - 1); in top()
/system/extras/latencytop/
Dlatencytop.c369 struct latency_entry *e, **array; in print_latency_entries() local
381 array = calloc(count, sizeof(struct latency_entry *)); in print_latency_entries()
382 if (!array) { in print_latency_entries()
387 array[i] = e; in print_latency_entries()
391 qsort(array, count, sizeof(struct latency_entry *), &lat_cmp); in print_latency_entries()
395 e = array[i]; in print_latency_entries()
404 free(array); in print_latency_entries()
/system/media/camera/docs/
Dmetadata_parser_xml.py182 array = entry.find('array')
183 if array is not None:
185 for size in array.find_all('size'):
Dmetadata_template.mako86 % if prop.container == 'array':
87 <array>
91 </array>
Dhtml.mako203 % if prop.container == 'array':
/system/extras/tests/sdcard/
Dplot_sdcard.py247 x = numpy.array(dataset.time, dtype='float_')
277 x = numpy.array(dataset.time, dtype='int_')
/system/core/libnetutils/
Ddhcpclient.c239 static void hex2str(char *buf, const unsigned char *array, int len) in hex2str() argument
245 cp += sprintf(cp, " %02x ", array[i]); in hex2str()
/system/core/toolbox/
Dtop.c75 struct proc_info **array; member