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

1234

/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/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/TrafficMonitor/
H A DGeneralUtil.c69 int index; local
93 for(index=0;index<MaxNumOfElements;index++)
95 List->ElementList[index].Container = os_memoryAlloc(hOs,ContainerSize);
96 if(List->ElementList[index].Container == NULL)
98 List->ElementList[index].Inuse = FALSE;
100 if (index != MaxNumOfElements) /*Not all the list element was allocated and*/
102 index--;
103 for(;index>
132 int index; local
163 int index; local
194 int index; local
227 int index; local
258 int index; local
[all...]
/system/wlan/ti/wilink_6_1/stad/src/Data_link/
H A DGeneralUtil.c69 int index; local
93 for(index=0;index<MaxNumOfElements;index++)
95 List->ElementList[index].Container = os_memoryAlloc(hOs,ContainerSize);
96 if(List->ElementList[index].Container == NULL)
98 List->ElementList[index].Inuse = TI_FALSE;
100 if (index != MaxNumOfElements) /*Not all the list element was allocated and*/
102 index--;
103 for(;index>
132 int index; local
163 int index; local
194 int index; local
227 int index; local
258 int index; local
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/4X/
H A DackEmulDb.c170 int index; local
171 for(index=0 ; index< MAX_ACIVE_SESSION+MAX_STANDBY_SESSION; index++)
172 wdrv_aeWTargetDbResetTuple(ackEmulDB,index);
173 for(index=0 ; index< MAX_ACIVE_SESSION; index++)
175 ackEmulDB->activeIndexTable[index].status = INDEX_FREE;
176 ackEmulDB->activeIndexTable[index]
198 int index; local
278 int index; local
316 int index; local
353 wdrv_aeWTargetDbResetTuple(ackEmulDB_t* ackEmulDB, int index) argument
404 int index; local
448 wdrv_aeWTargetDbSetSessionSequenceNumber(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 sequenceNumber) argument
464 wdrv_aeWTargetDbGetSessionSequenceNumber(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 *sequenceNumber) argument
483 wdrv_aeWTargetDbSetSessionSegmentSize(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 segmentSize) argument
500 wdrv_aeWTargetDbGetSessionSegmentSize(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 *segmentSize) argument
518 wdrv_aeWTargetDbSetSessionEqualSegmentSizeCounter(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 equalSegmentSizeCounter) argument
536 wdrv_aeWTargetDbGetIncrSessionEqualSegmentSizeCounter(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 *equalSegmentSizeCounter) argument
621 wdrv_aeWTargetDbSetSessionMonitorState(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 monitorState) argument
638 wdrv_aeWTargetDbGetSessionAckNumber(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 *ackNumber) argument
655 wdrv_aeWTargetDbSetSessionAckNumber(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 ackNumber) argument
672 wdrv_aeWTargetDbGetSessionAckCounter(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 *ackCounter) argument
689 wdrv_aeWTargetDbSetSessionAckCounter(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 ackCounter) argument
705 wdrv_aeWTargetDbGetSessionActiveIndex(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 *activeIndex) argument
722 wdrv_aeWTargetDbGetSessionTimeStamp(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 *timeStamp) argument
740 wdrv_aeWTargetDbSetSessionTimeStamp(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 timeStamp) argument
758 UINT8 index; local
784 wdrv_aeWTargetDbSaveAckTemplate(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 *pIpHeader) argument
812 wdrv_aeWTargetDbUpdateAckTemplate(ackEmulDB_t* ackEmulDB, UINT8 index, UINT32 sequenceNumber) argument
835 wdrv_aeWTargetDbCmpAckTemplate(ackEmulDB_t* ackEmulDB, UINT8 index, UINT8 *pIpHeader) argument
1288 int index; local
[all...]
H A DackEmulDb.h116 UINT8 activeIndex; /* Active session index */
117 UINT16 sourceStationIndex; /* Source station index */
165 /* This table store the active monitor session index */
186 int wdrv_aeWTargetDbSetActiveState(ackEmulDB_t* ackEmulDB,UINT8 index , UINT8 *activeIndex);
187 void wdrv_aeWTargetDbSaveAckTemplate(ackEmulDB_t* ackEmulDB,UINT8 index, UINT8 *pIpHeader);
188 void wdrv_aeWTargetDbUpdateAckTemplate(ackEmulDB_t* ackEmulDB,UINT8 index, UINT32 sequenceNumber);
189 int wdrv_aeWTargetDbCmpAckTemplate(ackEmulDB_t* ackEmulDB,UINT8 index, UINT8 *pIpHeader);
190 void wdrv_aeWTargetDbResetTuple(ackEmulDB_t* ackEmulDB,int index);
192 void wdrv_aeWTargetDbGetSessionSequenceNumber(ackEmulDB_t* ackEmulDB,UINT8 index, UINT32 *sequenceNumber);
193 void wdrv_aeWTargetDbGetSessionAckNumber(ackEmulDB_t* ackEmulDB,UINT8 index, UINT3
[all...]
/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/core/libacc/tests/data/
H A DaddressOf.c8 int index = 0; local
14 float *v2 = &s[index].x;
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
H A Dwipp_ctrl.c736 int index; local
740 for (index = 0; index < process_table_current_index; index++)
742 if (process_table[index][1] == father_pid)
744 wipp_control_kill_family_process(process_table[index][0]);
750 for (index = 0; index < process_table_current_index; index++)
752 if (process_table[index][
781 int index; local
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/utils/
H A Dreport.c264 * I - module_index - Report module index in the table \n
287 * I - module_index - Report module index in the table \n
311 * I - module array - set index \n
319 tiUINT8 index; local
323 for (index = 0; index < sizeof(((report_t *)hReport)->ModuleTable); index++)
325 pModules[index] += '0';
341 * I - module array - set index \n
350 tiUINT8 index; local
426 tiUINT8 index; local
455 tiUINT8 index; local
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/Application/Roaming/
H A DroamingMngr.c177 /* The current candidate AP's index to Roam to */
434 UINT8 index; local
550 for (index=ROAMING_TRIGGER_NONE; index<ROAMING_TRIGGER_LAST; index++)
552 pRoamingMngr->roamingTriggerEvents[index] = 0;
553 pRoamingMngr->roamingHandoverEvents[index] = 0;
827 UINT32 index; local
843 for (index=0; index<pRoamingMng
1557 UINT32 index; local
2254 UINT8 index; local
2366 UINT8 index; local
[all...]
/system/wlan/ti/wilink_6_1/stad/src/Application/
H A DroamingMngr_autoSM.c341 TI_UINT32 index; local
360 for (index=0; index<pRoamingMngr->pListOfAPs->numOfEntries; index++ )
363 (pRoamingMngr->pListOfAPs->BSSList[index].RSSI < pRoamingMngr->roamingMngrConfig.apQualityThreshold))
366 TRACE8(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "candidate AP %x-%x-%x-%x-%x-%x with RSSI too low =%d, Quality=%d \n", pRoamingMngr->pListOfAPs->BSSList[index].BSSID[0], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[1], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[2], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[3], pRoamingMngr->pListOfAPs->BSSList[index]
[all...]
H A DroamingMngr.c494 TI_UINT8 index; local
503 for (index=ROAMING_TRIGGER_LOW_TX_RATE; index<ROAMING_TRIGGER_LAST; index++)
505 switch (index)
508 WLAN_OS_REPORT(("- Low TX rate = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
511 WLAN_OS_REPORT(("- Low Snr = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
514 WLAN_OS_REPORT(("- Low Quality = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
517 WLAN_OS_REPORT(("- MAX TX retries = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
520 WLAN_OS_REPORT(("- BSS Loss TX = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
606 TI_UINT8 index; local
714 TI_UINT8 index =0; local
952 TI_UINT32 index; local
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/security/
H A DwhalSecurity.c108 UINT32 index; local
120 for (index=0; index < ((pWhalSecur->numOfStations)*NO_OF_RECONF_SECUR_KEYS_PER_STATION+NO_OF_EXTRA_RECONF_SECUR_KEYS); index++)
121 (pWhalSecur->reconfData.reconfKeys+index)->keyType = NULL_KEY;
348 UINT32 index; local
362 for (index=0; index < ((pWhalSecur->numOfStations)*NO_OF_RECONF_SECUR_KEYS_PER_STATION+NO_OF_EXTRA_RECONF_SECUR_KEYS); index++)
363 (pWhalSecur->reconfData.reconfKeys+index)
431 UINT32 index; local
[all...]
/system/wlan/ti/wilink_6_1/utils/
H A Dreport.c293 TI_UINT8 index; local
305 for (index = 0; index < sizeof(((TReport *)hReport)->aFileEnable); index++)
307 pFiles[index] += '0';
316 TI_UINT8 index; local
324 for (index = 0; index < sizeof(((TReport *)hReport)->aFileEnable); index++)
326 pFiles[index]
340 TI_UINT8 index; local
365 TI_UINT8 index; local
468 TI_UINT32 index; local
[all...]
/system/wlan/ti/wilink_6_1/CUDK/os/linux/src/
H A Dcu_wext.c67 static S32 CuWext_FillBssidList(struct iw_event *iwe, OS_802_11_BSSID_EX* bssidList, S32 index) argument
73 os_memcpy(bssidList[index].MacAddress, iwe->u.ap_addr.sa_data, MAC_ADDR_LEN);
74 bssidList[index].Configuration.BeaconPeriod = 0; /* default configuration */
78 bssidList[index-1].Ssid.SsidLength = iwe->u.data.length;
79 os_memcpy(bssidList[index-1].Ssid.Ssid, iwe->u.data.pointer, bssidList[index-1].Ssid.SsidLength);
81 bssidList[index-1].Ssid.Ssid[bssidList[index-1].Ssid.SsidLength] = 0;
99 bssidList[index-1].NetworkTypeInUse = i;
104 bssidList[index
[all...]
/system/core/sh/
H A Dexec.h48 int index; member in union:cmdentry::param
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/
H A DRateAdaptation.c383 UINT8 index = 0; local
413 pRateAdaptation->RatesMap[index].rate = allRates[i];
414 pRateAdaptation->RatesMap[index].rateNumber = hostRateToNumber(allRates[i]);
416 if((rateAdaptation_isRateInTable(currTable,pRateAdaptation->RatesMap[index].rate)) &&
421 pRateAdaptation->RatesMap[index].valid = TRUE;
422 rateAdaptation_getFallBackStepUp(currTable,pRateAdaptation->RatesMap[index].rate,&fallBack,&stepUp);
423 pRateAdaptation->RatesMap[index].rateAdaptFallBack = fallBack;
424 pRateAdaptation->RatesMap[index].rateAdaptStepUp = stepUp;
427 pRateAdaptation->RatesMap[index].modulation = setModulationForRate(pRateAdaptation,
428 pRateAdaptation->RatesMap[index]
699 UINT8 index; local
736 UINT8 index = 0; local
755 UINT8 index = 0; local
835 UINT8 index; local
[all...]

Completed in 300 milliseconds

1234