Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 72) sorted by relevance

123

/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java36 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/ndkports/src/test/kotlin/com/android/ndkports/
DCMakeCompatibleVersionTest.kt25 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 …]
DNdkVersionTest.kt26 fun `can parse source properties`() { in can parse source properties()
/tools/metalava/src/test/java/com/android/tools/metalava/
DPackageFilterTest.kt25 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/test/graphicsbenchmark/performance_tests/helper/test/com/android/game/qualification/
DGameCoreConfigurationXmlParserTest.java58 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/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java82 public GameCoreConfiguration parse(File file) in parse() method in GameCoreConfigurationXmlParser
85 return parse(is); in parse()
89 public GameCoreConfiguration parse(InputStream inputStream) in parse() method in GameCoreConfigurationXmlParser
93 Document doc = db.parse(inputStream); in parse()
/tools/asuite/aidegen/sdk/
Djdk_table_unittest.py84 self.jdk_table_xml._xml = ElementTree.parse(tmp_file)
92 self.jdk_table_xml._xml = ElementTree.parse(tmp_file)
100 self.jdk_table_xml._xml = ElementTree.parse(tmp_file)
139 self.jdk_table_xml._xml = ElementTree.parse(tmp_file)
/tools/security/fuzzing/orphans/libcppbor/
Dcppbor_fuzzer.cpp25 cppbor::parse(val.encode()); in FuzzStringParsing()
36 cppbor::parse(map.encode()); in FuzzVectorParsing()
Dcppbor_parse_fuzzer.cpp37 auto [item, newPos, errMsg] = parse(cursor, end); in FuzzParse()
60 parse(data, end, &parseClient); in FuzzParseWithClient()
/tools/external_updater/
Darchive_utils.py19 import urllib.parse
86 parsed_url = urllib.parse.urlparse(url)
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java60 public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) in parse() method in Asn1BerParser
71 return parse(containerDataValue, containerClass); in parse()
110 private static <T> T parse(BerDataValue container, Class<T> containerClass) in parse() method in Asn1BerParser
305 element = parse(dataValue, elementClass); in parseSetOf()
/tools/asuite/aidegen/idea/
Dxml_gen.py68 self.parse()
70 def parse(self): member in XMLGenerator
/tools/asuite/atest-py2/test_finders/
Dtest_finder_utils.py540 xml_root = ET.parse(xml_file).getroot()
725 xml_root = ET.parse(xml_file).getroot()
763 xml_root = ET.parse(xml_file).getroot()
978 xml_root = ET.parse(xml_file).getroot()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceImporterTest.kt131 val model = parse( in testCounters()
151 fun parse(vararg lines: String): Model { in parse() method
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java126 Certificate reencodedCert = Asn1BerParser.parse(encodedCertBuffer, Certificate.class); in generateCertificate()
190 Certificate reencodedCert = Asn1BerParser.parse(certBuffer, Certificate.class); in generateCertificates()
/tools/treble/split/
Dmanifest_diff.py245 e1 = ET.parse(manifest_a).getroot()
246 e2 = ET.parse(manifest_b).getroot()
Dmanifest_split_test.py393 split_manifest = ET.parse(split_manifest_file.name)
589 split_manifest = ET.parse(split_manifest_file.name)
Dmanifest_split.py143 root = ET.parse(config_file).getroot()
481 original_manifest = ET.parse(manifest_file)
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py610 xml_root = ET.parse(xml_file).getroot()
796 xml_root = ET.parse(xml_file).getroot()
834 xml_root = ET.parse(xml_file).getroot()
1053 xml_root = ET.parse(xml_file).getroot()
/tools/acloud/list/
Dinstance_test.py183 instance.datetime.datetime.now.return_value = dateutil.parser.parse(now)
190 instance.datetime.datetime.now.return_value = dateutil.parser.parse(
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java488 Asn1BerParser.parse(ByteBuffer.wrap(sigBlockBytes), ContentInfo.class); in verifySigBlockAgainstSigFile()
494 Asn1BerParser.parse(contentInfo.content.getEncoded(), SignedData.class); in verifySigBlockAgainstSigFile()
1509 return Asn1BerParser.parse(value.getEncoded(), ObjectIdentifierChoice.class).value; in getSingleObjectIdentifierValue()
1521 return Asn1BerParser.parse(value.getEncoded(), OctetStringChoice.class).value; in getSingleOctetStringValue()
/tools/acloud/internal/lib/
Dengprod_client.py20 from urllib.parse import urljoin
/tools/asuite/aidegen/lib/
Dxml_util.py36 return ElementTree.parse(xml_file)
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DCMakeCompatibleVersion.kt53 fun parse(versionString: String): CMakeCompatibleVersion { in toString() method
/tools/aadevtools/dev/
Dclone_proj.sh64 f=`git rev-parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-…

123