Home
last modified time | relevance | path

Searched refs:testParse (Results 1 – 8 of 8) sorted by relevance

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
H A DBipPixelTest.java77 testParse("0*0", BipPixel.TYPE_FIXED, 0, 0, 0, 0, "0*0"); in testParseFixed()
78 testParse("200*200", BipPixel.TYPE_FIXED, 200, 200, 200, 200, "200*200"); in testParseFixed()
79 testParse("12*67", BipPixel.TYPE_FIXED, 12, 67, 12, 67, "12*67"); in testParseFixed()
143 testParse(null, BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseNull_throwsException()
148 testParse("", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseEmpty_throwsException()
153 testParse("\n\t ", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseWhitespace_throwsException()
163 testParse("123*****456", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseTooManyAsterisks_throwsException()
168 testParse("!@#*342", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseWithSymbols_throwsException()
178 testParse("123456*123", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseWidthTooLargeFixed_throwsException()
183 testParse("123*123456", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseHeightTooLargeFixed_throwsException()
[all …]
H A DBipDatetimeTest.java115 testParse(null, null, false, null); in testParseNullString_throwsException()
120 testParse("", null, false, null); in testParseEmptyString_throwsException()
125 testParse("200011T61515", null, false, null); in testParseTooFewCharacters_throwsException()
130 testParse("00000101T000000", null, false, null); in testParseBadYear_throwsException()
135 testParse("20000001T000000", null, false, null); in testParseBadMonth_throwsException()
140 testParse("20000100T000000", null, false, null); in testParseDayTooSmall_throwsException()
145 testParse("20000132T000000", null, false, null); in testParseDayTooLarge_throwsException()
150 testParse("20000132T250000", null, false, null); in testParseBadHours_throwsException()
155 testParse("20000132T006100", null, false, null); in testParseBadMinutes_throwsException()
160 testParse("20000132T000061", null, false, null); in testParseBadSeconds_throwsException()
[all …]
H A DBipAttachmentFormatTest.java49 private void testParse(String contentType, String charset, String name, String size, in testParse() method in BipAttachmentFormatTest
107 testParse("text/plain", "ISO-8859-1", "thisisatextfile.txt", "2048", "19900101T123456", in testParseAttachment()
111 testParse("text/plain", "ISO-8859-1", "thisisatextfile.txt", "2048", "19900101T123456Z", in testParseAttachment()
115 testParse("audio/basic", "ISO-8859-1", "thisisawavfile.wav", "1024", "19900101T123456", in testParseAttachment()
119 testParse("text/plain", "ISO-8859-1", "thisisatextfile.txt", "2048", "19900101T123456", in testParseAttachment()
123 testParse("text/plain", "ISO-8859-1", "thisisatextfile.txt", "2048", null, in testParseAttachment()
131 testParse("text/plain", "ISO-8859-1", "thisisatextfile.txt", null, null, null, null, false, in testParseAttachment()
135 testParse("text/plain", null, "thisisatextfile.txt", "2048", null, null, null, false, null, in testParseAttachment()
139 testParse("text/plain", null, "thisisatextfile.txt", null, null, null, null, false, null, in testParseAttachment()
145 testParse(null, "ISO-8859-1", "thisisatextfile.txt", null, null, null, null, false, null, in testParseNullContentType()
[all …]
H A DBipEncodingTest.java31 private void testParse(String input, int encodingType, String encodingStr, String propId, in testParse() method in BipEncodingTest
43 testParse(input, encodingType, encodingStr, propId, isAndroidSupported); in testParseMany()
124 testParse("JIF", BipEncoding.UNKNOWN, "UNKNOWN", null, false); in testParseInvalidName_throwsException()
129 testParse("USR", BipEncoding.UNKNOWN, "UNKNOWN", null, false); in testParseInvalidUsrEncoding_throwsException()
134 testParse(null, BipEncoding.UNKNOWN, "UNKNOWN", null, false); in testParseNullString()
139 testParse("", BipEncoding.UNKNOWN, "UNKNOWN", null, false); in testParseEmptyString()
/aosp12/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java42 public void testParse() throws Exception { in testParse() method in DurationTest
H A DTimeTest.java164 public void testParse() { in testParse() method in TimeTest
/aosp12/system/libvintf/test/
H A DLibVintfTest.cpp529 auto testParse = [] (const KernelConfigTypedValue &original, in TEST_F() local
562 testParse(KernelConfigTypedValue(INT64_MIN), in TEST_F()
564 testParse(KernelConfigTypedValue(INT64_MIN), in TEST_F()
567 testParse(KernelConfigTypedValue(INT64_MIN + 1), in TEST_F()
570 testParse(KernelConfigTypedValue(-0x50), in TEST_F()
577 testParse(KernelConfigTypedValue(1), in TEST_F()
579 testParse(KernelConfigTypedValue(1), in TEST_F()
584 testParse(KernelConfigTypedValue(INT64_MAX), in TEST_F()
587 testParse(KernelConfigTypedValue(INT64_MAX), in TEST_F()
590 testParse(KernelConfigTypedValue(-1), in TEST_F()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/res/
H A DFontResourcesParserTest.java62 public void testParse() throws XmlPullParserException, IOException { in testParse() method in FontResourcesParserTest