Home
last modified time | relevance | path

Searched refs:itr (Results 1 – 25 of 122) sorted by relevance

12345

/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dleveldb_wrapper_unittest.cc60 scoped_ptr<LevelDBWrapper::Iterator> itr = db_->NewIterator(); in CheckDBContents() local
61 itr->SeekToFirst(); in CheckDBContents()
63 ASSERT_TRUE(itr->Valid()); in CheckDBContents()
64 EXPECT_EQ(expects[i].key, itr->key().ToString()); in CheckDBContents()
65 EXPECT_EQ(expects[i].value, itr->value().ToString()); in CheckDBContents()
66 itr->Next(); in CheckDBContents()
68 EXPECT_FALSE(itr->Valid()); in CheckDBContents()
92 scoped_ptr<LevelDBWrapper::Iterator> itr = GetDB()->NewIterator(); in TEST_F() local
94 itr->Seek("a"); in TEST_F()
95 EXPECT_TRUE(itr->Valid()); in TEST_F()
[all …]
Dtask_dependency_manager.cc19 for (typename Container1::const_iterator itr = items_to_erase.begin(); in EraseContainer() local
20 itr != items_to_erase.end(); ++itr) { in EraseContainer()
21 container->erase(*itr); in EraseContainer()
31 for (iterator itr = items_to_insert.begin(); in InsertAllOrNone() local
32 itr != items_to_insert.end(); ++itr) { in InsertAllOrNone()
33 if (!container->insert(*itr).second) { in InsertAllOrNone()
35 iterator end = itr; in InsertAllOrNone()
36 itr = items_to_insert.begin(); in InsertAllOrNone()
37 for (; itr != end; ++itr) in InsertAllOrNone()
38 container->erase(*itr); in InsertAllOrNone()
[all …]
Dmetadata_database_index_on_disk.cc155 scoped_ptr<LevelDBWrapper::Iterator> itr = db->NewIterator(); in RemoveUnreachableItems() local
156 for (itr->Seek(kFileTrackerKeyPrefix); itr->Valid(); itr->Next()) { in RemoveUnreachableItems()
157 if (!RemovePrefix(itr->key().ToString(), kFileTrackerKeyPrefix, NULL)) in RemoveUnreachableItems()
161 if (!tracker->ParseFromString(itr->value().ToString())) { in RemoveUnreachableItems()
208 scoped_ptr<LevelDBWrapper::Iterator> itr = db->NewIterator(); in RemoveUnreachableItems() local
209 for (itr->Seek(kFileTrackerKeyPrefix); itr->Valid(); itr->Next()) { in RemoveUnreachableItems()
210 if (!RemovePrefix(itr->key().ToString(), kFileTrackerKeyPrefix, NULL)) in RemoveUnreachableItems()
214 if (!tracker->ParseFromString(itr->value().ToString())) { in RemoveUnreachableItems()
230 scoped_ptr<LevelDBWrapper::Iterator> itr = db->NewIterator(); in RemoveUnreachableItems() local
231 for (itr->Seek(kFileMetadataKeyPrefix); itr->Valid(); itr->Next()) { in RemoveUnreachableItems()
[all …]
Dmetadata_database.cc71 for (PathComponents::const_iterator itr = components.begin(); in ReverseConcatPathComponents() local
72 itr != components.end(); ++itr) in ReverseConcatPathComponents()
73 total_size += itr->value().size() + 1; in ReverseConcatPathComponents()
77 for (PathComponents::const_reverse_iterator itr = components.rbegin(); in ReverseConcatPathComponents() local
78 itr != components.rend(); ++itr) { in ReverseConcatPathComponents()
80 result.append(itr->value()); in ReverseConcatPathComponents()
90 for (std::vector<google_apis::ParentReference>::const_iterator itr = in PopulateFileDetailsByFileResource() local
92 itr != file_resource.parents().end(); in PopulateFileDetailsByFileResource()
93 ++itr) { in PopulateFileDetailsByFileResource()
94 details->add_parent_folder_ids(itr->file_id()); in PopulateFileDetailsByFileResource()
[all …]
Dcallback_tracker.cc22 for (AbortClosureByHelper::iterator itr = helpers.begin(); in AbortAll() local
23 itr != helpers.end(); ++itr) { in AbortAll()
24 delete itr->first; in AbortAll()
25 itr->second.Run(); in AbortAll()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
Dstroker.c85 static VGPathCommand stroke_itr_command(struct stroke_iterator *itr) in stroke_itr_command() argument
87 return itr->current_command(itr); in stroke_itr_command()
90 static void stroke_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_itr_coords() argument
92 itr->current_coords(itr, coords); in stroke_itr_coords()
95 static void stroke_fw_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_fw_itr_coords() argument
97 if (itr->position >= itr->num_commands) in stroke_fw_itr_coords()
99 switch (stroke_itr_command(itr)) { in stroke_fw_itr_coords()
101 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
102 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_fw_itr_coords()
105 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dstroker.c85 static VGPathCommand stroke_itr_command(struct stroke_iterator *itr) in stroke_itr_command() argument
87 return itr->current_command(itr); in stroke_itr_command()
90 static void stroke_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_itr_coords() argument
92 itr->current_coords(itr, coords); in stroke_itr_coords()
95 static void stroke_fw_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_fw_itr_coords() argument
97 if (itr->position >= itr->num_commands) in stroke_fw_itr_coords()
99 switch (stroke_itr_command(itr)) { in stroke_fw_itr_coords()
101 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
102 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_fw_itr_coords()
105 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
[all …]
/external/chromium_org/media/filters/
Dsource_buffer_stream.cc24 for (std::list<SourceBufferRange*>::const_iterator itr = in IsRangeListSorted() local
25 ranges.begin(); itr != ranges.end(); ++itr) { in IsRangeListSorted()
26 if (prev != kNoDecodeTimestamp() && prev >= (*itr)->GetStartTimestamp()) in IsRangeListSorted()
28 prev = (*itr)->GetEndTimestamp(); in IsRangeListSorted()
242 BufferQueue::const_iterator itr = buffers.begin(); in Append() local
245 while (itr != buffers.end() && !(*itr)->IsKeyframe()) { in Append()
246 ++itr; in Append()
251 if (itr == buffers.end()) { in Append()
255 } else if (itr != buffers.begin()) { in Append()
258 trimmed_buffers.assign(itr, buffers.end()); in Append()
[all …]
Dchunk_demuxer.cc48 for (RangesList::const_iterator itr = activeRanges.begin(); in ComputeIntersection() local
49 itr != activeRanges.end(); ++itr) { in ComputeIntersection()
50 if (!itr->size()) in ComputeIntersection()
53 highest_end_time = std::max(highest_end_time, itr->end(itr->size() - 1)); in ComputeIntersection()
63 for (RangesList::const_iterator itr = activeRanges.begin(); in ComputeIntersection() local
64 itr != activeRanges.end(); ++itr) { in ComputeIntersection()
67 Ranges<TimeDelta> source_ranges = *itr; in ComputeIntersection()
362 for (TextStreamMap::iterator itr = text_stream_map_.begin(); in Remove() local
363 itr != text_stream_map_.end(); ++itr) { in Remove()
364 itr->second->Remove(start, end, duration); in Remove()
[all …]
Dframe_processor.cc266 for (TrackBufferMap::iterator itr = track_buffers_.begin(); in SetAllTrackBuffersNeedRandomAccessPoint() local
267 itr != track_buffers_.end(); in SetAllTrackBuffersNeedRandomAccessPoint()
268 ++itr) { in SetAllTrackBuffersNeedRandomAccessPoint()
269 itr->second->set_needs_random_access_point(true); in SetAllTrackBuffersNeedRandomAccessPoint()
275 for (TrackBufferMap::iterator itr = track_buffers_.begin(); in Reset() local
276 itr != track_buffers_.end(); ++itr) { in Reset()
277 itr->second->Reset(); in Reset()
297 TrackBufferMap::iterator itr = track_buffers_.find(id); in FindTrack() local
298 if (itr == track_buffers_.end()) in FindTrack()
301 return itr->second; in FindTrack()
[all …]
/external/eigen/bench/btl/generic_bench/timers/
Dx86_timer.hh123 std::map<unsigned long long , unsigned long long>::iterator itr; in dump_statistics() local
124 for(itr=_counted_clicks.begin() ; itr!=_counted_clicks.end() ; itr++) in dump_statistics()
126 outfile << (*itr).first << " " << (*itr).second << endl ; in dump_statistics()
155 std::map<unsigned long long,unsigned long long>::iterator itr; in get_mean_clicks() local
159 for(itr=_counted_clicks.begin() ; itr!=_counted_clicks.end() ; itr++) in get_mean_clicks()
162 mean_clicks+=(*itr).second*(*itr).first; in get_mean_clicks()
189 std::map<unsigned long long,unsigned long long>::iterator itr; in get_most_occured_clicks() local
191 for(itr=_counted_clicks.begin() ; itr!=_counted_clicks.end() ; itr++) in get_most_occured_clicks()
194 if (max_occurence<=(*itr).second){ in get_most_occured_clicks()
195 max_occurence=(*itr).second; in get_most_occured_clicks()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dmediarecorder.cc115 std::map<BaseChannel*, SinkPair*>::iterator itr; in ~MediaRecorder() local
116 for (itr = sinks_.begin(); itr != sinks_.end(); ++itr) { in ~MediaRecorder()
117 delete itr->second; in ~MediaRecorder()
165 std::map<BaseChannel*, SinkPair*>::iterator itr = sinks_.find(channel); in RemoveChannel() local
166 if (sinks_.end() != itr) { in RemoveChannel()
167 channel->UnregisterSendSink(itr->second->send_sink.get(), type); in RemoveChannel()
168 channel->UnregisterRecvSink(itr->second->recv_sink.get(), type); in RemoveChannel()
169 delete itr->second; in RemoveChannel()
170 sinks_.erase(itr); in RemoveChannel()
178 std::map<BaseChannel*, SinkPair*>::iterator itr = sinks_.find(channel); in EnableChannel() local
[all …]
/external/chromium_org/chrome/browser/ui/webui/quota_internals/
Dquota_internals_handler.cc50 for (iterator itr(hosts.begin()); itr != hosts.end(); ++itr) { in ReportPerHostInfo() local
51 values.Append(itr->NewValue()); in ReportPerHostInfo()
61 for (iterator itr(origins.begin()); itr != origins.end(); ++itr) { in ReportPerOriginInfo() local
62 origins_value.Append(itr->NewValue()); in ReportPerOriginInfo()
71 for (iterator itr(stats.begin()); itr != stats.end(); ++itr) { in ReportStatistics() local
72 dict.SetString(itr->first, itr->second); in ReportStatistics()
Dquota_internals_proxy.cc131 for (iterator itr(entries.begin()); itr != entries.end(); ++itr) { in DidDumpQuotaTable() local
132 PerHostStorageInfo info(itr->host, itr->type); in DidDumpQuotaTable()
133 info.set_quota(itr->quota); in DidDumpQuotaTable()
146 for (iterator itr(entries.begin()); itr != entries.end(); ++itr) { in DidDumpOriginInfoTable() local
147 PerOriginStorageInfo info(itr->origin, itr->type); in DidDumpOriginInfoTable()
148 info.set_used_count(itr->used_count); in DidDumpOriginInfoTable()
149 info.set_last_access_time(itr->last_access_time); in DidDumpOriginInfoTable()
150 info.set_last_modified_time(itr->last_modified_time); in DidDumpOriginInfoTable()
192 for (std::set<GURL>::iterator itr(origins.begin()); in RequestPerOriginInfo() local
193 itr != origins.end(); ++itr) { in RequestPerOriginInfo()
[all …]
/external/stressapptest/src/
Derror_diag.cc37 for (std::map<string, DeviceTree*>::iterator itr = subdevices_.begin(); in ~DeviceTree() local
38 itr != subdevices_.end(); in ~DeviceTree()
39 ++itr) { in ~DeviceTree()
40 delete itr->second; in ~DeviceTree()
43 for (std::list<ErrorInstance*>::iterator itr = errors_.begin(); in ~DeviceTree() local
44 itr != errors_.end(); in ~DeviceTree()
45 ++itr) { in ~DeviceTree()
46 delete (*itr); in ~DeviceTree()
64 std::map<string, DeviceTree*>::iterator itr = subdevices_.find(name); in UnlockedFindInSubTree() local
65 if (itr != subdevices_.end()) { in UnlockedFindInSubTree()
[all …]
/external/chromium_org/content/browser/service_worker/
Dservice_worker_database.cc357 scoped_ptr<leveldb::Iterator> itr(db_->NewIterator(leveldb::ReadOptions())); in GetOriginsWithRegistrations() local
358 for (itr->Seek(kUniqueOriginKey); itr->Valid(); itr->Next()) { in GetOriginsWithRegistrations()
359 status = LevelDBStatusToStatus(itr->status()); in GetOriginsWithRegistrations()
367 if (!RemovePrefix(itr->key().ToString(), kUniqueOriginKey, &origin)) in GetOriginsWithRegistrations()
392 scoped_ptr<leveldb::Iterator> itr(db_->NewIterator(leveldb::ReadOptions())); in GetRegistrationsForOrigin() local
393 for (itr->Seek(prefix); itr->Valid(); itr->Next()) { in GetRegistrationsForOrigin()
394 status = LevelDBStatusToStatus(itr->status()); in GetRegistrationsForOrigin()
401 if (!RemovePrefix(itr->key().ToString(), prefix, NULL)) in GetRegistrationsForOrigin()
405 status = ParseRegistrationData(itr->value().ToString(), &registration); in GetRegistrationsForOrigin()
429 scoped_ptr<leveldb::Iterator> itr(db_->NewIterator(leveldb::ReadOptions())); in GetAllRegistrations() local
[all …]
/external/llvm/include/llvm/ADT/
DImmutableMap.h207 typename TreeTy::iterator itr; variable
210 iterator(TreeTy* t) : itr(t) {} in iterator()
220 typename iterator::reference operator*() const { return itr->getValue(); }
221 typename iterator::pointer operator->() const { return &itr->getValue(); }
223 key_type_ref getKey() const { return itr->getValue().first; } in getKey()
224 data_type_ref getData() const { return itr->getValue().second; } in getData()
226 iterator& operator++() { ++itr; return *this; }
227 iterator operator++(int) { iterator tmp(*this); ++itr; return tmp; }
228 iterator& operator--() { --itr; return *this; }
229 iterator operator--(int) { iterator tmp(*this); --itr; return tmp; }
[all …]
/external/chromium_org/chrome/browser/browsing_data/
Dbrowsing_data_quota_helper_impl.cc89 for (std::set<GURL>::const_iterator itr = origins.begin(); in GotOrigins() local
90 itr != origins.end(); in GotOrigins()
91 ++itr) in GotOrigins()
92 if (BrowsingDataHelper::HasWebScheme(*itr)) in GotOrigins()
93 pending_hosts_.insert(std::make_pair(itr->host(), type)); in GotOrigins()
124 PendingHosts::iterator itr = pending_hosts_.begin(); in ProcessPendingHosts() local
125 std::string host = itr->first; in ProcessPendingHosts()
126 storage::StorageType type = itr->second; in ProcessPendingHosts()
127 pending_hosts_.erase(itr); in ProcessPendingHosts()
171 for (std::map<std::string, QuotaInfo>::iterator itr = quota_info_.begin(); in OnComplete() local
[all …]
/external/chromium_org/media/base/
Dtext_renderer.cc53 for (TextTrackStateMap::iterator itr = text_track_state_map_.begin(); in StartPlaying() local
54 itr != text_track_state_map_.end(); ++itr) { in StartPlaying()
55 TextTrackState* state = itr->second; in StartPlaying()
61 Read(state, itr->first); in StartPlaying()
87 for (TextTrackStateMap::iterator itr = text_track_state_map_.begin(); in Flush() local
88 itr != text_track_state_map_.end(); ++itr) { in Flush()
89 pending_eos_set_.insert(itr->first); in Flush()
90 itr->second->text_ranges_.Reset(); in Flush()
116 TextTrackStateMap::iterator itr = text_track_state_map_.find(text_stream); in RemoveTextStream() local
117 DCHECK(itr != text_track_state_map_.end()); in RemoveTextStream()
[all …]
Dtest_data_util.cc30 QueryParams::const_iterator itr = query_params.begin(); in GetURLQueryString() local
31 for (; itr != query_params.end(); ++itr) { in GetURLQueryString()
32 if (itr != query_params.begin()) in GetURLQueryString()
34 query.append(itr->first + "=" + itr->second); in GetURLQueryString()
/external/stlport/test/unit/
Distmit_test.cpp140 istream_iterator<int> itr(is); in copy_n_test() local
141 itr = copy_n(itr, 0, back_inserter(ints)).first; in copy_n_test()
143 itr = copy_n(itr, -1, back_inserter(ints)).first; in copy_n_test()
145 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
149 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
153 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
/external/chromium_org/chrome/browser/printing/
Dprint_job_manager.cc35 for (PrinterQueries::iterator itr = queued_queries_.begin(); in PopPrinterQuery() local
36 itr != queued_queries_.end(); ++itr) { in PopPrinterQuery()
37 if ((*itr)->cookie() == document_cookie && !(*itr)->is_callback_pending()) { in PopPrinterQuery()
38 scoped_refptr<printing::PrinterQuery> current_query(*itr); in PopPrinterQuery()
39 queued_queries_.erase(itr); in PopPrinterQuery()
64 for (PrinterQueries::iterator itr = queries_to_stop.begin(); in Shutdown() local
65 itr != queries_to_stop.end(); ++itr) { in Shutdown()
66 (*itr)->PostTask(FROM_HERE, base::Bind(&PrinterQuery::StopWorker, *itr)); in Shutdown()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_params.h85 NameMap::const_iterator itr; in java_package() local
87 itr = java_packages_.find(file_name); in java_package()
88 if (itr == java_packages_.end()) { in java_package()
91 return itr->second; in java_package()
107 NameMap::const_iterator itr; in java_outer_classname() local
109 itr = java_outer_classnames_.find(file_name); in java_outer_classname()
110 if (itr == java_outer_classnames_.end()) { in java_outer_classname()
113 return itr->second; in java_outer_classname()
/external/chromium_org/chrome/installer/util/
Dwork_item_list.cc22 for (WorkItemIterator itr = list_.begin(); itr != list_.end(); ++itr) { in ~WorkItemList() local
23 delete (*itr); in ~WorkItemList()
25 for (WorkItemIterator itr = executed_list_.begin(); in ~WorkItemList() local
26 itr != executed_list_.end(); ++itr) { in ~WorkItemList()
27 delete (*itr); in ~WorkItemList()
62 for (WorkItemIterator itr = executed_list_.begin(); in Rollback() local
63 itr != executed_list_.end(); ++itr) { in Rollback()
64 (*itr)->Rollback(); in Rollback()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_params.h96 NameMap::const_iterator itr; in java_package() local
98 itr = java_packages_.find(file_name); in java_package()
99 if (itr == java_packages_.end()) { in java_package()
102 return itr->second; in java_package()
118 NameMap::const_iterator itr; in java_outer_classname() local
120 itr = java_outer_classnames_.find(file_name); in java_outer_classname()
121 if (itr == java_outer_classnames_.end()) { in java_outer_classname()
124 return itr->second; in java_outer_classname()

12345