Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/base/cmds/idmap2/tests/
DRawPrintVisitorTests.cpp50 ASSERT_NE(stream.str().find("00000000: 504d4449 magic\n"), std::string::npos); in TEST()
51 ASSERT_NE(stream.str().find("00000004: 00000001 version\n"), std::string::npos); in TEST()
52 ASSERT_NE(stream.str().find("00000008: 76a20829 target crc\n"), std::string::npos); in TEST()
53 ASSERT_NE(stream.str().find("0000000c: 8635c2ed overlay crc\n"), std::string::npos); in TEST()
55 std::string::npos); in TEST()
71 ASSERT_NE(stream.str().find("00000000: 504d4449 magic\n"), std::string::npos); in TEST()
72 ASSERT_NE(stream.str().find("00000004: 00000001 version\n"), std::string::npos); in TEST()
73 ASSERT_NE(stream.str().find("00000008: 00001234 target crc\n"), std::string::npos); in TEST()
74 ASSERT_NE(stream.str().find("0000000c: 00005678 overlay crc\n"), std::string::npos); in TEST()
75 ASSERT_NE(stream.str().find("0000021c: 00000000 0x7f020000 -> 0x7f020000\n"), std::string::npos); in TEST()
DPrettyPrintVisitorTests.cpp55 ASSERT_NE(stream.str().find("target apk path : "), std::string::npos); in TEST()
56 ASSERT_NE(stream.str().find("overlay apk path : "), std::string::npos); in TEST()
57 ASSERT_NE(stream.str().find("0x7f010000 -> 0x7f010000 integer/int1\n"), std::string::npos); in TEST()
73 ASSERT_NE(stream.str().find("target apk path : "), std::string::npos); in TEST()
74 ASSERT_NE(stream.str().find("overlay apk path : "), std::string::npos); in TEST()
75 ASSERT_NE(stream.str().find("0x7f020000 -> 0x7f020000\n"), std::string::npos); in TEST()
DIdmap2BinaryTests.cpp130 ASSERT_NE(result->stdout.find("0x7f010000 -> 0x7f010000 integer/int1"), std::string::npos); in TEST_F()
131 ASSERT_NE(result->stdout.find("0x7f02000c -> 0x7f020000 string/str1"), std::string::npos); in TEST_F()
132 ASSERT_NE(result->stdout.find("0x7f02000e -> 0x7f020001 string/str3"), std::string::npos); in TEST_F()
133 ASSERT_NE(result->stdout.find("0x7f02000f -> 0x7f020002 string/str4"), std::string::npos); in TEST_F()
143 ASSERT_NE(result->stdout.find("00000000: 504d4449 magic"), std::string::npos); in TEST_F()
144 ASSERT_NE(result->stdout.find("00000210: 007f target package id"), std::string::npos); in TEST_F()
305 ASSERT_NE(result->stdout.find("overlay-1"), std::string::npos); in TEST_F()
306 ASSERT_EQ(result->stdout.find("overlay-1-sv"), std::string::npos); in TEST_F()
317 ASSERT_NE(result->stdout.find("overlay-1"), std::string::npos); in TEST_F()
318 ASSERT_EQ(result->stdout.find("overlay-1-sv"), std::string::npos); in TEST_F()
[all …]
DCommandLineOptionsTests.cpp229 std::string::npos); in TEST()
230 ASSERT_NE(s.find("--aa arg description-aa"), std::string::npos); in TEST()
231 ASSERT_NE(s.find("--ff description-ff"), std::string::npos); in TEST()
233 std::string::npos); in TEST()
/frameworks/rs/script_api/
DScanner.cpp150 if (docStart == string::npos) { in parseDocumentation()
155 if (last == string::npos) { in parseDocumentation()
169 if (optionStart != string::npos) { in parseArgString()
177 if (nameStart == string::npos) { in parseArgString()
189 if (p->name.find('*') != string::npos) { in parseArgString()
DUtilities.cpp64 if (end == string::npos) { in trimSpaces()
81 if (p == string::npos) break; in stringReplace()
91 if (p != string::npos) { in charRemoved()
103 if (lt == string::npos) { in stripHtml()
111 if (start == string::npos) { in stripHtml()
DSpecification.cpp187 if (pComma == string::npos || pParen == string::npos) { in parseParameterDefinition()
195 if (pParen == string::npos) { in parseParameterDefinition()
202 if (pParen == string::npos) { in parseParameterDefinition()
284 if (pComma != string::npos) { in scanDocumentationTags()
563 if (pParen == string::npos) { in parseTest()
587 bool patternFound = inlineStr.find(kRSTypePatterns[i]) != string::npos; in checkRSTPatternValidity()
608 if (p != string::npos) { in scanFunctionSpecification()
643 if (scanner->getValue().find("1") != string::npos) { in scanFunctionSpecification()
646 if (scanner->getValue().find("2") != string::npos) { in scanFunctionSpecification()
649 if (scanner->getValue().find("3") != string::npos) { in scanFunctionSpecification()
[all …]
/frameworks/base/tools/bit/
Daapt.cpp139 if (className.find('.') == string::npos) { in full_class_name()
152 return packageName + "/" + string(className, pn, string::npos); in pretty_component_name()
197 if (colon == string::npos) { in inspect_apk()
201 element->name.assign(str, colon+1, string::npos); in inspect_apk()
222 if (colon == string::npos) { in inspect_apk()
226 attr.name.assign(str, colon+1, string::npos); in inspect_apk()
/frameworks/compile/libbcc/tools/bcc_compat/
DMain.cpp158 if (config->getTriple().find("arm") != std::string::npos) { in ConfigCompiler()
168 if ((config->getTriple().find("i686") != std::string::npos) || in ConfigCompiler()
169 (config->getTriple().find("x86_64") != std::string::npos)) { in ConfigCompiler()
176 if (config->getTriple().find("i686") != std::string::npos) { in ConfigCompiler()
185 if (config->getTriple().find("x86_64") != std::string::npos) { in ConfigCompiler()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DJsonWebKey.cpp112 if (encodedText.find(kBase64Padding) != std::string::npos) { in decodeBase64String()
142 if (jsonObject.find(kKeyTypeTag) != std::string::npos) { in findKey()
148 if (jsonObject.find(kKeyIdTag) != std::string::npos) { in findKey()
152 if (jsonObject.find(kKeyTag) != std::string::npos) { in findKey()
175 if (jsonObject.find(kKeysTag) == std::string::npos) { in isJsonWebKeySet()
DBase64.cpp153 if ((std::string::npos != out->find("+")) || in encodeBase64Url()
154 (std::string::npos != out->find("/"))) { in encodeBase64Url()
/frameworks/base/tools/streaming_proto/
Dstring_utils.cpp67 if (start == string::npos) { in file_base_name()
73 if (end == string::npos) { in file_base_name()
105 if (found == str.npos) break; in split()
/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp35 if (head == std::string::npos) return ""; in trim()
76 if (found == line.npos) break; in split()
103 if (lastIndex == std::string::npos) { in getColumnIndices()
138 while (idx < lineSize && delimiters.find(line[idx++]) == std::string::npos); in parseRecordByColumns()
171 if (head == std::string::npos) return false; in stripPrefix()
192 if (tail == std::string::npos) return false; in stripSuffix()
213 if (found == std::string::npos) { in behead()
/frameworks/compile/mclinker/lib/Support/
DPath.cpp160 if (end_pos != StringType::npos) in parent_path()
167 if (pos != StringType::npos) { in filename()
183 if (pos == StringType::npos) in extension()
/frameworks/compile/libbcc/lib/
DRSX86CallConvPass.cpp81 if (FName.find("rsSetObject") != std::string::npos && ArgNo == 0) in IsDerefNeeded()
84 if (FName.find("rsClearObject") != std::string::npos && ArgNo == 0) in IsDerefNeeded()
87 if (FName.find("rsForEachInternal") != std::string::npos && ArgNo == 4) in IsDerefNeeded()
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp67 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine()
73 if (idx != std::string::npos) { in AppendCommentLine()
DManifestClassGenerator.cpp37 if (pos != std::string::npos) { in ExtractJavaIdentifier()
42 if (result.find('-') != std::string::npos) { in ExtractJavaIdentifier()
/frameworks/base/libs/androidfw/include/androidfw/
DStringPiece.h51 constexpr static const size_t npos = static_cast<size_t>(-1); variable
62 BasicStringPiece<TChar> substr(size_t start, size_t len = npos) const;
95 constexpr const size_t BasicStringPiece<TChar>::npos;
137 if (len == npos) { in substr()
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp197 if (mediaType.find("video") != std::string::npos in addSupportedColorFormats()
198 || mediaType.find("image") != std::string::npos) { in addSupportedColorFormats()
200 if (trait.name.find("android") == std::string::npos) { in addSupportedColorFormats()
210 if (encoder && trait.name.find("android") != std::string::npos) { in addSupportedColorFormats()
529 if (variantSep != std::string::npos) { in buildMediaCodecList()
/frameworks/base/startop/view_compiler/
Dutil.cc27 if (start == string::npos) { in FindLayoutNameFromFilename()
/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp124 if (codecName.find(GetParam().second) != string::npos && in TEST_P()
125 codecName.find("secure") == string::npos) { in TEST_P()
/frameworks/native/services/vr/performanced/
Dtask.cpp100 if (offset == std::string::npos) in GetStatusField()
119 if (offset == std::string::npos) { in ReadStatusFields()
/frameworks/compile/slang/
Dslang_rs_reflect_utils.cpp302 fullPath += path2.substr(1, string::npos); in JoinPath()
317 while ((p = s->find('\\', p)) != std::string::npos) { in SanitizeString()
410 if (p == std::string::npos) { in comment()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp42 MINIKIN_ASSERT(start != std::string::npos, "Not a valid file name \"%s\"", in.c_str()); in xmlTrim()
43 MINIKIN_ASSERT(end != std::string::npos, "Not a valid file name \"%s\"", in.c_str()); in xmlTrim()
/frameworks/base/tools/aapt2/filter/
DAbiFilter.cpp41 if (abi_end == std::string::npos) { in Keep()

1234