/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/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 | 66 new JUnitXmlParser(mMockListener).parse(new ByteArrayInputStream(new byte[0])); in testEmptyParse() 80 new JUnitXmlParser("runName", mMockListener).parse(extractTestXml(TEST_PARSE_FILE)); in testParse() 102 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE2)); in testParseErrorAndSkipped() 128 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE4)); in testParseErrorAndSkippedWithAssumptionFailure() 151 new JUnitXmlParser(mMockListener).parse(extractTestXml(TEST_PARSE_FILE3)); in testParseError_format() 172 new JUnitXmlParser("//pkg:target", mMockListener).parse(extractTestXml(BAZEL_SH_TEST_XML)); in testParseBazelShTestXml()
|
/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/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 | 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 | 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 | 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 | 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 | 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()
|
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 | 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()
|
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/ |
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/netsim/rust/libslirp-rs/src/ |
D | libslirp_config.rs | 112 vprefix_addr6: "fec0::".parse().unwrap(), in default() 114 vhost6: "fec0::2".parse().unwrap(), in default() 123 vnameserver6: "fec0::3".parse().unwrap(), in default() 313 assert_eq!(config.vprefix_addr6, "fec0::".parse::<Ipv6Addr>().unwrap()); in test_slirp_config_default() 315 assert_eq!(config.vhost6, "fec0::2".parse::<Ipv6Addr>().unwrap()); in test_slirp_config_default() 322 assert_eq!(config.vnameserver6, "fec0::3".parse::<Ipv6Addr>().unwrap()); in test_slirp_config_default() 388 let dns = ["1.1.1.1:53".parse().unwrap(), "8.8.8.8:53".parse().unwrap()]; in test_to_socketaddr_storage() 403 "1.1.1.1:53".parse().unwrap(), in test_to_socketaddr_storage_valid_input_at_max() 404 "8.8.8.8:53".parse().unwrap(), in test_to_socketaddr_storage_valid_input_at_max() 405 "9.9.9.9:53".parse().unwrap(), in test_to_socketaddr_storage_valid_input_at_max() [all …]
|
/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 105 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PackageParserState 170 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackagesParserState 204 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.HiddenPackageParserState 228 public ParserState parse(String line) throws ParseException { in parse() method in DumpsysPackageReceiver.PerUserPackageParserState 283 mCurrentState = mCurrentState.parse(line); in processNewLines()
|