Home
last modified time | relevance | path

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

123456789

/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/cmds/idmap2/libidmap2/
DResourceUtils.cpp82 auto iter = tag->find("targetPackage"); in ExtractOverlayManifestInfo() local
83 if (iter == tag->end()) { in ExtractOverlayManifestInfo()
88 info.target_package = iter->second; in ExtractOverlayManifestInfo()
91 iter = tag->find("targetName"); in ExtractOverlayManifestInfo()
92 if (iter != tag->end()) { in ExtractOverlayManifestInfo()
93 info.target_name = iter->second; in ExtractOverlayManifestInfo()
96 iter = tag->find("isStatic"); in ExtractOverlayManifestInfo()
97 if (iter != tag->end()) { in ExtractOverlayManifestInfo()
98 info.is_static = std::stoul(iter->second) != 0U; in ExtractOverlayManifestInfo()
101 iter = tag->find("priority"); in ExtractOverlayManifestInfo()
[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()
95 auto iter = style->entries.begin(); in Consume() local
[all …]
DProductFilter.cpp30 for (ResourceConfigValueIter iter = begin; iter != end; ++iter) { in SelectProductToKeep() local
31 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep()
49 selected_product_iter = iter; in SelectProductToKeep()
68 default_product_iter = iter; in SelectProductToKeep()
92 ResourceConfigValueIter iter = entry->values.begin(); in Consume() local
93 ResourceConfigValueIter start_range_iter = iter; in Consume()
94 while (iter != entry->values.end()) { in Consume()
95 ++iter; in Consume()
96 if (iter == entry->values.end() || in Consume()
97 (*iter)->config != (*start_range_iter)->config) { in Consume()
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp76 const auto &iter = std::find_if(begin(mAttributesVector), end(mAttributesVector), in getStreamTypeForAttributes() local
79 if (iter == end(mAttributesVector)) { in getStreamTypeForAttributes()
82 audio_stream_type_t streamType = iter->mStream; in getStreamTypeForAttributes()
92 const auto iter = std::find_if(begin(mAttributesVector), end(mAttributesVector), in getAttributesForStreamType() local
95 return iter != end(mAttributesVector) ? iter->mAttributes : AUDIO_ATTRIBUTES_INITIALIZER; in getAttributesForStreamType()
145 const auto &iter = std::find_if(begin(mAttributesVector), end(mAttributesVector), in getDefaultVolumeGroup() local
147 return iter != end(mAttributesVector) ? iter->mVolumeGroup : VOLUME_GROUP_NONE; in getDefaultVolumeGroup()
174 for (const auto &iter : *this) { in getProductStrategyForAttributes()
175 if (iter.second->matches(attr)) { in getProductStrategyForAttributes()
176 return iter.second->getId(); in getProductStrategyForAttributes()
[all …]
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 if ((group == GROUP_NONE) || (group == getDeviceOutGroup((iter->desc)->type()))) { in getLastRemovableMediaDevices()
52 ret.push_back((iter->desc)->type()); in getLastRemovableMediaDevices()
DEngineBase.cpp99 for (const auto &iter : mProductStrategies) { in getProductStrategyByName() local
100 if (iter.second->getName() == name) { in getProductStrategyByName()
101 return iter.second->getId(); in getProductStrategyByName()
111 const auto &iter = std::find_if(std::begin(volumeGroups), std::end(volumeGroups), in loadAudioPolicyEngineConfig() local
114 LOG_ALWAYS_FATAL_IF(iter != std::end(volumeGroups), in loadAudioPolicyEngineConfig()
143 const auto &iter = std::find_if(std::begin(volumeGroups), std::end(volumeGroups), in loadAudioPolicyEngineConfig() local
149 return iter != end(volumeGroups); in loadAudioPolicyEngineConfig()
188 const auto &iter = std::find_if(begin(mVolumeGroups), end(mVolumeGroups), in loadAudioPolicyEngineConfig() local
194 if (iter == end(mVolumeGroups)) { in loadAudioPolicyEngineConfig()
206 volumeGroup = iter->second; in loadAudioPolicyEngineConfig()
[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/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/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/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/base/core/java/com/android/internal/os/
DKernelCpuUidTimeReader.java216 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() argument
217 if (iter == null) { in readDeltaImpl()
221 while ((buf = iter.nextLine()) != null) { in readDeltaImpl()
254 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() argument
255 if (iter == null) { in readAbsoluteImpl()
259 while ((buf = iter.nextLine()) != null) { in readAbsoluteImpl()
488 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readDeltaImpl() argument
489 if (checkPrecondition(iter)) { in readDeltaImpl()
490 while (iter.getNextUid(mBuffer)) { in readDeltaImpl()
497 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() argument
[all …]
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp83 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 …]
DLoadedArsc_test.cpp337 auto iter = loaded_package->begin(); in TEST() local
340 ASSERT_NE(end, iter); in TEST()
341 ASSERT_EQ(0x7f010000u, *iter++); in TEST()
342 ASSERT_EQ(0x7f010001u, *iter++); in TEST()
343 ASSERT_EQ(0x7f020000u, *iter++); in TEST()
344 ASSERT_EQ(0x7f020001u, *iter++); in TEST()
345 ASSERT_EQ(0x7f030000u, *iter++); in TEST()
346 ASSERT_EQ(0x7f030001u, *iter++); in TEST()
347 ASSERT_EQ(0x7f030002u, *iter++); // note: string without default, excluded by aapt2 dump in TEST()
348 ASSERT_EQ(0x7f040000u, *iter++); in TEST()
[all …]
/frameworks/base/tools/aapt2/util/
DUtil_test.cpp46 auto iter = tokenizer.begin(); in TEST() local
47 ASSERT_THAT(*iter, Eq("this")); in TEST()
48 ++iter; in TEST()
49 ASSERT_THAT(*iter, Eq(" is")); in TEST()
50 ++iter; in TEST()
51 ASSERT_THAT(*iter, Eq("the")); in TEST()
52 ++iter; in TEST()
53 ASSERT_THAT(*iter, Eq("end")); in TEST()
54 ++iter; in TEST()
55 ASSERT_THAT(iter, Eq(tokenizer.end())); in TEST()
[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/native/services/bufferhub/
DBufferHubService.cpp105 auto iter = mTokenMap.find(tokenId); in importBuffer() local
106 if (iter == mTokenMap.end()) { in importBuffer()
114 const std::vector<uint8_t>& tokenHMAC = iter->second.first; in importBuffer()
135 originClientWp = iter->second.second; in importBuffer()
136 mTokenMap.erase(iter); in importBuffer()
205 for (auto iter = mClientSet.begin(); iter != mClientSet.end(); ++iter) { in debug() local
206 sp<BufferClient> client = iter->promote(); in debug()
237 for (auto iter = clientCount.begin(); iter != clientCount.end(); ++iter) { in debug() local
238 const std::shared_ptr<BufferNode> node = std::move(iter->second.first); in debug()
239 const uint32_t clientCount = iter->second.second; in debug()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable.cpp65 auto iter = std::lower_bound(packages.begin(), last, name, in FindPackage() local
67 if (iter != last && name == (*iter)->name) { in FindPackage()
68 return iter->get(); in FindPackage()
99 auto iter = std::lower_bound(packages.begin(), last, std::make_pair(name, id), in CreatePackageAllowingDuplicateNames() local
102 if (iter != last && name == (*iter)->name && id == (*iter)->id) { in CreatePackageAllowingDuplicateNames()
103 return iter->get(); in CreatePackageAllowingDuplicateNames()
109 return packages.emplace(iter, std::move(new_package))->get(); in CreatePackageAllowingDuplicateNames()
114 auto iter = std::lower_bound(packages.begin(), last, name, in FindOrCreatePackage() local
116 if (iter != last && name == (*iter)->name) { in FindOrCreatePackage()
117 return iter->get(); in FindOrCreatePackage()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuProcStringReaderTest.java100 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() argument
101 assertNull(iter); in testReadErrorsLimit()
109 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() argument
110 assertEquals(data.length(), iter.size()); in testReadErrorsLimit()
111 assertEquals(data, iter.nextLine().toString() + '\n'); in testReadErrorsLimit()
115 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() argument
116 assertNull(iter); in testReadErrorsLimit()
123 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() argument
124 assertNull(iter); in testReadErrorsLimit()
144 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLine() argument
[all …]
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp143 for (auto iter = mActiveFunctors.begin(); iter != mActiveFunctors.end(); iter++) { in releaseFunctor() local
144 if ((*iter)->id() == functor) { in releaseFunctor()
145 toRelease = std::move(*iter); in releaseFunctor()
146 mActiveFunctors.erase(iter); in releaseFunctor()
175 for (auto iter = mFunctors.begin(); iter != mFunctors.end(); iter++) { in destroyFunctor() local
176 if ((*iter)->id() == functor) { in destroyFunctor()
177 toRelease = std::move(*iter); in destroyFunctor()
178 mFunctors.erase(iter); in destroyFunctor()
187 for (auto& iter : mActiveFunctors) { in handleFor() local
188 if (iter->id() == functor) { in handleFor()
[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().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()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp161 auto iter = hwcColorModes.find(candidate); in getHwcColorMode() local
162 if (iter != hwcColorModes.end()) { in getHwcColorMode()
281 auto iter = hwcColorModes.find(ColorMode::SRGB); in populateColorModes() local
282 if (iter != hwcColorModes.end()) { in populateColorModes()
283 for (auto intent : iter->second) { in populateColorModes()
298 iter = hwcColorModes.find(ColorMode::BT2100_PQ); in populateColorModes()
299 if (iter != hwcColorModes.end()) { in populateColorModes()
300 for (auto intent : iter->second) { in populateColorModes()
322 auto iter = hwcColorModes.find(hwcColorMode); in addColorMode() local
324 iter != hwcColorModes.end() ? iter->second : std::vector<RenderIntent>(); in addColorMode()
[all …]
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp393 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) { in findId() argument
394 for (iter = mObj->mIds.begin(); iter != mObj->mIds.end(); ++iter) { in findId()
395 if (id.length == iter->size() && memcmp(iter->array(), id.ptr, iter->size()) == 0) { in findId()
414 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local
415 sessionId->ptr = iter->array(); in AMediaDrm_openSession()
416 sessionId->length = iter->size(); in AMediaDrm_openSession()
430 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local
431 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession()
434 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
435 mObj->mIds.erase(iter); in AMediaDrm_closeSession()
[all …]

123456789