Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/hardware/qcom/display/msm8960/liboverlay/
Doverlay.h92 void validate(int index);
111 static void setUse(int index);
112 static void resetUse(int index);
113 static bool isUsed(int index);
114 static bool isNotUsed(int index);
117 static void setAllocation(int index);
118 static void resetAllocation(int index);
119 static bool isAllocated(int index);
120 static bool isNotAllocated(int index);
153 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp103 int index = (int)dest; in nextPipe() local
106 mPipeBook[index].mDisplay = dpy; in nextPipe()
107 if(not mPipeBook[index].valid()) { in nextPipe()
108 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
124 int index = (int)dest; in commit() local
125 validate(index); in commit()
127 if(mPipeBook[index].mPipe->commit()) { in commit()
132 int dpy = mPipeBook[index].mDisplay; in commit()
142 int index = (int)dest; in queueBuffer() local
144 validate(index); in queueBuffer()
[all …]
/hardware/libhardware/modules/usbaudio/
Dalsa_device_profile.c67 size_t index; in profile_init() local
68 for (index = 0; index < ARRAY_SIZE(profile->formats); index++) { in profile_init()
69 profile->formats[index] = PCM_FORMAT_INVALID; in profile_init()
72 for (index = 0; index < ARRAY_SIZE(profile->sample_rates); index++) { in profile_init()
73 profile->sample_rates[index] = 0; in profile_init()
76 for (index = 0; index < ARRAY_SIZE(profile->channel_counts); index++) { in profile_init()
77 profile->channel_counts[index] = 0; in profile_init()
151 size_t index; in profile_is_sample_rate_valid() local
152 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_is_sample_rate_valid()
153 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid()
[all …]
/hardware/qcom/display/msm8974/liboverlay/
Doverlay.h114 void validate(int index);
133 static void setUse(int index);
134 static void resetUse(int index);
135 static bool isUsed(int index);
136 static bool isNotUsed(int index);
139 static void setAllocation(int index);
140 static void resetAllocation(int index);
141 static bool isAllocated(int index);
142 static bool isNotAllocated(int index);
177 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp106 int index = (int)dest; in nextPipe() local
107 mPipeBook[index].mDisplay = dpy; in nextPipe()
108 mPipeBook[index].mMixer = mixer; in nextPipe()
109 if(not mPipeBook[index].valid()) { in nextPipe()
110 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
138 int index = (int)dest; in commit() local
139 validate(index); in commit()
141 if(mPipeBook[index].mPipe->commit()) { in commit()
144 if(sForceSetBitmap & (1 << mPipeBook[index].mDisplay)) { in commit()
145 mPipeBook[index].mPipe->forceSet(); in commit()
[all …]
/hardware/intel/img/hwcomposer/common/buffers/
DBufferCache.cpp37 ssize_t index = mBufferPool.indexOfKey(handle); in addMapper() local
38 if (index >= 0) { in addMapper()
44 index = mBufferPool.add(handle, mapper); in addMapper()
45 if (index < 0) { in addMapper()
46 ELOGTRACE("failed to add mapper. err = %d", index); in addMapper()
55 ssize_t index; in removeMapper() local
62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper()
63 if (index < 0) { in removeMapper()
64 WLOGTRACE("failed to remove mapper. err = %d", index); in removeMapper()
73 ssize_t index = mBufferPool.indexOfKey(handle); in getMapper() local
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_ucm.c110 int verb_index, list_size, index = 0; in snd_use_case_get_list() local
126 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_get_list()
128 ALOGV("Index:%d Verb:%s", index, in snd_use_case_get_list()
129 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_get_list()
130 index++; in snd_use_case_get_list()
134 return index; in snd_use_case_get_list()
144 verb_list[index].use_case_name, in snd_use_case_get_list()
145 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list()
146 index++; in snd_use_case_get_list()
148 verb_index = index; in snd_use_case_get_list()
[all …]
/hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/
Dlog.h143 uint32_t index = 0; in LOG_I_Buf() local
152 index += sprintf(&buffer[index], "%s", szDescriptor); in LOG_I_Buf()
159 index += sprintf(&buffer[index], "memory dump"); in LOG_I_Buf()
161 index += sprintf(&buffer[index], " (0x%08x, %d bytes)", (uint32_t)blob,sizeOfBlob); in LOG_I_Buf()
163 index = 0; in LOG_I_Buf()
167 index += sprintf(&buffer[index], "Data at 0x%08x: ", (uint32_t)blob); in LOG_I_Buf()
185 index += sprintf(&buffer[index], "0x%08X | ",addr); in LOG_I_Buf()
191 index += sprintf(&buffer[index], "%02x ", ((const char *)blob)[i] ); in LOG_I_Buf()
198 index += sprintf(&buffer[index], " "); in LOG_I_Buf()
202 index += sprintf(&buffer[index], "| "); in LOG_I_Buf()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
Doverlay.h141 void validate(int index);
167 static void setUse(int index);
168 static void resetUse(int index);
169 static bool isUsed(int index);
170 static bool isNotUsed(int index);
173 static void setAllocation(int index);
174 static void resetAllocation(int index);
175 static bool isAllocated(int index);
176 static bool isNotAllocated(int index);
221 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp140 int index = (int)dest; in nextPipe() local
141 mPipeBook[index].mDisplay = dpy; in nextPipe()
142 mPipeBook[index].mMixer = mixer; in nextPipe()
143 if(not mPipeBook[index].valid()) { in nextPipe()
144 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
145 mPipeBook[index].mSession = PipeBook::NONE; in nextPipe()
180 int index = (int)dest; in commit() local
181 validate(index); in commit()
183 if(mPipeBook[index].mPipe->commit()) { in commit()
187 int dpy = mPipeBook[index].mDisplay; in commit()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
Doverlay.h155 void validate(int index);
193 static void setUse(int index);
194 static void resetUse(int index);
195 static bool isUsed(int index);
196 static bool isNotUsed(int index);
199 static void setAllocation(int index);
200 static void resetAllocation(int index);
201 static bool isAllocated(int index);
202 static bool isNotAllocated(int index);
247 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp135 int index = (int)dest; in nextPipe() local
136 mPipeBook[index].mDisplay = dpy; in nextPipe()
137 mPipeBook[index].mMixer = mixer; in nextPipe()
138 if(not mPipeBook[index].valid()) { in nextPipe()
139 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
140 mPipeBook[index].mSession = PipeBook::NONE; in nextPipe()
285 int index = (int)dest; in commit() local
286 validate(index); in commit()
288 if(mPipeBook[index].mPipe->commit()) { in commit()
292 int dpy = mPipeBook[index].mDisplay; in commit()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_lookahead.c33 unsigned int index = *idx; in pop() local
34 struct lookahead_entry *buf = ctx->buf + index; in pop()
36 assert(index < ctx->max_sz); in pop()
37 if (++index >= ctx->max_sz) in pop()
38 index -= ctx->max_sz; in pop()
39 *idx = index; in pop()
178 int index) { in vp9_lookahead_peek() argument
181 if (index >= 0) { in vp9_lookahead_peek()
183 if (index < (int)ctx->sz) { in vp9_lookahead_peek()
184 index += ctx->read_idx; in vp9_lookahead_peek()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dlookahead.c33 unsigned int index = *idx; in pop() local
34 struct lookahead_entry *buf = ctx->buf + index; in pop()
36 assert(index < ctx->max_sz); in pop()
37 if(++index >= ctx->max_sz) in pop()
38 index -= ctx->max_sz; in pop()
39 *idx = index; in pop()
195 unsigned int index, in vp8_lookahead_peek() argument
202 assert(index < ctx->max_sz - 1); in vp8_lookahead_peek()
203 if(index < ctx->sz) in vp8_lookahead_peek()
205 index += ctx->read_idx; in vp8_lookahead_peek()
[all …]
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXReprocess.cpp115 for ( int index = 0 ; index < portData->mMaxQueueable ; index++ ) { in startReprocess() local
117 portData->mBufferHeader[index]->pBuffer, in startReprocess()
118 portData->mBufferHeader[index]->nOffset, in startReprocess()
119 portData->mBufferHeader[index]->nFilledLen); in startReprocess()
120 portData->mStatus[index] = OMXCameraPortParameters::FILL; in startReprocess()
122 (OMX_BUFFERHEADERTYPE*)portData->mBufferHeader[index]); in startReprocess()
166 for (int index = 0 ; index < portData->mNumBufs ; index++) { in stopReprocess() local
168 ( unsigned int ) portData->mBufferHeader[index]->pBuffer); in stopReprocess()
171 (OMX_BUFFERHEADERTYPE*)portData->mBufferHeader[index]); in stopReprocess()
308 for (int index = 0 ; index < portData->mNumBufs ; index++) in UseBuffersReprocess() local
[all …]
/hardware/intel/img/hwcomposer/common/planes/
DDisplayPlaneManager.cpp125 void DisplayPlaneManager::putPlane(int index, uint32_t& mask) in putPlane() argument
127 if (index < 0 || index >= 32) in putPlane()
130 int bit = (1 << index); in putPlane()
133 WLOGTRACE("bit %d was set", index); in putPlane()
140 int DisplayPlaneManager::getPlane(uint32_t& mask, int index) in getPlane() argument
142 if (!mask || index < 0 || index > mTotalPlaneCount) in getPlane()
145 int bit = (1 << index); in getPlane()
148 return index; in getPlane()
154 DisplayPlane* DisplayPlaneManager::getPlane(int type, int index) in getPlane() argument
163 int freePlaneIndex = getPlane(mReclaimedPlanes[type], index); in getPlane()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_mdpcomp.cpp67 for(int index = 0; index < mCurrentFrame.layerCount; index++ ) in dump() local
69 index, in dump()
70 (mCurrentFrame.isFBComposed[index] ? "YES" : "NO"), in dump()
71 mCurrentFrame.layerToMDP[index], in dump()
72 (mCurrentFrame.isFBComposed[index] ? in dump()
74 (mCurrentFrame.isFBComposed[index] ? mCurrentFrame.fbZ : in dump()
75 mCurrentFrame.mdpToLayer[mCurrentFrame.layerToMDP[index]].pipeInfo->zOrder)); in dump()
150 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags() local
151 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags()
152 if(!mCurrentFrame.isFBComposed[index]) { in setMDPCompLayerFlags()
[all …]
/hardware/intel/img/hwcomposer/ips/anniedale/
DAnnPlaneManager.cpp31 int index; member
54 int index; // based on overlay position member
139 DisplayPlane* AnnPlaneManager::allocPlane(int index, int type) in allocPlane() argument
145 plane = new AnnRGBPlane(index, DisplayPlane::PLANE_PRIMARY, index/*disp*/); in allocPlane()
148 plane = new AnnRGBPlane(index, DisplayPlane::PLANE_SPRITE, 0/*disp*/); in allocPlane()
151 plane = new AnnOverlayPlane(index, 0/*disp*/); in allocPlane()
154 plane = new AnnCursorPlane(index, index /*disp */); in allocPlane()
235 int index = 0; in assignPlanes() local
238 index += (1 << i); in assignPlanes()
255 if (zorderDesc->index != index) in assignPlanes()
[all …]
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/
DThermalZone.java120 int index, calIndex; in movingAverageTemp() local
127 for (index = 0; index < mNumberOfInstances[mCurrThermalState + 1]; index++) { in movingAverageTemp()
128 calIndex = mRecordedValuesHead - index; in movingAverageTemp()
134 return predictedTemp / index; in movingAverageTemp()
159 for (int index = 2; index < getMaxStates(); index++) { in printStateThresholdMap()
160 int curstate = index - 1; in printStateThresholdMap()
161 s.append("[" + mZoneTempThresholds[index - 1] + "<=" + "State" in printStateThresholdMap()
162 + curstate + "<" + mZoneTempThresholds[index] + "];"); in printStateThresholdMap()
195 public static String getStateAsString(int index) { in getStateAsString() argument
196 if (index < -1 || index > 3) in getStateAsString()
[all …]
/hardware/qcom/audio/hal/
Dplatform_info.c80 int index; in process_pcm_id() local
87 index = platform_get_usecase_index((char *)attr[1]); in process_pcm_id()
88 if (index < 0) { in process_pcm_id()
117 if (platform_set_usecase_pcm_id(index, type, id) < 0) { in process_pcm_id()
130 int index; in process_backend_name() local
137 index = platform_get_snd_device_index((char *)attr[1]); in process_backend_name()
138 if (index < 0) { in process_backend_name()
150 if (platform_set_snd_device_backend(index, attr[3]) < 0) { in process_backend_name()
162 int index; in process_acdb_id() local
169 index = platform_get_snd_device_index((char *)attr[1]); in process_acdb_id()
[all …]
/hardware/intel/common/libmix/videodecoder/
DVideoDecoderVP8.cpp34 p->index = (uint32_t) -1; in invalidateReferenceFrames()
206 for (uint32_t index = 0; index < data->num_pictures; index++) { in decodeFrame() local
207 status = decodePicture(data, index); in decodeFrame()
372 mRFBs[1][VP8_LAST_REF_PIC].index = mRFBs[0][VP8_LAST_REF_PIC].index; in refreshLastReference()
377 mRFBs[0][VP8_LAST_REF_PIC].index = mAcquiredBuffer->renderBuffer.surface; in refreshLastReference()
385 mRFBs[1][VP8_GOLDEN_REF_PIC].index = mRFBs[0][VP8_GOLDEN_REF_PIC].index; in refreshGoldenReference()
391 mRFBs[0][VP8_GOLDEN_REF_PIC].index = mRFBs[1][VP8_LAST_REF_PIC].index; in refreshGoldenReference()
395 mRFBs[0][VP8_GOLDEN_REF_PIC].index = mRFBs[0][VP8_ALT_REF_PIC].index; in refreshGoldenReference()
402 mRFBs[0][VP8_GOLDEN_REF_PIC].index = mAcquiredBuffer->renderBuffer.surface; in refreshGoldenReference()
410 mRFBs[1][VP8_ALT_REF_PIC].index = mRFBs[0][VP8_ALT_REF_PIC].index; in refreshAltReference()
[all …]
/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc_mdpcomp.cpp71 for(int index = 0; index < mCurrentFrame.layerCount; index++ ) in dump() local
73 index, in dump()
74 (mCurrentFrame.isFBComposed[index] ? "YES" : "NO"), in dump()
75 mCurrentFrame.layerToMDP[index], in dump()
76 (mCurrentFrame.isFBComposed[index] ? in dump()
78 (mCurrentFrame.isFBComposed[index] ? mCurrentFrame.fbZ : in dump()
79 mCurrentFrame.mdpToLayer[mCurrentFrame.layerToMDP[index]].pipeInfo->zOrder)); in dump()
168 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags() local
169 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags()
170 if(!mCurrentFrame.isFBComposed[index]) { in setMDPCompLayerFlags()
[all …]
/hardware/invensense/60xx/libsensors/
DMPLSensor.h80 void gyroHandler(sensors_event_t *data, uint32_t *pendmask, int index);
81 void accelHandler(sensors_event_t *data, uint32_t *pendmask, int index);
82 void compassHandler(sensors_event_t *data, uint32_t *pendmask, int index);
83 void rvHandler(sensors_event_t *data, uint32_t *pendmask, int index);
84 void laHandler(sensors_event_t *data, uint32_t *pendmask, int index);
85 void gravHandler(sensors_event_t *data, uint32_t *pendmask, int index);
86 void orienHandler(sensors_event_t *data, uint32_t *pendmask, int index);
/hardware/qcom/gps/msm8960/utils/
Dloc_log.cpp136 int index = 0; in loc_get_target_name() local
139 index = getTargetGnssType(target); in loc_get_target_name()
140 if( index >= target_name_num || index < 0) in loc_get_target_name()
141 index = target_name_num - 1; in loc_get_target_name()
145 loc_get_name_from_val(target_name, target_name_num, (long)index) ); in loc_get_target_name()
149 loc_get_name_from_val(target_name, target_name_num, (long)index) ); in loc_get_target_name()
/hardware/qcom/gps/utils/
Dloc_log.cpp136 int index = 0; in loc_get_target_name() local
139 index = getTargetGnssType(target); in loc_get_target_name()
140 if( index >= target_name_num || index < 0) in loc_get_target_name()
141 index = target_name_num - 1; in loc_get_target_name()
145 loc_get_name_from_val(target_name, target_name_num, (long)index) ); in loc_get_target_name()
149 loc_get_name_from_val(target_name, target_name_num, (long)index) ); in loc_get_target_name()

12345678910>>...14