Home
last modified time | relevance | path

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

12345678910>>...17

/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderTest.java63 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Normal()
64 mCp.validateIncomingUri(Uri.parse("content://com.example/"))); in testValidateIncomingUri_Normal()
65 assertEquals(Uri.parse("content://com.example/foo/bar"), in testValidateIncomingUri_Normal()
67 assertEquals(Uri.parse("content://com.example/foo%2Fbar"), in testValidateIncomingUri_Normal()
69 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar"), in testValidateIncomingUri_Normal()
75 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Shady()
77 assertEquals(Uri.parse("content://com.example/foo/bar/"), in testValidateIncomingUri_Shady()
79 assertEquals(Uri.parse("content://com.example/foo/bar/"), in testValidateIncomingUri_Shady()
81 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar/baz"), in testValidateIncomingUri_Shady()
95 Uri uri = Uri.parse("content://com.example/foo/bar"); in testCreateContentUriForUser()
[all …]
H A DContentResolverTest.java115 Uri.parse("content://com.example/"), new Size(1280, 960), null, in testLoadThumbnail_Normal()
130 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Scaling()
145 Uri.parse("content://com.example/"), new Size(240, 320), null, in testLoadThumbnail_Aspect()
160 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Tiny()
176 Uri.parse("content://com.example/"), new Size(1080, 540), null, in testLoadThumbnail_Large()
188 assertTranslate(Uri.parse("content://com.example/path/?foo=bar&baz=meow")); in testTranslateDeprecatedDataPath()
189 assertTranslate(Uri.parse("content://com.example/path/subpath/12/")); in testTranslateDeprecatedDataPath()
190 assertTranslate(Uri.parse("content://com.example/path/subpath/12")); in testTranslateDeprecatedDataPath()
191 assertTranslate(Uri.parse("content://com.example/path/12")); in testTranslateDeprecatedDataPath()
192 assertTranslate(Uri.parse("content://com.example/")); in testTranslateDeprecatedDataPath()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java116 Uri.parse(null); in testNullUriString()
131 Uri a = Uri.parse("foo:a"); in testCompareTo()
132 Uri b = Uri.parse("foo:b"); in testCompareTo()
133 Uri b2 = Uri.parse("foo:b"); in testCompareTo()
208 uri = Uri.parse("http://localhost"); in testAuthorityParsing()
255 Uri base = Uri.parse("content://sms"); in testSms()
302 Uri uri = Uri.parse("content://user"); in testQueryParameters()
330 Uri uri = Uri.parse("empty:"); in testSchemeOnly()
338 Uri uri = Uri.parse("content://user"); in testEmptyPath()
380 Uri uri = Uri.parse("mailto:nobody"); in testOpaqueUri()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DCutoutSpecificationTest.java145 CutoutSpecification cutoutSpecification = mParser.parse(""); in parse_emptyString_pathShouldBeNull()
194 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveLeftBound()
201 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveTopBound()
208 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveRightBound()
215 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveBottomBound()
222 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldMatchExpectedSafeInset()
228 CutoutSpecification cutoutSpecification = mParser.parse("M 0,0\n" in parse_tallCutout_topBoundShouldMatchExpectedHeight()
324 .parse(CORNER_CUTOUT_SPECIFICATION); in getSafeInset_shortEdgeIsTopBottom_shouldMatchExpectedInset()
334 .parse(CORNER_CUTOUT_SPECIFICATION); in getSafeInset_shortEdgeIsLeftRight_shouldMatchExpectedInset()
344 .parse("@bottom" in parse_bottomLeftSpec_withBindLeftMarker_shouldBeLeftBound()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DRecurrenceRuleTest.java52 setClock(Instant.parse("2015-11-20T10:15:30.00Z")); in testSimpleMonth()
54 ZonedDateTime.parse("2010-11-14T00:00:00.000Z"), in testSimpleMonth()
63 ZonedDateTime.parse("2015-11-14T00:00:00.00Z"), in testSimpleMonth()
67 ZonedDateTime.parse("2015-10-14T00:00:00.00Z"), in testSimpleMonth()
72 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testSimpleDays()
74 ZonedDateTime.parse("2010-11-14T00:11:00.000Z"), in testSimpleDays()
75 ZonedDateTime.parse("2010-11-20T00:11:00.000Z"), in testSimpleDays()
83 ZonedDateTime.parse("2010-11-17T00:11:00.00Z"), in testSimpleDays()
87 ZonedDateTime.parse("2010-11-14T00:11:00.00Z"), in testSimpleDays()
93 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testNotRecurring()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DObserverNodeTest.java70 Uri.parse("content://c/a/"), in testUri()
71 Uri.parse("content://c/"), in testUri()
72 Uri.parse("content://x/"), in testUri()
73 Uri.parse("content://c/b/"), in testUri()
76 Uri.parse("content://c/b/1/"), in testUri()
77 Uri.parse("content://c/b/2/"), in testUri()
104 Uri.parse("content://c/"), in testUriNotNotify()
105 Uri.parse("content://x/"), in testUriNotNotify()
106 Uri.parse("content://c/a/"), in testUriNotNotify()
107 Uri.parse("content://c/b/"), in testUriNotNotify()
[all …]
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DConditionProvidersTest.java65 new Condition(Uri.parse("a"), "summary", Condition.STATE_TRUE), in notifyConditions_findCondition()
66 new Condition(Uri.parse("b"), "summary2", Condition.STATE_TRUE) in notifyConditions_findCondition()
73 assertThat(mProviders.findCondition(null, Uri.parse("a"))).isNull(); in notifyConditions_findCondition()
83 new Condition(Uri.parse("a"), "summary", Condition.STATE_TRUE), in notifyConditions_callbackOnConditionChanged()
84 new Condition(Uri.parse("b"), "summary2", Condition.STATE_TRUE), in notifyConditions_callbackOnConditionChanged()
85 new Condition(Uri.parse("c"), "summary3", Condition.STATE_TRUE) in notifyConditions_callbackOnConditionChanged()
102 new Condition(Uri.parse("a"), "summary", Condition.STATE_TRUE), in notifyConditions_duplicateIds_ignored()
103 new Condition(Uri.parse("b"), "summary2", Condition.STATE_TRUE), in notifyConditions_duplicateIds_ignored()
105 new Condition(Uri.parse("a"), "summary4", Condition.STATE_FALSE) in notifyConditions_duplicateIds_ignored()
122 new Condition(Uri.parse("a"), "summary", Condition.STATE_TRUE), in notifyConditions_nullItems_ignored()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
H A DCertXmlTest.java48 CertXml certXml = CertXml.parse(certXmlBytes); in parse_succeeds()
61 CertXml certXml = CertXml.parse(certXmlBytes); in parse_checkIntermediateCerts()
70 CertXml certXml = CertXml.parse(certXmlBytes); in parse_checkEndpointCerts()
78 CertXml.parse( in parse_doesNotThrowIfNoRefreshInterval()
89 CertXml.parse( in parse_throwsIfNoEndpointCert()
101 CertXml.parse( in parse_throwsIfNoSerial()
113 CertXml.parse( in parse_throwsIfTwoSerials()
121 CertXml certXml = CertXml.parse(certXmlBytes); in parseAndValidateAllCerts_succeeds()
132 CertXml certXml = CertXml.parse(certXmlBytes); in parseAndValidate_returnsExpectedCertPath()
147 CertXml certXml = CertXml.parse(certXmlBytes); in validateCert_throwsIfRootCertWithDifferentCommonName()
[all …]
H A DSigXmlTest.java46 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_succeeds()
53 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfExpiredCert()
64 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfInvalidSignature()
79 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfRootCertWithWrongCommonName()
91 SigXml.parse(TestData.readTestFile("xml/valid-sig-file-no-intermediates.sig.xml")); in parse_succeedsWithoutIntermediateCerts()
100 SigXml.parse( in parse_throwsIfNoSignerCert()
112 SigXml.parse( in parse_throwsIfTwoSignerCerts()
124 SigXml.parse( in parse_throwsIfNoSignatureValue()
136 SigXml.parse( in parse_throwsIfTwoSignatureValues()
/aosp14/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
H A DCodeUtilsTest.kt64 StaticJavaParser.parse(code), "org.example.Test", "")
73 StaticJavaParser.parse(code), "org.example.Test", "")
82 StaticJavaParser.parse(code), "org.example.Test", "")
91 StaticJavaParser.parse(code), "org.example.Test", "")
100 StaticJavaParser.parse(code), "org.example.Test"))
108 StaticJavaParser.parse(code), "org.example.test.Test"))
117 StaticJavaParser.parse(code), "org.example.Test2"))
126 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
138 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
150 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
H A DProtoLogCallProcessorTest.kt69 visitor.process(StaticJavaParser.parse(code), processor, "")
96 visitor.process(StaticJavaParser.parse(code), processor, "")
115 visitor.process(StaticJavaParser.parse(code), processor, "")
133 visitor.process(StaticJavaParser.parse(code), processor, "")
150 visitor.process(StaticJavaParser.parse(code), processor, "")
165 visitor.process(StaticJavaParser.parse(code), processor, "")
179 visitor.process(StaticJavaParser.parse(code), processor, "")
193 visitor.process(StaticJavaParser.parse(code), processor, "")
207 visitor.process(StaticJavaParser.parse(code), processor, "")
223 visitor.process(StaticJavaParser.parse(code), processor, "")
H A DLogParserTest.kt67 fun parse() { regex
79 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream)
101 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream)
124 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream)
144 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream)
157 parser.parse(stream, getConfigDummyStream(), printStream)
169 parser.parse(stream, getConfigDummyStream(), printStream)
182 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream)
H A DSourceTransformerTest.kt176 var code = StaticJavaParser.parse(TEST_CODE)
190 code = StaticJavaParser.parse(out)
232 code = StaticJavaParser.parse(out)
270 code = StaticJavaParser.parse(out)
307 code = StaticJavaParser.parse(out)
327 var code = StaticJavaParser.parse(TEST_CODE)
341 code = StaticJavaParser.parse(out)
379 code = StaticJavaParser.parse(out)
403 var code = StaticJavaParser.parse(TEST_CODE)
417 code = StaticJavaParser.parse(out)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
H A DCommandParserTest.kt46 parser.parse(listOf("-f"))
53 parser.parse(listOf())
60 parser.parse(listOf("-p", "123"))
67 parser.parse(listOf())
74 assertThrows(ArgParseError::class.java) { parser.parse(listOf("-p")) }
80 parser.parse(listOf("-p", "123"))
87 assertFalse(parser.parse(listOf()))
152 parser.parse(listOf("-f", "test", "--flag1"))
171 assertFalse(parser.parse(listOf("-f")))
180 parser.parse(
[all …]
/aosp14/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DCsvParserTest.java67 CsvParser.parse(is, collector); in testEmpty()
79 CsvParser.parse(is, collector); in testOnlyNewline()
91 CsvParser.parse(is, collector); in testTwoLines()
106 CsvParser.parse(is, collector); in testEscapedEmpty()
119 CsvParser.parse(is, collector); in testEscapedText()
132 CsvParser.parse(is, collector); in testEscapedQuotes()
145 CsvParser.parse(is, collector); in testEscapedCommas()
158 CsvParser.parse(is, collector); in testEscapedQuotesAndCommas()
171 CsvParser.parse(is, collector); in testNoNewline()
184 CsvParser.parse(is, collector); in testNoNewlineWithCommas()
[all …]
/aosp14/frameworks/base/tools/aapt/tests/
H A DResourceFilter_test.cpp32 ASSERT_EQ(NO_ERROR, filter.parse(String8(""))); in TEST()
47 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
57 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
68 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
80 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr_FR,sw360dp,normal,en_US"))); in TEST()
91 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
115 ASSERT_EQ(NO_ERROR, filter.parse(String8("sw600dp"))); in TEST()
128 ASSERT_EQ(NO_ERROR, filter.parse(String8("de-rDE"))); in TEST()
139 EXPECT_EQ(NO_ERROR, filter.parse(String8("de_DE"))); in TEST()
144 ASSERT_EQ(NO_ERROR, filter.parse(String8("normal-v4"))); in TEST()
[all …]
/aosp14/frameworks/base/telephony/common/com/android/internal/telephony/
H A DHbpcdLookup.java29 Uri.parse("content://" + AUTHORITY);
47 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_IDD);
60 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_LOOKUP_TABLE);
80 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_CONFLICT);
93 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_RANGE);
106 Uri.parse("content://" + AUTHORITY + "/" + PATH_ARBITRARY_MCC_SID_MATCH);
119 Uri.parse("content://" + AUTHORITY + "/" + PATH_NANP_AREA_CODE);
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPackageManagerServiceTest.java227 Timeouts empty = Timeouts.parse(""); in testTimeouts()
232 Timeouts partial0 = Timeouts.parse("10000::"); in testTimeouts()
237 Timeouts partial1 = Timeouts.parse("10000:10001:"); in testTimeouts()
247 Timeouts full = Timeouts.parse("10000:10001:10002"); in testTimeouts()
252 Timeouts invalid0 = Timeouts.parse(":10000"); in testTimeouts()
257 Timeouts invalid1 = Timeouts.parse(":10000::"); in testTimeouts()
267 Timeouts invalid3 = Timeouts.parse(":10000:"); in testTimeouts()
290 final VersionCodes defaults = VersionCodes.parse(""); in testVersionCodes()
302 VersionCodes upto = VersionCodes.parse("-191000070"); in testVersionCodes()
322 VersionCodes invalid2 = VersionCodes.parse("abcd"); in testVersionCodes()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DVerifierDeviceIdentityTest.java184 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_1_ENCODED); in testVerifierDeviceIdentity_Parse_Normal()
193 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_MAXVALUE_ENCODED); in testVerifierDeviceIdentity_Parse_MaxValue()
200 VerifierDeviceIdentity.parse("AAAA-AAAA-AAAA-"); in testVerifierDeviceIdentity_Parse_TooShort()
209 VerifierDeviceIdentity.parse("----------------"); in testVerifierDeviceIdentity_Parse_WayTooShort()
218 VerifierDeviceIdentity.parse("AAAA-AAAA-AAAA-AA"); in testVerifierDeviceIdentity_Parse_TooLong()
227 VerifierDeviceIdentity.parse(TEST_OVERFLOW_ENCODED); in testVerifierDeviceIdentity_Parse_Overflow()
237 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_1_ENCODED_LOWERCASE); in testVerifierDeviceIdentity_Parse_SquashToUppercase()
246 VerifierDeviceIdentity id1 = VerifierDeviceIdentity.parse(TEST_SUBSTITUTION_CORRECTED); in testVerifierDeviceIdentity_Parse_1I_And_0O_Substitution()
248 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_SUBSTITUTION_UNCORRECTED); in testVerifierDeviceIdentity_Parse_1I_And_0O_Substitution()
/aosp14/frameworks/base/core/java/android/provider/
H A DTelephony.java2159 private static final Uri THREAD_ID_CONTENT_URI = Uri.parse(
2396 CONTENT_URI = Uri.parse("content://mms/sent");
2752 public static final Uri CONTENT_DRAFT_URI = Uri.parse(
2760 public static final Uri CONTENT_LOCKED_URI = Uri.parse(
2767 public static final Uri SEARCH_URI = Uri.parse(
2953 public static final Uri SIM_APN_URI = Uri.parse(
2978 public static final Uri ENFORCE_MANAGED_URI = Uri.parse(
2986 public static final Uri PREFERRED_APN_URI = Uri.parse(
2994 public static final Uri PREFERRED_APN_SET_URI = Uri.parse(
3585 Uri.parse("content://cellbroadcast-legacy");
[all …]
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DBatteryStatsReader.java38 public static ActivityReport parse(InputStream stream) throws ParseException, IOException { in parse() method in BatteryStatsReader
40 return parser.parse(); in parse()
63 ActivityReport parse() throws ParseException, IOException { in parse() method in BatteryStatsReader.Parser
64 mBs = RawBatteryStats.parse(mStream); in parse()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DActionIntentCreatorTest.kt39 val uri = Uri.parse("content://fake")
64 val uri = Uri.parse("content://555@fake")
69 .hasData(Uri.parse("content://fake"))
74 val uri = Uri.parse("content://fake")
98 val uri = Uri.parse("content://fake")
122 val uri = Uri.parse("content://fake")
145 val uri = Uri.parse("content://555@fake")
151 assertThatIntent(output).hasData(Uri.parse("content://fake"))
156 val uri = Uri.parse("content://fake")
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPerPackageReadTimeouts.java62 static Timeouts parse(String timeouts) { in parse() method in PerPackageReadTimeouts.Timeouts
91 static VersionCodes parse(String codes) { in parse() method in PerPackageReadTimeouts.VersionCodes
135 static PerPackageReadTimeouts parse(String timeoutsStr, VersionCodes defaultVersionCodes, in parse() method in PerPackageReadTimeouts
145 timeouts = Timeouts.parse(splits[3]); in parse()
148 versionCodes = VersionCodes.parse(splits[2]); in parse()
174 final Timeouts defaultTimeouts = Timeouts.parse(defaultTimeoutsStr); in parseDigestersList()
179 PerPackageReadTimeouts timeouts = PerPackageReadTimeouts.parse(packages[i], in parseDigestersList()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
H A DSimpleDateFormatPerfTest.java55 sdf.parse("2000.01.01 PST"); in time_parseWithTimeZoneShort()
64 sdf.parse("2000.01.01 Pacific Standard Time"); in time_parseWithTimeZoneLong()
73 sdf.parse("2000.01.01"); in time_parseWithoutTimeZone()
82 sdf.parse("2000.01.01 PST"); in time_createAndParseWithTimeZoneShort()
91 sdf.parse("2000.01.01 Pacific Standard Time"); in time_createAndParseWithTimeZoneLong()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A DRuleBinaryParserTest.java173 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
221 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
451 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidAtomicFormula_noIndexing()
478 () -> binaryParser.parse(rule.array())); in testBinaryString_withEmptyRule_noIndexing()
514 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidCompoundFormula_invalidNumberOfFormulas_noIndexing()
542 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidRule_invalidOperator_noIndexing()
572 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidRule_invalidEffect_noIndexing()
602 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidRule_invalidConnector_noIndexing()
632 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidRule_invalidKey_noIndexing()
662 () -> binaryParser.parse(rule.array())); in testBinaryString_invalidRule_invalidSeparator_noIndexing()
[all …]

12345678910>>...17