Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 25 of 53) sorted by relevance

123

/libcore/ojluni/src/test/java/math/BigDecimal/
DDivideTests.java224 for(BigDecimal[] tc : testCases) { in properScaleTests()
225 BigDecimal quotient = tc[0].divide(tc[1]); in properScaleTests()
226 Assert.assertEquals(quotient, tc[2], in properScaleTests()
227 "Unexpected quotient from " + tc[0] + " / " + tc[1] + in properScaleTests()
228 "; expected " + tc[2] + " got " + quotient); in properScaleTests()
240 for(BigDecimal[] tc : testCases) { in trailingZeroTests()
241 BigDecimal quotient = tc[0].divide(tc[1], mc); in trailingZeroTests()
242 Assert.assertEquals(quotient, tc[2], in trailingZeroTests()
243 "Unexpected quotient from " + tc[0] + " / " + tc[1] + in trailingZeroTests()
244 "; expected " + tc[2] + " got " + quotient); in trailingZeroTests()
[all …]
/libcore/ojluni/src/test/java/net/DatagramSocket/
DReuseAddressTest.java267 int tc = ds.getTrafficClass(); in DatagramSocket2028() local
268 if (tc < 0 || tc > 255) { in DatagramSocket2028()
269 fail("getTrafficClass() returns: " + tc); in DatagramSocket2028()
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java1407 byte tc; in readObject0()
1408 while ((tc = bin.peekByte()) == TC_RESET) { in readObject0()
1417 switch (tc) { in readObject0()
1470 String.format("invalid type code: %02X", tc)); in readObject0()
1516 byte tc = bin.peekByte(); in readTypeString()
1517 switch (tc) { in readTypeString()
1530 String.format("invalid type code: %02X", tc)); in readTypeString()
1611 byte tc = bin.peekByte(); in readClassDesc()
1613 switch (tc) { in readClassDesc()
1628 String.format("invalid type code: %02X", tc)); in readClassDesc()
[all …]
/libcore/ojluni/src/test/java/util/BitSet/stream/
DBitSetStreamTest.java161 for (Object[] tc : bitStreamTestcases) { in spliteratorOfIntDataProvider()
162 String description = (String)tc[0]; in spliteratorOfIntDataProvider()
163 int[] exp = (int[])tc[1]; in spliteratorOfIntDataProvider()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java1216 public synchronized void setTrafficClass(int tc) throws SocketException { in setTrafficClass() argument
1217 if (tc < 0 || tc > 255) in setTrafficClass()
1223 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
DSocket.java1437 public void setTrafficClass(int tc) throws SocketException { in setTrafficClass() argument
1438 if (tc < 0 || tc > 255) in setTrafficClass()
1444 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java340 public void setTrafficClass(int tc) throws SocketException { in setTrafficClass() argument
341 setIntOption(StandardSocketOptions.IP_TOS, tc); in setTrafficClass()
DSocketAdaptor.java394 public void setTrafficClass(int tc) throws SocketException { in setTrafficClass() argument
395 setIntOption(StandardSocketOptions.IP_TOS, tc); in setTrafficClass()
/libcore/ojluni/annotations/mmodule/java/net/
DDatagramSocket.annotated.java94 public synchronized void setTrafficClass(int tc) throws java.net.SocketException { throw new Runtim… in setTrafficClass() argument
DSocket.annotated.java112 public void setTrafficClass(int tc) throws java.net.SocketException { throw new RuntimeException("S… in setTrafficClass() argument
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestAccessDouble.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessFloat.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessBoolean.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessByte.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessInt.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessShort.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessLong.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessString.java94 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
227 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestAccessChar.java92 return vhs.stream().map(tc -> new Object[]{tc}).toArray(Object[][]::new); in varHandlesProvider()
220 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestMethodHandleAccessString.java111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestMethodHandleAccessDouble.java111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
DVarHandleTestMethodHandleAccessFloat.java111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
/libcore/ojluni/annotations/hiddenapi/java/net/
DDatagramSocket.java175 public synchronized void setTrafficClass(int tc) throws java.net.SocketException { in setTrafficClass() argument
DSocket.java233 public void setTrafficClass(int tc) throws java.net.SocketException { in setTrafficClass() argument
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java59 static TestClass2 tc = new TestClass2(0); field in OldClassTest.TestClass1C
601 TempTestClass2<String> tc = new TempTestClass2<String>(); in test_getTypeParameters() local
602 tv = tc.getClass().getTypeParameters(); in test_getTypeParameters()

123