/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/ojluni/src/main/java/sun/nio/fs/ |
D | UnixCopyFile.java | 129 UnixPath target, in copyDirectory() argument 134 mkdir(target, attrs.mode()); in copyDirectory() 136 x.rethrowAsIOException(target); in copyDirectory() 148 dfd = open(target, O_RDONLY, 0); in copyDirectory() 152 try { rmdir(target); } catch (UnixException ignore) { } in copyDirectory() 153 x.rethrowAsIOException(target); in copyDirectory() 166 chown(target, attrs.uid(), attrs.gid()); in copyDirectory() 167 chmod(target, attrs.mode()); in copyDirectory() 172 x.rethrowAsIOException(target); in copyDirectory() 197 utimes(target, in copyDirectory() [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/ojluni/src/main/java/java/lang/invoke/ |
D | CallSite.java | 93 MethodHandle target; // Note: This field is known to the JVM. Do not change. field in CallSite 112 this.target = MethodHandles.throwException(type.returnType(), IllegalStateException.class); in CallSite() 113 this.target = MethodHandles.insertArguments( in CallSite() 114 this.target, 0, new IllegalStateException("uninitialized call site")); in CallSite() 116 this.target = MethodHandles.dropArguments(this.target, 0, type.ptypes()); in CallSite() 129 CallSite(MethodHandle target) { in CallSite() argument 130 target.type(); // null check in CallSite() 131 this.target = target; in CallSite() 152 checkTargetChange(this.target, boundTarget); in CallSite() 153 this.target = boundTarget; in CallSite() [all …]
|
D | Transformers.java | 85 protected static void invokeFromTransform(MethodHandle target, in invokeFromTransform() argument 87 if (target instanceof Transformer) { in invokeFromTransform() 88 ((Transformer) target).transform(stackFrame); in invokeFromTransform() 90 final MethodHandle adaptedTarget = target.asType(stackFrame.getMethodType()); in invokeFromTransform() 101 protected void invokeExactFromTransform(MethodHandle target, in invokeExactFromTransform() argument 103 if (target instanceof Transformer) { in invokeExactFromTransform() 104 ((Transformer) target).transform(stackFrame); in invokeExactFromTransform() 106 target.invokeExactWithFrame(stackFrame); in invokeExactFromTransform() 159 private final MethodHandle target; field in Transformers.CatchException 165 CatchException(MethodHandle target, MethodHandle handler, Class<?> exType) { in CatchException() argument [all …]
|
D | MethodHandles.java | 193 reflectAs(Class<T> expected, MethodHandle target) { in reflectAs() argument 194 MethodHandleImpl directTarget = getMethodHandleImpl(target); in reflectAs() 2069 public MethodHandleInfo revealDirect(MethodHandle target) { in revealDirect() argument 2070 MethodHandleImpl directTarget = getMethodHandleImpl(target); in revealDirect() 2195 private static MethodHandleImpl getMethodHandleImpl(MethodHandle target) { in getMethodHandleImpl() argument 2198 if (target instanceof Transformers.Construct) { in getMethodHandleImpl() 2199 target = ((Transformers.Construct) target).getConstructorHandle(); in getMethodHandleImpl() 2204 if (target instanceof Transformers.VarargsCollector) { in getMethodHandleImpl() 2205 target = target.asFixedArity(); in getMethodHandleImpl() 2208 if (target instanceof MethodHandleImpl) { in getMethodHandleImpl() [all …]
|
D | MutableCallSite.java | 105 public MutableCallSite(MethodHandle target) { in MutableCallSite() argument 106 super(target); in MutableCallSite() 125 return target; in getTarget() 149 checkTargetChange(this.target, newTarget); in setTarget()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | InvocationTargetException.java | 57 private Throwable target; field in InvocationTargetException 72 public InvocationTargetException(Throwable target) { in InvocationTargetException() argument 74 this.target = target; in InvocationTargetException() 84 public InvocationTargetException(Throwable target, String s) { in InvocationTargetException() argument 86 this.target = target; in InvocationTargetException() 99 return target; in getTargetException() 110 return target; in getCause()
|
/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 = "foobarfobarfoofo1barfort"; 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/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/ojluni/src/test/java/lang/invoke/ |
D | MethodHandlesAsCollectorTest.java | 86 MethodHandle target = varargsArray(pos+1); in testAsCollector() local 87 target = changeArgTypes(target, 0, pos, argType); in testAsCollector() 88 target = changeArgTypes(target, pos, pos+1, Object[].class); in testAsCollector() 91 MethodHandle result = target.asCollector(Object[].class, nargs-pos).asType(newType); in testAsCollector() 136 MethodHandle target = varargsArray(collectedLength); in testAsCollector() local 137 target = changeArgTypes(target, 0, pos, argType); in testAsCollector() 138 target = changeArgTypes(target, pos, pos+1, Object[].class); in testAsCollector() 139 target = changeArgTypes(target, pos+1, collectedLength, argType); in testAsCollector() 142 MethodHandle result = target.asCollector(pos, Object[].class, collect).asType(newType); in testAsCollector()
|
D | MethodHandlesGeneralTest.java | 116 MethodHandle target = null; in testFindStatic() local 120 target = maybeMoveIn(lookup, defc).findStatic(defc, methodName, type); in testFindStatic() 131 … System.out.println("findStatic "+lookup+": "+defc.getName()+"."+name+"/"+type+" => "+target in testFindStatic() 134 …tEquals(positive ? "positive test" : "negative test erroneously passed", positive, target != null); in testFindStatic() 136 assertEquals(type, target.type()); in testFindStatic() 137 assertNameStringContains(target, methodName); in testFindStatic() 139 printCalled(target, name, args); in testFindStatic() 140 target.invokeWithArguments(args); in testFindStatic() 219 MethodHandle target = null; in testFindVirtual() local 223 target = maybeMoveIn(lookup, defc).findVirtual(defc, methodName, type); in testFindVirtual() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | CopyMoveHelper.java | 100 static void copyToForeignTarget(Path source, Path target, in copyToForeignTarget() argument 117 Files.deleteIfExists(target); in copyToForeignTarget() 118 } else if (Files.exists(target)) in copyToForeignTarget() 119 throw new FileAlreadyExistsException(target.toString()); in copyToForeignTarget() 123 Files.createDirectory(target); in copyToForeignTarget() 126 Files.copy(in, target); in copyToForeignTarget() 133 Files.getFileAttributeView(target, BasicFileAttributeView.class); in copyToForeignTarget() 141 Files.delete(target); in copyToForeignTarget() 154 static void moveToForeignTarget(Path source, Path target, in moveToForeignTarget() argument 157 copyToForeignTarget(source, target, convertMoveToCopyOptions(options)); in moveToForeignTarget()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 173 MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() local 183 MethodHandle adapter = MethodHandles.catchException(target, IllegalArgumentException.class, in testCatchException() 206 adapter = MethodHandles.catchException(target, IllegalArgumentException.class, handler); in testCatchException() 218 adapter = MethodHandles.catchException(target, IllegalArgumentException.class, handler); in testCatchException() 226 adapter = MethodHandles.catchException(target, IllegalArgumentException.class, in testCatchException() 264 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() local 269 MethodHandle adapter = MethodHandles.guardWithTest(test, target, fallback); in testGuardWithTest() 717 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testFilterReturnValue() local 722 MethodHandle adapter = MethodHandles.filterReturnValue(target, filter); in testFilterReturnValue() 736 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testFilterReturnValue() local [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | MemoryHandler.java | 94 private Handler target; field in MemoryHandler 134 target = (Handler) clz.newInstance(); in MemoryHandler() 142 target = (Handler) clz.newInstance(); in MemoryHandler() 171 public MemoryHandler(Handler target, int size, Level pushLevel) { in MemoryHandler() argument 172 if (target == null || pushLevel == null) { in MemoryHandler() 181 this.target = target; in MemoryHandler() 229 target.publish(record); in push() 244 target.flush(); in flush() 256 target.close(); in close()
|
/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/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandles.java | 41 reflectAs(Class<T> expected, MethodHandle target) { return null; } in reflectAs() argument 89 public MethodHandleInfo revealDirect(MethodHandle target) { return null; } in revealDirect() argument 109 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) { return null; } in explicitCastArguments() argument 112 …MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) { return nu… in permuteArguments() argument 121 MethodHandle insertArguments(MethodHandle target, int pos, Object... values) { return null; } in insertArguments() argument 124 …MethodHandle dropArguments(MethodHandle target, int pos, List<Class<?>> valueTypes) { return null;… in dropArguments() argument 127 … MethodHandle dropArguments(MethodHandle target, int pos, Class<?>... valueTypes) { return null; } in dropArguments() argument 130 …MethodHandle filterArguments(MethodHandle target, int pos, MethodHandle... filters) { return null;… in filterArguments() argument 133 … MethodHandle collectArguments(MethodHandle target, int pos, MethodHandle filter) { return null; } in collectArguments() argument 136 MethodHandle filterReturnValue(MethodHandle target, MethodHandle filter) { return null; } in filterReturnValue() argument [all …]
|
/libcore/ojluni/src/test/java/lang/String/ |
D | LiteralReplace.java | 49 public void testExpected(String source, String target, in testExpected() argument 52 String canonical = canonicalReplace(source, target, replacement); in testExpected() 56 test0(source, target, replacement, expected); in testExpected() 60 public void testCanonical(String source, String target, in testCanonical() argument 63 String canonical = canonicalReplace(source, target, replacement); in testCanonical() 64 test0(source, target, replacement, canonical); in testCanonical() 67 private void test0(String source, String target, String replacement, in test0() argument 70 String result = source.replace(target, replacement); in test0() 78 public void testNPE(String source, String target, String replacement) { in testNPE() argument 79 source.replace(target, replacement); in testNPE() [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/misc/ |
D | InnocuousThread.java | 56 public static Thread newThread(Runnable target) { in newThread() argument 57 return newThread(newName(), target); in newThread() 64 public static Thread newThread(String name, Runnable target) { in newThread() argument 70 target, in newThread() 81 public static Thread newSystemThread(Runnable target) { 82 return newSystemThread(newName(), target); 88 public static Thread newSystemThread(String name, Runnable target) { 94 target, name, null); 99 private InnocuousThread(ThreadGroup group, Runnable target, String name, ClassLoader tccl) { 100 super(group, target, name, 0L, false);
|
/libcore/ojluni/src/test/java/text/Collator/ |
D | CollatorTest.java | 103 String[] source, String[] target, int[] result) { in doTest() argument 104 if (source.length != target.length) { in doTest() 106 source.length + ", target = " + target.length); in doTest() 119 doTest(col, source[i], target[i], result[i]); in doTest() 124 String source, String target, int result) { in doTest() argument 132 int compareResult = col.compare(source, target); in doTest() 134 CollationKey sortKey2 = col.getCollationKey(target); in doTest() 138 source + " Target = " + target); in doTest() 142 target + " result should be " + relation); in doTest()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileDescriptorTest.java | 60 FileDescriptor target = new FileDescriptor(); in testFileDescriptorCloneForFork() local 61 target.setInt$(source.getInt$()); in testFileDescriptorCloneForFork() 62 assertEquals(target.getInt$(), source.getInt$()); in testFileDescriptorCloneForFork() 65 target.cloneForFork(); in testFileDescriptorCloneForFork() 67 assertTrue(target.valid()); in testFileDescriptorCloneForFork() 68 assertNotEquals(target.getInt$(), source.getInt$()); in testFileDescriptorCloneForFork() 72 Os.close(target); in testFileDescriptorCloneForFork()
|
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()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Thread.java | 182 private Runnable target; field in Thread 508 private Thread(ThreadGroup g, Runnable target, String name, in Thread() argument 570 this.target = target; in Thread() 622 public Thread(Runnable target) { in Thread() argument 623 this(null, target, "Thread-" + nextThreadNum(), 0); in Thread() 631 Thread(Runnable target, AccessControlContext acc) { in Thread() argument 632 this(null, target, "Thread-" + nextThreadNum(), 0, acc, false); in Thread() 658 public Thread(ThreadGroup group, Runnable target) { in Thread() argument 659 this(group, target, "Thread-" + nextThreadNum(), 0); in Thread() 744 public Thread(Runnable target, String name) { in Thread() argument [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | Reader.java | 107 public int read(CharBuffer target) throws IOException { in nullReader() argument 108 Objects.requireNonNull(target); in nullReader() 110 if (target.hasRemaining()) { in nullReader() 186 public int read(java.nio.CharBuffer target) throws IOException { in read() argument 187 int len = target.remaining(); in read() 191 target.put(cbuf, 0, n); in read()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | FindSubList.java | 43 List[] target = new List[N+1]; in main() local 50 target[i] = t; in main() 70 int idx = Collections.indexOfSubList(s, target[i]); in main() 85 Collections.reverse(target[i]); in main() 87 index[i] = srcSize - index[i] - target[i].size(); in main() 99 int idx = Collections.lastIndexOfSubList(s, target[i]); in main()
|