/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/util/ |
D | RecurrenceRuleTest.java | 52 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() 64 ZonedDateTime.parse("2015-12-14T00:00:00.00Z")), it.next()); in testSimpleMonth() 67 ZonedDateTime.parse("2015-10-14T00:00:00.00Z"), in testSimpleMonth() 68 ZonedDateTime.parse("2015-11-14T00:00:00.00Z")), it.next()); 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() [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 | 49 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling() 81 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri() 94 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri() 96 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri() 98 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri() 99 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 101 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri() 102 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri() 104 Uri.parse("foo:#bob%20lee").getEncodedFragment()); in testStringUri() 109 assertTrue(Uri.parse("bob").isHierarchical()); in testStringUriIsHierarchical() [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/uiservicestests/src/com/android/server/notification/ |
D | ConditionProvidersTest.java | 65 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() 71 assertThat(mProviders.findCondition(cn, Uri.parse("a"))).isEqualTo(conditions[0]); in notifyConditions_findCondition() 72 assertThat(mProviders.findCondition(cn, Uri.parse("b"))).isEqualTo(conditions[1]); 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() 90 verify(mCallback).onConditionChanged(eq(Uri.parse("a")), eq(conditionsToNotify[0])); in notifyConditions_callbackOnConditionChanged() 91 verify(mCallback).onConditionChanged(eq(Uri.parse("b")), eq(conditionsToNotify[1])); in notifyConditions_callbackOnConditionChanged() [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 | ProtoLogCallProcessorTest.kt | 69 visitor.process(StaticJavaParser.parse(code), processor, "") in process_samePackage() 96 visitor.process(StaticJavaParser.parse(code), processor, "") in process_imported() 115 visitor.process(StaticJavaParser.parse(code), processor, "") in process_importedStatic() 133 visitor.process(StaticJavaParser.parse(code), processor, "") in process_groupNotImported() 150 visitor.process(StaticJavaParser.parse(code), processor, "") in process_protoLogNotImported() 165 visitor.process(StaticJavaParser.parse(code), processor, "") in process_unknownGroup() 179 visitor.process(StaticJavaParser.parse(code), processor, "") in process_staticGroup() 193 visitor.process(StaticJavaParser.parse(code), processor, "") in process_badGroup() 207 visitor.process(StaticJavaParser.parse(code), processor, "") in process_invalidSignature() 223 visitor.process(StaticJavaParser.parse(code), processor, "") in process_disabled()
|
D | CodeUtilsTest.kt | 64 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_true() 73 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_notStatic() 82 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_differentClass() 91 StaticJavaParser.parse(code), "org.example.Test", "") in checkWildcardStaticImported_notWildcard() 100 StaticJavaParser.parse(code), "org.example.Test")) in isClassImportedOrSamePackage_imported() 108 StaticJavaParser.parse(code), "org.example.test.Test")) in isClassImportedOrSamePackage_samePackage() 117 StaticJavaParser.parse(code), "org.example.Test2")) in isClassImportedOrSamePackage_false() 126 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_ab() 138 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_differentClass() 150 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code), in staticallyImportedMethods_notStatic()
|
/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/libs/net/common/device/com/android/net/module/util/netlink/ |
D | NetlinkMessage.java | 47 public static NetlinkMessage parse(@NonNull ByteBuffer byteBuffer, int nlFamily) { in parse() method in NetlinkMessage 49 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() 116 return (NetlinkMessage) NetlinkErrorMessage.parse(nlmsghdr, byteBuffer); in parseCtlMessage() 132 return (NetlinkMessage) RtNetlinkLinkMessage.parse(nlmsghdr, byteBuffer); in parseRtMessage() 135 return (NetlinkMessage) RtNetlinkAddressMessage.parse(nlmsghdr, byteBuffer); in parseRtMessage() 138 return (NetlinkMessage) RtNetlinkRouteMessage.parse(nlmsghdr, byteBuffer); in parseRtMessage() 142 return (NetlinkMessage) RtNetlinkNeighborMessage.parse(nlmsghdr, byteBuffer); in parseRtMessage() 144 return (NetlinkMessage) NduseroptMessage.parse(nlmsghdr, byteBuffer); in parseRtMessage() 154 return (NetlinkMessage) InetDiagMessage.parse(nlmsghdr, byteBuffer); in parseInetDiagMessage() 167 return (NetlinkMessage) ConntrackMessage.parse(nlmsghdr, byteBuffer); in parseNfMessage()
|
/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/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | Ipv6UtilsTest.java | 59 EthernetHeader eth = Struct.parse(EthernetHeader.class, b); in testBuildRsPacket() 63 Ipv6Header ipv6 = Struct.parse(Ipv6Header.class, b); in testBuildRsPacket() 69 Icmpv6Header icmpv6 = Struct.parse(Icmpv6Header.class, b); in testBuildRsPacket() 88 EthernetHeader eth = Struct.parse(EthernetHeader.class, b); in testBuildRaPacket() 92 Ipv6Header ipv6 = Struct.parse(Ipv6Header.class, b); in testBuildRaPacket() 98 Icmpv6Header icmpv6 = Struct.parse(Icmpv6Header.class, b); in testBuildRaPacket() 102 RaHeader ra = Struct.parse(RaHeader.class, b); in testBuildRaPacket() 109 PrefixInformationOption pio = Struct.parse(PrefixInformationOption.class, b); in testBuildRaPacket() 111 pio = Struct.parse(PrefixInformationOption.class, b); in testBuildRaPacket() 119 EthernetHeader eth = Struct.parse(EthernetHeader.class, b); in testBuildEchoRequestPacket() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/ |
D | StructNdOptPref64Test.java | 91 StructNdOptPref64 opt = StructNdOptPref64.parse(ByteBuffer.wrap(rawBytes)); in testParseCannedOption() 99 opt = StructNdOptPref64.parse(ByteBuffer.wrap(rawBytes)); in testParseCannedOption() 108 StructNdOptPref64 opt = StructNdOptPref64.parse(buf); in testParsing() 113 opt = StructNdOptPref64.parse(buf); in testParsing() 118 opt = StructNdOptPref64.parse(buf); in testParsing() 124 opt = StructNdOptPref64.parse(buf); in testParsing() 130 opt = StructNdOptPref64.parse(buf); in testParsing() 135 assertNull(StructNdOptPref64.parse(buf)); in testParsing() 137 assertNull(StructNdOptPref64.parse(buf)); in testParsing() 146 StructNdOptPref64.parse(buf)); in testParsing() [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(std::string_view 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 | 222 Timeouts defaults = Timeouts.parse("3600000001:3600000002:3600000003"); in testTimeouts() 227 Timeouts empty = Timeouts.parse(""); in testTimeouts() 232 Timeouts partial0 = Timeouts.parse("10000::"); in testTimeouts() 237 Timeouts partial1 = Timeouts.parse("10000:10001:"); in testTimeouts() 242 Timeouts fullDefault = Timeouts.parse("3600000000:3600000000:3600000000"); 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() 262 Timeouts invalid2 = Timeouts.parse("10000:10001:abcd"); in testTimeouts() 267 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 …]
|