/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/tests/src/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/tests/src/com/android/tradefed/config/ |
D | ArgsOptionParserTest.java | 226 parser.parse(new String[] {"--default", big, "--first", big, "--last", big, in testOptionUpdateRule_greater() 245 parser.parse(new String[] {"--default", small, "--first", small, "--last", small, in testOptionUpdateRule_lesser() 264 parser.parse(new String[] {"--immutable", update}); in testOptionUpdateRule_immutable() 271 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 275 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 290 parser.parse(new String[] {"--ngos:option"}); in testNonGlobalOptionSource_alias() 292 parser.parse(new String[] {"--ngos:no-option"}); in testNonGlobalOptionSource_alias() 304 parser.parse(new String[] {String.format("--%s:option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 306 parser.parse(new String[] {String.format("--%s:no-option", source.getClass().getName())}); in testNonGlobalOptionSource_className() 319 parser.parse(new String[] {"--option"}); in testNonGlobalOptionSource_global() [all …]
|
D | ConfigurationXmlParserTest.java | 61 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse() 84 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_interleaved() 106 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_globalOption() 131 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_multiple() 155 xmlParser.parse(new ConfigurationDef("foo"), "foo", getStringAsStream(config), null); in testParse_objectMissingAttr() 168 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_optionMissingAttr() 181 xmlParser.parse(configDef, "name", getStringAsStream(config), null); in testParse_object() 201 xmlParser.parse(configDef, "foo", getStringAsStream(config), null); in testParse_include() 221 xmlParser.parse(parent, "name", getStringAsStream(config), null); in testParse_includeMissing() 233 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_badTag() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
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 | 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 | 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 | 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 | 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 | MonkeyLogParserTest.java | 76 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_success() 182 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_anr() 255 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_java_crash() 327 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_java_crash_mixed() 418 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_native_crash() 512 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_native_crash_strip_extra() 578 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_native_crash_empty() 624 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_no_activities() 733 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_malformed_anr() 773 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testAlternateDateFormat() [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 | SmartMonkeyLogParserTest.java | 51 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testExceptions() 81 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testHeader() 112 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testIntermidiateStop() 140 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testFooter()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | AaptParserTest.java | 26 assertFalse(p.parse("Bad data")); in testParseInvalidInput() 31 assertTrue(p.parse("package: name='android.support.graphics.drawable.animated.test'" + in testParseEmptyVersionCode() 55 p.parse("package: name='com.android.foo' versionCode='13' versionName='2.3'\n" + in testParsePackageNameVersionLabel() 69 p.parse("package: name='com.android.foo' versionCode='217173' versionName='1.7173' " + in testParseVersionMultipleFieldsNoLabel() 85 p.parse("package: name='com.android.foo' versionCode='217173' versionName='1.7173' " + in testParseInvalidSdkVersion() 97 p.parse( in testParseNativeCode() 112 p.parse( in testParseNativeCode_multi() 128 p.parse( in testParseNativeCode_alt() 226 p.parse( in testParseXmlTree_withUsesPermissionManageExternalStorage() 239 p.parse( in testParseXmlTree_withoutUsesPermissionManageExternalStorage() [all …]
|
D | JUnitXmlParserTest.java | 56 new JUnitXmlParser(mMockListener).parse(new ByteArrayInputStream(new byte[0])); in testEmptyParse() 83 new JUnitXmlParser("runName", mMockListener).parse(extractTestXml(TEST_PARSE_FILE)); in testParse() 111 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE2)); in testParseErrorAndSkipped() 124 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE3)); in testParseError_format() 140 new JUnitXmlParser("//pkg:target", mMockListener).parse(extractTestXml(BAZEL_SH_TEST_XML)); in testParseBazelShTestXml()
|
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()
|
/tools/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/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 104 public MonkeyLogItem parse(BufferedReader input) throws IOException { in parse() method in MonkeyLogParser 119 public MonkeyLogItem parse(List<String> lines) { in parse() method in MonkeyLogParser 135 AnrItem crash = new AnrParser().parse(mBlock); in parseLine() 158 crash = new JavaCrashParser().parse(mBlock); in parseLine() 160 crash = new NativeCrashParser().parse(mBlock); in parseLine() 176 TracesItem traces = new TracesParser().parse(mBlock); in parseLine() 332 return new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").parse(timeStr); in parseTime() 338 return new SimpleDateFormat("E, MM/dd/yyyy hh:mm:ss a").parse(timeStr); in parseTime()
|
D | LogcatParser.java | 177 public LogcatItem parse(BufferedReader input) throws IOException { in parse() method in LogcatParser 193 public LogcatItem parse(List<String> lines) { in parse() method in LogcatParser 346 item = new AnrParser().parse(data.mLines); in commit() 371 item = new JavaCrashParser().parse(data.mLines); in commit() 379 item = new NativeCrashParser().parse(data.mLines); in commit() 435 return formatter.parse(String.format("%s-%s", mYear, timeStr)); in parseTime()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 152 return ctsJsonResultParser.parse(); in parseResult() 177 Map<String, String> testKpis = parser.parse(testResult, testMethod); in parseResult() 280 public abstract Map<String, String> parse(String result, String testMethod); in parse() method in CameraPerformanceTest.CtsResultParserBase 342 public Map<String, String> parse(String result, String testMethod) { in parse() method in CameraPerformanceTest.CtsDelimitedResultParser 438 public Map<String, String> parse(String result, String testMethod) { in parse() method in CameraPerformanceTest.CtsXmlResultParser 445 parse(parser); in parse() 459 private void parse(XmlPullParser parser) throws XmlPullParserException, IOException { in parse() method in CameraPerformanceTest.CtsXmlResultParser 516 public Map<String, String> parse() { in parse() method in CameraPerformanceTest.CtsJsonResultParser
|
/tools/loganalysis/src/com/android/loganalysis/ |
D | LogAnalyzer.java | 117 BugreportItem bugreport = new BugreportParser().parse(reader); in run() 124 LogcatItem logcat = new LogcatParser().parse(reader); in run() 131 KernelLogItem kernelLog = new KernelLogParser().parse(reader); in run() 138 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(reader); in run() 145 MemoryHealthItem item = new MemoryHealthParser().parse(reader); in run() 155 DvmLockSampleItem item = new DvmLockSampleParser().parse(reader); in run() 327 opt.parse(args); in initArgs()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 104 Map<String, String> results = resultParser.parse(contents); in testParseSimpleFile() 162 resultParser.parse(contents); in testParseSimpleFile_twoTests() 186 resultParser.parse(contents); in testParse_contextError() 200 resultParser.parse(contents); in testParse_noBenchmarkResults() 224 resultParser.parse(contents); in testParse_benchmarkError() 262 resultParser.parse(contents); in testParseSimpleFile_withWarning() 288 resultParser.parse(contents); in testParse_ignore()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DumpsysPackageReceiver.java | 56 ParserState parse(String line) throws ParseException; in parse() method 68 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackagesParserState 102 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackageParserState 146 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackagesParserState 180 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackageParserState 222 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/tests/src/com/android/tradefed/device/ |
D | DeviceSelectionOptionsTest.java | 473 p.parse("--min-sdk-level", "15"); 485 p.parse("--min-sdk-level", "10"); 497 p.parse("--min-sdk-level", "10"); 509 p.parse("--max-sdk-level", "15"); 521 p.parse("--max-sdk-level", "15"); 533 p.parse("--max-sdk-level", "15");
|