Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 722) sorted by relevance

12345678910>>...29

/hardware/interfaces/broadcastradio/common/tests/
DIdentifierIterator_test.cpp36 auto it = V2_0::begin(sel); in TEST() local
39 ASSERT_NE(end, it); in TEST()
40 EXPECT_EQ(sel.primaryId, *it); in TEST()
41 ASSERT_NE(end, ++it); in TEST()
42 EXPECT_EQ(sel.secondaryIds[0], *it); in TEST()
43 ASSERT_EQ(end, ++it); in TEST()
49 auto it = V2_0::begin(sel); in TEST() local
52 ASSERT_NE(end, it++); // primary id is always present in TEST()
53 ASSERT_EQ(end, it); in TEST()
69 auto it = V2_0::begin(sel); in TEST() local
[all …]
/hardware/google/av/media/eco/tests/
DEcoDataTest.cpp78 for (auto it = inputEntries.begin(); it != inputEntries.end(); ++it) { in TEST() local
79 data->setString(it->first, it->second); in TEST()
83 for (auto it = inputEntries.begin(); it != inputEntries.end(); ++it) { in TEST() local
85 EXPECT_TRUE(data->findString(it->first, &testValue) == ECODataStatus::OK); in TEST()
86 EXPECT_EQ(testValue, it->second); in TEST()
128 for (auto it = inputEntries.begin(); it != inputEntries.end(); ++it) { in TEST() local
129 data->setInt32(it->first, it->second); in TEST()
133 for (auto it = inputEntries.begin(); it != inputEntries.end(); ++it) { in TEST() local
135 EXPECT_TRUE(data->findInt32(it->first, &testValue) == ECODataStatus::OK); in TEST()
136 EXPECT_EQ(testValue, it->second); in TEST()
[all …]
/hardware/interfaces/media/bufferpool/aidl/default/
DObserver.cpp30 auto it = mClients.find(in_connectionId); in onMessage() local
31 if (it != mClients.end()) { in onMessage()
32 const std::shared_ptr<BufferPoolClient> client = it->second.lock(); in onMessage()
34 mClients.erase(it); in onMessage()
46 for (auto it = mClients.begin(); it != mClients.end();) { in addClient() local
47 if (!it->second.lock() || it->first == connectionId) { in addClient()
48 it = mClients.erase(it); in addClient()
50 ++it; in addClient()
DAccessor.cpp79 auto it = mConnectionToCookie.find(connectionId); in remove() local
80 if (it != mConnectionToCookie.end()) { in remove()
81 void * cookie = it->second; in remove()
82 mConnectionToCookie.erase(it); in remove()
101 auto it = mCookieToConnections.find(cookie); in addCookieToConnection() local
102 if (it != mCookieToConnections.end()) { in addCookieToConnection()
103 it->second.insert(connectionId); in addCookieToConnection()
115 auto it = mCookieToConnections.find(cookie); in onDead() local
116 if (it != mCookieToConnections.end()) { in onDead()
117 for (auto conIt = it->second.begin(); conIt != it->second.end(); ++conIt) { in onDead()
[all …]
DBufferPool.cpp88 auto it = mAcks.find(conId); in onAck() local
89 if (it == mAcks.end()) { in onAck()
93 if (isMessageLater(msgId, it->second)) { in onAck()
101 for (auto it = mPendings.begin(); it != mPendings.end();) { in onBufferInvalidated() local
102 if (it->isInvalidated(bufferId)) { in onBufferInvalidated()
104 if (it->mNeedsAck) { in onBufferInvalidated()
111 channel.postInvalidation(msgId, it->mFrom, it->mTo); in onBufferInvalidated()
112 it = mPendings.erase(it); in onBufferInvalidated()
115 ++it; in onBufferInvalidated()
151 for (auto it = mAcks.begin(); it != mAcks.end(); ++it) { in onHandleAck() local
[all …]
/hardware/google/aemu/base/include/aemu/base/containers/
DStaticMap.h43 auto it = mItems.find(key); in isPresent() local
44 return it != mItems.end(); in isPresent()
49 auto it = mItems.find(key); in get() local
50 if (it == mItems.end()) { in get()
53 return it->second; in get()
60 auto it = mItems.begin(); in eraseIf() local
61 for (; it != mItems.end();) { in eraseIf()
62 if (p(it->first, it->second)) { in eraseIf()
63 it = mItems.erase(it); in eraseIf()
65 ++it; in eraseIf()
/hardware/interfaces/tv/tuner/1.1/default/
DDemux.cpp169 set<uint64_t>::iterator it; in close() local
170 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in close()
171 mDvrPlayback->removePlaybackFilter(*it); in close()
194 set<uint64_t>::iterator it; in openDvr() local
203 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in openDvr()
204 if (!mDvrPlayback->addPlaybackFilter(*it, mFilters[*it])) { in openDvr()
256 set<uint64_t>::iterator it; in startBroadcastTsFilter() local
261 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in startBroadcastTsFilter()
262 if (pid == mFilters[*it]->getTpid()) { in startBroadcastTsFilter()
263 mFilters[*it]->updateFilterOutput(data); in startBroadcastTsFilter()
[all …]
/hardware/interfaces/tv/tuner/aidl/default/
DDemux.cpp180 set<int64_t>::iterator it; in close() local
181 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in close()
182 mDvrPlayback->removePlaybackFilter(*it); in close()
208 set<int64_t>::iterator it; in openDvr() local
220 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in openDvr()
221 if (!mDvrPlayback->addPlaybackFilter(*it, mFilters[*it])) { in openDvr()
279 set<int64_t>::iterator it; in startBroadcastTsFilter() local
284 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in startBroadcastTsFilter()
285 if (pid == mFilters[*it]->getTpid()) { in startBroadcastTsFilter()
286 mFilters[*it]->updateFilterOutput(data); in startBroadcastTsFilter()
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DRequestGroup.cc54 for (auto it = request_map_.begin(); it != request_map_.end();) { in GetExpireTime() local
56 it->second - now); in GetExpireTime()
58 it = request_map_.erase(it); in GetExpireTime()
62 ++it; in GetExpireTime()
71 for (auto it = request_map_.begin(); it != request_map_.end(); it++) { in DumpToFd() local
73 std::chrono::duration_cast<std::chrono::milliseconds>(it->second - in DumpToFd()
75 dump_buf << prefix << it->first << "\t" << remaining_duration.count() in DumpToFd()
/hardware/interfaces/audio/aidl/default/usb/
DUsbAlsaMixerControl.cpp52 for (auto it = alsaMixers.begin(); it != alsaMixers.end(); ++it) { in setMasterMute() local
53 if (auto result = it->second->setMasterMute(mute); !result.isOk()) { in setMasterMute()
56 LOG(ERROR) << __func__ << ": failed to set master mute for card=" << it->first; in setMasterMute()
66 for (auto it = alsaMixers.begin(); it != alsaMixers.end(); ++it) { in setMasterVolume() local
67 if (auto result = it->second->setMasterVolume(volume); !result.isOk()) { in setMasterVolume()
70 LOG(ERROR) << __func__ << ": failed to set master volume for card=" << it->first; in setMasterVolume()
89 const auto it = mMixerControls.find(card); in getAlsaMixer() local
90 return it == mMixerControls.end() ? nullptr : it->second; in getAlsaMixer()
/hardware/synaptics/wlan/synadhd/wifi_hal/
Dtwt.cpp108 for (nl_iterator it(vendor_data); it.has_next(); it.next()) { in EventGetAttributeData() local
109 attr_type = it.get_type(); in EventGetAttributeData()
112 ALOGI("config_id = %u\n", it.get_u8()); in EventGetAttributeData()
113 setup_response.config_id = it.get_u8(); in EventGetAttributeData()
116 ALOGI("neg type = %u\n", it.get_u8()); in EventGetAttributeData()
117 setup_response.negotiation_type = it.get_u8(); in EventGetAttributeData()
120 setup_response.reason_code = (TwtSetupReasonCode)it.get_u8(); in EventGetAttributeData()
124 setup_response.status = it.get_u8(); in EventGetAttributeData()
128 setup_response.trigger_type = it.get_u8(); in EventGetAttributeData()
132 setup_response.wake_dur_us = it.get_u32(); in EventGetAttributeData()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dtwt.cpp108 for (nl_iterator it(vendor_data); it.has_next(); it.next()) { in EventGetAttributeData() local
109 attr_type = it.get_type(); in EventGetAttributeData()
112 ALOGI("config_id = %u\n", it.get_u8()); in EventGetAttributeData()
113 setup_response.config_id = it.get_u8(); in EventGetAttributeData()
116 ALOGI("neg type = %u\n", it.get_u8()); in EventGetAttributeData()
117 setup_response.negotiation_type = it.get_u8(); in EventGetAttributeData()
120 setup_response.reason_code = (TwtSetupReasonCode)it.get_u8(); in EventGetAttributeData()
124 setup_response.status = it.get_u8(); in EventGetAttributeData()
128 setup_response.trigger_type = it.get_u8(); in EventGetAttributeData()
132 setup_response.wake_dur_us = it.get_u32(); in EventGetAttributeData()
[all …]
Dscan.cpp115 for (nl_iterator it(vendor_data); it.has_next(); it.next()) { in handleResponse() local
116 if (it.get_type() == WIFI_ATTRIBUTE_CACHED_SCAN_BOOT_TIMESTAMP) { in handleResponse()
117 timestamp = it.get_u32(); in handleResponse()
119 } else if (it.get_type() == WIFI_ATTRIBUTE_CACHED_SCAN_RESULT_CNT) { in handleResponse()
120 valid_entries = min(it.get_u16(), MAX_CACHED_SCAN_RESULT); in handleResponse()
122 } else if ((it.get_type() == WIFI_ATTRIBUTE_CACHED_SCAN_RESULTS) && in handleResponse()
124 size = min(it.get_len(), MAX_CACHE_SCAN_RESULT_SIZE); in handleResponse()
135 memcpy((void *)mReport->results, (void *)it.get_data(), size); in handleResponse()
138 it.get_type(), it.get_len()); in handleResponse()
/hardware/interfaces/tv/tuner/1.0/default/
DDemux.cpp158 set<uint32_t>::iterator it; in close() local
159 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in close()
160 mDvrPlayback->removePlaybackFilter(*it); in close()
181 set<uint32_t>::iterator it; in openDvr() local
190 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in openDvr()
191 if (!mDvrPlayback->addPlaybackFilter(*it, mFilters[*it])) { in openDvr()
243 set<uint32_t>::iterator it; in startBroadcastTsFilter() local
248 for (it = mPlaybackFilterIds.begin(); it != mPlaybackFilterIds.end(); it++) { in startBroadcastTsFilter()
249 if (pid == mFilters[*it]->getTpid()) { in startBroadcastTsFilter()
250 mFilters[*it]->updateFilterOutput(data); in startBroadcastTsFilter()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DAudioHardwareALSA.cpp216 for(ALSAHandleList::iterator it = mDeviceList.begin(); in ~AudioHardwareALSA() local
217 it != mDeviceList.end(); ++it) { in ~AudioHardwareALSA()
218 it->useCase[0] = 0; in ~AudioHardwareALSA()
219 mDeviceList.erase(it); in ~AudioHardwareALSA()
640 ALSAHandleList::iterator it = mDeviceList.end(); in doRouting() local
641 it--; in doRouting()
642 mALSADevice->route(&(*it), (uint32_t)device, newMode); in doRouting()
651 ALSAHandleList::iterator it = mDeviceList.end(); in doRouting() local
652 it--; in doRouting()
653 mALSADevice->route(&(*it), AudioSystem::DEVICE_OUT_PROXY, in doRouting()
[all …]
/hardware/qcom/sm7150/gps/gnss/
DAgps.cpp318 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local
319 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers()
321 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers()
334 it = mSubscriberList.erase(it); in notifyAllSubscribers()
337 it++; in notifyAllSubscribers()
340 it++; in notifyAllSubscribers()
399 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local
400 for (; it != mSubscriberList.end(); it++) { in addSubscriber()
401 AgpsSubscriber* subscriber = *it; in addSubscriber()
418 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local
[all …]
/hardware/qcom/sm7250/gps/gnss/
DAgps.cpp318 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local
319 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers()
321 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers()
334 it = mSubscriberList.erase(it); in notifyAllSubscribers()
337 it++; in notifyAllSubscribers()
340 it++; in notifyAllSubscribers()
399 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local
400 for (; it != mSubscriberList.end(); it++) { in addSubscriber()
401 AgpsSubscriber* subscriber = *it; in addSubscriber()
418 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local
[all …]
/hardware/qcom/sm8150/gps/gnss/
DAgps.cpp318 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local
319 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers()
321 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers()
334 it = mSubscriberList.erase(it); in notifyAllSubscribers()
337 it++; in notifyAllSubscribers()
340 it++; in notifyAllSubscribers()
399 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local
400 for (; it != mSubscriberList.end(); it++) { in addSubscriber()
401 AgpsSubscriber* subscriber = *it; in addSubscriber()
418 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local
[all …]
/hardware/qcom/sm8150p/gps/gnss/
DAgps.cpp318 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local
319 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers()
321 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers()
334 it = mSubscriberList.erase(it); in notifyAllSubscribers()
337 it++; in notifyAllSubscribers()
340 it++; in notifyAllSubscribers()
399 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local
400 for (; it != mSubscriberList.end(); it++) { in addSubscriber()
401 AgpsSubscriber* subscriber = *it; in addSubscriber()
418 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/
DPendingRequestPool.cpp141 auto it = mPendingRequestsByClient.find(clientId); in countPendingRequests() local
142 if (it == mPendingRequestsByClient.end()) { in countPendingRequests()
147 for (const auto& pendingRequest : it->second) { in countPendingRequests()
155 auto it = mPendingRequestsByClient.find(clientId); in isRequestPendingLocked() local
156 if (it == mPendingRequestsByClient.end()) { in isRequestPendingLocked()
159 for (const auto& pendingRequest : it->second) { in isRequestPendingLocked()
178 auto it = pendingRequests.begin(); in checkTimeout() local
179 while (it != pendingRequests.end()) { in checkTimeout()
180 if (it->timeoutTimestamp >= currentTime) { in checkTimeout()
183 timeoutRequests.push_back(std::move(*it)); in checkTimeout()
[all …]
/hardware/interfaces/health/utils/libhealth2impl/
DBinderHealth.cpp82 auto it = std::find_if(callbacks_.begin(), callbacks_.end(), in registerCallback() local
84 if (it != callbacks_.end()) { in registerCallback()
85 callbacks_.erase(it); in registerCallback()
101 for (auto it = callbacks_.begin(); it != callbacks_.end();) { in unregisterCallbackInternal() local
102 if (interfacesEqual((*it)->Get(), callback)) { in unregisterCallbackInternal()
103 it = callbacks_.erase(it); in unregisterCallbackInternal()
106 ++it; in unregisterCallbackInternal()
133 for (auto it = callbacks_.begin(); it != callbacks_.end();) { in OnHealthInfoChanged() local
134 auto ret = (*it)->Notify(health_info); in OnHealthInfoChanged()
136 it = callbacks_.erase(it); in OnHealthInfoChanged()
[all …]
/hardware/google/av/media/eco/
DECOService.cpp103 SanitizeSession(std::function<void(MapIterType it)>()); // empty callback in getNumOfSessions()
128 SessionConfigHash>::iterator it)>& callback) { in SanitizeSession()
129 for (auto it = mSessionConfigToSessionMap.begin(), end = mSessionConfigToSessionMap.end(); in SanitizeSession() local
130 it != end;) { in SanitizeSession()
131 if (isEmptySession(it->second)) { in SanitizeSession()
132 it = mSessionConfigToSessionMap.erase(it); in SanitizeSession()
135 callback(it); in SanitizeSession()
137 it++; in SanitizeSession()
148 for (auto it = mSessionConfigToSessionMap.begin(), end = mSessionConfigToSessionMap.end(); in dump() local
149 it != end; it++) { in dump()
[all …]
/hardware/samsung/nfc/halimpl/src/
Dconfig.cpp599 for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) { in _find() local
600 if (**it < p_name) in _find()
602 else if (**it == p_name) { in _find()
603 if ((*it)->str_len() > 0) in _find()
604 ALOGD("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in _find()
606 ALOGD("%s found %s=(0x%lX)\n", __func__, p_name, (*it)->numValue()); in _find()
607 return *it; in _find()
618 for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) { in find() local
619 if (**it < p_name) { in find()
621 } else if (**it == p_name) { in find()
[all …]
/hardware/google/aemu/base/
DMemoryTracker.cpp107 auto it = mData.upper_bound(&func); in newHook() local
108 if (it != mData.end() && (*it)->mAddr <= addr) { in newHook()
109 (*it)->mStats.mAllocated += size; in newHook()
110 (*it)->mStats.mLive += size; in newHook()
125 auto it = mData.upper_bound(&func); in deleteHook() local
126 if (it != mData.end() && (*it)->mAddr <= addr) { in deleteHook()
127 (*it)->mStats.mLive -= size; in deleteHook()
150 for (auto it : mData) { in printUsage() local
151 allStats.push_back(it); in printUsage()
158 for (auto it : allStats) { in printUsage() local
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_LanToLan.cpp149 list<IPACM_LanToLan_Iface>::iterator it; in handle_iface_up() local
152 for(it = m_iface.begin(); it != m_iface.end(); it++) in handle_iface_up()
154 if(it->get_iface_pointer() == data->p_iface) in handle_iface_up()
157 if(it->get_m_is_ip_addr_assigned(data->iptype) == false) in handle_iface_up()
160 it->set_m_is_ip_addr_assigned(data->iptype, true); in handle_iface_up()
163 if(it->get_m_support_inter_iface_offload()) in handle_iface_up()
164 it->add_all_inter_interface_client_flt_rule(data->iptype); in handle_iface_up()
167 if(it->get_m_support_intra_iface_offload()) in handle_iface_up()
168 it->add_all_intra_interface_client_flt_rule(data->iptype); in handle_iface_up()
174 if(it == m_iface.end()) //If the interface has not been created before in handle_iface_up()
[all …]

12345678910>>...29