Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 89) sorted by relevance

1234

/hardware/interfaces/media/bufferpool/aidl/default/
DDataHelper.h30 auto iter = mapOfSet->find(key); in insert() local
31 if (iter == mapOfSet->end()) { in insert()
35 } else if (iter->second.find(value) == iter->second.end()) { in insert()
36 iter->second.insert(value); in insert()
46 auto iter = mapOfSet->find(key); in erase() local
47 if (iter != mapOfSet->end()) { in erase()
48 if (iter->second.erase(value) > 0) { in erase()
51 if (iter->second.size() == 0) { in erase()
52 mapOfSet->erase(iter); in erase()
61 auto iter = mapOfSet->find(key); in contains() local
[all …]
DBufferPool.cpp184 auto iter = mBuffers.find(bufferId); in handleOwnBuffer() local
185 iter->second->mOwnerCount++; in handleOwnBuffer()
195 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer() local
196 iter->second->mOwnerCount--; in handleReleaseBuffer()
197 if (iter->second->mOwnerCount == 0 && in handleReleaseBuffer()
198 iter->second->mTransactionCount == 0) { in handleReleaseBuffer()
199 if (!iter->second->mInvalidated) { in handleReleaseBuffer()
200 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
203 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
204 mStats.onBufferEvicted(iter->second->mAllocSize); in handleReleaseBuffer()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwcomposer.cpp202 auto iter = displays.find(display); in Hwc2ImplDestroyVirtualDisplay() local
204 if (iter == displays.end()) { in Hwc2ImplDestroyVirtualDisplay()
208 if (iter->second.IsPhysical()) { in Hwc2ImplDestroyVirtualDisplay()
216 displays.erase(iter); in Hwc2ImplDestroyVirtualDisplay()
271 auto iter = displays.find(display); in Hwc2ImplCreateLayer() local
273 if (iter == displays.end()) { in Hwc2ImplCreateLayer()
277 *out_layer = iter->second.CreateLayer(); in Hwc2ImplCreateLayer()
284 auto iter = displays.find(display); in Hwc2ImplDestroyLayer() local
286 if (iter == displays.end()) { in Hwc2ImplDestroyLayer()
290 iter->second.DestroyLayer(layer); in Hwc2ImplDestroyLayer()
[all …]
/hardware/interfaces/power/1.2/vts/functional/
DVtsHalPowerV1_2TargetTest.cpp68 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
69 ret = power->powerHintAsync_1_2(*iter, 0); in TEST_P()
72 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
73 ret = power->powerHintAsync_1_2(*iter, 30000); in TEST_P()
/hardware/google/aemu/host-common/
DMultiDisplay.cpp257 for (const auto iter : mMultiDisplay) { in translateCoordination() local
258 if (iter.first != 0 && iter.second.cb == 0) { in translateCoordination()
264 pos_x = iter.second.pos_x; in translateCoordination()
265 pos_y = totalH - iter.second.height - iter.second.pos_y; in translateCoordination()
266 w = iter.second.width; in translateCoordination()
267 h = iter.second.height; in translateCoordination()
271 *displayId = iter.first; in translateCoordination()
497 for (const auto& iter : mMultiDisplay) { in getColorBufferDisplay() local
498 if (iter.second.cb == colorBuffer) { in getColorBufferDisplay()
499 *displayId = iter.first; in getColorBufferDisplay()
[all …]
DMediaTexturePool.cpp103 auto iter = m_Frame_to_PoolHandle.find(tframe); in putTextureFrame() local
104 if (iter != m_Frame_to_PoolHandle.end()) { in putTextureFrame()
105 PoolHandle phandle = iter->second; in putTextureFrame()
131 for (auto iter : m_WH_to_PoolHandle) { in cleanUpTextures() local
132 auto& myFramePool = *(iter.second); in cleanUpTextures()
DMediaH264DecoderDefault.cpp57 auto iter = mDecoders.find(key); in getDecoder() local
58 if (iter != mDecoders.end()) { in getDecoder()
59 return iter->second; in getDecoder()
98 auto iter = mDecoders.find(key); in removeDecoder() local
99 if (iter != mDecoders.end()) { in removeDecoder()
102 mDecoders.erase(iter); in removeDecoder()
DMediaVpxDecoder.cpp82 auto iter = mDecoders.find(key); in getDecoder() local
83 if (iter != mDecoders.end()) { in getDecoder()
84 return iter->second; in getDecoder()
106 auto iter = mDecoders.find(key); in removeDecoder() local
107 if (iter != mDecoders.end()) { in removeDecoder()
110 mDecoders.erase(iter); in removeDecoder()
/hardware/interfaces/power/1.1/vts/functional/
DVtsHalPowerV1_1TargetTest.cpp83 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
84 ret = power->powerHintAsync(*iter, 0); in TEST_P()
87 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
88 ret = power->powerHintAsync(*iter, 30000); in TEST_P()
/hardware/qcom/sm7150/gps/utils/
DLocUnorderedSetMap.h80 bool trimOrRemove(typename unordered_map<KEY, unordered_set<VAL>>::iterator iter, in trimOrRemove() argument
82 trimSet<VAL>(iter->second, rVals, goneVals); in trimOrRemove()
83 bool removeEntry = (iter->second.empty()); in trimOrRemove()
85 mMap.erase(iter); in trimOrRemove()
134 auto iter = mMap.find(key); in trimOrRemove() local
135 if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) { in trimOrRemove()
136 goneKeys->insert(iter->first); in trimOrRemove()
146 auto iter = mMap.find(key); in add() local
147 if (iter != mMap.end()) { in add()
148 iter->second.insert(newVals.begin(), newVals.end()); in add()
/hardware/qcom/sm7250/gps/utils/
DLocUnorderedSetMap.h86 bool trimOrRemove(typename unordered_map<KEY, unordered_set<VAL>>::iterator iter, in trimOrRemove() argument
88 trimSet<VAL>(iter->second, rVals, goneVals); in trimOrRemove()
89 bool removeEntry = (iter->second.empty()); in trimOrRemove()
91 mMap.erase(iter); in trimOrRemove()
143 auto iter = mMap.find(key); in trimOrRemove() local
144 if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) { in trimOrRemove()
145 goneKeys->insert(iter->first); in trimOrRemove()
155 auto iter = mMap.find(key); in add() local
156 if (iter != mMap.end()) { in add()
157 iter->second.insert(newVals.begin(), newVals.end()); in add()
DSkipList.h88 auto iter = --mMainList.end(); in append() local
90 mHeadVec[level] = iter; in append()
92 (*mTailVec[level]).mNextInLevel = iter; in append()
94 mTailVec[level] = iter; in append()
/hardware/qcom/sm8150p/gps/utils/
DLocUnorderedSetMap.h80 bool trimOrRemove(typename unordered_map<KEY, unordered_set<VAL>>::iterator iter, in trimOrRemove() argument
82 trimSet<VAL>(iter->second, rVals, goneVals); in trimOrRemove()
83 bool removeEntry = (iter->second.empty()); in trimOrRemove()
85 mMap.erase(iter); in trimOrRemove()
134 auto iter = mMap.find(key); in trimOrRemove() local
135 if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) { in trimOrRemove()
136 goneKeys->insert(iter->first); in trimOrRemove()
146 auto iter = mMap.find(key); in add() local
147 if (iter != mMap.end()) { in add()
148 iter->second.insert(newVals.begin(), newVals.end()); in add()
/hardware/qcom/sm8150/gps/utils/
DLocUnorderedSetMap.h86 bool trimOrRemove(typename unordered_map<KEY, unordered_set<VAL>>::iterator iter, in trimOrRemove() argument
88 trimSet<VAL>(iter->second, rVals, goneVals); in trimOrRemove()
89 bool removeEntry = (iter->second.empty()); in trimOrRemove()
91 mMap.erase(iter); in trimOrRemove()
143 auto iter = mMap.find(key); in trimOrRemove() local
144 if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) { in trimOrRemove()
145 goneKeys->insert(iter->first); in trimOrRemove()
155 auto iter = mMap.find(key); in add() local
156 if (iter != mMap.end()) { in add()
157 iter->second.insert(newVals.begin(), newVals.end()); in add()
DSkipList.h88 auto iter = --mMainList.end(); in append() local
90 mHeadVec[level] = iter; in append()
92 (*mTailVec[level]).mNextInLevel = iter; in append()
94 mTailVec[level] = iter; in append()
/hardware/interfaces/audio/common/all-versions/default/service/
Dservice.cpp149 auto iter = listIter.begin(); in main() local
150 const std::string& interfaceFamilyName = *iter++; in main()
151 LOG_ALWAYS_FATAL_IF(!registerPassthroughServiceImplementations(iter, listIter.end()), in main()
156 auto iter = listIter.begin(); in main() local
157 const std::string& interfaceFamilyName = *iter++; in main()
158 ALOGW_IF(!registerPassthroughServiceImplementations(iter, listIter.end()), in main()
/hardware/interfaces/power/1.0/vts/functional/
DVtsHalPowerV1_0TargetTest.cpp131 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
132 ret = power->powerHint(*iter, 0); in TEST_P()
135 for (auto iter = hints2.begin(); iter != hints2.end(); iter++) { in TEST_P() local
136 ret = power->powerHint(*iter, 30000); in TEST_P()
/hardware/google/camera/common/hal/google_camera_hal/
Drealtime_zsl_result_processor.cc92 auto iter = requested_lens_shading_map_modes_.find(frameNumber); in HandleLsResultForHdrplus() local
93 if (iter == requested_lens_shading_map_modes_.end()) { in HandleLsResultForHdrplus()
98 if (iter->second == ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF) { in HandleLsResultForHdrplus()
104 requested_lens_shading_map_modes_.erase(iter); in HandleLsResultForHdrplus()
133 auto iter = requested_face_detect_modes_.find(frameNumber); in HandleFdResultForHdrplus() local
134 if (iter == requested_face_detect_modes_.end()) { in HandleFdResultForHdrplus()
139 if (iter->second == ANDROID_STATISTICS_FACE_DETECT_MODE_OFF) { in HandleFdResultForHdrplus()
145 requested_face_detect_modes_.erase(iter); in HandleFdResultForHdrplus()
/hardware/google/aemu/base/
DLayoutResolver.cpp74 for (const auto& iter : row) { in computeCoordinatesPerRow() local
75 uint32_t displayId = iter.id; in computeCoordinatesPerRow()
78 for (auto id : iter.children) { in computeCoordinatesPerRow()
82 width += iter.width; in computeCoordinatesPerRow()
100 for (const auto& iter : rect) { in resolveLayout() local
101 uint32_t width = iter.second.first; in resolveLayout()
102 uint32_t height = iter.second.second; in resolveLayout()
103 rectangles.emplace_back(iter.first, 0, 0, width, height); in resolveLayout()
/hardware/google/av/media/eco/
DECOService.cpp74 SanitizeSession([&](MapIterType iter) { in obtainSession() argument
75 if (iter->first == newCfg) { in obtainSession()
76 sp<ECOSession> session = iter->second.promote(); in obtainSession()
114 SanitizeSession([&](MapIterType iter) { in getSessions() argument
115 sp<ECOSession> session = iter->second.promote(); in getSessions()
/hardware/interfaces/graphics/composer/2.2/utils/resources/
DComposerResources.cpp59 auto iter = mDisplayResources.find(display); in getDisplayReadbackBuffer() local
60 if (iter == mDisplayResources.end()) { in getDisplayReadbackBuffer()
65 *static_cast<ComposerDisplayResource*>(iter->second.get()); in getDisplayReadbackBuffer()
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_encoder.cpp129 auto iter = encoder_pool_.find(encoder_id); in GetEncoderInfo() local
131 if (iter != encoder_pool_.end()) { in GetEncoderInfo()
193 auto iter = encoder_pool_.find(token->encoder_id); in Free() local
194 if (iter != encoder_pool_.end()) { in Free()
195 iter->second->Unlock(); in Free()
/hardware/google/aemu/base/include/aemu/base/
DMruCache.h71 auto iter = std::find(mMostRecents.begin(), mMostRecents.end(), cacheKey); in put() local
72 mMostRecents.splice(mMostRecents.begin(), mMostRecents, iter); in put()
102 auto iter = std::find(mMostRecents.begin(), mMostRecents.end(), cacheKey); in get() local
103 mMostRecents.splice(mMostRecents.begin(), mMostRecents, iter); in get()
/hardware/interfaces/graphics/composer/2.2/utils/resources/include/composer-resources/2.2/
DComposerResources.h75 auto iter = mDisplayResources.find(display); in getDisplayReadbackBuffer() local
76 if (iter == mDisplayResources.end()) { in getDisplayReadbackBuffer()
81 *static_cast<ComposerDisplayResource*>(iter->second.get()); in getDisplayReadbackBuffer()
/hardware/interfaces/security/keymint/support/
Dauthorization_set.cpp92 auto iter = data_.begin() + (1 + begin); in find() local
94 while (iter != data_.end() && iter->tag != tag) ++iter; in find()
96 if (iter != data_.end()) return iter - data_.begin(); in find()

1234