/hardware/interfaces/broadcastradio/common/tests/ |
D | IdentifierIterator_test.cpp | 36 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/ |
D | EcoDataTest.cpp | 78 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/qcom/audio/legacy/alsa_sound/ |
D | AudioHardwareALSA.cpp | 216 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/data/ipacfg-mgr/msm8998/ipacm/src/ |
D | IPACM_LanToLan.cpp | 149 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 …]
|
/hardware/qcom/sdm845/gps/sdm845/gnss/ |
D | Agps.cpp | 325 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local 326 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers() 328 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers() 341 it = mSubscriberList.erase(it); in notifyAllSubscribers() 344 it++; in notifyAllSubscribers() 347 it++; in notifyAllSubscribers() 406 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local 407 for (; it != mSubscriberList.end(); it++) { in addSubscriber() 408 AgpsSubscriber* subscriber = *it; in addSubscriber() 425 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local [all …]
|
/hardware/google/av/media/eco/ |
D | ECOService.cpp | 97 SanitizeSession(std::function<void(MapIterType it)>()); // empty callback in getNumOfSessions() 122 SessionConfigHash>::iterator it)>& callback) { in SanitizeSession() 123 for (auto it = mSessionConfigToSessionMap.begin(), end = mSessionConfigToSessionMap.end(); in SanitizeSession() local 124 it != end;) { in SanitizeSession() 125 if (isEmptySession(it->second)) { in SanitizeSession() 126 it = mSessionConfigToSessionMap.erase(it); in SanitizeSession() 129 callback(it); in SanitizeSession() 131 it++; in SanitizeSession() 142 for (auto it = mSessionConfigToSessionMap.begin(), end = mSessionConfigToSessionMap.end(); in dump() local 143 it != end; it++) { in dump() [all …]
|
D | ECOData.cpp | 132 for (const auto& it : mKeyValueStore) { in writeToParcel() local 134 RETURN_STATUS_IF_ERROR(parcel->writeCString(it.first.c_str())); in writeToParcel() 137 const ECODataValueType& value = it.second; in writeToParcel() 141 RETURN_STATUS_IF_ERROR(parcel->writeInt32(std::get<int32_t>(it.second))); in writeToParcel() 145 RETURN_STATUS_IF_ERROR(parcel->writeInt64(std::get<int64_t>(it.second))); in writeToParcel() 149 RETURN_STATUS_IF_ERROR(parcel->writeUint32(std::get<size_t>(it.second))); in writeToParcel() 153 RETURN_STATUS_IF_ERROR(parcel->writeFloat(std::get<float>(it.second))); in writeToParcel() 157 RETURN_STATUS_IF_ERROR(parcel->writeDouble(std::get<double>(it.second))); in writeToParcel() 161 RETURN_STATUS_IF_ERROR(parcel->writeCString(std::get<std::string>(it.second).c_str())); in writeToParcel() 165 RETURN_STATUS_IF_ERROR(parcel->writeByte(std::get<int8_t>(it.second))); in writeToParcel() [all …]
|
/hardware/qcom/gps/msm8909w_3100/gnss/ |
D | Agps.cpp | 330 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local 331 while ( it != mSubscriberList.end() ){ in notifyAllSubscribers() 333 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers() 346 it = mSubscriberList.erase(it); in notifyAllSubscribers() 349 it++; in notifyAllSubscribers() 352 it++; in notifyAllSubscribers() 411 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local 412 for(; it != mSubscriberList.end(); it++){ in addSubscriber() 413 AgpsSubscriber* subscriber = *it; in addSubscriber() 430 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local [all …]
|
D | GnssAdapter.cpp | 1026 for (auto it = mTrackingSessions.begin(); it != mTrackingSessions.end();) { in stopClientSessions() local 1027 if (client == it->first.client) { in stopClientSessions() 1028 LocationError err = stopTrackingMultiplex(it->first.client, it->first.id); in stopClientSessions() 1030 it = mTrackingSessions.erase(it); in stopClientSessions() 1034 ++it; // increment only when not erasing an iterator in stopClientSessions() 1043 for (auto it=mClientData.begin(); it != mClientData.end(); ++it) { in updateClientsEventMask() local 1044 if (it->second.trackingCb != nullptr) { in updateClientsEventMask() 1047 if (it->second.gnssNiCb != nullptr) { in updateClientsEventMask() 1050 if (it->second.gnssSvCb != nullptr) { in updateClientsEventMask() 1053 if ((it->second.gnssNmeaCb != nullptr) && (mNmeaMask)) { in updateClientsEventMask() [all …]
|
/hardware/qcom/gps/msm8998/gnss/ |
D | Agps.cpp | 325 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local 326 while ( it != mSubscriberList.end() ) { in notifyAllSubscribers() 328 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers() 341 it = mSubscriberList.erase(it); in notifyAllSubscribers() 344 it++; in notifyAllSubscribers() 347 it++; in notifyAllSubscribers() 406 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local 407 for (; it != mSubscriberList.end(); it++) { in addSubscriber() 408 AgpsSubscriber* subscriber = *it; in addSubscriber() 425 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local [all …]
|
D | GnssAdapter.cpp | 974 for (auto it = mTrackingSessions.begin(); it != mTrackingSessions.end();) { in stopClientSessions() local 975 if (client == it->first.client) { in stopClientSessions() 976 LocationError err = stopTrackingMultiplex(it->first.client, it->first.id); in stopClientSessions() 978 it = mTrackingSessions.erase(it); in stopClientSessions() 982 ++it; // increment only when not erasing an iterator in stopClientSessions() 991 for (auto it=mClientData.begin(); it != mClientData.end(); ++it) { in updateClientsEventMask() local 992 if (it->second.trackingCb != nullptr) { in updateClientsEventMask() 995 if (it->second.gnssNiCb != nullptr) { in updateClientsEventMask() 998 if (it->second.gnssSvCb != nullptr) { in updateClientsEventMask() 1001 if (it->second.gnssNmeaCb != nullptr) { in updateClientsEventMask() [all …]
|
/hardware/qcom/sdm845/gps/msm8998/gnss/ |
D | Agps.cpp | 327 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in notifyAllSubscribers() local 328 while ( it != mSubscriberList.end() ){ in notifyAllSubscribers() 330 AgpsSubscriber* subscriber = *it; in notifyAllSubscribers() 343 it = mSubscriberList.erase(it); in notifyAllSubscribers() 346 it++; in notifyAllSubscribers() 349 it++; in notifyAllSubscribers() 408 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in addSubscriber() local 409 for(; it != mSubscriberList.end(); it++){ in addSubscriber() 410 AgpsSubscriber* subscriber = *it; in addSubscriber() 427 std::list<AgpsSubscriber*>::const_iterator it = mSubscriberList.begin(); in deleteSubscriber() local [all …]
|
D | GnssAdapter.cpp | 971 for (auto it = mTrackingSessions.begin(); it != mTrackingSessions.end();) { in stopClientSessions() local 972 if (client == it->first.client) { in stopClientSessions() 973 LocationError err = stopTrackingMultiplex(it->first.client, it->first.id); in stopClientSessions() 975 it = mTrackingSessions.erase(it); in stopClientSessions() 979 ++it; // increment only when not erasing an iterator in stopClientSessions() 988 for (auto it=mClientData.begin(); it != mClientData.end(); ++it) { in updateClientsEventMask() local 989 if (it->second.trackingCb != nullptr) { in updateClientsEventMask() 992 if (it->second.gnssNiCb != nullptr) { in updateClientsEventMask() 995 if (it->second.gnssSvCb != nullptr) { in updateClientsEventMask() 998 if (it->second.gnssNmeaCb != nullptr) { in updateClientsEventMask() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehiclePropertyStore.cpp | 66 auto it = mPropertyValues.find(recId); in removeValue() local 67 if (it != mPropertyValues.end()) { in removeValue() 68 mPropertyValues.erase(it); in removeValue() 82 for (auto&& it : mPropertyValues) { in readAllValues() 83 allValues.push_back(it.second); in readAllValues() 92 for (auto it = range.first; it != range.second; ++it) { in readValuesForProperty() local 93 values.push_back(it->second); in readValuesForProperty() 149 auto it = mConfigs.find(recId.prop); in getRecordIdLocked() local 150 if (it == mConfigs.end()) return {}; in getRecordIdLocked() 152 if (it->second.tokenFunction != nullptr) { in getRecordIdLocked() [all …]
|
D | SubscriptionManager.cpp | 53 auto it = mSubscriptions.find(opts.propId); in addOrUpdateSubscription() local 54 if (it == mSubscriptions.end()) { in addOrUpdateSubscription() 57 const SubscribeOptions& oldOpts = it->second; in addOrUpdateSubscription() 60 mSubscriptions.erase(it); in addOrUpdateSubscription() 68 auto it = mSubscriptions.find(propId); in isSubscribed() local 69 if (it == mSubscriptions.end()) { in isSubscribed() 72 const SubscribeOptions& opts = it->second; in isSubscribed() 173 auto it = mHalEventSubscribeOptions.find(opts.propId); in updateHalEventSubscriptionLocked() local 174 if (it == mHalEventSubscribeOptions.end()) { in updateHalEventSubscriptionLocked() 179 const SubscribeOptions& oldOpts = it->second; in updateHalEventSubscriptionLocked() [all …]
|
/hardware/qcom/gps/msm8909w_3100/core/data-items/common/ |
D | ClientIndex.cpp | 50 typename map < CT, list <DIT> > :: iterator it = in isSubscribedClient() local 52 if (it != mDataItemsPerClientMap.end ()) { in isSubscribedClient() 62 typename map < CT, list <DIT> > :: iterator it = in getSubscribedList() local 64 if (it != mDataItemsPerClientMap.end ()) { in getSubscribedList() 65 out = it->second; in getSubscribedList() 85 typename list <DIT> :: const_iterator it = r.begin (); in remove() local 86 for (; it != r.end (); ++it) { in remove() 88 find (dicIter->second.begin (), dicIter->second.end (), *it); in remove() 121 typename list <DIT> :: iterator it = out.begin (); in remove() local 122 for (; it != out.end (); ++it) { in remove() [all …]
|
D | DataItemIndex.cpp | 77 typename list <CT> :: const_iterator it = r.begin (); in remove() local 78 for (; it != r.end (); ++it) { in remove() 84 *it in remove() 120 typename list <CT> :: iterator it = out.begin (); in remove() local 121 for (; it != out.end (); ++it) { in remove() 124 *it)); in remove() 174 typename list <DIT> :: const_iterator it = l.begin (); in add() local 175 for (; it != l.end (); ++it) { in add() 176 cdiIter = mClientsPerDataItemMap.find (*it); in add() 178 out.push_back (*it); in add() [all …]
|
/hardware/interfaces/tests/trie/1.0/default/ |
D | Trie.cpp | 73 auto it = std::find_if(vec.begin(), vec.end(), in addString() local 76 if (it == vec.end()) { in addString() 78 it = vec.end() - 1; in addString() 79 it->character = ch; in addString() 80 it->node.isTerminal = false; in addString() 83 currNode = &(it->node); in addString() 95 auto it = std::find_if(vec.begin(), vec.end(), in containsString() local 98 if (it == vec.end()) return false; in containsString() 99 currNode = &(it->node); in containsString()
|
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/ |
D | IPACM_LanToLan.cpp | 128 list<IPACM_LanToLan_Iface>::iterator it; in has_l2tp_iface() local 131 for(it = m_iface.begin(); it != m_iface.end(); it++) in has_l2tp_iface() 133 if(it->is_l2tp_iface() == true) in has_l2tp_iface() 241 list<IPACM_LanToLan_Iface>::iterator it; in handle_iface_up() local 246 for(it = m_iface.begin(); it != m_iface.end(); it++) in handle_iface_up() 248 if(it->get_iface_pointer() == data->p_iface) in handle_iface_up() 251 if(it->get_m_is_ip_addr_assigned(data->iptype) == false) in handle_iface_up() 254 it->set_m_is_ip_addr_assigned(data->iptype, true); in handle_iface_up() 257 if(it->get_m_support_inter_iface_offload()) in handle_iface_up() 258 it->add_all_inter_interface_client_flt_rule(data->iptype); in handle_iface_up() [all …]
|
/hardware/google/av/media/sfplugin/ |
D | ReflectedParamUpdater.cpp | 42 for (const auto &it : *this) { in debugString() 53 if (it.second.find(&c2Value)) { in debugString() 57 s << "c2::i32 " << it.first << " = " << int32Value; in debugString() 61 s << "c2::u32 " << it.first << " = " << uint32Value; in debugString() 66 s << "c2::c32 " << it.first << " = " << uint32Value; in debugString() 70 s << "c2::i64 " << it.first << " = " << int64Value; in debugString() 74 s << "c2::u64 " << it.first << " = " << uint64Value; in debugString() 79 s << "c2::c64 " << it.first << " = " << uint64Value; in debugString() 83 s << "c2::float " << it.first << " = " << floatValue; in debugString() 87 s << "c2::unsupported " << it.first; in debugString() [all …]
|
/hardware/nxp/nfc/halimpl/utils/ |
D | phNxpConfig.cpp | 549 for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) { in find() local 550 if (**it < p_name) { in find() 552 } else if (**it == p_name) { in find() 553 if ((*it)->str_len() > 0) { in find() 555 (*it)->str_value()); in find() 558 (*it)->numValue()); in find() 560 return *it; in find() 579 for (iterator it = begin(), itEnd = end(); it != itEnd; ++it) delete *it; in clean() local 597 for (list<const CNfcParam*>::iterator it = m_list.begin(), in add() local 599 it != itEnd; ++it) { in add() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | wifi_logger.cpp | 350 nl_iterator it(vendor_data); in handleResponse() local 351 if (it.get_type() == LOGGER_ATTRIBUTE_RING_NUM) { in handleResponse() 352 unsigned int num_rings = it.get_u32(); in handleResponse() 361 it.get_type(), LOGGER_ATTRIBUTE_RING_NUM); in handleResponse() 365 it.next(); in handleResponse() 366 for (unsigned int i = 0; it.has_next() && i < *mNumRings; it.next()) { in handleResponse() 367 if (it.get_type() == LOGGER_ATTRIBUTE_RING_STATUS) { in handleResponse() 368 memcpy(status, it.get_data(), sizeof(wifi_ring_buffer_status)); in handleResponse() 373 it.get_type(), it.get_len()); in handleResponse() 550 for (nl_iterator it(vendor_data); it.has_next(); it.next()) { in handleEvent() local [all …]
|
/hardware/interfaces/camera/device/3.5/default/ |
D | CameraDevice.cpp | 115 for (const auto &it : streams.streams) { in isStreamCombinationSupported() local 116 streamBuffer[i].stream_type = static_cast<int> (it.v3_2.streamType); in isStreamCombinationSupported() 117 streamBuffer[i].width = it.v3_2.width; in isStreamCombinationSupported() 118 streamBuffer[i].height = it.v3_2.height; in isStreamCombinationSupported() 119 streamBuffer[i].format = static_cast<int> (it.v3_2.format); in isStreamCombinationSupported() 120 streamBuffer[i].data_space = static_cast<android_dataspace_t> (it.v3_2.dataSpace); in isStreamCombinationSupported() 121 streamBuffer[i].usage = static_cast<uint32_t> (it.v3_2.usage); in isStreamCombinationSupported() 122 streamBuffer[i].physical_camera_id = it.physicalCameraId.c_str(); in isStreamCombinationSupported() 123 streamBuffer[i++].rotation = static_cast<int> (it.v3_2.rotation); in isStreamCombinationSupported()
|
/hardware/interfaces/bluetooth/1.0/default/ |
D | async_fd_watcher.cc | 136 for (auto& it : watched_fds_) { in ThreadRoutine() local 137 FD_SET(it.first, &read_fds); in ThreadRoutine() 138 max_read_fd = std::max(max_read_fd, it.first); in ThreadRoutine() 179 for (auto& it : watched_fds_) { in ThreadRoutine() local 180 if (FD_ISSET(it.first, &read_fds)) { in ThreadRoutine() 181 it.second(it.first); in ThreadRoutine()
|
/hardware/interfaces/media/omx/1.0/vts/functional/common/ |
D | media_hidl_test_common.h | 132 for (hidl_vec<Message>::const_iterator it = messages.begin(); in onMessages() local 133 it != messages.end(); ++it) { in onMessages() 134 msgQueue.push_back(*it); in onMessages() 146 android::List<Message>::iterator it = msgQueue.begin(); 147 while (it != msgQueue.end()) { 148 if (it->type == 150 *msg = *it; 151 if (callBack) callBack(*it, nullptr); 152 it = msgQueue.erase(it); 161 } else if (it->type == android::hardware::media::omx::V1_0:: [all …]
|