Searched refs:ds (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/libcore/java/net/ |
D | DatagramSocketTest.java | 27 DatagramSocket ds = new DatagramSocket(); in testInitialState() local 29 assertTrue(ds.isBound()); in testInitialState() 30 assertTrue(ds.getBroadcast()); // The RI starts DatagramSocket in broadcast mode. in testInitialState() 31 assertFalse(ds.isClosed()); in testInitialState() 32 assertFalse(ds.isConnected()); in testInitialState() 33 assertTrue(ds.getLocalPort() > 0); in testInitialState() 34 assertTrue(ds.getLocalAddress().isAnyLocalAddress()); in testInitialState() 35 InetSocketAddress socketAddress = (InetSocketAddress) ds.getLocalSocketAddress(); in testInitialState() 36 assertEquals(ds.getLocalPort(), socketAddress.getPort()); in testInitialState() 37 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketTest.java | 98 DatagramSocket ds = new DatagramSocket(0); in test_ConstructorI() local 99 ds.close(); in test_ConstructorI() 106 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); in test_ConstructorILjava_net_InetAddress() local 107 assertTrue("Created socket with incorrect port", ds.getLocalPort() != 0); in test_ConstructorILjava_net_InetAddress() 109 .getLocalHost(), ds.getLocalAddress()); in test_ConstructorILjava_net_InetAddress() 116 DatagramSocket ds = new DatagramSocket(0); in test_close() local 119 ds.close(); in test_close() 121 ds.send(dp); in test_close() 129 DatagramSocket ds = new DatagramSocket(); in test_connectLjava_net_InetAddressI() local 131 ds.connect(inetAddress, 0); in test_connectLjava_net_InetAddressI() [all …]
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 52 Supplier<DoubleStream> ds = () -> DoubleStream.iterate(0.0, e -> 0.0).limit(10); in testZeroAverageOfNonEmptyStream() local 54 return compareUlpDifference(0.0, ds.get().average().getAsDouble(), 0); in testZeroAverageOfNonEmptyStream() 77 Supplier<DoubleStream> ds = () -> DoubleStream.iterate(base, e -> increment).limit(count); in testForCompenstation() local 79 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testForCompenstation() 87 ds.get().sum(), 3); in testForCompenstation() 89 ds.get().average().getAsDouble(), 3); in testForCompenstation() 92 … ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); in testForCompenstation() 94 … ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); in testForCompenstation() 125 Supplier<DoubleStream> ds = testCase.getKey(); in testNonfiniteSum() local 128 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testNonfiniteSum() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelTest.java | 41 DatagramSocket ds = new DatagramSocket(0); in test_read_intoReadOnlyByteArrays() local 43 dc.connect(ds.getLocalSocketAddress()); in test_read_intoReadOnlyByteArrays()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/gopher/ |
D | GopherClient.java | 284 DataInputStream ds = new DataInputStream(serverInput); in run() local 286 while ((s = ds.readLine()) != null) { in run()
|