/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentProviderTest.java | 63 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() 66 mCp.validateIncomingUri(Uri.parse("content://com.example/foo/bar"))); in testValidateIncomingUri_Normal() 67 assertEquals(Uri.parse("content://com.example/foo%2Fbar"), in testValidateIncomingUri_Normal() 68 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2Fbar"))); in testValidateIncomingUri_Normal() 69 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar"), in testValidateIncomingUri_Normal() 70 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2F%2Fbar"))); in testValidateIncomingUri_Normal() 75 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Shady() 76 mCp.validateIncomingUri(Uri.parse("content://com.example//"))); in testValidateIncomingUri_Shady() [all …]
|
D | ContentResolverTest.java | 115 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 …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | CutoutSpecificationTest.java | 140 assertThrows(NullPointerException.class, () -> mParser.parse(null)); in parse_nullString_shouldTriggerException() 145 CutoutSpecification cutoutSpecification = mParser.parse(""); in parse_emptyString_pathShouldBeNull() 151 CutoutSpecification cutoutSpecification = mParser.parse(WITHOUT_BIND_CUTOUT_SPECIFICATION); in parse_withoutBindMarker_shouldHaveNoLeftBound() 157 CutoutSpecification cutoutSpecification = mParser.parse(WITHOUT_BIND_CUTOUT_SPECIFICATION); in parse_withoutBindMarker_shouldHaveNoRightBound() 163 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveLeftBound() 169 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveTopBound() 175 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveRightBound() 181 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveBottomBound() 187 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldMatchExpectedSafeInset() 194 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveLeftBound() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 48 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling() 80 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri() 103 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri() 105 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri() 107 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri() 108 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 110 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri() 111 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri() 113 Uri.parse("foo:#bob%20lee").getEncodedFragment()); in testStringUri() 118 assertTrue(Uri.parse("bob").isHierarchical()); in testStringUriIsHierarchical() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | RecurrenceRuleTest.java | 60 setClock(Instant.parse("2015-11-20T10:15:30.00Z")); in testSimpleMonth() 62 ZonedDateTime.parse("2010-11-14T00:00:00.000Z"), in testSimpleMonth() 71 ZonedDateTime.parse("2015-11-14T00:00:00.00Z"), in testSimpleMonth() 72 ZonedDateTime.parse("2015-12-14T00:00:00.00Z")), it.next()); in testSimpleMonth() 75 ZonedDateTime.parse("2015-10-14T00:00:00.00Z"), in testSimpleMonth() 76 ZonedDateTime.parse("2015-11-14T00:00:00.00Z")), it.next()); in testSimpleMonth() 81 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testSimpleDays() 83 ZonedDateTime.parse("2010-11-14T00:11:00.000Z"), in testSimpleDays() 84 ZonedDateTime.parse("2010-11-20T00:11:00.000Z"), in testSimpleDays() 92 ZonedDateTime.parse("2010-11-17T00:11:00.00Z"), in testSimpleDays() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ConditionProvidersTest.java | 82 new Condition(Uri.parse("a"), "summary", STATE_TRUE), in notifyConditions_findCondition() 83 new Condition(Uri.parse("b"), "summary2", STATE_TRUE) in notifyConditions_findCondition() 88 assertThat(mProviders.findCondition(cn, Uri.parse("a"))).isEqualTo(conditions[0]); in notifyConditions_findCondition() 89 assertThat(mProviders.findCondition(cn, Uri.parse("b"))).isEqualTo(conditions[1]); in notifyConditions_findCondition() 90 assertThat(mProviders.findCondition(null, Uri.parse("a"))).isNull(); in notifyConditions_findCondition() 100 new Condition(Uri.parse("a"), "summary", STATE_TRUE), in notifyConditions_callbackOnConditionChanged() 101 new Condition(Uri.parse("b"), "summary2", STATE_TRUE), in notifyConditions_callbackOnConditionChanged() 102 new Condition(Uri.parse("c"), "summary3", STATE_TRUE) in notifyConditions_callbackOnConditionChanged() 107 verify(mCallback).onConditionChanged(eq(Uri.parse("a")), eq(conditionsToNotify[0])); in notifyConditions_callbackOnConditionChanged() 108 verify(mCallback).onConditionChanged(eq(Uri.parse("b")), eq(conditionsToNotify[1])); in notifyConditions_callbackOnConditionChanged() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | ObserverNodeTest.java | 70 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() 74 Uri.parse("content://c/a/a1/1/"), in testUri() 75 Uri.parse("content://c/a/a1/2/"), 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() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertXmlTest.java | 48 CertXml certXml = CertXml.parse(certXmlBytes); in parse_succeeds() 55 CertXml.parse(TestData.readTestFile("xml/valid-cert-file-no-intermediates.xml")); in parse_succeedsIfNoIntermediateCerts() 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() [all …]
|
D | SigXmlTest.java | 46 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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | NitzDataTest.java | 33 assertNull(NitzData.parse("00/06/20,00:00:00+0,0")); in testParse_invalidYear() 38 NitzData nitz = NitzData.parse("40/06/20,01:02:03+4,1"); in testParse_beyond2038() 50 assertNull(NitzData.parse("22/06/20,00:00:00")); in testParse_missingRequiredFields() 58 NitzData nitz = NitzData.parse("15/06/20,01:02:03-1,0"); in testParse_withDst() 65 NitzData nitz = NitzData.parse("15/06/20,01:02:03+8,1"); in testParse_withDst() 72 NitzData nitz = NitzData.parse("15/06/20,01:02:03-8,1"); in testParse_withDst() 83 NitzData nitz = NitzData.parse("15/06/20,01:02:03+4"); in testParse_noDstField() 90 NitzData nitz = NitzData.parse("15/06/20,01:02:03-4"); in testParse_noDstField() 100 NitzData nitz = NitzData.parse("15/06/20,01:02:03-32,1,America!Los_Angeles"); in testParse_androidEmulatorTimeZoneExtension() 109 assertNotNull(NitzData.parse("15/06/20,01:02:03-32").toString()); in testToString() [all …]
|
D | VisualVoicemailSmsParserTest.java | 28 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing() 44 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_TrailingSemiColon() 60 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_EmptyPrefix() 76 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_EmptyField() 83 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_NotVvm() 91 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_PrefixMismatch() 99 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MissingFirstColon() 107 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MissingSecondColon() 115 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MessageEndAfterClientPrefix() 123 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MessageEndAfterPrefix() [all …]
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | CodeUtilsTest.kt | 65 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_true() 74 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_notStatic() 83 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_differentClass() 92 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_notWildcard() 101 StaticJavaParser.parse(code), "org.example.Test")) in isClassImportedOrSamePackage_imported() 109 StaticJavaParser.parse(code), "org.example.test.Test")) in isClassImportedOrSamePackage_samePackage() 118 StaticJavaParser.parse(code), "org.example.Test2")) in isClassImportedOrSamePackage_false() 127 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_ab() 139 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_differentClass() 151 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_notStatic()
|
D | ProtoLogCallProcessorImplTest.kt | 73 visitor.process(StaticJavaParser.parse(code), processor, "") in process_samePackage() 100 visitor.process(StaticJavaParser.parse(code), processor, "") in process_imported() 119 visitor.process(StaticJavaParser.parse(code), processor, "") in process_importedStatic() 137 visitor.process(StaticJavaParser.parse(code), processor, "") in process_groupNotImported() 154 visitor.process(StaticJavaParser.parse(code), processor, "") in process_protoLogNotImported() 169 visitor.process(StaticJavaParser.parse(code), processor, "") in process_unknownGroup() 183 visitor.process(StaticJavaParser.parse(code), processor, "") in process_staticGroup() 197 visitor.process(StaticJavaParser.parse(code), processor, "") in process_badGroup() 211 visitor.process(StaticJavaParser.parse(code), processor, "") in process_invalidSignature() 227 visitor.process(StaticJavaParser.parse(code), processor, "") in process_disabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/ |
D | CommandParserTest.kt | 40 assertThrows(ArgParseError::class.java) { parser.parse(listOf("unknown-token")) } in unknownToken_throws() 46 parser.parse(listOf("-f")) in parseSingleFlag_present() 53 parser.parse(listOf()) in parseSingleFlag_notPresent() 60 parser.parse(listOf("-p", "123")) in parseSingleOptionalParam_present() 67 parser.parse(listOf()) in parseSingleOptionalParam_notPresent() 74 assertThrows(ArgParseError::class.java) { parser.parse(listOf("-p")) } in parseSingleOptionalParam_missingArg_throws() 80 parser.parse(listOf("-p", "123")) in parseSingleRequiredParam_present() 87 assertFalse(parser.parse(listOf())) in parseSingleRequiredParam_notPresent_failsValidation() 93 assertThrows(ArgParseError::class.java) { parser.parse(listOf("-p")) } in parseSingleRequiredParam_missingArg_throws() 152 parser.parse(listOf("-f", "test", "--flag1")) in parseCommandWithSubCommand_required_provided() [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | ResourceFilter_test.cpp | 32 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() 102 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr_FR,en_US,normal,large,xxhdpi,sw320dp"))); 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() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccPkcs15.java | 321 tlvRule.parse(data, false); in parseOdf() 325 tlvAsnPath.parse(ruleString, true); in parseOdf() 326 tlvPath.parse(tlvAsnPath.getValue(), true); in parseOdf() 345 acRules = dodfTag.parse(acRules, false); in parseDodf() 349 ruleString = commonObjectAttributes.parse(ruleString, false); in parseDodf() 353 ruleString = commonDataObjectAttributes.parse(ruleString, false); in parseDodf() 358 ruleString = subClassAttributes.parse(ruleString, false); in parseDodf() 363 oidDoTag.parse(ruleString, true); in parseDodf() 367 oidDo.parse(ruleString, true); in parseDodf() 371 oidTag.parse(ruleString, false); in parseDodf() [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | CsvParserTest.java | 67 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 …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | HbpcdLookup.java | 29 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);
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsSchedulerTest.java | 76 mClock.currentTime = Instant.parse("2023-01-02T03:04:05.00Z").toEpochMilli(); in setup() 126 .isEqualTo(Instant.parse("2023-01-02T04:00:00Z")); in storeAggregatePowerStats() 142 .isEqualTo(Instant.parse("2023-01-02T04:00:00Z")); in storeAggregatePowerStats() 144 .isEqualTo(Instant.parse("2023-01-02T04:30:00Z")); in storeAggregatePowerStats() 173 .isEqualTo(Instant.parse("2023-01-02T04:00:00Z")); in storeAggregatePowerStats() 190 Instant.parse("2007-12-03T10:13:30.00Z").toEpochMilli())).isEqualTo( in alignToWallClock() 191 123 + Duration.parse("PT1M30S").toMillis()); in alignToWallClock() 196 Instant.parse("2007-12-03T10:57:15.00Z").toEpochMilli())).isEqualTo( in alignToWallClock() 197 123 + Duration.parse("PT2M45S").toMillis()); in alignToWallClock() 202 Instant.parse("2007-12-03T10:14:45.00Z").toEpochMilli())).isEqualTo( in alignToWallClock() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | AutomaticZenRuleTest.java | 56 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_inConstructor() 92 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_inSetters() 98 Uri.parse("uri://short"), in testLongFields_inSetters() 123 Uri.parse("uri://placeholder"), in testLongInputsFromParcel() 128 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongInputsFromParcel() 175 () -> new AutomaticZenRule.Builder(null, Uri.parse("condition"))); in builderConstructor_nullInputs_throws() 184 Uri.parse("conditionId"), null, NotificationManager.INTERRUPTION_FILTER_PRIORITY, in constructor_defaultTypeUnknown() 194 Uri.parse("conditionId")).build(); in builder_defaultsAreSensible() 205 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")) in validate_builderWithValidType_succeeds() 214 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in validate_builderWithoutType_succeeds() [all …]
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | ConditionTest.java | 55 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_inConstructors_classic() 77 Condition cond = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testLongFields_viaParcel_classic() 82 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_viaParcel_classic() 118 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_inConstructors() 142 Condition cond = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testLongFields_viaParcel() 146 Uri longUri = Uri.parse("uri://" + Strings.repeat("A", 65530)); in testLongFields_viaParcel() 175 Condition cond1 = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testEquals() 177 Condition cond2 = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testEquals() 182 Condition cond3 = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testEquals() 191 Condition cond = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testParcelConstructor() [all …]
|
/frameworks/native/cmds/installd/ |
D | file_parsing.h | 29 bool ParseFile(std::istream& input_stream, Func parse) { in ParseFile() argument 45 if (!parse(line)) { in ParseFile() 54 bool ParseFile(const std::string& str_file, Func parse) { in ParseFile() argument 59 return ParseFile(ifs, parse); in ParseFile()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | VerifierDeviceIdentityTest.java | 184 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()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerServiceTest.java | 206 Timeouts defaults = Timeouts.parse("3600000001:3600000002:3600000003"); in testTimeouts() 211 Timeouts empty = Timeouts.parse(""); in testTimeouts() 216 Timeouts partial0 = Timeouts.parse("10000::"); in testTimeouts() 221 Timeouts partial1 = Timeouts.parse("10000:10001:"); in testTimeouts() 226 Timeouts fullDefault = Timeouts.parse("3600000000:3600000000:3600000000"); in testTimeouts() 231 Timeouts full = Timeouts.parse("10000:10001:10002"); in testTimeouts() 236 Timeouts invalid0 = Timeouts.parse(":10000"); in testTimeouts() 241 Timeouts invalid1 = Timeouts.parse(":10000::"); in testTimeouts() 246 Timeouts invalid2 = Timeouts.parse("10000:10001:abcd"); in testTimeouts() 251 Timeouts invalid3 = Timeouts.parse(":10000:"); in testTimeouts() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | TimeZoneLookupHelperTest.java | 91 NitzData lonSummerNitzDataWithOffset = NitzData.parse(lonSummerTimeString + ",4"); in testLookupByNitzByNitz() 98 NitzData lonWinterNitzDataWithOffset = NitzData.parse(lonWinterTimeString + ",0"); in testLookupByNitzByNitz() 105 NitzData lonSummerNitzDataWithoutOffset = NitzData.parse(lonSummerTimeString); in testLookupByNitzByNitz() 112 NitzData lonWinterNitzDataWithoutOffset = NitzData.parse(lonWinterTimeString); in testLookupByNitzByNitz() 132 NitzData mtvSummerNitzDataWithOffset = NitzData.parse(mtvSummerTimeString + ",4"); in testLookupByNitzByNitz() 139 NitzData mtvWinterNitzDataWithOffset = NitzData.parse(mtvWinterTimeString + ",0"); in testLookupByNitzByNitz() 146 NitzData mtvSummerNitzDataWithoutOffset = NitzData.parse(mtvSummerTimeString); in testLookupByNitzByNitz() 153 NitzData mtvWinterNitzDataWithoutOffset = NitzData.parse(mtvWinterTimeString); in testLookupByNitzByNitz() 170 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate() 180 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate() [all …]
|