/frameworks/base/tools/aapt2/text/ |
D | Utf8Iterator_test.cpp | 28 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 …]
|
D | Unicode.cpp | 51 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/av/services/audiopolicy/engine/common/src/ |
D | LastRemovableMediaDevices.cpp | 36 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() 60 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevice() local 61 if ((group == GROUP_NONE || group == getDeviceOutGroup((iter->desc)->type())) && in getLastRemovableMediaDevice() 62 !excludedDevices.contains(iter->desc)) { in getLastRemovableMediaDevice() 63 return iter->desc; in getLastRemovableMediaDevice()
|
D | ProductStrategy.cpp | 76 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 …]
|
/frameworks/base/tools/aapt2/link/ |
D | AutoVersioner.cpp | 43 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 …]
|
D | ProductFilter.cpp | 30 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/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | mandelbrot.rscript | 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/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | mandelbrot.rscript | 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/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | mandelbrot.rscript | 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 | 74 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 …]
|
D | SectionDataTest.cpp | 61 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 …]
|
D | ELFReaderTest.cpp | 84 LDContext::const_sect_iterator iter = m_pInput->context()->sectBegin(); in TEST_F() local 85 ++iter; /// test section[1] in TEST_F() 86 ASSERT_EQ(".text", (*iter)->name()); in TEST_F() 87 ASSERT_EQ(llvm::ELF::SHT_PROGBITS, (*iter)->type()); in TEST_F() 88 ASSERT_EQ(0x40u, (*iter)->offset()); in TEST_F() 89 ASSERT_EQ(0x15u, (*iter)->size()); in TEST_F() 90 ASSERT_TRUE(llvm::ELF::SHF_ALLOC & (*iter)->flag()); // AX in TEST_F() 91 ASSERT_EQ(0x4u, (*iter)->align()); in TEST_F() 92 ASSERT_EQ(NULL, (*iter)->getLink()); in TEST_F() 93 ASSERT_EQ(0u, (*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 …]
|
D | LoadedArsc_test.cpp | 286 auto iter = loaded_package->begin(); in TEST() local 289 ASSERT_NE(end, iter); in TEST() 290 ASSERT_EQ(0x7f010000u, *iter++); in TEST() 291 ASSERT_EQ(0x7f010001u, *iter++); in TEST() 292 ASSERT_EQ(0x7f020000u, *iter++); in TEST() 293 ASSERT_EQ(0x7f020001u, *iter++); in TEST() 294 ASSERT_EQ(0x7f030000u, *iter++); in TEST() 295 ASSERT_EQ(0x7f030001u, *iter++); in TEST() 296 ASSERT_EQ(0x7f030002u, *iter++); // note: string without default, excluded by aapt2 dump in TEST() 297 ASSERT_EQ(0x7f040000u, *iter++); in TEST() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuUidTimeReader.java | 229 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() argument 230 if (iter == null) { in readDeltaImpl() 234 while ((buf = iter.nextLine()) != null) { in readDeltaImpl() 267 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() argument 268 if (iter == null) { in readAbsoluteImpl() 272 while ((buf = iter.nextLine()) != null) { in readAbsoluteImpl() 501 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readDeltaImpl() argument 502 if (checkPrecondition(iter)) { in readDeltaImpl() 503 while (iter.getNextUid(mBuffer)) { in readDeltaImpl() 510 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() argument [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | SymbolCategory.cpp | 306 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/util/ |
D | Util_test.cpp | 57 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/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()
|
/frameworks/av/media/libmediatranscoding/tests/ |
D | AdjustableMaxPriorityQueue_tests.cpp | 159 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/ |
D | KernelCpuProcStringReaderTest.java | 100 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/av/media/ndk/ |
D | NdkMediaDrm.cpp | 364 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) { in findId() argument 365 for (iter = mObj->mIds.begin(); iter != mObj->mIds.end(); ++iter) { in findId() 366 if (id.length == iter->size() && memcmp(iter->array(), id.ptr, iter->size()) == 0) { in findId() 389 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local 390 sessionId->ptr = iter->array(); in AMediaDrm_openSession() 391 sessionId->length = iter->size(); in AMediaDrm_openSession() 404 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local 405 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession() 408 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession() 409 mObj->mIds.erase(iter); in AMediaDrm_closeSession() [all …]
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Main.cpp | 42 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/ |
D | DisplayColorProfile.cpp | 161 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/base/tools/aapt2/ |
D | ResourceTable.cpp | 80 const auto iter = in FindElementsRunAction() local 82 const bool found = iter != entries.end() && name == (*iter)->name; in FindElementsRunAction() 83 return action(found, iter); in FindElementsRunAction() 107 name, packages, [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindPackage() argument 111 return FindElementsRunAction<ResourceTablePackage>(name, packages, [&](bool found, auto& iter) { in FindOrCreatePackage() argument 112 return found ? iter->get() : packages.emplace(iter, new ResourceTablePackage(name))->get(); in FindOrCreatePackage() 118 const auto iter = std::lower_bound(entries.begin(), entries.end(), type, less_than_type); in FindTypeRunAction() local 119 const bool found = iter != entries.end() && type == (*iter)->type; in FindTypeRunAction() 120 return action(found, iter); in FindTypeRunAction() 125 [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindType() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 295 for (auto iter = mActiveFunctors.begin(); iter != mActiveFunctors.end(); iter++) { in releaseFunctor() local 296 if ((*iter)->id() == functor) { in releaseFunctor() 297 toRelease = std::move(*iter); in releaseFunctor() 298 mActiveFunctors.erase(iter); in releaseFunctor() 327 for (auto iter = mFunctors.begin(); iter != mFunctors.end(); iter++) { in destroyFunctor() local 328 if ((*iter)->id() == functor) { in destroyFunctor() 329 toRelease = std::move(*iter); in destroyFunctor() 330 mFunctors.erase(iter); in destroyFunctor() 339 for (auto& iter : mActiveFunctors) { in handleFor() local 340 if (iter->id() == functor) { in handleFor() [all …]
|