/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetTest.java | 27 ResultSet target = null; field in OldResultSetTest 44 target = stForward.getResultSet(); in setUp() 45 assertNotNull(target); in setUp() 57 target.close(); in tearDown() 62 assertTrue(target.isBeforeFirst()); in testAbsolute() 63 assertFalse(target.absolute(0)); in testAbsolute() 64 assertTrue(target.absolute(1)); in testAbsolute() 65 assertTrue(target.isFirst()); in testAbsolute() 66 assertTrue(target.absolute(-1)); in testAbsolute() 67 assertTrue(target.isLast()); in testAbsolute() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | NormalizerTest.java | 54 String target; in testIsNormalized() local 56 target = new String(new char[] {0x03D3, 0x03D4, 0x1E9B}); in testIsNormalized() 57 assertTrue(Normalizer.isNormalized(target, Normalizer.Form.NFC)); in testIsNormalized() 58 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFD)); in testIsNormalized() 59 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFKC)); in testIsNormalized() 60 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFKD)); in testIsNormalized() 62 target = new String(new char[] {0x03D2, 0x0301, 0x03D2, 0x0308, 0x017F, 0x0307}); in testIsNormalized() 63 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFC)); in testIsNormalized() 64 assertTrue(Normalizer.isNormalized(target, Normalizer.Form.NFD)); in testIsNormalized() 65 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFKC)); in testIsNormalized() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | ReplaceTest.java | 29 String target, pattern, repl; in testSimpleReplace() local 31 target = "foobarfobarfoofo1"; in testSimpleReplace() 36 Matcher m = p.matcher(target); in testSimpleReplace() 43 String target, pattern, repl, s; in testCaptureReplace() local 47 target = "[31]foo;bar[42];[99]xyz"; in testCaptureReplace() 52 m = p.matcher(target); in testCaptureReplace() 58 target = "[31]foo(42)bar{63}zoo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;"; in testCaptureReplace() 62 m = p.matcher(target); in testCaptureReplace() 76 String target, pattern, repl, s; in testEscapeReplace() local 78 target = "foo'bar''foo"; in testEscapeReplace() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | ReplaceTest.java | 26 String target, pattern, repl; in testSimpleReplace() local 28 target = "foobarfobarfoofo1barfort"; in testSimpleReplace() 33 Matcher m = p.matcher(target); in testSimpleReplace() 40 String target, pattern, repl, s; in testCaptureReplace() local 44 target = "[31]foo;bar[42];[99]xyz"; in testCaptureReplace() 49 m = p.matcher(target); in testCaptureReplace() 55 target = "[31]foo(42)bar{63}zoo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;"; in testCaptureReplace() 59 m = p.matcher(target); in testCaptureReplace() 71 String target, pattern, repl, s; in testEscapeReplace() local 73 target = "foo'bar''foo"; in testEscapeReplace() [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | PipedOutputStream.java | 32 private PipedInputStream target; field in PipedOutputStream 52 public PipedOutputStream(PipedInputStream target) throws IOException { in PipedOutputStream() argument 53 connect(target); in PipedOutputStream() 66 PipedInputStream stream = target; in close() 69 target = null; in close() 87 if (this.target != null) { in connect() 94 this.target = stream; in connect() 107 PipedInputStream stream = target; in flush() 172 PipedInputStream stream = target; in write()
|
D | Reader.java | 242 public int read(CharBuffer target) throws IOException { 243 int length = target.length(); 247 target.put(buf, 0, length);
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 109 Target target = new Target(); in test_callInstanceMethod() local 110 assertSame("zorch", target.zorch()); in test_callInstanceMethod() 117 Target target = new Target(); in test_getInstanceVariable() local 118 target.setInstanceVariable(10098); in test_getInstanceVariable() 119 assertSame(10098, target.instanceVariable); in test_getInstanceVariable() 165 Target2 target = new Target2(); in test_diff_callInstanceMethod() local 166 assertSame("fizmo", target.fizmo()); in test_diff_callInstanceMethod() 173 Target2 target = new Target2(); in test_diff_getInstanceVariable() local 174 target.setInstanceMagri(10098); in test_diff_getInstanceVariable() 175 assertSame(10098, target.instanceMagri); in test_diff_getInstanceVariable()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | ProcessingInstructionImpl.java | 36 private String target; field in ProcessingInstructionImpl 40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { in ProcessingInstructionImpl() argument 42 this.target = target; // TODO: validate that target is well-formed in ProcessingInstructionImpl() 52 return target; in getNodeName() 66 return target; in getTarget()
|
/libcore/luni/src/main/java/java/lang/reflect/ |
D | InvocationTargetException.java | 31 private Throwable target; field in InvocationTargetException 51 target = exception; in InvocationTargetException() 66 target = exception; in InvocationTargetException() 75 return target; in getTargetException() 85 return target; in getCause()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | MemoryHandler.java | 61 private Handler target; field in MemoryHandler 96 target = (Handler) targetClass.newInstance(); in MemoryHandler() 144 public MemoryHandler(Handler target, int size, Level pushLevel) { in MemoryHandler() argument 148 target.getLevel(); in MemoryHandler() 150 this.target = target; in MemoryHandler() 163 target.close(); in close() 173 target.flush(); in flush() 234 target.publish(buffer[i]); in push() 240 target.publish(buffer[i]); in push()
|
/libcore/luni/src/main/java/java/nio/ |
D | DatagramChannelImpl.java | 215 public SocketAddress receive(ByteBuffer target) throws IOException { in receive() argument 216 target.checkWritable(); in receive() 230 if (!target.isDirect()) { in receive() 231 retAddr = receiveImpl(target, loop); in receive() 233 retAddr = receiveDirectImpl(target, loop); in receive() 245 private SocketAddress receiveImpl(ByteBuffer target, boolean loop) throws IOException { in receiveImpl() argument 248 int oldposition = target.position(); in receiveImpl() 251 if (target.hasArray()) { in receiveImpl() 252 …receivePacket = new DatagramPacket(target.array(), target.position() + target.arrayOffset(), targe… in receiveImpl() 254 receivePacket = new DatagramPacket(new byte[target.remaining()], target.remaining()); in receiveImpl() [all …]
|
D | CharBuffer.java | 724 public int read(CharBuffer target) throws IOException { in read() argument 726 if (target == this) { in read() 733 return limit > 0 && target.remaining() == 0 ? 0 : -1; in read() 735 remaining = Math.min(target.remaining(), remaining); in read() 739 target.put(chars); in read()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 72 File target = createDeepStructure(base); in test_longReadlink() local 75 assertTrue(target.exists()); in test_longReadlink() 76 assertTrue(target.getCanonicalPath().length() > 1024); in test_longReadlink() 77 ln_s(target, source); in test_longReadlink() 79 assertEquals(target.getCanonicalPath(), source.getCanonicalPath()); in test_longReadlink() 160 File target = new File(base, "target"); in test_getCanonicalPath() local 161 target.createNewFile(); // The RI won't follow a dangling symlink, which seems like a bug! in test_getCanonicalPath() 163 ln_s(target, linkName); in test_getCanonicalPath() 164 assertEquals(target.getCanonicalPath(), linkName.getCanonicalPath()); in test_getCanonicalPath() 171 assertEquals(target.getCanonicalPath(), linkName.getCanonicalPath()); in test_getCanonicalPath() [all …]
|
D | OldByteArrayOutputStreamTest.java | 68 byte[] target = new byte[10]; in test_write$BII_Exception() 71 bos.write(target, -1, 1); in test_write$BII_Exception() 77 bos.write(target, 0, -1); in test_write$BII_Exception() 83 bos.write(target, 1, target.length); in test_write$BII_Exception()
|
D | OldCharArrayWriterTest.java | 45 char[] target = new char[10]; in test_write$CII_Exception() local 48 cw.write(target, -1, 1); in test_write$CII_Exception() 54 cw.write(target, 0, -1); in test_write$CII_Exception() 60 cw.write(target, 1, target.length); in test_write$CII_Exception()
|
D | OldObjectOutputStreamTest.java | 194 NoFlushTestOutputStream target = new NoFlushTestOutputStream(); in test_drain() local 195 BasicObjectOutputStream boos = new BasicObjectOutputStream(target); in test_drain() 196 int initialSize = target.size(); in test_drain() 201 written = (target.size() > initialSize); in test_drain() 205 written || (target.size() > initialSize)); in test_drain() 207 target.flushCalled); in test_drain()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | processinginstructiongettarget.java | 69 String target; in runTest() local 73 target = piNode.getTarget(); in runTest() 74 assertEquals("processinginstructionGetTargetAssert", "TEST-STYLE", target); in runTest()
|
/libcore/luni/src/main/java/java/text/ |
D | RuleBasedCollator.java | 187 public int compare(String source, String target) { in compare() argument 190 } else if (target == null) { in compare() 193 return icuColl.compare(source, target); in compare()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SecurityChecker.java | 39 public SecurityChecker(Permission target, boolean enable) { in SecurityChecker() argument 41 checkTarget = target; in SecurityChecker()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | importNode14.java | 76 String target; in runTest() local 89 target = aNode.getTarget(); in runTest() 90 assertEquals("piTarget", "target1", target); in runTest()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | RuleBasedCollatorICU.java | 66 public int compare(String source, String target) { in compare() argument 67 return NativeCollation.compare(address, source, target); in compare() 130 public boolean equals(String source, String target) { in equals() argument 131 return (compare(source, target) == 0); in equals()
|
/libcore/ |
D | run-libcore-tests | 24 --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar \ 25 --classpath out/target/common/obj/JAVA_LIBRARIES/sqlite-jdbc_intermediates/classes.jar \
|
/libcore/luni/src/main/java/java/util/ |
D | PriorityQueue.java | 361 E target = elements[childIndex]; in siftUp() local 366 if (compare(parent, target) <= 0) { in siftUp() 372 elements[childIndex] = target; in siftUp() 376 E target = elements[rootIndex]; in siftDown() local 383 if (compare(target, elements[childIndex]) <= 0) { in siftDown() 389 elements[rootIndex] = target; in siftDown()
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | Channels.java | 219 …@Override public synchronized int read(byte[] target, int byteOffset, int byteCount) throws IOExce… in read() argument 220 ByteBuffer buffer = ByteBuffer.wrap(target, byteOffset, byteCount); in read() 297 public synchronized int read(ByteBuffer target) throws IOException { in read() argument 301 int bytesRemain = target.remaining(); in read() 311 target.put(bytes, 0, readCount); in read()
|
/libcore/luni/src/main/java/java/lang/ |
D | CaseMapper.java | 185 int target = index * 3; in toUpperCase() local 186 char val3 = upperValues[target + 2]; in toUpperCase() 197 char val = upperValues[target]; in toUpperCase() 199 val = upperValues[target + 1]; in toUpperCase()
|