Searched refs:target (Results 1 - 25 of 71) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetTest.java27 ResultSet target = null; field in class:OldResultSetTest
44 target = stForward.getResultSet();
45 assertNotNull(target);
57 target.close();
62 assertTrue(target.isBeforeFirst());
63 assertFalse(target.absolute(0));
64 assertTrue(target.absolute(1));
65 assertTrue(target.isFirst());
66 assertTrue(target.absolute(-1));
67 assertTrue(target
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DInvocationTargetException.java31 private Throwable target; field in class:InvocationTargetException
35 * {@code null} cause / target exception.
43 * cause / target exception filled in.
51 target = exception;
56 * cause / target exception and message filled in.
66 target = exception;
70 * Returns the target exception, which may be {@code null}.
72 * @return the target exception
75 return target;
85 return target;
[all...]
/libcore/luni/src/main/java/java/io/
H A DPipedOutputStream.java32 private PipedInputStream target; field in class:PipedOutputStream
44 * {@link PipedInputStream} {@code target}. Any data written to this stream
45 * can be read from the target stream.
47 * @param target
50 * if this stream or {@code target} are already connected.
52 public PipedOutputStream(PipedInputStream target) throws IOException { argument
53 connect(target);
66 PipedInputStream stream = target;
69 target = null;
87 if (this.target !
[all...]
H A DReader.java229 * Reads characters and puts them into the {@code target} character buffer.
231 * @param target
233 * @return the number of characters put into {@code target} or -1 if the end
238 * if {@code target} is {@code null}.
240 * if {@code target} is read-only.
242 public int read(CharBuffer target) throws IOException { argument
243 int length = target.length();
247 target.put(buf, 0, length);
/libcore/luni/src/test/java/libcore/java/text/
H A DNormalizerTest.java54 String target;
56 target = new String(new char[] {0x03D3, 0x03D4, 0x1E9B});
57 assertTrue(Normalizer.isNormalized(target, Normalizer.Form.NFC));
58 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFD));
59 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFKC));
60 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFKD));
62 target = new String(new char[] {0x03D2, 0x0301, 0x03D2, 0x0308, 0x017F, 0x0307});
63 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFC));
64 assertTrue(Normalizer.isNormalized(target, Normalizer.Form.NFD));
65 assertFalse(Normalizer.isNormalized(target, Normalize
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DReplaceTest.java29 String target, pattern, repl;
31 target = "foobarfobarfoofo1";
36 Matcher m = p.matcher(target);
43 String target, pattern, repl, s;
47 target = "[31]foo;bar[42];[99]xyz";
52 m = p.matcher(target);
58 target = "[31]foo(42)bar{63}zoo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;";
62 m = p.matcher(target);
76 String target, pattern, repl, s;
78 target
[all...]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DReplaceTest.java26 String target, pattern, repl;
28 target = "foobarfobarfoofo1barfort";
33 Matcher m = p.matcher(target);
40 String target, pattern, repl, s;
44 target = "[31]foo;bar[42];[99]xyz";
49 m = p.matcher(target);
55 target = "[31]foo(42)bar{63}zoo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;";
59 m = p.matcher(target);
71 String target, pattern, repl, s;
73 target
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DProcessingInstructionImpl.java36 private String target; field in class:ProcessingInstructionImpl
40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { argument
42 this.target = target; // TODO: validate that target is well-formed
52 return target;
66 return target;
/libcore/luni/src/test/etc/loading-test-jar/
H A DTestMethods.java109 Target target = new Target();
110 assertSame("zorch", target.zorch());
117 Target target = new Target();
118 target.setInstanceVariable(10098);
119 assertSame(10098, target.instanceVariable);
165 Target2 target = new Target2();
166 assertSame("fizmo", target.fizmo());
173 Target2 target = new Target2();
174 target.setInstanceMagri(10098);
175 assertSame(10098, target
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DSecurityChecker.java39 public SecurityChecker(Permission target, boolean enable) { argument
41 checkTarget = target;
/libcore/luni/src/main/java/java/util/logging/
H A DMemoryHandler.java28 * Every {@code MemoryHandler} has a target handler, and push action can be
29 * triggered so that all buffered records will be output to the target handler
50 * <li>java.util.logging.MemoryHandler.target specifies the class of the target
60 // target handler
61 private Handler target; field in class:MemoryHandler
88 // init target
89 final String targetName = manager.getProperty(className + ".target");
96 target = (Handler) targetClass.newInstance();
98 throw new RuntimeException("Cannot load target handle
144 MemoryHandler(Handler target, int size, Level pushLevel) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldByteArrayOutputStreamTest.java68 byte[] target = new byte[10];
71 bos.write(target, -1, 1);
77 bos.write(target, 0, -1);
83 bos.write(target, 1, target.length);
H A DOldCharArrayWriterTest.java45 char[] target = new char[10];
48 cw.write(target, -1, 1);
54 cw.write(target, 0, -1);
60 cw.write(target, 1, target.length);
H A DFileTest.java72 File target = createDeepStructure(base);
75 assertTrue(target.exists());
76 assertTrue(target.getCanonicalPath().length() > 1024);
77 ln_s(target, source);
79 assertEquals(target.getCanonicalPath(), source.getCanonicalPath());
160 File target = new File(base, "target");
161 target.createNewFile(); // The RI won't follow a dangling symlink, which seems like a bug!
163 ln_s(target, linkName);
164 assertEquals(target
186 ln_s(File target, File linkName) argument
190 ln_s(String target, String linkName) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dprocessinginstructiongettarget.java31 * The "getTarget()" method returns the target of the
39 * return the target of the ProcessingInstruction.
69 String target;
73 target = piNode.getTarget();
74 assertEquals("processinginstructionGetTargetAssert", "TEST-STYLE", target);
/libcore/luni/src/main/java/java/nio/
H A DDatagramChannelImpl.java215 public SocketAddress receive(ByteBuffer target) throws IOException { argument
216 target.checkWritable();
230 if (!target.isDirect()) {
231 retAddr = receiveImpl(target, loop);
233 retAddr = receiveDirectImpl(target, loop);
245 private SocketAddress receiveImpl(ByteBuffer target, boolean loop) throws IOException { argument
248 int oldposition = target.position();
251 if (target.hasArray()) {
252 receivePacket = new DatagramPacket(target.array(), target
274 receiveDirectImpl(ByteBuffer target, boolean loop) argument
328 read(ByteBuffer target) argument
[all...]
/libcore/
H A Drun-libcore-tests24 --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/org/xml/sax/
H A DDocumentHandler.java222 * @param target The processing instruction target.
228 public abstract void processingInstruction (String target, String data) argument
H A DContentHandler.java379 * @param target the processing instruction target
382 * whitespace separating it from the target
386 public void processingInstruction (String target, String data) argument
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DimportNode14.java38 * Create a processing instruction with target as "target1" and data as "data1"
40 * Method should return a processing instruction whose target and data match the given
76 String target;
89 target = aNode.getTarget();
90 assertEquals("piTarget", "target1", target);
/libcore/luni/src/main/java/java/text/
H A DRuleBasedCollator.java173 * Compares the {@code source} text to the {@code target} text according to
180 * @param target
181 * the target text.
184 * equivalent to, or greater than {@code target}.
187 public int compare(String source, String target) { argument
190 } else if (target == null) {
191 throw new NullPointerException("target == null");
193 return icuColl.compare(source, target);
/libcore/luni/src/main/java/libcore/icu/
H A DRuleBasedCollatorICU.java66 public int compare(String source, String target) { argument
67 return NativeCollation.compare(address, source, target);
130 public boolean equals(String source, String target) { argument
131 return (compare(source, target) == 0);
H A DNativeCollation.java26 public static native int compare(long address, String source, String target); argument
/libcore/luni/src/main/java/java/nio/channels/
H A DDatagramChannel.java150 * This method transfers a datagram from the channel into the target byte
164 * @param target
181 public abstract SocketAddress receive(ByteBuffer target) throws IOException; argument
232 * @param target
250 public abstract int read(ByteBuffer target) throws IOException; argument
H A DChannels.java219 @Override public synchronized int read(byte[] target, int byteOffset, int byteCount) throws IOException { argument
220 ByteBuffer buffer = ByteBuffer.wrap(target, byteOffset, byteCount);
297 public synchronized int read(ByteBuffer target) throws IOException { argument
301 int bytesRemain = target.remaining();
311 target.put(bytes, 0, readCount);

Completed in 620 milliseconds

123