Searched refs:source (Results 1 - 25 of 87) sorted by relevance

1234

/libcore/luni/src/main/java/java/text/
H A DCollationKey.java35 * During the construction of a {@code CollationKey}, the entire source string
82 private final String source; field in class:CollationKey
84 protected CollationKey(String source) { argument
85 this.source = source;
100 * @return the source string of this collation key.
103 return source;
H A DRuleBasedCollator.java120 * {@code CharacterIterator}. The source iterator's integrity will be
123 * @param source
124 * the source character iterator.
125 * @return a {@code CollationElementIterator} for {@code source}.
127 public CollationElementIterator getCollationElementIterator(CharacterIterator source) { argument
128 if (source == null) {
129 throw new NullPointerException("source == null");
131 return new CollationElementIterator(icuColl.getCollationElementIterator(source));
137 * @param source
138 * the source strin
141 getCollationElementIterator(String source) argument
187 compare(String source, String target) argument
204 getCollationKey(String source) argument
[all...]
H A DCollationElementIterator.java26 * source string.
57 * beginning of the source string has been reached, and there are no more
83 * Returns the character offset in the source string corresponding to the
86 * <li>The index of the first character in the source string that matches
97 * <li>The length of the source string, if iteration has reached the end.
106 * Returns the next collation element in the source string or {@code NULLORDER} if
114 * Returns the previous collation element in the source string or {@code NULLORDER} if
158 * character in the source string which is found at the supplied offset.
169 * decomposable range of source text, the iterator may not return a correct
174 * the character offset into the original source strin
189 setText(CharacterIterator source) argument
200 setText(String source) argument
[all...]
/libcore/luni/src/main/java/java/util/
H A DEventObject.java34 protected transient Object source; field in class:EventObject
39 * @param source
42 public EventObject(Object source) { argument
43 if (source == null) {
44 throw new IllegalArgumentException("source == null");
46 this.source = source;
53 return source;
60 return getClass().getName() + "[source=" + source
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSourceChannelTest.java40 private Pipe.SourceChannel source; field in class:SourceChannelTest
50 source = pipe.source();
60 assertEquals(SelectionKey.OP_READ, source.validOps());
69 int count = source.read(ByteBuffer.allocate(10));
79 source.read(nullBuf);
93 long count = source.read(readBuf);
96 count = source.read(readBuf);
100 count = source.read(readBuf);
109 source
[all...]
H A DPipeTest.java51 * @tests java.nio.channels.Pipe#source()
55 SourceChannel source = pipe.source();
56 assertTrue(source.isBlocking());
/libcore/luni/src/main/java/java/beans/
H A DIndexedPropertyChangeEvent.java34 * @param source
50 public IndexedPropertyChangeEvent(Object source, String propertyName, argument
52 super(source, propertyName, oldValue, newValue);
H A DPropertyChangeEvent.java41 * @param source
55 public PropertyChangeEvent(Object source, String propertyName, argument
57 super(source);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DPipeTest.java25 p.source().configureBlocking(false);
26 assertEquals(0, p.source().read(ByteBuffer.allocate(1)));
/libcore/luni/src/test/java/libcore/java/util/
H A DEventObjectTest.java35 Object source = new Object();
36 assertSame(source, new EventObject(source).getSource());
40 assertEquals("java.util.EventObject[source=x]", new EventObject("x").toString());
46 Object source = new Object();
47 EventObject eventObject = new EventObject(source);
/libcore/luni/src/test/java/libcore/java/nio/
H A DOldDirectIntBufferTest.java33 int[] source = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
35 intBuffer.put(source, 2, 2);
36 intBuffer.put(source, 4, 2);
H A DOldDirectShortBufferTest.java33 short[] source = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
35 shortBuffer.put(source, 2, 2);
36 shortBuffer.put(source, 4, 2);
/libcore/dalvik/src/main/java/dalvik/system/
H A DDalvikLogHandler.java38 * with additional fields (parameters, source methods, etc.) will flow
44 void publish(Logger source, String tag, Level level, String message); argument
/libcore/luni/src/main/java/libcore/icu/
H A DNativeCollation.java26 public static native int compare(long address, String source, String target); argument
28 public static native long getCollationElementIterator(long address, String source); argument
30 public static native byte[] getSortKey(long address, String source); argument
47 public static native void setText(long address, String source); argument
H A DCollationElementIteratorICU.java86 * @param source text containing the collation elements.
89 public void setText(String source) { argument
90 NativeCollation.setText(address, source);
93 public void setText(CharacterIterator source) { argument
94 NativeCollation.setText(address, source.toString());
98 * Get the offset of the current source character.
101 * @return offset of the current source character.
109 * Set the offset of the current source character.
149 public static CollationElementIteratorICU getInstance(long collatorAddress, String source) { argument
150 long iteratorAddress = NativeCollation.getCollationElementIterator(collatorAddress, source);
[all...]
H A DRuleBasedCollatorICU.java66 public int compare(String source, String target) { argument
67 return NativeCollation.compare(address, source, target);
94 public CollationKey getCollationKey(String source) { argument
95 if (source == null) {
98 byte[] key = NativeCollation.getSortKey(address, source);
102 return new CollationKeyICU(source, key);
109 public CollationElementIteratorICU getCollationElementIterator(String source) { argument
110 return CollationElementIteratorICU.getInstance(address, source);
130 public boolean equals(String source, String target) { argument
131 return (compare(source, targe
[all...]
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathExpression.java147 * <p>If <code>source</code> or <code>returnType</code> is <code>null</code>,
150 * @param source The <code>InputSource</code> of the document to evaluate over.
158 * @throws NullPointerException If <code>source</code> or <code>returnType</code> is <code>null</code>.
160 public Object evaluate(InputSource source, QName returnType) argument
167 * <p>This method calls {@link #evaluate(InputSource source, QName returnType)} with a <code>returnType</code> of
173 * <p>If <code>source</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</p>
175 * @param source The <code>InputSource</code> of the document to evaluate over.
181 * @throws NullPointerException If <code>source</code> is <code>null</code>.
183 public String evaluate(InputSource source) argument
H A DXPath.java255 * <p>If <code>expression</code>, <code>source</code> or <code>returnType</code> is <code>null</code>,
259 * @param source The input source of the document to evaluate over.
266 * @throws NullPointerException If <code>expression</code>, <code>source</code> or <code>returnType</code>
271 InputSource source,
279 * <p>This method calls {@link #evaluate(String expression, InputSource source, QName returnType)} with a
285 * <p>If <code>expression</code> or <code>source</code> is <code>null</code>,
289 * @param source The <code>InputSource</code> of the document to evaluate over.
295 * @throws NullPointerException If <code>expression</code> or <code>source</code> is <code>null</code>.
297 public String evaluate(String expression, InputSource source) argument
269 evaluate( String expression, InputSource source, QName returnType) argument
[all...]
/libcore/luni/src/main/java/java/math/
H A DBitLevel.java114 static void shiftLeftOneBit(int[] result, int[] source, int srcLen) { argument
117 int val = source[i];
126 static BigInteger shiftLeftOneBit(BigInteger source) { argument
127 source.prepareJavaRepresentation();
128 int srcLen = source.numberLength;
131 shiftLeftOneBit(resDigits, source.digits, srcLen);
132 return new BigInteger(source.sign, resLen, resDigits);
136 static BigInteger shiftRight(BigInteger source, int count) { argument
137 source.prepareJavaRepresentation();
140 if (intCount >= source
185 shiftRight(int[] result, int resultLen, int[] source, int intCount, int count) argument
[all...]
/libcore/luni/src/main/java/javax/xml/transform/sax/
H A DSAXSource.java31 * input source that is not
51 * no SAX source is set using
54 * create an empty source {@link org.xml.sax.InputSource} using
69 * @param inputSource A SAX input source reference that must be non-null
86 * @param inputSource An input source reference that must be non-null
130 * Set the system identifier for this Source. If an input source
132 * input source, otherwise it will create a new input source.
168 * The XMLReader to be used for the source tree input. May be null.
173 * <p>The SAX InputSource to be used for the source tre
186 sourceToInputSource(Source source) argument
[all...]
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLSessionBindingEvent.java62 return (SSLSession) this.source;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockResolver.java34 public void addEntity(String publicId, String systemId, InputSource source) { argument
35 entities.put("[" + publicId + ":" + systemId + "]", source);
/libcore/luni/src/test/java/libcore/java/lang/
H A DSystemTest.java81 assertEquals("source of type java.lang.String is not an array", e.getMessage());
100 assertEquals("source[2] of type java.lang.String cannot be stored in destination array of type java.lang.Integer[]", e.getMessage());
127 final Object[] source = new Object[1024 * 1024];
135 source[source.length - 1] = this;
136 source[source.length - 1] = null;
143 System.arraycopy(source, 0, target, 0, source.length);
144 assertNull(target[source
[all...]
/libcore/support/src/test/java/tests/support/
H A DStreams.java36 public static byte[] streamToBytes(InputStream source) throws IOException { argument
40 while ((count = source.read(buffer)) != -1) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DRuleBasedCollatorTest.java35 String source = null;
38 CollationKey ck = rbc.getCollationKey(source);
90 String source = "abc";
91 CollationKey key1 = coll.getCollationKey(source);
92 assertEquals(source, key1.getSourceString());
97 assertTrue(coll.compare(source, source2) > 0);
110 String source = "cha";
111 CollationElementIterator iterator = coll.getCollationElementIterator(source);
116 while (offset != source.length()) {
127 String source
[all...]

Completed in 700 milliseconds

1234