Searched defs:count (Results 1 - 25 of 106) sorted by relevance

12345

/libcore/luni/src/main/java/java/lang/
H A DArrayIndexOutOfBoundsException.java71 int count) {
73 + "; regionLength=" + count);
70 ArrayIndexOutOfBoundsException(int sourceLength, int offset, int count) argument
H A DStringIndexOutOfBoundsException.java78 public StringIndexOutOfBoundsException(String s, int offset, int count) { argument
79 this(s.length(), offset, count);
87 int count) {
89 + "; regionLength=" + count);
86 StringIndexOutOfBoundsException(int sourceLength, int offset, int count) argument
H A DUnsafeByteSequence.java33 private int count; field in class:UnsafeByteSequence
40 return count;
48 count = 0;
52 if (count + length >= bytes.length) {
53 byte[] newBytes = new byte[(count + length) * 2];
54 System.arraycopy(bytes, 0, newBytes, 0, count);
57 System.arraycopy(buffer, offset, bytes, count, length);
58 count += length;
62 if (count == bytes.length) {
63 byte[] newBytes = new byte[count *
[all...]
/libcore/luni/src/main/native/
H A DtoStringArray.cpp48 size_t count = 0; local
49 while (strings[count] != NULL) {
50 ++count;
52 return count;
H A DtoStringArray.h25 size_t count = (*counter)(); local
26 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL);
30 for (size_t i = 0; i < count; ++i) {
45 size_t count = (*counter)(); local
46 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL);
50 for (size_t i = 0; i < count; ++i) {
/libcore/luni/src/main/java/java/io/
H A DBufferedOutputStream.java47 protected int count; field in class:BufferedOutputStream
96 * Writes {@code count} bytes from the byte array {@code buffer} starting at
118 * If offset or count is outside of bounds.
138 if (length > (internalBuffer.length - count)) {
142 System.arraycopy(buffer, offset, internalBuffer, count, length);
143 count += length;
161 * copied into the buffer and the count incremented. Otherwise, the buffer
173 if (count == buf.length) {
174 out.write(buf, 0, count);
175 count
[all...]
H A DFilterInputStream.java118 * Reads at most {@code count} bytes from this stream and stores them in the
129 * @param count
137 public int read(byte[] buffer, int offset, int count) throws IOException { argument
138 return in.read(buffer, offset, count);
H A DFilterReader.java119 * Reads at most {@code count} characters from the filtered reader and stores them
129 * @param count
137 public int read(char[] buffer, int offset, int count) throws IOException { argument
139 return in.read(buffer, offset, count);
H A DFilterWriter.java77 * Writes {@code count} characters from the char array {@code buffer}
84 * @param count
90 public void write(char[] buffer, int offset, int count) throws IOException { argument
92 out.write(buffer, offset, count);
113 * Writes {@code count} characters from the string {@code str} starting at
121 * @param count
127 public void write(String str, int offset, int count) throws IOException { argument
129 out.write(str, offset, count);
H A DObjectInput.java71 * Reads at most {@code count} bytes from this stream and stores them in
72 * byte array {@code buffer} starting at offset {@code count}. Blocks while
80 * @param count
87 public int read(byte[] buffer, int offset, int count) throws IOException; argument
H A DObjectOutput.java57 * Writes {@code count} bytes from the byte array {@code buffer} starting at
65 * @param count
71 public void write(byte[] buffer, int offset, int count) throws IOException; argument
H A DOutputStream.java86 * Writes {@code count} bytes from the byte array {@code buffer} starting at
93 * @param count
99 * if {@code offset < 0} or {@code count < 0}, or if
100 * {@code offset + count} is bigger than the length of
103 public void write(byte[] buffer, int offset, int count) throws IOException { argument
104 Arrays.checkOffsetAndCount(buffer.length, offset, count);
105 for (int i = offset; i < offset + count; i++) {
H A DPipedOutputStream.java118 * Writes {@code count} bytes from the byte array {@code buffer} starting at
130 * @param count
134 * if {@code offset < 0} or {@code count < 0}, or if {@code
135 * offset + count} is bigger than the length of {@code buffer}.
146 public void write(byte[] buffer, int offset, int count) throws IOException { argument
147 super.write(buffer, offset, count);
H A DPipedWriter.java123 * Writes {@code count} characters from the character array {@code buffer}
135 * @param count
139 * if {@code offset < 0} or {@code count < 0}, or if {@code
140 * offset + count} is bigger than the length of {@code buffer}.
154 public void write(char[] buffer, int offset, int count) throws IOException { argument
159 reader.receive(buffer, offset, count);
H A DSequenceInputStream.java149 * Reads at most {@code count} bytes from this sequence of input streams and
157 * requested by {@code count}, it will not retry to read more on its own
170 * @param count
176 * if {@code offset < 0} or {@code count < 0}, or if {@code
177 * offset + count} is greater than the size of {@code buffer}.
184 public int read(byte[] buffer, int offset, int count) throws IOException { argument
188 Arrays.checkOffsetAndCount(buffer.length, offset, count);
190 int result = in.read(buffer, offset, count);
H A DStringBufferInputStream.java38 protected int count; field in class:StringBufferInputStream
60 count = str.length();
65 return count - pos;
78 return pos < count ? buffer.charAt(pos++) & 0xFF : -1;
111 int copylen = count - pos < length ? count - pos : length;
142 if (this.count - pos < charCount) {
143 numskipped = this.count - pos;
144 pos = this.count;
/libcore/luni/src/main/java/java/sql/
H A DArray.java39 * starting at a particular {@code index} and comprising up to {@code count}
45 * @param count
51 public Object getArray(long index, int count) throws SQLException; argument
55 * starting at a particular {@code index} and comprising up to {@code count}
61 * @param count
70 public Object getArray(long index, int count, Map<String, Class<?>> map) argument
117 * beginning at a particular index and comprising up to {@code count}
123 * @param count
129 public ResultSet getResultSet(long index, int count) throws SQLException; argument
133 * beginning at a particular index and comprising up to {@code count}
149 getResultSet(long index, int count, Map<String, Class<?>> map) argument
[all...]
/libcore/luni/src/main/java/libcore/net/http/
H A DFixedLengthInputStream.java39 @Override public int read(byte[] buffer, int offset, int count) throws IOException { argument
40 Arrays.checkOffsetAndCount(buffer.length, offset, count);
45 int read = in.read(buffer, offset, Math.min(count, bytesRemaining));
H A DFixedLengthOutputStream.java35 @Override public void write(byte[] buffer, int offset, int count) throws IOException { argument
37 Arrays.checkOffsetAndCount(buffer.length, offset, count);
38 if (count > bytesRemaining) {
39 throw new IOException("expected " + bytesRemaining + " bytes but received " + count);
41 socketOut.write(buffer, offset, count);
42 bytesRemaining -= count;
H A DRetryableOutputStream.java54 @Override public synchronized void write(byte[] buffer, int offset, int count) argument
57 Arrays.checkOffsetAndCount(buffer.length, offset, count);
58 if (limit != -1 && content.size() > limit - count) {
61 content.write(buffer, offset, count);
H A DUnknownLengthHttpInputStream.java35 @Override public int read(byte[] buffer, int offset, int count) throws IOException { argument
36 Arrays.checkOffsetAndCount(buffer.length, offset, count);
41 int read = in.read(buffer, offset, count);
/libcore/luni/src/main/java/org/w3c/dom/
H A DCharacterData.java69 * @param count The number of 16-bit units to extract.
71 * <code>count</code> exceeds the <code>length</code>, then all 16-bit
76 * <code>data</code>, or if the specified <code>count</code> is
82 int count)
114 * @param count The number of 16-bit units to delete. If the sum of
115 * <code>offset</code> and <code>count</code> exceeds
121 * <code>data</code>, or if the specified <code>count</code> is
126 int count)
133 * @param count The number of 16-bit units to replace. If the sum of
134 * <code>offset</code> and <code>count</cod
81 substringData(int offset, int count) argument
125 deleteData(int offset, int count) argument
148 replaceData(int offset, int count, String arg) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipFileTest.java114 private File createHugeZipFile(int count) throws IOException { argument
119 for (int i = 0; i < count; ++i) {
/libcore/support/src/test/java/tests/io/
H A DMockOs.java102 public void enqueueNormal(String methodName, int count) { argument
104 for (int i = 0; i < count; i++) {
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleReader.java56 public int read(char[] dest, int offset, int count) throws IOException { argument
62 int readable = (available < count ? available : count);

Completed in 337 milliseconds

12345