/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 | 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 …]
|
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/loganalysis/tests/src/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 | 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 | 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 | 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 | 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 | 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()
|
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 | AnrParserTest.java | 50 AnrItem anr = new AnrParser().parse(lines); in testParse_application_not_responding() 83 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app() 116 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app_class_package() 150 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app_class_package_pid()
|
/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()
|
D | JUnitXmlParserTest.java | 55 new JUnitXmlParser(mMockListener).parse(new ByteArrayInputStream(new byte[0])); in testEmptyParse() 82 new JUnitXmlParser("runName", mMockListener).parse(extractTestXml(TEST_PARSE_FILE)); in testParse() 108 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE2)); in testParseErrorAndSkipped() 124 new JUnitXmlParser("//pkg:target", mMockListener).parse(extractTestXml(BAZEL_SH_TEST_XML)); in testParseBazelShTestXml()
|
/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()
|
/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/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()
|
/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/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/test/connectivity/acts/framework/tests/config/ |
D | file_loader_test.py | 32 ConfigFileParser().parse('') 42 JsonFileParser().parse(file_path) 48 def parse(self, file_path): member in ConfigFileParserPass 53 def parse(self, file_path): member in ConfigFileParserFail
|
/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
|