Home
last modified time | relevance | path

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

123

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
Dsparse_weight_vector.cpp38 for (Witer_const iter = w_.begin(); in IsValid() local
39 iter != w_.end(); in IsValid()
40 ++iter) { in IsValid()
41 if (isnanf(iter->second) || __isinff(iter->second)) in IsValid()
52 for (Witer_const iter = w1.w_.begin(); in AdditiveWeightUpdate() local
53 iter != w1.w_.end(); in AdditiveWeightUpdate()
54 ++iter) { in AdditiveWeightUpdate()
55 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_ in AdditiveWeightUpdate()
66 for (Witer_const iter = w1.w_.begin(); in AdditiveSquaredWeightUpdate() local
67 iter != w1.w_.end(); in AdditiveSquaredWeightUpdate()
[all …]
Dsparse_weight_vector.h177 Witer_const iter = w1.find(fname); in GetValue() local
178 if (iter != w1.end()) { in GetValue()
179 (*val) = iter->second; in GetValue()
194 for (typename SparseWeightVector<Key, Hash>::Witer_const iter = w_map.begin(); variable
195 iter != w_map.end();
196 ++iter) {
197 stream << "<" << iter->first << ", " << iter->second << "> ";
/frameworks/compile/mclinker/unittests/
DHashTableTest.cpp91 HashTableTy::iterator iter; in TEST_F() local
92 iter = hashTable->find(NULL); in TEST_F()
93 EXPECT_TRUE(iter==hashTable->end()); in TEST_F()
157 HashTableTy::iterator iter; in TEST_F() local
161 iter = hashTable->find(key); in TEST_F()
162 EXPECT_TRUE(iter == hashTable->end()); in TEST_F()
182 HashTableTy::iterator iter; in TEST_F() local
184 iter = hashTable->find(key); in TEST_F()
185 EXPECT_TRUE(iter == hashTable->end()); in TEST_F()
205 HashTableTy::iterator iter; in TEST_F() local
[all …]
DSectionDataTest.cpp67 llvm::iplist<Fragment>::iterator iter=s->begin(); in TEST_F() local
68 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
69 ++iter; in TEST_F()
70 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
71 ++iter; in TEST_F()
72 EXPECT_TRUE(Fragment::Region == iter->getKind()); in TEST_F()
73 ++iter; in TEST_F()
74 EXPECT_TRUE(Fragment::Fillment == iter->getKind()); in TEST_F()
75 ++iter; in TEST_F()
76 EXPECT_TRUE(Fragment::Target == iter->getKind()); in TEST_F()
[all …]
DELFReaderTest.cpp85 LDContext::const_sect_iterator iter = m_pInput->context()->sectBegin(); in TEST_F() local
86 ++iter; /// test section[1] in TEST_F()
87 ASSERT_EQ(".text", (*iter)->name()); in TEST_F()
88 ASSERT_EQ(llvm::ELF::SHT_PROGBITS, (*iter)->type()); in TEST_F()
89 ASSERT_EQ(0x40, (*iter)->offset()); in TEST_F()
90 ASSERT_EQ(0x15, (*iter)->size()); in TEST_F()
91 ASSERT_TRUE(llvm::ELF::SHF_ALLOC & (*iter)->flag()); //AX in TEST_F()
92 ASSERT_EQ(0x4, (*iter)->align()); in TEST_F()
93 ASSERT_EQ(NULL, (*iter)->getLink()); in TEST_F()
94 ASSERT_EQ(0, (*iter)->getInfo()); in TEST_F()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dmandelbrot.rs32 int iter = 0;
33 while((t2.x + t2.y < 4.f) && (iter < gMaxIteration)) {
37 iter++;
41 if(iter >= gMaxIteration) {
46 if (iter <= (gMaxIteration / 3))
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
48 else if (iter <= (((gMaxIteration / 3) * 2)))
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
50 (0xff * ((iter - mi3) / mi3)), 0, 0xff};
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
[all …]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dmandelbrot.rs32 int iter = 0;
33 while((t2.x + t2.y < 4.f) && (iter < gMaxIteration)) {
37 iter++;
41 if(iter >= gMaxIteration) {
46 if (iter <= (gMaxIteration / 3))
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
48 else if (iter <= (((gMaxIteration / 3) * 2)))
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
50 (0xff * ((iter - mi3) / mi3)), 0, 0xff};
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
[all …]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dmandelbrot.rs32 int iter = 0;
33 while((t2.x + t2.y < 4.f) && (iter < gMaxIteration)) {
37 iter++;
41 if(iter >= gMaxIteration) {
46 if (iter <= (gMaxIteration / 3))
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
48 else if (iter <= (((gMaxIteration / 3) * 2)))
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
50 (0xff * ((iter - mi3) / mi3)), 0, 0xff};
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
[all …]
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp326 iterator iter = fileBegin(); in fileEnd() local
327 iter += m_pFile->size(); in fileEnd()
328 return iter; in fileEnd()
338 const_iterator iter = fileBegin(); in fileEnd() local
339 iter += m_pFile->size(); in fileEnd()
340 return iter; in fileEnd()
350 iterator iter = localBegin(); in localEnd() local
351 iter += m_pLocal->size(); in localEnd()
352 return iter; in localEnd()
362 const_iterator iter = localBegin(); in localEnd() local
[all …]
/frameworks/base/core/java/android/webkit/
DUrlInterceptRegistry.java129 Iterator iter = getHandlers().listIterator(); in getSurrogate() local
130 while (iter.hasNext()) { in getSurrogate()
131 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getSurrogate()
157 Iterator iter = getHandlers().listIterator(); in getPluginData() local
158 while (iter.hasNext()) { in getPluginData()
159 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getPluginData()
/frameworks/base/core/jni/android/graphics/
DTextLayoutCache.cpp505 utf16_to_code_point(const uint16_t *chars, size_t len, ssize_t *iter) { in utf16_to_code_point() argument
506 const uint16_t v = chars[(*iter)++]; in utf16_to_code_point()
509 if (size_t(*iter) >= len) { in utf16_to_code_point()
513 const uint16_t v2 = chars[(*iter)++]; in utf16_to_code_point()
516 (*iter)--; in utf16_to_code_point()
532 utf16_to_code_point_prev(const uint16_t *chars, size_t len, ssize_t *iter) { in utf16_to_code_point_prev() argument
533 const uint16_t v = chars[(*iter)--]; in utf16_to_code_point_prev()
536 if (*iter < 0) { in utf16_to_code_point_prev()
540 const uint16_t v2 = chars[(*iter)--]; in utf16_to_code_point_prev()
543 (*iter)++; in utf16_to_code_point_prev()
[all …]
/frameworks/compile/mclinker/lib/Fragment/
DFragmentLinker.cpp122 BranchIsland::reloc_iterator iter, iterEnd = island.reloc_end(); in applyRelocations() local
123 for (iter = island.reloc_begin(); iter != iterEnd; ++iter) in applyRelocations()
124 (*iter)->apply(*m_Backend.getRelocator()); in applyRelocations()
179 BranchIsland::reloc_iterator iter, iterEnd = island.reloc_end(); in normalSyncRelocationResult() local
180 for (iter = island.reloc_begin(); iter != iterEnd; ++iter) { in normalSyncRelocationResult()
181 Relocation* reloc = *iter; in normalSyncRelocationResult()
/frameworks/base/services/java/com/android/server/location/
DGeofenceManager.java149 Iterator<GeofenceState> iter = mFences.iterator(); in removeFence() local
150 while (iter.hasNext()) { in removeFence()
151 GeofenceState state = iter.next(); in removeFence()
156 iter.remove(); in removeFence()
160 iter.remove(); in removeFence()
175 Iterator<GeofenceState> iter = mFences.iterator(); in removeFence() local
176 while (iter.hasNext()) { in removeFence()
177 GeofenceState state = iter.next(); in removeFence()
179 iter.remove(); in removeFence()
188 Iterator<GeofenceState> iter = mFences.iterator(); in removeExpiredFencesLocked() local
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java668 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyKey() local
670 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyKey()
671 assertEquals("", iter.next()); in testGetQueryParameterNamesEmptyKey()
672 assertEquals("c", iter.next()); in testGetQueryParameterNamesEmptyKey()
678 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyKey2() local
680 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyKey2()
681 assertEquals("", iter.next()); in testGetQueryParameterNamesEmptyKey2()
682 assertEquals("c", iter.next()); in testGetQueryParameterNamesEmptyKey2()
688 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyValues() local
690 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyValues()
[all …]
/frameworks/av/media/libmedia/
DSoundPool.cpp132 List<SoundChannel* >::iterator iter = mStop.begin(); in run() local
133 channel = *iter; in run()
134 mStop.erase(iter); in run()
147 List<SoundChannel*>::iterator iter = mRestart.begin(); in run() local
148 channel = *iter; in run()
149 mRestart.erase(iter); in run()
282 List<SoundChannel*>::iterator iter; in allocateChannel_l() local
287 iter = mChannels.begin(); in allocateChannel_l()
288 if (priority >= (*iter)->priority()) { in allocateChannel_l()
289 channel = *iter; in allocateChannel_l()
[all …]
DIMediaDeathNotifier.cpp93 for (size_t iter = 0; iter < count; ++iter) { in binderDied() local
94 sp<IMediaDeathNotifier> notifier = list[iter].promote(); in binderDied()
/frameworks/base/media/mca/filterfw/jni/
Djni_util.h124 typename CObjMap::const_iterator iter = objects_.find(obj_id); in ObjectWithID() local
125 return iter == objects_.end() ? NULL : iter->second; in ObjectWithID()
153 typename CObjMap::iterator iter = objects_.find(obj_id); in DeleteObjectWithID() local
154 const bool found = iter != objects_.end(); in DeleteObjectWithID()
157 delete iter->second; in DeleteObjectWithID()
158 objects_.erase(iter); in DeleteObjectWithID()
/frameworks/base/core/java/android/net/http/
DRequestQueue.java423 Iterator<Map.Entry<HttpHost, LinkedList<Request>>> iter; in dump() local
428 iter = mPending.entrySet().iterator(); in dump()
429 while (iter.hasNext()) { in dump()
430 Map.Entry<HttpHost, LinkedList<Request>> entry = iter.next(); in dump()
436 while (iter.hasNext()) { in dump()
437 Request request = (Request)iter.next(); in dump()
526 … Iterator<Map.Entry<HttpHost, LinkedList<Request>>> iter = requestQueue.entrySet().iterator(); in removeFirst() local
527 if (iter.hasNext()) { in removeFirst()
528 Map.Entry<HttpHost, LinkedList<Request>> entry = iter.next(); in removeFirst()
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c87 struct usb_descriptor_iter iter; in usb_device_added() local
104 struct usb_descriptor_iter iter; in usb_device_added() local
112 usb_descriptor_iter_init(device, &iter); in usb_device_added()
113 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java117 Iterator<ActivityManager.ProcessErrorStateInfo> iter = errList.iterator(); in checkErrorListSanity()
118 while (iter.hasNext()) { in checkErrorListSanity()
119 ActivityManager.ProcessErrorStateInfo info = iter.next(); in checkErrorListSanity()
/frameworks/compile/mclinker/lib/LD/
DNamePool.cpp138 Table::iterator iter = m_Table.find(pName); in findInfo() local
139 return iter.getEntry(); in findInfo()
145 Table::const_iterator iter = m_Table.find(pName); in findInfo() local
146 return iter.getEntry(); in findInfo()
/frameworks/base/core/jni/
Dandroid_util_Binder.cpp495 List< sp<JavaDeathRecipient> >::iterator iter; in ~DeathRecipientList() local
496 for (iter = mList.begin(); iter != mList.end(); iter++) { in ~DeathRecipientList()
497 (*iter)->warnIfStillLive(); in ~DeathRecipientList()
512 List< sp<JavaDeathRecipient> >::iterator iter; in remove() local
513 for (iter = mList.begin(); iter != mList.end(); iter++) { in remove()
514 if (*iter == recipient) { in remove()
516 mList.erase(iter); in remove()
525 List< sp<JavaDeathRecipient> >::iterator iter; in find() local
526 for (iter = mList.begin(); iter != mList.end(); iter++) { in find()
527 if ((*iter)->matches(recipient)) { in find()
[all …]
/frameworks/compile/mclinker/lib/Support/
DDirectory.cpp128 PathCache::iterator iter = m_Cache.begin(); in begin() local
129 if (NULL == iter.getEntry()) in begin()
130 ++iter; in begin()
131 return iterator(this, iter); in begin()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DTweener.java45 Iterator<Entry<Object, Tweener>> iter = sTweens.entrySet().iterator(); in remove() local
46 while (iter.hasNext()) { in remove()
47 Entry<Object, Tweener> entry = iter.next(); in remove()
51 iter.remove(); in remove()
/frameworks/base/media/mca/filterfw/native/base/
Dutilities.h116 typename std::set<T>::iterator iter = items_.find(item); in CheckItem() local
117 if (iter != items_.end()) in CheckItem()
118 items_.erase(iter); in CheckItem()

123