Searched refs:source (Results 51 - 75 of 112) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSinkChannelTest.java44 private Pipe.SourceChannel source; field in class:SinkChannelTest
54 source = pipe.source();
78 source.configureBlocking(sourceBlockingMode[i]);
79 // if sink and source both are blocking mode, source only needs read
89 int count = source.read(readBuf);
131 long count = source.read(readBuf);
161 source.close();
187 source
[all...]
/libcore/ojluni/src/main/java/java/beans/
H A DPropertyChangeSupport.java87 * @param sourceBean The bean to be given as the source for any events.
93 source = sourceBean;
126 * source, it will be notified one less time after being removed.
210 * source for the specified property, it will be notified one less time
263 firePropertyChange(new PropertyChangeEvent(this.source, propertyName, oldValue, newValue));
358 firePropertyChange(new IndexedPropertyChangeEvent(source, propertyName, oldValue, newValue, index));
436 PropertyChangeSupport pcs = new PropertyChangeSupport(this.source);
444 fields.put("source", this.source);
465 this.source
484 private Object source; field in class:PropertyChangeSupport
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DDocumentBuilderTest.java530 InputStream source = new ByteArrayInputStream("<a>&foo;</a>".getBytes());
542 d = db.parse(source);
551 source = new ByteArrayInputStream("</a>".getBytes());
560 d = db.parse(source);
572 InputStream source = new ByteArrayInputStream("</a>".getBytes());
580 db.parse(source);
591 source = new ByteArrayInputStream("</a>".getBytes());
596 db.parse(source);
606 InputStream source = new ByteArrayInputStream("<a>&foo;</a>".getBytes());
617 d = db.parse(source);
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DDatagramChannelImpl.java847 * optional source address.
851 InetAddress source)
868 // check source address
869 if (source != null) {
870 if (source.isAnyLocalAddress())
872 if (source.isMulticastAddress())
874 if (source.getClass() != group.getClass())
891 MembershipKey key = registry.checkMembership(group, interf, source);
904 // need multicast and source address as byte arrays
906 byte[] sourceAddress = (source
849 innerJoin(InetAddress group, NetworkInterface interf, InetAddress source) argument
950 join(InetAddress group, NetworkInterface interf, InetAddress source) argument
992 block(MembershipKeyImpl key, InetAddress source) argument
1030 unblock(MembershipKeyImpl key, InetAddress source) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DDoNothingParser.java34 public void parse(InputSource source) { argument
H A DNoAccessParser.java34 public void parse(InputSource source) { argument
H A DNoInstanceParser.java37 public void parse(InputSource source) { argument
/libcore/ojluni/src/main/java/java/text/
H A DDateFormat.java31 * The original version of this source code and documentation is copyrighted
352 * @param source A <code>String</code> whose beginning should be parsed.
357 public Date parse(String source) throws ParseException argument
360 Date result = parse(source, pos);
362 throw new ParseException("Unparseable date: \"" + source + "\"" ,
385 * @param source The date/time string to be parsed
393 public abstract Date parse(String source, ParsePosition pos); argument
412 * @param source A <code>String</code>, part of which should be parsed.
419 public Object parseObject(String source, ParsePosition pos) { argument
420 return parse(source, po
[all...]
H A DMessageFormat.java31 * The original version of this source code and documentation is copyrighted
134 * bundle source files) which strings will be processed by {@code MessageFormat}.
950 * If the source is null, return an empty array.
952 * @param source the string to parse
956 public Object[] parse(String source, ParsePosition pos) { argument
957 if (source == null) {
977 source, sourceOffset, len)) {
994 next = source.length();
996 next = source.indexOf(pattern.substring(patternOffset, tempLength),
1004 String strValue= source
1045 parse(String source) argument
1078 parseObject(String source, ParsePosition pos) argument
1555 copyAndFixQuotes(String source, int start, int end, StringBuilder target) argument
[all...]
H A DNumberFormat.java31 * The original version of this source code and documentation is copyrighted
267 * @param source A <code>String</code>, part of which should be parsed.
275 public final Object parseObject(String source, ParsePosition pos) { argument
276 return parse(source, pos);
351 * @param source the String to parse
357 public abstract Number parse(String source, ParsePosition parsePosition); argument
366 * @param source A <code>String</code> whose beginning should be parsed.
371 public Number parse(String source) throws ParseException { argument
373 Number result = parse(source, parsePosition);
375 throw new ParseException("Unparseable number: \"" + source
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java91 public Document parse(InputSource source) throws SAXException, IOException { argument
92 if (source == null) {
93 throw new IllegalArgumentException("source == null");
99 String inputEncoding = source.getEncoding();
100 String systemId = source.getSystemId();
110 if (source.getByteStream() != null) {
111 parser.setInput(source.getByteStream(), inputEncoding);
112 } else if (source.getCharacterStream() != null) {
113 parser.setInput(source.getCharacterStream());
142 locator.setPublicId(source
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java67 * <li><a name="redirect-input">a source of <i>standard input</i></a>.
71 * be redirected to another source using
438 * Represents a source of subprocess input or a destination of
516 * Indicates that subprocess I/O source or destination will be the
531 * Returns the {@link File} source or destination associated
678 * Sets this process builder's standard input source.
681 * method obtain their standard input from this source.
683 * <p>If the source is {@link Redirect#PIPE Redirect.PIPE}
687 * If the source is set to any other value, then
691 * @param source th
700 redirectInput(Redirect source) argument
[all...]
H A DString.java201 * Array that is the source of characters
228 * Array that is the source of Unicode code points
1716 * source is the character array being searched, and the target
1719 * @param source the characters being searched.
1725 static int indexOf(String source, argument
1728 final int sourceLength = source.length();
1745 if (source.charAt(i)!= first) {
1746 while (++i <= max && source.charAt(i) != first);
1753 for (int k = 1; j < end && source.charAt(j)
1768 * source i
1779 indexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) argument
1868 lastIndexOf(String source, String target, int fromIndex) argument
1930 lastIndexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) argument
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoublePipeline.java47 * Abstract base class for an intermediate pipeline stage or pipeline source
50 * @param <E_IN> type of elements in the upstream source
62 * @param source {@code Supplier<Spliterator>} describing the stream source
63 * @param sourceFlags the source flags for the stream source, described in
66 DoublePipeline(Supplier<? extends Spliterator<Double>> source, argument
68 super(source, sourceFlags, parallel);
74 * @param source {@code Spliterator} describing the stream source
78 DoublePipeline(Spliterator<Double> source, int sourceFlags, boolean parallel) argument
529 Head(Supplier<? extends Spliterator<Double>> source, int sourceFlags, boolean parallel) argument
542 Head(Spliterator<Double> source, int sourceFlags, boolean parallel) argument
[all...]
H A DLongPipeline.java48 * Abstract base class for an intermediate pipeline stage or pipeline source
51 * @param <E_IN> type of elements in the upstream source
62 * @param source {@code Supplier<Spliterator>} describing the stream source
63 * @param sourceFlags the source flags for the stream source, described in
67 LongPipeline(Supplier<? extends Spliterator<Long>> source, argument
69 super(source, sourceFlags, parallel);
75 * @param source {@code Spliterator} describing the stream source
80 LongPipeline(Spliterator<Long> source, int sourceFlags, boolean parallel) argument
509 Head(Supplier<? extends Spliterator<Long>> source, int sourceFlags, boolean parallel) argument
522 Head(Spliterator<Long> source, int sourceFlags, boolean parallel) argument
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DOpTestCase.java449 default R run(Function<S_OUT, R> terminalF, S_OUT source, StreamShape shape) { argument
450 return terminalF.apply(source);
460 public Object run(Function terminalF, BaseStream source, StreamShape shape) {
461 source = (BaseStream) chain(source, new ShortCircuitOp(shape));
462 return terminalF.apply(source);
472 public Object run(Function terminalF, BaseStream source, StreamShape shape) {
473 source = (BaseStream) chain(source, new ShortCircuitOp(shape));
474 return terminalF.apply(source);
[all...]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DOpTestCase.java450 default R run(Function<S_OUT, R> terminalF, S_OUT source, StreamShape shape) { argument
451 return terminalF.apply(source);
461 public Object run(Function terminalF, BaseStream source, StreamShape shape) {
462 source = (BaseStream) chain(source, new ShortCircuitOp(shape));
463 return terminalF.apply(source);
473 public Object run(Function terminalF, BaseStream source, StreamShape shape) {
474 source = (BaseStream) chain(source, new ShortCircuitOp(shape));
475 return terminalF.apply(source);
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTabulatorsTest.java77 Supplier<Stream<T>> source,
96 Supplier<Stream<T>> source,
100 assertContentsUnordered(map.keySet(), source.get().map(classifier).collect(toSet()));
104 () -> source.get().filter(e -> classifier.apply(e).equals(key)),
127 void assertValue(M map, Supplier<Stream<T>> source, boolean ordered) throws ReflectiveOperationException { argument
128 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet());
131 source.get().forEach(t -> {
133 V v = source.get()
154 Supplier<Stream<T>> source,
159 downstream.assertValue(map.get(true), () -> source
76 assertValue(U value, Supplier<Stream<T>> source, boolean ordered) argument
95 assertValue(M map, Supplier<Stream<T>> source, boolean ordered) argument
153 assertValue(Map<Boolean, D> map, Supplier<Stream<T>> source, boolean ordered) argument
167 assertValue(List<T> value, Supplier<Stream<T>> source, boolean ordered) argument
193 assertValue(Collection<T> value, Supplier<Stream<T>> source, boolean ordered) argument
220 assertValue(U value, Supplier<Stream<T>> source, boolean ordered) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DSystemTest.java91 char[][] source = new char[][] { { 'H', 'e', 'l', 'l', 'o' },
94 System.arraycopy(source, 0, dest, 0, dest.length);
95 assertTrue("Invalid copy 2", dest[0] == source[0]
96 && dest[1] == source[1]);
/libcore/luni/src/main/java/org/w3c/dom/
H A DDocument.java203 * or removing the source node from the original document; this method
204 * creates a new copy of the source node. The returned node has no
207 * importing document, with attribute values identical to the source
211 * <code>cloneNode</code> operation, the source node is not altered.
218 * a fragment of XML or HTML source was copied from one document to
227 * descendants of the source <code>Attr</code> are recursively imported
234 * was set to <code>true</code>, the descendants of the source
247 * <dd><em>Specified</em> attribute nodes of the source element are imported, and the generated
252 * <code>true</code>, the descendants of the source element are
263 * of the the source <cod
698 adoptNode(Node source) argument
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldFormatTest.java39 public Object parseObject(String source, ParsePosition pos) { argument
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DWrapper.java142 public boolean isConvertibleFrom(Wrapper source) { argument
143 if (this == source) return true;
144 if (this.compareTo(source) < 0) {
150 boolean floatOrSigned = (((this.format & source.format) & Format.SIGNED) != 0);
154 if (source.format == Format.CHAR) return true;
160 assert(source.isFloating() || source.isSigned());
470 Wrapper source = findWrapperType(sourceType);
471 if (source == null || !this.isConvertibleFrom(source)) {
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java1176 * except if the source and target are the {@link #isSameFile same} file, in
1203 * copied to the target file if supported by both the source and target
1222 * of its file attributes have not been copied from the source file. When
1230 * name as the source file:
1232 * Path source = ...
1234 * Files.copy(source, newdir.resolve(source.getFileName());
1237 * @param source
1241 * provider to the source path)
1262 * method is invoked to check read access to the source fil
1268 copy(Path source, Path target, CopyOption... options) argument
1389 move(Path source, Path target, CopyOption... options) argument
2902 copy(InputStream source, OutputStream sink) argument
3064 copy(Path source, OutputStream out) argument
3097 read(InputStream source, int initialSize) argument
[all...]
/libcore/ojluni/src/main/native/
H A DNet.c69 #define IP_BLOCK_SOURCE 58 /* Block data from a given source to a given group */
70 #define IP_UNBLOCK_SOURCE 59 /* Unblock data from a given source to a given group */
71 #define IP_ADD_SOURCE_MEMBERSHIP 60 /* Join a source-specific group */
72 #define IP_DROP_SOURCE_MEMBERSHIP 61 /* Leave a source-specific group */
76 #define IP_ADD_SOURCE_MEMBERSHIP 70 /* join a source-specific group */
77 #define IP_DROP_SOURCE_MEMBERSHIP 71 /* drop a single source */
78 #define IP_BLOCK_SOURCE 72 /* block a source */
79 #define IP_UNBLOCK_SOURCE 73 /* unblock a source */
96 #define MCAST_JOIN_SOURCE_GROUP 82 /* join a source-specific group */
97 #define MCAST_LEAVE_SOURCE_GROUP 83 /* leave a single source */
152 initGroupSourceReq(JNIEnv* env, jbyteArray group, jint index, jbyteArray source, struct my_group_source_req* req) argument
534 Java_sun_nio_ch_Net_joinOrDrop4(JNIEnv *env, jobject this, jboolean join, jobject fdo, jint group, jint interf, jint source) argument
580 Java_sun_nio_ch_Net_blockOrUnblock4(JNIEnv *env, jobject this, jboolean block, jobject fdo, jint group, jint interf, jint source) argument
613 Java_sun_nio_ch_Net_joinOrDrop6(JNIEnv *env, jobject this, jboolean join, jobject fdo, jbyteArray group, jint index, jbyteArray source) argument
654 Java_sun_nio_ch_Net_blockOrUnblock6(JNIEnv *env, jobject this, jboolean block, jobject fdo, jbyteArray group, jint index, jbyteArray source) argument
[all...]
/libcore/
H A DJavaLibrary.mk30 # java/ # Java source for library code.
31 # native/ # C++ source for library code.
34 # java/ # Java source for tests.
35 # native/ # C++ source for tests (rare).
76 local_javac_flags+= -g:source,lines
91 # Build jaif-annotated source files for ojluni target .
105 $(ojluni_annotate_target): PRIVATE_INSERT_ANNOTATIONS_TO_SOURCE := external/annotation-tools/annotation-file-utilities/scripts/insert-annotations-to-source
107 # Diff output of _ojluni_annotate_generate_cmd with what we have, and if generate annotated source.
223 # Include source code as part of JAR
303 # other source directorie
[all...]

Completed in 963 milliseconds

12345