/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
D | sparse_weight_vector.cpp | 38 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 …]
|
D | sparse_weight_vector.h | 177 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/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | mandelbrot.rs | 32 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/ |
D | mandelbrot.rs | 32 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/unittests/ |
D | HashTableTest.cpp | 91 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 …]
|
D | SectionDataTest.cpp | 67 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 …]
|
D | ELFReaderTest.cpp | 88 LDContext::const_sect_iterator iter = m_pInput->context()->sectBegin(); in TEST_F() local 89 ++iter; /// test section[1] in TEST_F() 90 ASSERT_EQ(".text", (*iter)->name()); in TEST_F() 91 ASSERT_EQ(llvm::ELF::SHT_PROGBITS, (*iter)->type()); in TEST_F() 92 ASSERT_EQ(0x40, (*iter)->offset()); in TEST_F() 93 ASSERT_EQ(0x15, (*iter)->size()); in TEST_F() 94 ASSERT_TRUE(llvm::ELF::SHF_ALLOC & (*iter)->flag()); //AX in TEST_F() 95 ASSERT_EQ(0x4, (*iter)->align()); in TEST_F() 96 ASSERT_EQ(NULL, (*iter)->getLink()); in TEST_F() 97 ASSERT_EQ(0, (*iter)->getInfo()); in TEST_F()
|
/frameworks/base/libs/androidfw/tests/ |
D | TypeWrappers_test.cpp | 83 TypeVariant::iterator iter = v.beginEntries(); in TEST() local 84 ASSERT_EQ(uint32_t(0), iter.index()); in TEST() 85 ASSERT_TRUE(NULL != *iter); in TEST() 86 ASSERT_EQ(uint32_t(0), iter->key.index); in TEST() 87 ASSERT_NE(v.endEntries(), iter); in TEST() 89 iter++; in TEST() 91 ASSERT_EQ(uint32_t(1), iter.index()); in TEST() 92 ASSERT_TRUE(NULL == *iter); in TEST() 93 ASSERT_NE(v.endEntries(), iter); in TEST() 95 iter++; in TEST() [all …]
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | mandelbrot.rs | 32 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/ |
D | SymbolCategory.cpp | 338 iterator iter = fileBegin(); in fileEnd() local 339 iter += m_pFile->size(); in fileEnd() 340 return iter; in fileEnd() 350 const_iterator iter = fileBegin(); in fileEnd() local 351 iter += m_pFile->size(); in fileEnd() 352 return iter; in fileEnd() 362 iterator iter = localBegin(); in localEnd() local 363 iter += m_pLocal->size(); in localEnd() 364 return iter; in localEnd() 374 const_iterator iter = localBegin(); in localEnd() local [all …]
|
/frameworks/base/tools/aapt/ |
D | ApkBuilder.cpp | 34 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in createSplitForConfigs() local 35 for (; iter != configs.end(); iter++) { in createSplitForConfigs() 36 if (splitConfigs.count(*iter) > 0) { in createSplitForConfigs() 39 "in another split.\n", iter->toString().string()); in createSplitForConfigs() 83 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in ApkSplit() local 84 for (; iter != configs.end(); iter++) { in ApkSplit() 91 String8 configStr = iter->toString(); in ApkSplit() 120 std::set<OutputEntry>::const_iterator iter = mFiles.begin(); in print() local 121 for (; iter != mFiles.end(); iter++) { in print() 122 …fprintf(stderr, " %s (%s)\n", iter->getPath().string(), iter->getFile()->getSourceFile().string()… in print()
|
D | ResourceFilter.h | 87 std::set<ConfigDescription>::const_iterator iter = mConfigs.begin(); in match() local 88 for (; iter != mConfigs.end(); iter++) { in match() 89 if (iter->compare(config) == 0) { in match()
|
/frameworks/av/media/ndk/ |
D | NdkMediaDrm.cpp | 228 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) { in findId() argument 229 iter = mObj->mIds.begin(); in findId() 230 while (iter != mObj->mIds.end()) { in findId() 231 if (iter->array() == id.ptr && iter->size() == id.length) { in findId() 250 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local 251 sessionId->ptr = iter->array(); in AMediaDrm_openSession() 252 sessionId->length = iter->size(); in AMediaDrm_openSession() 266 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local 267 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession() 270 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | UrlInterceptRegistry.java | 129 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/services/core/java/com/android/server/location/ |
D | GeofenceManager.java | 149 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/ |
D | UriTest.java | 670 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyKey() local 672 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyKey() 673 assertEquals("", iter.next()); in testGetQueryParameterNamesEmptyKey() 674 assertEquals("c", iter.next()); in testGetQueryParameterNamesEmptyKey() 680 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyKey2() local 682 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyKey2() 683 assertEquals("", iter.next()); in testGetQueryParameterNamesEmptyKey2() 684 assertEquals("c", iter.next()); in testGetQueryParameterNamesEmptyKey2() 690 Iterator<String> iter = names.iterator(); in testGetQueryParameterNamesEmptyValues() local 692 assertEquals("a", iter.next()); in testGetQueryParameterNamesEmptyValues() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | ViewPool.java | 61 Iterator<V> iter = mPool.iterator(); in pickUpViewFromPool() local 62 while (iter.hasNext()) { in pickUpViewFromPool() 63 V vpv = iter.next(); in pickUpViewFromPool() 66 iter.remove(); in pickUpViewFromPool()
|
/frameworks/av/media/libmedia/ |
D | SoundPool.cpp | 132 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 …]
|
D | IMediaDeathNotifier.cpp | 93 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/ |
D | jni_util.h | 124 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/minikin/libs/minikin/ |
D | Layout.cpp | 414 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { in decodeUtf16() argument 415 const uint16_t v = chars[(*iter)++]; in decodeUtf16() 419 if (size_t(*iter) < len && (v & 0xfc00) == 0xd800) { in decodeUtf16() 420 const uint16_t v2 = chars[(*iter)++]; in decodeUtf16() 427 (*iter) -= 1; in decodeUtf16() 437 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { in getScriptRun() argument 438 if (size_t(*iter) == len) { in getScriptRun() 441 uint32_t cp = decodeUtf16(chars, len, iter); in getScriptRun() 444 if (size_t(*iter) == len) in getScriptRun() 446 const ssize_t prev_iter = *iter; in getScriptRun() [all …]
|
/frameworks/base/core/java/android/net/http/ |
D | RequestQueue.java | 419 Iterator<Map.Entry<HttpHost, LinkedList<Request>>> iter; in dump() local 424 iter = mPending.entrySet().iterator(); in dump() 425 while (iter.hasNext()) { in dump() 426 Map.Entry<HttpHost, LinkedList<Request>> entry = iter.next(); in dump() 432 while (iter.hasNext()) { in dump() 433 Request request = (Request)iter.next(); in dump() 522 … Iterator<Map.Entry<HttpHost, LinkedList<Request>>> iter = requestQueue.entrySet().iterator(); in removeFirst() local 523 if (iter.hasNext()) { in removeFirst() 524 Map.Entry<HttpHost, LinkedList<Request>> entry = iter.next(); in removeFirst()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 180 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents() local 182 if (iter != null) { in queryEvents() 183 return iter; in queryEvents()
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
D | accessorychat.c | 87 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/ |
D | ActivityManagerTest.java | 117 Iterator<ActivityManager.ProcessErrorStateInfo> iter = errList.iterator(); in checkErrorListSanity() 118 while (iter.hasNext()) { in checkErrorListSanity() 119 ActivityManager.ProcessErrorStateInfo info = iter.next(); in checkErrorListSanity()
|