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

123

/system/media/wilhelm/doc/
H A DMakefile1 html/index.html : Doxyfile clean
/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/nexus/
H A DSupplicantConnectedEvent.cpp30 if ((p = index(event + 2, ' ')) && (++p = index(p, ' '))) {
39 if ((p = index(p, ' ')) && ((++p = index(p, ' ')))) {
H A DSupplicantStateChangeEvent.cpp29 char *p = index(event, ' ');
/system/core/libpixelflinger/tinyutils/
H A DVector.h82 //! read-only access to an item at a given index
83 inline const TYPE& operator [] (size_t index) const;
85 inline const TYPE& itemAt(size_t index) const;
88 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
89 const TYPE& mirrorItemAt(ssize_t index) const;
96 TYPE& editItemAt(size_t index);
104 //! insert another vector at a given index
105 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
116 inline ssize_t insertAt(size_t index, size_t numItems = 1);
118 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_
141 removeAt(size_t index) argument
237 editItemAt(size_t index) argument
247 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
257 insertAt(const TYPE& item, size_t index, size_t numItems) argument
272 replaceAt(const TYPE& item, size_t index) argument
277 insertAt(size_t index, size_t numItems) argument
297 replaceAt(size_t index) argument
302 removeItemsAt(size_t index, size_t count) argument
[all...]
H A DVectorImpl.cpp110 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
112 if (index > size())
114 void* where = _grow(index, vector.size());
118 return where ? index : (ssize_t)NO_MEMORY;
126 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) argument
128 return insertAt(0, index, numItems);
131 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) argument
133 if (index > size())
135 void* where = _grow(index, numItems);
143 return where ? index
172 replaceAt(size_t index) argument
177 replaceAt(const void* prototype, size_t index) argument
[all...]
H A DKeyedVector.h56 const VALUE& valueAt(size_t index) const;
57 const KEY& keyAt(size_t index) const;
65 VALUE& editValueAt(size_t index);
73 ssize_t replaceValueAt(size_t index, const VALUE& item);
80 ssize_t removeItemsAt(size_t index, size_t count = 1);
123 const VALUE& KeyedVector<KEY,VALUE>::valueAt(size_t index) const {
124 return mVector.itemAt(index).value;
128 const KEY& KeyedVector<KEY,VALUE>::keyAt(size_t index) const {
129 return mVector.itemAt(index).key;
140 VALUE& KeyedVector<KEY,VALUE>::editValueAt(size_t index) { argument
157 replaceValueAt(size_t index, const VALUE& item) argument
171 removeItemsAt(size_t index, size_t count) argument
[all...]
H A DSortedVector.h80 //! finds the index of an item
91 //! 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;
108 TYPE& editItemAt(size_t index) { argument
109 return *( static_cast<TYPE *>(VectorImpl::editItemLocation(index)) );
120 inline ssize_t removeItemsAt(size_t index, size_t count = 1);
122 inline ssize_t removeAt(size_t index) { retur argument
[all...]
H A DVectorImpl.h61 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
72 ssize_t replaceAt(size_t index);
73 ssize_t replaceAt(const void* item, size_t index);
76 ssize_t removeItemsAt(size_t index, size_t count = 1);
79 const void* itemLocation(size_t index) const;
80 void* editItemLocation(size_t index);
134 //! finds the index of an item
172 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
176 ssize_t replaceAt(size_t index);
177 ssize_t replaceAt(const void* item, size_t index);
[all...]
/system/media/wilhelm/src/itf/
H A DILEDArray.c55 static SLresult ILEDArray_SetColor(SLLEDArrayItf self, SLuint8 index, const SLHSL *pColor) argument
61 if (!(index < MAX_LED_COUNT) || NULL == pColor)
73 thiz->mColors[index] = color;
82 static SLresult ILEDArray_GetColor(SLLEDArrayItf self, SLuint8 index, SLHSL *pColor) argument
86 if (!(index < MAX_LED_COUNT) || NULL == pColor) {
92 SLHSL color = thiz->mColors[index];
115 SLuint8 index; local
116 for (index = 0; index < MAX_LED_COUNT; ++index,
[all...]
H A DIEngineCapabilities.c109 SLuint32 index; local
113 index = *pIndex;
114 if (index >= thiz->mMaxIndexLED) {
117 id_descriptor = &LED_id_descriptors[index];
129 for (index = 0; index < thiz->mMaxIndexLED; ++index) {
130 id_descriptor = &LED_id_descriptors[index];
151 SLuint32 index; local
155 index
[all...]
H A DIDynamicInterfaceManagement.c36 int index = clazz->mMPH_to_index[MPH]; local
37 assert(0 <= index && index < (int) clazz->mInterfaceCount);
38 SLuint8 *interfaceStateP = &thisObject->mInterfaceStates[index];
53 const struct iid_vtable *x = &clazz->mInterfaces[index];
117 int MPH, index; local
121 (0 > (index = clazz->mMPH_to_index[MPH]))) {
124 assert(index < (int) clazz->mInterfaceCount);
125 SLuint8 *interfaceStateP = &thisObject->mInterfaceStates[index];
161 const struct iid_vtable *x = &clazz->mInterfaces[index];
213 int MPH, index; local
292 int index = clazz->mMPH_to_index[MPH]; local
365 int MPH, index; local
[all...]
H A DIMetadataTraversal.c66 SLMetadataTraversalItf self, SLuint32 index, SLuint32 *pSize)
85 static SLresult IMetadataTraversal_GetChildInfo(SLMetadataTraversalItf self, SLuint32 index, argument
97 static SLresult IMetadataTraversal_SetActiveNode(SLMetadataTraversalItf self, SLuint32 index) argument
101 if (SL_NODE_PARENT == index) {
105 thiz->mIndex = index;
65 IMetadataTraversal_GetChildMIMETypeSize( SLMetadataTraversalItf self, SLuint32 index, SLuint32 *pSize) argument
H A DIMetadataExtraction.c43 SLuint32 index, SLuint32 *pKeySize)
53 index, pKeySize);
64 SLuint32 index, SLuint32 keySize, SLMetadataInfo *pKey)
74 index, keySize, pKey);
85 SLuint32 index, SLuint32 *pValueSize)
95 index, pValueSize);
106 SLuint32 index, SLuint32 valueSize, SLMetadataInfo *pValue)
116 index, valueSize, pValue);
42 IMetadataExtraction_GetKeySize(SLMetadataExtractionItf self, SLuint32 index, SLuint32 *pKeySize) argument
63 IMetadataExtraction_GetKey(SLMetadataExtractionItf self, SLuint32 index, SLuint32 keySize, SLMetadataInfo *pKey) argument
84 IMetadataExtraction_GetValueSize(SLMetadataExtractionItf self, SLuint32 index, SLuint32 *pValueSize) argument
105 IMetadataExtraction_GetValue(SLMetadataExtractionItf self, SLuint32 index, SLuint32 valueSize, SLMetadataInfo *pValue) argument
H A DIAndroidEffectCapabilities.c44 SLuint32 index, SLInterfaceID *pEffectType, SLInterfaceID *pEffectImplementation,
50 if (index > thiz->mNumFx) {
55 *pEffectType = (SLInterfaceID) &thiz->mFxDescriptors[index].type;
58 *pEffectImplementation = (SLInterfaceID) &thiz->mFxDescriptors[index].uuid;
61 int len = strlen(thiz->mFxDescriptors[index].name);
62 strncpy((char*)pName, thiz->mFxDescriptors[index].name,
43 IAndroidEffectCapabilities_QueryEffect(SLAndroidEffectCapabilitiesItf self, SLuint32 index, SLInterfaceID *pEffectType, SLInterfaceID *pEffectImplementation, SLchar * pName, SLuint16 *pNameSize) argument
/system/media/wilhelm/tests/sandbox/
H A Dengine.c41 SLuint32 index; local
42 for (index = 0; index < numSupportedInterfaces + 1; ++index) {
45 result = slQuerySupportedEngineInterfaces(index, &interfaceID);
46 if (index < numSupportedInterfaces) {
48 printf("interface[%u] ", index);
50 engine_ids[index] = interfaceID;
51 engine_req[index] = SL_BOOLEAN_TRUE;
55 result = slQuerySupportedEngineInterfaces(index, NUL
[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/media/wilhelm/src/
H A Dsl_entry.c52 SL_API SLresult SLAPIENTRY slQuerySupportedEngineInterfaces(SLuint32 index, argument
57 result = liQuerySupportedInterfaces(index, pInterfaceId, objectIDtoClass(SL_OBJECTID_ENGINE));
H A Dxa_entry.c51 XA_API XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index, argument
56 result = liQuerySupportedInterfaces(index, (SLInterfaceID *) pInterfaceId,
H A Ddevices.c214 SLuint32 index; local
216 for (index = 0 ; NULL != cd->mDescriptor; ++cd) {
218 ++index;
221 *pIndex = index;
224 index = *pIndex;
227 if (0 == index) {
244 --index;
H A Dentry.c106 SLuint32 index; local
107 for (index = 0; index < pCEngine_class->mInterfaceCount; ++index, ++x,
215 LI_API SLresult liQuerySupportedInterfaces(SLuint32 index, SLInterfaceID *pInterfaceId, argument
240 if (index == 0) {
245 --index;
/system/media/wilhelm/src/android/
H A DAudioPlayer_to_android.h106 SLuint32 index, SLuint32 *pKeySize);
109 SLuint32 index, SLuint32 size, SLMetadataInfo *pKey);
112 SLuint32 index, SLuint32 *pValueSize);
115 SLuint32 index, SLuint32 size, SLMetadataInfo *pValue);
/system/core/sh/
H A Dexec.h48 int index; member in union:cmdentry::param

Completed in 334 milliseconds

123