/tools/ndkports/buildSrc/src/test/kotlin/com/android/ndkports/ |
D | CMakeCompatibleVersionTest.kt | 25 fun `can parse version number`() { in can parse version number() 28 CMakeCompatibleVersion.parse("1") in can parse version number() 32 CMakeCompatibleVersion.parse("2.1") in can parse version number() 36 CMakeCompatibleVersion.parse("3.2.1") in can parse version number() 40 CMakeCompatibleVersion.parse("4.3.2.1") in can parse version number() 47 CMakeCompatibleVersion.parse("") in reject invalid versions() 50 CMakeCompatibleVersion.parse(" ") in reject invalid versions() 53 CMakeCompatibleVersion.parse("1.") in reject invalid versions() 56 CMakeCompatibleVersion.parse(".1") in reject invalid versions() 59 CMakeCompatibleVersion.parse(".1.") in reject invalid versions() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 36 parse((ByteBuffer) null, EmptySequence.class); in testNullInput() 41 parse("", EmptySequence.class); in testEmptyInput() 48 EmptySequence container = parse(input, EmptySequence.class); in testEmptySequence() 58 HexEncoding.encode(parse("30050403123456", SequenceWithOctetString.class).buf)); in testOctetString() 60 "", HexEncoding.encode(parse("30020400", SequenceWithOctetString.class).buf)); in testOctetString() 67 HexEncoding.encode(parse("30050303123456", SequenceWithBitString.class).buf)); in testBitString() 69 "", HexEncoding.encode(parse("30020300", SequenceWithBitString.class).buf)); in testBitString() 74 assertEquals(false, parse("3003010100", SequenceWithBoolean.class).value); in testBoolean() 75 assertEquals(true, parse("3003010101", SequenceWithBoolean.class).value); in testBoolean() 76 assertEquals(true, parse("30030101FF", SequenceWithBoolean.class).value); in testBoolean() [all …]
|
/tools/loganalysis/javatests/com/android/loganalysis/util/config/ |
D | ArgsOptionParserTest.java | 208 parser.parse(new String[] {"--default", big, "--first", big, "--last", big, in testOptionUpdateRule_greater() 227 parser.parse(new String[] {"--default", small, "--first", small, "--last", small, in testOptionUpdateRule_lesser() 246 parser.parse(new String[] {"--immutable", update}); in testOptionUpdateRule_immutable() 253 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 257 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 272 parser.parse(new String[] {"--ngos:option"}); in testNonGlobalOptionSource_alias() 274 parser.parse(new String[] {"--ngos:no-option"}); in testNonGlobalOptionSource_alias() 286 parser.parse(new String[] {String.format("--%s:option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 288 parser.parse(new String[] {String.format("--%s:no-option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 301 parser.parse(new String[] {"--option"}); in testNonGlobalOptionSource_global() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | AaptParserTest.java | 33 assertFalse(p.parse("Bad data")); in testParseInvalidInput() 39 assertTrue(p.parse("package: name='android.support.graphics.drawable.animated.test'" + in testParseEmptyVersionCode() 64 p.parse("package: name='com.android.foo' versionCode='13' versionName='2.3'\n" + in testParsePackageNameVersionLabel() 79 p.parse("package: name='com.android.foo' versionCode='217173' versionName='1.7173' " + in testParseVersionMultipleFieldsNoLabel() 96 p.parse("package: name='com.android.foo' versionCode='217173' versionName='1.7173' " + in testParseInvalidSdkVersion() 109 p.parse( in testParseNativeCode() 125 p.parse( in testParseNativeCode_multi() 142 p.parse( in testParseNativeCode_multi_4() 162 p.parse( in testParseNativeCode_multi_10() 183 p.parse( in testParseNativeCode_multi_11() [all …]
|
D | HprofAllocSiteParserTest.java | 70 Map<String, String> results = mParser.parse(f); in testParse() 85 Map<String, String> results = mParser.parse(f); in testParse_invalidContent() 95 Map<String, String> results = mParser.parse(null); in testParse_noFile() 103 Map<String, String> results = mParser.parse(new File("thisdoesnotexistsatall")); in testParse_fileDoesNotExists()
|
D | JUnitXmlParserTest.java | 65 new JUnitXmlParser(mMockListener).parse(new ByteArrayInputStream(new byte[0])); in testEmptyParse() 79 new JUnitXmlParser("runName", mMockListener).parse(extractTestXml(TEST_PARSE_FILE)); in testParse() 101 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE2)); in testParseErrorAndSkipped() 124 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE3)); in testParseError_format() 145 new JUnitXmlParser("//pkg:target", mMockListener).parse(extractTestXml(BAZEL_SH_TEST_XML)); in testParseBazelShTestXml()
|
/tools/tradefederation/core/javatests/com/android/tradefed/config/ |
D | ConfigurationXmlParserTest.java | 66 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse() 89 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_interleaved() 111 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_globalOption() 136 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_multiple() 163 xmlParser.parse(new ConfigurationDef("foo"), "foo", getStringAsStream(config), null); in testParse_objectMissingAttr() 175 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_optionMissingAttr() 187 xmlParser.parse(configDef, "name", getStringAsStream(config), null); in testParse_object() 211 xmlParser.parse(configDef, "foo", getStringAsStream(config), null); in testParse_include() 232 xmlParser.parse(parent, "name", getStringAsStream(config), null); in testParse_includeMissing() 244 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_badTag() [all …]
|
D | ArgsOptionParserTest.java | 230 parser.parse( in testOptionUpdateRule_greater() 261 parser.parse( in testOptionUpdateRule_lesser() 292 parser.parse(new String[] {"--immutable", update}); in testOptionUpdateRule_immutable() 299 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 303 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 317 parser.parse(new String[] {"--ngos:option"}); in testNonGlobalOptionSource_alias() 319 parser.parse(new String[] {"--ngos:no-option"}); in testNonGlobalOptionSource_alias() 330 parser.parse(new String[] {String.format("--%s:option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 332 parser.parse(new String[] {String.format("--%s:no-option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 344 parser.parse(new String[] {"--option"}); in testNonGlobalOptionSource_global() [all …]
|
/tools/loganalysis/javatests/com/android/loganalysis/parser/ |
D | BugreportParserTest.java | 164 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse() 216 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_set_logcat_year() 229 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_command_line() 233 bugreport = new BugreportParser().parse(lines); in testParse_command_line() 238 bugreport = new BugreportParser().parse(lines); in testParse_command_line() 245 bugreport = new BugreportParser().parse(lines); in testParse_command_line() 251 bugreport = new BugreportParser().parse(lines); in testParse_command_line() 268 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_bootreason_kernel_good() 286 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_bootreason_kernel_bad() 305 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_bootreason_prop_good() [all …]
|
D | CompactMemInfoParserTest.java | 34 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithSwapHasActivities() 47 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithoutSwapHasActivities() 61 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithoutSwapNoActivities() 73 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleLostRamLine() 79 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleRamLine() 85 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleZramLine() 93 CompactMemInfoItem item1 = new CompactMemInfoParser().parse(input1); in testSingleTuningLine() 97 CompactMemInfoItem item2 = new CompactMemInfoParser().parse(input2); in testSingleTuningLine() 121 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSomeMalformedLines() 139 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testMultipleLines() [all …]
|
D | LogcatParserTest.java | 48 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_anr() 72 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_anr_pid() 95 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash() 137 LogcatItem logcat = logcatParser.parse(lines); in testParse_test_exception() 174 LogcatItem logcat = logcatParser.parse(lines); in testParse_test_exception_with_exras() 200 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash_system_server() 227 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash_process_pid() 254 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash_pid() 277 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash_empty() 294 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_native_crash_info() [all …]
|
D | TraceFormatParserTest.java | 63 TraceFormatItem parsedItem = mParser.parse(formatLine); in testParseFormatLine() 82 TraceFormatItem parsedItem = mParser.parse(formatLine); in testNoParameters() 92 mParser.parse(null); in testNullInput() 103 mParser.parse(formatLine); in testEmptyInput() 114 mParser.parse(formatLine); in testMultiLineInput() 125 mParser.parse(formatLine); in testOneLineInvalidInput() 139 TraceFormatItem parsedItem = mParser.parse(formatLine); in testQuoteInParams() 155 TraceFormatItem parsedItem = mParser.parse(formatLine); in testCategorizeParameters() 167 TraceFormatItem parsedItem = mParser.parse(formatLine); in testCaseConvertParameterName() 180 TraceFormatItem parsedItem = mParser.parse(formatLine); in testMatchInt() [all …]
|
D | KernelLogParserTest.java | 43 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseLastKmsg() 65 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseDmesg() 87 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseLastMessage() 109 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseUnknownLastMessage() 128 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseKnownGoodLastMessage() 142 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testNoPreviousLogs() 159 KernelLogItem item = new KernelLogParser().parse(Arrays.asList("")); in testEmptyInput() 218 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testSelinuxDenialParse() 249 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testLowMemoryKillerParse() 282 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testPageAllocationFailureParse() [all …]
|
D | JavaCrashParserTest.java | 41 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_no_message() 58 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_message() 77 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_multiline_message() 102 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_caused_by() 121 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_cutoff() 143 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_begin_end_markers()
|
D | NativeCrashParserTest.java | 140 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseage() 160 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseApp() 172 nc = new NativeCrashParser().parse(lines); in testParseApp() 185 nc = new NativeCrashParser().parse(lines); in testParseApp()
|
D | WakelockParserTest.java | 46 WakelockItem wakelock = new WakelockParser().parse(inputBlock); in testKernelWakelockParser() 69 WakelockItem wakelock = new WakelockParser().parse(inputBlock); in testPartialWakelockParser() 94 WakelockItem wakelock = new WakelockParser().parse(inputBlock); in testPartialWakelockParserOnOldFormat() 119 WakelockItem wakelock = new WakelockParser().parse(inputBlock); in testInvalidInputWakelockParser()
|
D | SystemPropsParserTest.java | 40 SystemPropsItem map = new SystemPropsParser().parse(inputBlock); in testSimpleParse() 60 SystemPropsItem map = new SystemPropsParser().parse(inputBlock); in testParseError() 71 SystemPropsItem item = new SystemPropsParser().parse(Arrays.asList("")); in testEmptyInput()
|
D | QtaguidParserTest.java | 30 QtaguidItem item = new QtaguidParser().parse(input); in testSingleLine() 40 QtaguidItem item = new QtaguidParser().parse(input); in testMalformedLine() 68 QtaguidItem item = new QtaguidParser().parse(input); in testMultipleLines()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | PackageFilterTest.kt | 25 val filter = PackageFilter.parse("foo.bar:bar.baz") in testExact() 35 val filter = PackageFilter.parse("foo.bar*:bar.baz.*") in testWildcard() 47 val filter = PackageFilter.parse("foo.bar:foo.bar.*") in testBoth() 57 val filter = PackageFilter.parse("foo.bar.*") in testImplicit() 67 val filter = PackageFilter.parse("+sample") in testExplicitInclusion() 76 val filter = PackageFilter.parse("-com") in testOnlyExclusion() 84 val filter = PackageFilter.parse("sample.*:-sample.example.*") in testExclusionOverride() 94 val star = PackageFilter.parse("*") in testMatchAll() 96 val plusStar = PackageFilter.parse("+*") in testMatchAll() 102 val filter = PackageFilter.parse("+*:-android.*:+android.icu.*:-dalvik.*") in testMultipleOverlappingOverrides()
|
/tools/external_updater/ |
D | test_manifest.py | 59 ManifestParser(manifest_path).parse() 77 ManifestParser(manifest_path).parse() 97 ManifestParser(manifest).parse() 115 manifest = ManifestParser(manifest_path).parse() 133 manifest = ManifestParser(manifest_path).parse() 151 manifest = ManifestParser(manifest_path).parse() 169 manifest = ManifestParser(manifest_path).parse() 187 manifest = ManifestParser(manifest_path).parse() 205 manifest = ManifestParser(manifest_path).parse()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DumpsysPackageReceiver.java | 58 ParserState parse(String line) throws ParseException; in parse() method 70 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackagesParserState 104 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackageParserState 153 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackagesParserState 187 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackageParserState 211 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PerUserPackageParserState 266 mCurrentState = mCurrentState.parse(line); in processNewLines()
|
/tools/test/graphicsbenchmark/performance_tests/helper/test/com/android/game/qualification/ |
D | GameCoreConfigurationXmlParserTest.java | 58 GameCoreConfiguration config = parser.parse(input); in testSingleApkInfo() 97 List<ApkInfo> apks = parser.parse(input).getApkInfo(); in testOptionalFields() 129 parser.parse(input); in testMissingRequiredField() 156 List<ApkInfo> apks = parser.parse(input).getApkInfo(); in testApkWithArguments() 194 GameCoreConfiguration config = parser.parse(input); in testRequirements() 218 parser.parse(input); in testRequirementNeedsMatchingApk()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 103 Map<String, String> results = resultParser.parse(cmd_result); in testParseSimpleFile() 159 resultParser.parse(cmd_result); in testParseSimpleFile_twoTests() 185 resultParser.parse(cmd_result); in testParse_contextError() 200 resultParser.parse(cmd_result); in testParse_noBenchmarkResults() 217 resultParser.parse(cmd_result); in testParse_benchmarkError() 257 resultParser.parse(cmd_result); in testParseSimpleFile_withWarning() 284 resultParser.parse(cmd_result); in testParse_ignore() 316 resultParser.parse(cmd_result); in testParse_aborted() 338 resultParser.parse(cmd_result); in testParse_timedout()
|
/tools/loganalysis/src/com/android/loganalysis/ |
D | LogAnalyzer.java | 112 BugreportItem bugreport = new BugreportParser().parse(reader); in run() 119 LogcatItem logcat = new LogcatParser().parse(reader); in run() 126 KernelLogItem kernelLog = new KernelLogParser().parse(reader); in run() 133 MemoryHealthItem item = new MemoryHealthParser().parse(reader); in run() 143 DvmLockSampleItem item = new DvmLockSampleParser().parse(reader); in run() 305 opt.parse(args); in initArgs()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AaptParser.java | 123 boolean parse(String aaptOut) { in parse() method in AaptParser 174 public static AaptParser parse(File apkFile) { in parse() method in AaptParser 175 return parse(apkFile, AaptVersion.AAPT); in parse() 185 public static AaptParser parse(File apkFile, AaptVersion aaptVersion) { in parse() method in AaptParser 196 if (!CommandStatus.SUCCESS.equals(result.getStatus()) || !p.parse(result.getStdout())) { in parse()
|