Searched refs:index (Results 1 - 25 of 31) sorted by relevance

12

/system/core/libcutils/
H A Darray.c104 static inline void checkBounds(Array* array, int index) { argument
106 assert(index < array->size);
107 assert(index >= 0);
110 void* arrayGet(Array* array, int index) { argument
111 checkBounds(array, index);
112 return array->contents[index];
115 void* arrayRemove(Array* array, int index) { argument
116 checkBounds(array, index);
118 void* pointer = array->contents[index];
123 if (index !
133 arraySet(Array* array, int index, void* pointer) argument
[all...]
H A Dhashmap.c118 size_t index = calculateIndex(newBucketCount, entry->hash); local
119 entry->next = newBuckets[index];
120 newBuckets[index] = entry;
191 size_t index = calculateIndex(map->bucketCount, hash); local
193 Entry** p = &(map->buckets[index]);
223 size_t index = calculateIndex(map->bucketCount, hash); local
225 Entry* entry = map->buckets[index];
238 size_t index = calculateIndex(map->bucketCount, hash); local
240 Entry* entry = map->buckets[index];
254 size_t index local
286 size_t index = calculateIndex(map->bucketCount, hash); local
[all...]
/system/core/include/cutils/
H A Darray.h42 /** Gets the pointer at the specified index. */
43 void* arrayGet(Array* array, int index);
45 /** Removes the pointer at the given index and returns it. */
46 void* arrayRemove(Array* array, int index);
48 /** Sets pointer at the given index. Returns old pointer. */
49 void* arraySet(Array* array, int index, void* pointer);
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DVector.h91 //! read-only access to an item at a given index
92 inline const TYPE& operator [] (size_t index) const;
94 inline const TYPE& itemAt(size_t index) const;
97 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
98 const TYPE& mirrorItemAt(ssize_t index) const;
105 TYPE& editItemAt(size_t index);
113 //! insert another vector at a given index
114 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
125 inline ssize_t insertAt(size_t index, size_t numItems = 1);
127 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_
150 removeAt(size_t index) argument
246 editItemAt(size_t index) argument
256 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
266 insertAt(const TYPE& item, size_t index, size_t numItems) argument
281 replaceAt(const TYPE& item, size_t index) argument
286 insertAt(size_t index, size_t numItems) argument
306 replaceAt(size_t index) argument
311 removeItemsAt(size_t index, size_t count) argument
[all...]
H A DVectorImpl.cpp112 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
114 if (index > size())
116 void* where = _grow(index, vector.size());
120 return where ? index : (ssize_t)NO_MEMORY;
128 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) argument
130 return insertAt(0, index, numItems);
133 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) argument
135 if (index > size())
137 void* where = _grow(index, numItems);
145 return where ? index
174 replaceAt(size_t index) argument
179 replaceAt(const void* prototype, size_t index) argument
488 ssize_t index = _indexOrderOf(item, &order); local
[all...]
H A DKeyedVector.h65 const VALUE& valueAt(size_t index) const;
66 const KEY& keyAt(size_t index) const;
74 VALUE& editValueAt(size_t index);
82 ssize_t replaceValueAt(size_t index, const VALUE& item);
89 ssize_t removeItemsAt(size_t index, size_t count = 1);
132 const VALUE& KeyedVector<KEY,VALUE>::valueAt(size_t index) const {
133 return mVector.itemAt(index).value;
137 const KEY& KeyedVector<KEY,VALUE>::keyAt(size_t index) const {
138 return mVector.itemAt(index).key;
149 VALUE& KeyedVector<KEY,VALUE>::editValueAt(size_t index) { argument
166 replaceValueAt(size_t index, const VALUE& item) argument
180 removeItemsAt(size_t index, size_t count) argument
[all...]
H A DSortedVector.h81 //! finds the index of an item
92 //! read-only access to an item at a given index
93 inline const TYPE& operator [] (size_t index) const;
95 inline const TYPE& itemAt(size_t index) const;
98 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
99 const TYPE& mirrorItemAt(ssize_t index) const;
109 TYPE& editItemAt(size_t index) { argument
110 return *( static_cast<TYPE *>(VectorImpl::editItemLocation(index)) );
121 inline ssize_t removeItemsAt(size_t index, size_t count = 1);
123 inline ssize_t removeAt(size_t index) { retur argument
[all...]
H A DVectorImpl.h70 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
81 ssize_t replaceAt(size_t index);
82 ssize_t replaceAt(const void* item, size_t index);
85 ssize_t removeItemsAt(size_t index, size_t count = 1);
88 const void* itemLocation(size_t index) const;
89 void* editItemLocation(size_t index);
143 //! finds the index of an item
181 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
185 ssize_t replaceAt(size_t index);
186 ssize_t replaceAt(const void* item, size_t index);
[all...]
/system/extras/fatblock/
H A Dfatblock.c80 static int set_ums_file(int index) argument
94 WARN("writing '/dev/block/ublock%d' to %s.\n", index, filename);
96 fprintf(file, "/dev/block/ublock%d", index);
154 int index; local
182 index = ublock_index(ub);
183 if (index < 0)
184 DIE("fatblock: invalid ublock index %d; aborting\n", index);
186 INFO("fatblock: block device ublock%d created\n", index);
187 set_ums_file(index);
[all...]
/system/core/sh/
H A Dexec.h48 int index; member in union:cmdentry::param
H A Dexec.c92 short cmdtype; /* index identifying command */
99 STATIC int builtinloc = -1; /* index in path of %builtin, or -1 */
385 idx = cmdp->param.index;
448 entry->u.index = -1;
452 entry->u.index = -1;
456 entry->u.index = 0;
506 prev = cmdp->param.index;
579 cmdp->param.index = idx;
749 cmdp->param.index >= firstchange)
878 entry->u.index
[all...]
/system/media/camera/include/system/
H A Dcamera_metadata.h81 size_t index; member in struct:camera_metadata_entry
100 size_t index; member in struct:camera_metadata_ro_entry
319 * the end of the structure (highest index), so after addition, a
337 * Get metadata entry at position index in the metadata buffer.
339 * src and index are inputs; the passed-in entry is updated with the details of
345 size_t index,
370 * Delete an entry at given index. This is an expensive operation, since it
377 size_t index);
390 size_t index,
/system/media/camera/src/
H A Dcamera_metadata.c46 * array; otherwise, it can found in the parent's data array at index
379 ALOGE("%s: Entry index %u had bad alignment (address %p),"
388 ALOGE("%s: Entry index %u had a bad type %d",
398 ALOGE("%s: Entry index %u had tag type %d, but the type was %d",
413 ALOGE("%s: Entry index %u had bad data alignment (address %p),"
425 ALOGE("%s: Entry index %u data ends (%u) beyond the capacity "
433 ALOGE("%s: Entry index %u had 0 items, but offset was non-0 "
576 size_t index,
579 if (index >= src->entry_count) return ERROR;
581 camera_metadata_buffer_entry_t *buffer_entry = get_entries(src) + index;
575 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument
637 delete_camera_metadata_entry(camera_metadata_t *dst, size_t index) argument
675 update_camera_metadata_entry(camera_metadata_t *dst, size_t index, const void *data, size_t data_count, camera_metadata_entry_t *updated_entry) argument
908 int index = 0; local
[all...]
/system/core/libctest/
H A Dctest.c62 int index = testSuite->size; local
63 testSuite->testNames[index] = name;
64 testSuite->tests[index] = test;
/system/core/toolbox/
H A Dkill.c70 unsigned int index = sorted_signals[i]; local
71 if (index == SENTINEL) {
75 fprintf(stderr, "%2d) SIG%-9s ", i, signals[index].name);
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp261 EXPECT_EQ(0, (int)entry.index);
270 EXPECT_EQ((size_t)1, entry.index);
279 EXPECT_EQ((size_t)2, entry.index);
288 EXPECT_EQ((size_t)3, entry.index);
356 EXPECT_EQ(i, entry.index);
437 EXPECT_EQ(e1.index, e2.index);
494 EXPECT_EQ(i, e1.index);
497 EXPECT_EQ(e1.index, e2.index);
[all...]
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c79 for (size_t index = 0; returned_frames < max_depth; index++) {
80 uintptr_t pc = index ? rewind_pc_arch(memory, state->pc) : state->pc;
94 index, frame, frame->absolute_pc, frame->stack_top);
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp168 ssize_t index = mCacheData.indexOfKey(key_t(keyBase));
169 if (index >= 0) {
170 const cache_entry_t& e = mCacheData.valueAt(index);
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c24 * An ELF binary may contain an EXIDX section that provides an index to
152 uint32_t index = (low + high) / 2; local
153 uintptr_t entry = exidx_start + index * 8;
155 ALOGV("XXX low=%u, high=%u, index=%u", low, high, index);
162 high = index;
165 if (index + 1 < exidx_size) {
174 low = index + 1;
189 handler_index = index;
493 for (size_t index
[all...]
/system/netd/
H A Dndc.c77 if (index(argv[i], '"')) {
82 bool needs_quoting = index(argv[i], ' ');
/system/extras/libublock/
H A Dublock.c32 uint32_t index; member in struct:ublock_ctx
98 ub_ctx->index = in_h->index;
326 return ub_ctx->index;
/system/media/audio_route/
H A Daudio_route.c57 int index; member in struct:mixer_value
241 /* Check that mixer value index is within range */
243 if (mixer_value->index >= (int)num_values) {
244 ALOGE("mixer index %d is out of range for '%s'", mixer_value->index,
265 if (mixer_value->index == -1) {
278 path->setting[path_index].value[mixer_value->index] = mixer_value->value;
458 mixer_value.index = atoi((char *)attr_id);
460 mixer_value.index = -1;
/system/core/adb/
H A Dtransport_local.c423 int index = get_available_local_transport_index_locked(); local
428 } else if (index < 0) {
434 local_transports[index] = t;
/system/core/include/usbhost/
H A Dusbhost.h197 int index,
/system/core/libpixelflinger/
H A Dbuffer.cpp117 int32_t index = x + (s->stride * y); local
118 uint8_t* const data = s->data + index * f->size;
174 int32_t index = x + (s->stride * y); local
175 uint8_t* const data = s->data + index * f->size;

Completed in 543 milliseconds

12