/libcore/ojluni/src/test/java/util/UUID/ |
D | UUIDTest.java | 40 public static void main(String[] args) throws Exception { in main() 55 private static void containsTest() throws Exception { in containsTest() 59 throw new Exception("contains test did not work as expected"); in containsTest() 62 private static void randomUUIDTest() throws Exception { in randomUUIDTest() 67 throw new Exception("bad version"); in randomUUIDTest() 70 throw new Exception("bad variant"); in randomUUIDTest() 73 throw new Exception("random UUID collision very unlikely"); in randomUUIDTest() 78 private static void nameUUIDFromBytesTest() throws Exception { in nameUUIDFromBytesTest() 86 throw new Exception("bad version"); in nameUUIDFromBytesTest() 89 throw new Exception("bad variant"); in nameUUIDFromBytesTest() [all …]
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | DexClassLoaderTest.java | 45 protected void setUp() throws Exception { in setUp() 108 private String createLoaderAndGetResource(String resourceName, File... files) throws Exception { in createLoaderAndGetResource() 127 public void test_oneJar_init() throws Exception { in test_oneJar_init() 135 public void test_oneJar_simpleUse() throws Exception { in test_oneJar_simpleUse() 145 public void test_oneJar_constructor() throws Exception { in test_oneJar_constructor() 149 public void test_oneJar_callStaticMethod() throws Exception { in test_oneJar_callStaticMethod() 153 public void test_oneJar_getStaticVariable() throws Exception { in test_oneJar_getStaticVariable() 157 public void test_oneJar_callInstanceMethod() throws Exception { in test_oneJar_callInstanceMethod() 161 public void test_oneJar_getInstanceVariable() throws Exception { in test_oneJar_getInstanceVariable() 167 public void test_oneDex_init() throws Exception { in test_oneDex_init() [all …]
|
D | InMemoryDexClassLoaderTest.java | 45 protected void setUp() throws Exception { in setUp() 255 public void test_oneDexDirect_simpleUse() throws Exception { in test_oneDexDirect_simpleUse() 260 public void test_oneDexDirect_constructor() throws Exception { in test_oneDexDirect_constructor() 264 public void test_oneDexDirect_callStaticMethod() throws Exception { in test_oneDexDirect_callStaticMethod() 268 public void test_oneDexDirect_getStaticVariable() throws Exception { in test_oneDexDirect_getStaticVariable() 272 public void test_oneDexDirect_callInstanceMethod() throws Exception { in test_oneDexDirect_callInstanceMethod() 276 public void test_oneDexDirect_getInstanceVariable() throws Exception { in test_oneDexDirect_getInstanceVariable() 282 public void test_oneDexIndirect_simpleUse() throws Exception { in test_oneDexIndirect_simpleUse() 287 public void test_oneDexIndirect_constructor() throws Exception { in test_oneDexIndirect_constructor() 291 public void test_oneDexIndirect_callStaticMethod() throws Exception { in test_oneDexIndirect_callStaticMethod() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SerializationBenchmark.java | 28 private static byte[] bytes(Object o) throws Exception { in bytes() 36 public void timeReadIntArray(int reps) throws Exception { in timeReadIntArray() 41 public void timeWriteIntArray(int reps) throws Exception { in timeWriteIntArray() 45 public void timeReadArrayListInteger(int reps) throws Exception { in timeReadArrayListInteger() 53 public void timeWriteArrayListInteger(int reps) throws Exception { in timeWriteArrayListInteger() 61 public void timeReadString(int reps) throws Exception { in timeReadString() 65 public void timeReadObjectStreamClass(int reps) throws Exception { in timeReadObjectStreamClass() 72 public void timeWriteString(int reps) throws Exception { in timeWriteString() 77 public void timeWriteObjectStreamClass(int reps) throws Exception { in timeWriteObjectStreamClass() 85 public void timeWriteNoObjects(int reps) throws Exception { in timeWriteNoObjects() [all …]
|
D | ReflectionBenchmark.java | 24 public void timeObject_getClass(int reps) throws Exception { in timeObject_getClass() 31 public void timeClass_getField(int reps) throws Exception { in timeClass_getField() 38 public void timeClass_getDeclaredField(int reps) throws Exception { in timeClass_getDeclaredField() 45 public void timeClass_getConstructor(int reps) throws Exception { in timeClass_getConstructor() 52 public void timeClass_newInstance(int reps) throws Exception { in timeClass_newInstance() 60 public void timeClass_getMethod(int reps) throws Exception { in timeClass_getMethod() 67 public void timeClass_getDeclaredMethod(int reps) throws Exception { in timeClass_getDeclaredMethod() 74 public void timeField_setInt(int reps) throws Exception { in timeField_setInt() 83 public void timeField_getInt(int reps) throws Exception { in timeField_getInt() 92 public void timeMethod_invokeV(int reps) throws Exception { in timeMethod_invokeV() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntrinsicTest.java | 25 public void testString_charAt() throws Exception { in testString_charAt() 30 public void testString_compareTo() throws Exception { in testString_compareTo() 35 public void testString_equals() throws Exception { in testString_equals() 40 public void testString_fastIndexOf_II() throws Exception { in testString_fastIndexOf_II() 45 public void testString_isEmpty() throws Exception { in testString_isEmpty() 50 public void testString_length() throws Exception { in testString_length() 55 public void testMath_abs() throws Exception { in testMath_abs() 66 public void testStrictMath_abs() throws Exception { in testStrictMath_abs() 77 public void testStrictMath_min() throws Exception { in testStrictMath_min() 82 public void testStrictMath_max() throws Exception { in testStrictMath_max() [all …]
|
/libcore/ojluni/src/test/java/util/LinkedHashSet/ |
D | Basic.java | 44 public static void main(String[] args) throws Exception { in main() 62 throw new Exception("Set algebra identity 2 failed"); in main() 64 throw new Exception("Set algebra identity 3 failed"); in main() 66 throw new Exception("Set algebra identity 4 failed"); in main() 68 throw new Exception("Set algebra identity 5 failed"); in main() 70 throw new Exception("Set algebra identity 6 failed"); in main() 72 throw new Exception("Set algebra identity 7 failed"); in main() 76 throw new Exception("Set algebra identity 1 failed"); in main() 79 throw new Exception("Incorrect hashCode computation."); in main() 84 throw new Exception("Couldn't remove element from copy."); in main() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | UrlEncodingTest.java | 30 public void testUriRetainsOriginalEncoding() throws Exception { in testUriRetainsOriginalEncoding() 37 public void testDecodingPlus() throws Exception { in testDecodingPlus() 43 public void testEncodingPlus() throws Exception { in testEncodingPlus() 49 public void testDecodingSpace() throws Exception { in testDecodingSpace() 59 public void testEncodingSpace() throws Exception { in testEncodingSpace() 65 public void testUriDecodingPartial() throws Exception { in testUriDecodingPartial() 78 public void testUrlDecoderDecodingPartial() throws Exception { in testUrlDecoderDecodingPartial() 107 public void testUrlDecoderFailsOnNullCharset() throws Exception { in testUrlDecoderFailsOnNullCharset() 125 public void testUrlEncoderFailsOnNullCharset() throws Exception { in testUrlEncoderFailsOnNullCharset() 147 public void testUrlDecoderIgnoresUnnecessaryCharset() throws Exception { in testUrlDecoderIgnoresUnnecessaryCharset() [all …]
|
D | URITest.java | 26 public void testUriParts() throws Exception { in testUriParts() 47 public void testEqualsCaseMapping() throws Exception { in testEqualsCaseMapping() 60 public void testEqualsEscaping() throws Exception { in testEqualsEscaping() 78 public void testFileEqualsWithEmptyHost() throws Exception { in testFileEqualsWithEmptyHost() 83 public void testUriSerialization() throws Exception { in testUriSerialization() 91 public void testEmptyHost() throws Exception { in testEmptyHost() 97 public void testNoHost() throws Exception { in testNoHost() 103 public void testNoPath() throws Exception { in testNoPath() 109 public void testEmptyHostAndNoPath() throws Exception { in testEmptyHostAndNoPath() 118 public void testSingleLetterHost() throws Exception { in testSingleLetterHost() [all …]
|
D | URLTest.java | 44 public void testUrlParts() throws Exception { in testUrlParts() 58 public void testExplicitPort() throws Exception { in testExplicitPort() 69 public void testEqualsDoesNotDoHostnameResolution() throws Exception { in testEqualsDoesNotDoHostnameResolution() 82 public void testEqualsCaseMapping() throws Exception { in testEqualsCaseMapping() 95 public void testFileEqualsWithEmptyHost() throws Exception { in testFileEqualsWithEmptyHost() 99 public void testHttpEqualsWithEmptyHost() throws Exception { in testHttpEqualsWithEmptyHost() 104 public void testFileEquals() throws Exception { in testFileEquals() 109 public void testJarEquals() throws Exception { in testJarEquals() 115 public void testUrlSerialization() throws Exception { in testUrlSerialization() 130 throws Exception { in testUrlSerializationRoundTrip_customHandler_nullAuthorityReconstructed() [all …]
|
D | InetAddressTest.java | 110 private static Inet6Address loopback6() throws Exception { in loopback6() 114 private static Inet6Address localhost6() throws Exception { in localhost6() 140 public void test_parseNumericAddress(String address, String expectedString) throws Exception { in test_parseNumericAddress() 145 public void test_parseNumericAddress_notNumeric() throws Exception { in test_parseNumericAddress_notNumeric() 159 public void test_parseNumericAddress_invalid(String invalid) throws Exception { in test_parseNumericAddress_invalid() 191 public void test_isNumeric(String valid) throws Exception { in test_isNumeric() 196 public void test_isNumeric_notNumeric_null() throws Exception { in test_isNumeric_notNumeric_null() 205 public void test_isNumeric_notNumeric_empty() throws Exception { in test_isNumeric_notNumeric_empty() 210 public void test_isNumeric_notNumeric() throws Exception { in test_isNumeric_notNumeric() 222 public void test_isLinkLocalAddress() throws Exception { in test_isLinkLocalAddress() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | PullParserTest.java | 27 public void testAttributeNoValueWithRelaxed() throws Exception { in testAttributeNoValueWithRelaxed() 37 public void testAttributeUnquotedValueWithRelaxed() throws Exception { in testAttributeUnquotedValueWithRelaxed() 47 public void testUnterminatedEntityWithRelaxed() throws Exception { in testUnterminatedEntityWithRelaxed() 59 public void testEntitiesAndNamespaces() throws Exception { in testEntitiesAndNamespaces() 67 public void testEntitiesAndNamespacesWithRelaxed() throws Exception { in testEntitiesAndNamespacesWithRelaxed() 76 private void testNamespace(XmlPullParser parser) throws Exception { in testNamespace() 91 public void testRegularNumericEntities() throws Exception { in testRegularNumericEntities() 100 public void testNumericEntitiesLargerThanChar() throws Exception { in testNumericEntitiesLargerThanChar() 104 public void testNumericEntitiesLargerThanInt() throws Exception { in testNumericEntitiesLargerThanInt() 108 public void testCharacterReferenceOfHexUtf16Surrogates() throws Exception { in testCharacterReferenceOfHexUtf16Surrogates() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 118 public void test_toFormatter_empty() throws Exception { in test_toFormatter_empty() 125 public void test_parseCaseSensitive() throws Exception { in test_parseCaseSensitive() 132 public void test_parseCaseInsensitive() throws Exception { in test_parseCaseInsensitive() 140 public void test_parseStrict() throws Exception { in test_parseStrict() 147 public void test_parseLenient() throws Exception { in test_parseLenient() 155 public void test_appendValue_1arg() throws Exception { in test_appendValue_1arg() 162 public void test_appendValue_1arg_null() throws Exception { in test_appendValue_1arg_null() 168 public void test_appendValue_2arg() throws Exception { in test_appendValue_2arg() 175 public void test_appendValue_2arg_null() throws Exception { in test_appendValue_2arg_null() 180 public void test_appendValue_2arg_widthTooSmall() throws Exception { in test_appendValue_2arg_widthTooSmall() [all …]
|
D | TestSettingsParser.java | 75 public void test_print_sensitive() throws Exception { in test_print_sensitive() 81 public void test_print_strict() throws Exception { in test_print_strict() 95 public void test_parse_changeStyle_sensitive() throws Exception { in test_parse_changeStyle_sensitive() 102 public void test_parse_changeStyle_insensitive() throws Exception { in test_parse_changeStyle_insensitive() 109 public void test_parse_changeStyle_strict() throws Exception { in test_parse_changeStyle_strict() 116 public void test_parse_changeStyle_lenient() throws Exception { in test_parse_changeStyle_lenient() 124 public void test_toString_sensitive() throws Exception { in test_toString_sensitive() 129 public void test_toString_insensitive() throws Exception { in test_toString_insensitive() 134 public void test_toString_strict() throws Exception { in test_toString_strict() 139 public void test_toString_lenient() throws Exception { in test_toString_lenient()
|
D | TestPadPrinterDecorator.java | 76 public void test_print_emptyCalendrical() throws Exception { in test_print_emptyCalendrical() 82 public void test_print_fullDateTime() throws Exception { in test_print_fullDateTime() 88 public void test_print_append() throws Exception { in test_print_append() 96 public void test_print_noPadRequiredSingle() throws Exception { in test_print_noPadRequiredSingle() 102 public void test_print_padRequiredSingle() throws Exception { in test_print_padRequiredSingle() 108 public void test_print_noPadRequiredMultiple() throws Exception { in test_print_noPadRequiredMultiple() 114 public void test_print_padRequiredMultiple() throws Exception { in test_print_padRequiredMultiple() 121 public void test_print_overPad() throws Exception { in test_print_overPad() 127 public void test_toString1() throws Exception { in test_toString1() 132 public void test_toString2() throws Exception { in test_toString2()
|
/libcore/ojluni/src/test/java/nio/charset/Charset/ |
D | EmptyCharsetName.java | 40 public abstract void go() throws Exception; in go() 42 Test() throws Exception { in Test() 45 } catch (Exception x) { in Test() 50 throw new Exception("Incorrect exception: " in Test() 54 throw new Exception("No exception thrown"); in Test() 59 public static void main(String[] args) throws Exception { in main() 62 public void go() throws Exception { in main() 66 public void go() throws Exception { in main() 70 public void go() throws Exception { in main()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | NullCipherTest.java | 43 protected void setUp() throws Exception { in setUp() 75 public void testInitintKey() throws Exception { in testInitintKey() 83 public void testInitintKeySecureRandom() throws Exception { in testInitintKeySecureRandom() 91 public void testInitintKeyAlgorithmParameterSpec() throws Exception { in testInitintKeyAlgorithmParameterSpec() 100 public void testUpdatebyteArray() throws Exception { in testUpdatebyteArray() 110 public void testUpdatebyteArrayintint() throws Exception { in testUpdatebyteArrayintint() 126 public void testUpdatebyteArrayintintbyteArray() throws Exception { in testUpdatebyteArrayintintbyteArray() 136 public void testUpdatebyteArrayintintbyteArrayint() throws Exception { in testUpdatebyteArrayintintbyteArrayint() 146 public void testDoFinal() throws Exception { in testDoFinal() 153 public void testDoFinalbyteArrayint() throws Exception { in testDoFinalbyteArrayint() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | InterruptedStreamTest.java | 49 @Override protected void setUp() throws Exception { in setUp() 56 @Override protected void tearDown() throws Exception { in tearDown() 65 public void testInterruptPipedInputStream() throws Exception { in testInterruptPipedInputStream() 71 public void testInterruptPipedOutputStream() throws Exception { in testInterruptPipedOutputStream() 77 public void testInterruptPipedReader() throws Exception { in testInterruptPipedReader() 83 public void testInterruptPipedWriter() throws Exception { in testInterruptPipedWriter() 89 public void testInterruptReadablePipeChannel() throws Exception { in testInterruptReadablePipeChannel() 93 public void testInterruptWritablePipeChannel() throws Exception { in testInterruptWritablePipeChannel() 97 public void testInterruptReadableSocketChannel() throws Exception { in testInterruptReadableSocketChannel() 102 public void testInterruptWritableSocketChannel() throws Exception { in testInterruptWritableSocketChannel() [all …]
|
D | DataOutputStreamTest.java | 31 public void test_writeBoolean() throws Exception { in test_writeBoolean() 37 public void test_writeByte() throws Exception { in test_writeByte() 47 public void test_writeBytes() throws Exception { in test_writeBytes() 53 public void test_writeChar() throws Exception { in test_writeChar() 60 public void test_writeChars() throws Exception { in test_writeChars() 66 public void test_writeDouble() throws Exception { in test_writeDouble() 71 public void test_writeFloat() throws Exception { in test_writeFloat() 76 public void test_writeInt() throws Exception { in test_writeInt() 81 public void test_writeLong() throws Exception { in test_writeLong() 86 public void test_writeShort() throws Exception { in test_writeShort() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CyclicBarrierTest.java | 101 public void testSingleParty() throws Exception { in testSingleParty() 113 public void testBarrierAction() throws Exception { in testBarrierAction() 129 public void testTwoParties() throws Exception { in testTwoParties() 132 public void realRun() throws Exception { in testTwoParties() 154 public void realRun() throws Exception { in testAwait1_Interrupted_BrokenBarrier() 159 public void realRun() throws Exception { in testAwait1_Interrupted_BrokenBarrier() 176 public void testAwait2_Interrupted_BrokenBarrier() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 180 public void realRun() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 185 public void realRun() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 204 public void realRun() throws Exception { in testAwait3_TimeoutException() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CyclicBarrierTest.java | 82 public void testSingleParty() throws Exception { in testSingleParty() 94 public void testBarrierAction() throws Exception { in testBarrierAction() 108 public void testTwoParties() throws Exception { in testTwoParties() 111 public void realRun() throws Exception { in testTwoParties() 133 public void realRun() throws Exception { in testAwait1_Interrupted_BrokenBarrier() 138 public void realRun() throws Exception { in testAwait1_Interrupted_BrokenBarrier() 155 public void testAwait2_Interrupted_BrokenBarrier() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 159 public void realRun() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 164 public void realRun() throws Exception { in testAwait2_Interrupted_BrokenBarrier() 183 public void realRun() throws Exception { in testAwait3_TimeoutException() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 45 private void init(boolean withSource) throws Exception { in init() 63 public void test_isValid_OnChannelCloseWithJoinWithoutSource() throws Exception { in test_isValid_OnChannelCloseWithJoinWithoutSource() 68 public void test_isValid_OnChannelCloseWithJoinWithSource() throws Exception { in test_isValid_OnChannelCloseWithJoinWithSource() 79 public void test_isValid_OnDropJoinWithoutSource() throws Exception { in test_isValid_OnDropJoinWithoutSource() 84 public void test_isValid_OnDropJoinWithSource() throws Exception { in test_isValid_OnDropJoinWithSource() 95 public void test_dropWithJoinWithoutSource() throws Exception { in test_dropWithJoinWithoutSource() 100 public void test_dropWithJoinWithSource() throws Exception { in test_dropWithJoinWithSource() 120 public void test_networkInterface() throws Exception { in test_networkInterface() 127 public void test_sourceAddressWithJoinWithSource() throws Exception { in test_sourceAddressWithJoinWithSource() 132 public void test_sourceAddressWithJoinWithoutSource() throws Exception { in test_sourceAddressWithJoinWithoutSource() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | GCMParameterSpecTest.java | 28 public void testConstructor_IntByteArray_Success() throws Exception { in testConstructor_IntByteArray_Success() 32 public void testConstructor_IntByteArray_NegativeTLen_Failure() throws Exception { in testConstructor_IntByteArray_NegativeTLen_Failure() 40 public void testConstructor_IntByteArray_NullIv_Failure() throws Exception { in testConstructor_IntByteArray_NullIv_Failure() 48 public void testConstructor_IntByteArrayWithOffsets_Success() throws Exception { in testConstructor_IntByteArrayWithOffsets_Success() 52 public void testConstructor_IntByteArrayWithOffsets_NullIv_Failure() throws Exception { in testConstructor_IntByteArrayWithOffsets_NullIv_Failure() 60 public void testConstructor_IntByteArrayWithOffsets_NegativeOffset_Failure() throws Exception { in testConstructor_IntByteArrayWithOffsets_NegativeOffset_Failure() 68 public void testConstructor_IntByteArrayWithOffsets_TooLongLength_Failure() throws Exception { in testConstructor_IntByteArrayWithOffsets_TooLongLength_Failure() 76 public void testGetIV_Success() throws Exception { in testGetIV_Success() 92 public void testGetIV_Subarray_Success() throws Exception { in testGetIV_Subarray_Success() 98 public void testGetTLen_Success() throws Exception { in testGetTLen_Success()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | WrappedNull.java | 45 public static void main(String[] args) throws Exception { in main() 54 throw new Exception("Arrays.asList"); in main() 64 throw new Exception("unmodifiableCollection"); in main() 74 throw new Exception("unmodifiableSet"); in main() 84 throw new Exception("unmodifiableList"); in main() 94 throw new Exception("unmodifiableMap"); in main() 104 throw new Exception("unmodifiableSortedSet"); in main() 114 throw new Exception("unmodifiableSortedMap"); in main() 124 throw new Exception("synchronizedCollection"); in main() 134 throw new Exception("synchronizedSet"); in main() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 54 } catch (Exception e) { in test_X500Principal_01() 62 } catch (Exception e) { in test_X500Principal_01() 70 } catch (Exception e) { in test_X500Principal_01() 89 } catch (Exception e) { in test_X500Principal_02() 97 } catch (Exception e) { in test_X500Principal_02() 106 } catch (Exception e) { in test_X500Principal_02() 124 } catch (Exception e) { in test_X500Principal_03() 132 } catch (Exception e) { in test_X500Principal_03() 141 } catch (Exception e) { in test_X500Principal_03() 155 } catch (Exception e) { in test_getName() [all …]
|