Home
last modified time | relevance | path

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

12345678910

/frameworks/base/tools/aapt2/text/
DUtf8Iterator_test.cpp28 Utf8Iterator iter("hello"); in TEST() local
30 ASSERT_TRUE(iter.HasNext()); in TEST()
31 EXPECT_THAT(iter.Next(), Eq(U'h')); in TEST()
33 ASSERT_TRUE(iter.HasNext()); in TEST()
34 EXPECT_THAT(iter.Next(), Eq(U'e')); in TEST()
36 ASSERT_TRUE(iter.HasNext()); in TEST()
37 EXPECT_THAT(iter.Next(), Eq(U'l')); in TEST()
39 ASSERT_TRUE(iter.HasNext()); in TEST()
40 EXPECT_THAT(iter.Next(), Eq(U'l')); in TEST()
42 ASSERT_TRUE(iter.HasNext()); in TEST()
[all …]
DUnicode.cpp51 const auto iter = std::lower_bound(sCharacterProperties.begin(), iter_end, codepoint, in FindCharacterProperties() local
53 if (iter != iter_end && codepoint >= iter->first_char) { in FindCharacterProperties()
54 return iter->properties; in FindCharacterProperties()
81 Utf8Iterator iter(str); in IsJavaIdentifier() local
84 if (!iter.HasNext()) { in IsJavaIdentifier()
88 const char32_t first_codepoint = iter.Next(); in IsJavaIdentifier()
93 while (iter.HasNext()) { in IsJavaIdentifier()
94 const char32_t codepoint = iter.Next(); in IsJavaIdentifier()
103 Utf8Iterator iter(str); in IsValidResourceEntryName() local
106 if (!iter.HasNext()) { in IsValidResourceEntryName()
[all …]
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp109 TypeVariant::iterator iter = v.beginEntries(); in TEST() local
110 ASSERT_EQ(uint32_t(0), iter.index()); in TEST()
111 ASSERT_TRUE(NULL != *iter); in TEST()
112 ASSERT_EQ(uint32_t(0), iter->key()); in TEST()
113 ASSERT_NE(v.endEntries(), iter); in TEST()
115 iter++; in TEST()
117 ASSERT_EQ(uint32_t(1), iter.index()); in TEST()
118 ASSERT_TRUE(NULL == *iter); in TEST()
119 ASSERT_NE(v.endEntries(), iter); in TEST()
121 iter++; in TEST()
[all …]
DLoadedArsc_test.cpp262 auto iter = loaded_package->begin(); in TEST() local
265 ASSERT_NE(end, iter); in TEST()
266 ASSERT_EQ(0x7f010000u, *iter++); in TEST()
267 ASSERT_EQ(0x7f010001u, *iter++); in TEST()
268 ASSERT_EQ(0x7f020000u, *iter++); in TEST()
269 ASSERT_EQ(0x7f020001u, *iter++); in TEST()
270 ASSERT_EQ(0x7f030000u, *iter++); in TEST()
271 ASSERT_EQ(0x7f030001u, *iter++); in TEST()
272 ASSERT_EQ(0x7f030002u, *iter++); // note: string without default, excluded by aapt2 dump in TEST()
273 ASSERT_EQ(0x7f040000u, *iter++); in TEST()
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DLastRemovableMediaDevices.cpp36 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in setRemovableMediaDevices() local
37 if ((iter->desc)->equals(desc)) { in setRemovableMediaDevices()
38 mMediaDevices.erase(iter); in setRemovableMediaDevices()
50 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevices() local
51 audio_devices_t type = (iter->desc)->type(); in getLastRemovableMediaDevices()
63 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevice() local
64 if ((group == GROUP_NONE || group == getDeviceOutGroup((iter->desc)->type())) && in getLastRemovableMediaDevice()
65 !excludedDevices.contains(iter->desc)) { in getLastRemovableMediaDevice()
66 return iter->desc; in getLastRemovableMediaDevice()
DProductStrategy.cpp80 const auto iter = std::find_if(begin(mAttributesVector), end(mAttributesVector), in getAttributesForStreamType() local
83 return iter != end(mAttributesVector) ? iter->getAttributes() : AUDIO_ATTRIBUTES_INITIALIZER; in getAttributesForStreamType()
123 const auto &iter = std::find_if(begin(mAttributesVector), end(mAttributesVector), in getDefaultVolumeGroup() local
127 return iter != end(mAttributesVector) ? iter->getGroupId() : VOLUME_GROUP_NONE; in getDefaultVolumeGroup()
152 for (const auto &iter : *this) { in getProductStrategyForAttributes()
153 int score = iter.second->matchesScore(attributes); in getProductStrategyForAttributes()
155 return iter.second->getId(); in getProductStrategyForAttributes()
158 bestStrategyOrdefault = iter.second->getId(); in getProductStrategyForAttributes()
168 for (const auto &iter : *this) { in getAttributesForStreamType()
169 const auto strategy = iter.second; in getAttributesForStreamType()
[all …]
/frameworks/base/tools/aapt2/link/
DAutoVersioner.cpp43 auto iter = entry->values.begin(); in FindNextApiVersionForConfig() local
44 for (; iter != end_iter; ++iter) { in FindNextApiVersionForConfig()
45 if ((*iter)->config == config) { in FindNextApiVersionForConfig()
51 CHECK(iter != entry->values.end()); in FindNextApiVersionForConfig()
52 ++iter; in FindNextApiVersionForConfig()
61 for (; iter != end_iter; ++iter) { in FindNextApiVersionForConfig()
62 temp_config.sdkVersion = (*iter)->config.sdkVersion; in FindNextApiVersionForConfig()
63 if (temp_config == (*iter)->config) { in FindNextApiVersionForConfig()
65 return (*iter)->config.sdkVersion; in FindNextApiVersionForConfig()
96 auto iter = style->entries.begin(); in Consume() local
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dmandelbrot.rscript32 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/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dmandelbrot.rscript32 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/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dmandelbrot.rscript32 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/
DHashTableTest.cpp74 HashTableTy::iterator iter; in TEST_F() local
75 iter = hashTable->find(NULL); in TEST_F()
76 EXPECT_TRUE(iter == hashTable->end()); in TEST_F()
142 HashTableTy::iterator iter; in TEST_F() local
146 iter = hashTable->find(key); in TEST_F()
147 EXPECT_TRUE(iter == hashTable->end()); in TEST_F()
167 HashTableTy::iterator iter; in TEST_F() local
169 iter = hashTable->find(key); in TEST_F()
170 EXPECT_TRUE(iter == hashTable->end()); in TEST_F()
190 HashTableTy::iterator iter; in TEST_F() local
[all …]
DSectionDataTest.cpp61 llvm::iplist<Fragment>::iterator iter = s->begin(); in TEST_F() local
62 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
63 ++iter; in TEST_F()
64 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
65 ++iter; in TEST_F()
66 EXPECT_TRUE(Fragment::Region == iter->getKind()); in TEST_F()
67 ++iter; in TEST_F()
68 EXPECT_TRUE(Fragment::Fillment == iter->getKind()); in TEST_F()
69 ++iter; in TEST_F()
70 EXPECT_TRUE(Fragment::Target == iter->getKind()); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/util/
DUtil_test.cpp57 auto iter = tokenizer.begin(); in TEST() local
58 ASSERT_THAT(*iter, Eq("this")); in TEST()
59 ++iter; in TEST()
60 ASSERT_THAT(*iter, Eq(" is")); in TEST()
61 ++iter; in TEST()
62 ASSERT_THAT(*iter, Eq("the")); in TEST()
63 ++iter; in TEST()
64 ASSERT_THAT(*iter, Eq("end")); in TEST()
65 ++iter; in TEST()
66 ASSERT_THAT(iter, Eq(tokenizer.end())); in TEST()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuUidTimeReader.java232 try (ProcFileIterator iter = mReader.open(!mThrottle || forceRead)) { in readDeltaImpl() argument
233 if (iter == null) { in readDeltaImpl()
237 while ((buf = iter.nextLine()) != null) { in readDeltaImpl()
270 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() argument
271 if (iter == null) { in readAbsoluteImpl()
275 while ((buf = iter.nextLine()) != null) { in readAbsoluteImpl()
472 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readDeltaImpl() argument
473 if (checkPrecondition(iter)) { in readDeltaImpl()
474 while (iter.getNextUid(mBuffer)) { in readDeltaImpl()
481 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() argument
[all …]
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp306 iterator iter = fileBegin(); in fileEnd() local
307 iter += m_pFile->size(); in fileEnd()
308 return iter; in fileEnd()
316 const_iterator iter = fileBegin(); in fileEnd() local
317 iter += m_pFile->size(); in fileEnd()
318 return iter; in fileEnd()
326 iterator iter = localBegin(); in localEnd() local
327 iter += m_pLocal->size(); in localEnd()
328 return iter; in localEnd()
336 const_iterator iter = localBegin(); in localEnd() local
[all …]
/frameworks/base/tools/aapt2/process/
DProductFilter.cpp32 for (ResourceConfigValueIter iter = begin; iter != end; ++iter) { in SelectProductToKeep() local
33 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep()
49 selected_product_iter = iter; in SelectProductToKeep()
65 default_product_iter = iter; in SelectProductToKeep()
95 ResourceConfigValueIter iter = entry->values.begin(); in Consume() local
96 ResourceConfigValueIter start_range_iter = iter; in Consume()
97 while (iter != entry->values.end()) { in Consume()
98 ++iter; in Consume()
99 if (iter == entry->values.end() || (*iter)->config != (*start_range_iter)->config) { in Consume()
105 SelectProductToKeep(name, start_range_iter, iter, context->GetDiagnostics()); in Consume()
[all …]
/frameworks/base/tools/aapt/
DApkBuilder.cpp34 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().c_str()); 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().c_str(), iter->getFile()->getSourceFile().c_str()); in print()
/frameworks/av/media/module/libmediatranscoding/tests/
DAdjustableMaxPriorityQueue_tests.cpp159 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() local
160 itemToIterratorMap[*iter->get()] = iter; in TEST()
193 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() local
194 itemToIterratorMap[*iter->get()] = iter; in TEST()
206 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() local
207 itemToIterratorMap[*iter->get()] = iter; in TEST()
216 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() local
217 itemToIterratorMap[*iter->get()] = iter; in TEST()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuProcStringReaderTest.java107 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() argument
108 assertNull(iter); in testReadErrorsLimit()
116 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() argument
117 assertEquals(data.length(), iter.size()); in testReadErrorsLimit()
118 assertEquals(data, iter.nextLine().toString() + '\n'); in testReadErrorsLimit()
122 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() argument
123 assertNull(iter); in testReadErrorsLimit()
130 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() argument
131 assertNull(iter); in testReadErrorsLimit()
151 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLine() argument
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DMain.cpp42 for (auto iter = commands.cbegin(); iter != commands.cend(); iter++) { in PrintUsage() local
43 if (iter != commands.cbegin()) { in PrintUsage()
46 out << iter->first; in PrintUsage()
71 const auto iter = commands.find(argv[1]); in main() local
72 if (iter == commands.end()) { in main()
77 const auto result = iter->second(*args); in main()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp161 auto iter = hwcColorModes.find(candidate); in getHwcColorMode() local
162 if (iter != hwcColorModes.end()) { in getHwcColorMode()
270 auto iter = hwcColorModes.find(ColorMode::SRGB); in populateColorModes() local
271 if (iter != hwcColorModes.end()) { in populateColorModes()
272 for (auto intent : iter->second) { in populateColorModes()
287 iter = hwcColorModes.find(ColorMode::BT2100_PQ); in populateColorModes()
288 if (iter != hwcColorModes.end()) { in populateColorModes()
289 for (auto intent : iter->second) { in populateColorModes()
311 auto iter = hwcColorModes.find(hwcColorMode); in addColorMode() local
313 iter != hwcColorModes.end() ? iter->second : std::vector<RenderIntent>(); in addColorMode()
[all …]
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp366 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) { in findId() argument
367 for (iter = mObj->mIds.begin(); iter != mObj->mIds.end(); ++iter) { in findId()
368 if (id.length == iter->size() && memcmp(iter->array(), id.ptr, iter->size()) == 0) { in findId()
391 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local
392 sessionId->ptr = iter->array(); in AMediaDrm_openSession()
393 sessionId->length = iter->size(); in AMediaDrm_openSession()
406 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local
407 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession()
410 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
411 mObj->mIds.erase(iter); in AMediaDrm_closeSession()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable.cpp82 const auto iter = in FindElementsRunAction() local
84 const bool found = iter != entries.end() && name == (*iter)->name; in FindElementsRunAction()
85 return action(found, iter); in FindElementsRunAction()
109 name, packages, [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindPackage() argument
113 return FindElementsRunAction<ResourceTablePackage>(name, packages, [&](bool found, auto& iter) { in FindOrCreatePackage() argument
114 return found ? iter->get() : packages.emplace(iter, new ResourceTablePackage(name))->get(); in FindOrCreatePackage()
121 const auto iter = std::lower_bound(entries.begin(), entries.end(), type, less_than_type); in FindTypeRunAction() local
122 const bool found = iter != entries.end() && type == (*iter)->named_type; in FindTypeRunAction()
123 return action(found, iter); in FindTypeRunAction()
133 [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindType() argument
[all …]
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp316 for (auto iter = mActiveFunctors.begin(); iter != mActiveFunctors.end(); iter++) { in releaseFunctor() local
317 if ((*iter)->id() == functor) { in releaseFunctor()
318 toRelease = std::move(*iter); in releaseFunctor()
319 mActiveFunctors.erase(iter); in releaseFunctor()
348 for (auto iter = mFunctors.begin(); iter != mFunctors.end(); iter++) { in destroyFunctor() local
349 if ((*iter)->id() == functor) { in destroyFunctor()
350 toRelease = std::move(*iter); in destroyFunctor()
351 mFunctors.erase(iter); in destroyFunctor()
361 for (auto& iter : mFunctors) { in reportRenderingThreads() local
362 if (iter->id() == functor) { in reportRenderingThreads()
[all …]
/frameworks/base/libs/androidfw/
DBigBufferStream.cpp94 for (auto iter = buffer_->begin(); iter != buffer_->end() && byte_count > 0; ++iter) { in ReadFullyAtOffset() local
95 if (offset < iter->size) { in ReadFullyAtOffset()
96 size_t to_read = std::min(byte_count, (size_t)(iter->size - offset)); in ReadFullyAtOffset()
97 memcpy(p, iter->buffer.get() + offset, to_read); in ReadFullyAtOffset()
102 offset -= iter->size; in ReadFullyAtOffset()

12345678910