/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() 68 parse("301e" in testInteger() 82 parse("30020600", SequenceWithOid.class); in testOid() 87 assertEquals("2.100.3", parse("30050603813403", SequenceWithOid.class).oid); in testOid() 90 parse("300b0609608648016503040201", SequenceWithOid.class).oid); in testOid() 95 assertEquals(2, parse("3006300430003000", SequenceWithSequenceOf.class).values.size()); in testSequenceOf() [all …]
|
/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()
|
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/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/loganalysis/tests/src/com/android/loganalysis/parser/ |
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 | 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 | 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 | 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 | 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 | 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 | 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()
|
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()
|
D | TracesParserTest.java | 102 TracesItem traces = new TracesParser().parse(lines); in testTracesParser() 139 TracesItem traces = new TracesParser().parse(lines); in testTracesParser_cmdline() 162 traces = new TracesParser().parse(lines); in testTracesParser_cmdline()
|
D | LocationServiceParserTest.java | 49 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientsSize() 64 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParser() 84 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParserInvalidInput()
|
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 | TopParserTest.java | 42 TopItem item = new TopParser().parse(inputBlock); in testTopParser() 64 TopItem item = new TopParser().parse(inputBlock); in testLastTop() 80 TopItem item = new TopParser().parse(Arrays.asList("")); in testEmptyInput()
|
D | ProcrankParserTest.java | 49 ProcrankItem procrank = new ProcrankParser().parse(inputBlock); in testProcRankParserShortLine() 82 ProcrankItem procrank = new ProcrankParser().parse(inputBlock); in testProcRankParserLongLine() 101 ProcrankItem item = new ProcrankParser().parse(Arrays.asList("")); in testEmptyInput()
|
D | GfxInfoParserTest.java | 90 GfxInfoItem item = new GfxInfoParser().parse(input); in testSingleProcess() 285 GfxInfoItem item = new GfxInfoParser().parse(input); in testMultipleProcesses() 354 GfxInfoItem item = new GfxInfoParser().parse(input); in testSingleProcessInL()
|
D | AbstractSectionParserTest.java | 36 public IItem parse(List<String> lines) { in setUp() 59 public IItem parse(List<String> input) { in parse() method in AbstractSectionParserTest.FakeBlockParser 89 mParser.parse(lines); in testSwitchParsers()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationXmlParserTest.java | 60 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse() 81 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_globalOption() 106 xmlParser.parse(configDef, configName, getStringAsStream(normalConfig), null); in testParse_multiple() 130 xmlParser.parse(new ConfigurationDef("foo"), "foo", getStringAsStream(config), null); in testParse_objectMissingAttr() 143 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_optionMissingAttr() 156 xmlParser.parse(configDef, "name", getStringAsStream(config), null); in testParse_object() 175 xmlParser.parse(configDef, "foo", getStringAsStream(config), null); in testParse_include() 190 xmlParser.parse(parent, "name", getStringAsStream(config), null); in testParse_includeMissing() 202 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_badTag() 214 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_xml() [all …]
|
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 …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/testdefs/ |
D | XmlDefsParserTest.java | 61 parser.parse(getStringAsStream(TEST_DATA)); in testParseSingleDef() 77 parser.parse(getStringAsStream(NON_CONTINUOUS_TEST_DATA)); in testParseNonContinuous() 88 parser.parse(getStringAsStream(FALSE_CONTINUOUS_TEST_DATA)); in testParseFaleContinuous() 99 parser.parse(getStringAsStream(FULL_DATA)); in testParseFullDef() 116 parser.parse(getStringAsStream("ghgh")); in testParseException()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandOptionsTest.java | 36 p.parse("--min-loop-time", "10"); in testGetLoopTime_minset() 47 p.parse("--max-random-loop-time", "10", "--min-loop-time", "5"); in testGetLoopTime_maxrandomset() 60 p.parse("--min-loop-time", "5", "--min-loop-time", "0"); in testGetLoopTime_least()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DumpsysPackageReceiver.java | 54 ParserState parse(String line) throws ParseException; in parse() method 66 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackagesParserState 100 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackageParserState 144 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackagesParserState 178 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackageParserState 220 mCurrentState = mCurrentState.parse(line); in processNewLines()
|