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

/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DAdler32.java83 * @param nbytes
86 * if {@code offset > buf.length} or {@code nbytes} is negative
87 * or {@code offset + nbytes > buf.length}.
90 public void update(byte[] buf, int off, int nbytes) { argument
92 if (off <= buf.length && nbytes >= 0 && off >= 0
93 && buf.length - off >= nbytes) {
94 adler = updateImpl(buf, off, nbytes, adler);
100 private native long updateImpl(byte[] buf, int off, int nbytes, long adler1); argument
H A DCRC32.java83 * @param nbytes
87 public void update(byte[] buf, int off, int nbytes) { argument
89 if (off <= buf.length && nbytes >= 0 && off >= 0
90 && buf.length - off >= nbytes) {
91 tbytes += nbytes;
92 crc = updateImpl(buf, off, nbytes, crc);
98 private native long updateImpl(byte[] buf, int off, int nbytes, long crc1); argument
H A DChecksum.java60 * @param nbytes
64 public void update(byte[] buf, int off, int nbytes); argument
H A DInflater.java190 * @param nbytes
197 public synchronized int inflate(byte[] buf, int off, int nbytes) argument
200 if (off <= buf.length && nbytes >= 0 && off >= 0
201 && buf.length - off >= nbytes) {
202 if (nbytes == 0)
219 int result = inflateImpl(buf, off, nbytes, streamHandle);
229 int nbytes, long handle);
324 * @param nbytes
329 public synchronized void setDictionary(byte[] buf, int off, int nbytes) { argument
334 if (off <= buf.length && nbytes >
228 inflateImpl(byte[] buf, int off, int nbytes, long handle) argument
342 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
373 setInput(byte[] buf, int off, int nbytes) argument
419 setFileInput(FileDescriptor fd, long off, int nbytes) argument
461 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
465 setFileInputImpl(FileDescriptor fd, long off, int nbytes, long handle) argument
[all...]
H A DCheckedOutputStream.java87 * @param nbytes
94 public void write(byte[] buf, int off, int nbytes) throws IOException { argument
95 out.write(buf, off, nbytes);
96 check.update(buf, off, nbytes);
H A DDeflater.java195 * @param nbytes
200 public synchronized int deflate(byte[] buf, int off, int nbytes) { argument
205 if (off <= buf.length && nbytes >= 0 && off >= 0
206 && buf.length - off >= nbytes) {
211 return deflateImpl(buf, off, nbytes, streamHandle, flushParm);
217 int nbytes, long handle, int flushParm1);
386 * @param nbytes
391 public synchronized void setDictionary(byte[] buf, int off, int nbytes) { argument
396 if (off <= buf.length && nbytes >= 0 && off >= 0
397 && buf.length - off >= nbytes) {
216 deflateImpl(byte[] buf, int off, int nbytes, long handle, int flushParm1) argument
404 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
432 setInput(byte[] buf, int off, int nbytes) argument
454 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
[all...]
H A DCheckedInputStream.java81 * @param nbytes
90 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
91 int x = in.read(buf, off, nbytes);
112 * @param nbytes
120 public long skip(long nbytes) throws IOException { argument
121 if (nbytes < 1) {
127 while (skipped != nbytes) {
129 (v = (int) (nbytes - skipped)) > b.length ? b.length : v);
H A DInflaterInputStream.java148 * Reads up to {@code nbytes} of decompressed data and stores it in
155 * @param nbytes
163 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
173 if (off < 0 || nbytes < 0 || off + nbytes > buffer.length) {
177 if (nbytes == 0) {
187 if (off <= buffer.length && nbytes >= 0 && off >= 0
188 && buffer.length - off >= nbytes) {
195 result = inf.inflate(buffer, off, nbytes);
250 * @param nbytes
258 skip(long nbytes) argument
[all...]
H A DDeflaterOutputStream.java178 * Compresses {@code nbytes} of data from {@code buf} starting at
185 * @param nbytes
192 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
197 if (off <= buffer.length && nbytes >= 0 && off >= 0
198 && buffer.length - off >= nbytes) {
202 def.setInput(buffer, off, nbytes);
H A DGZIPOutputStream.java92 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
93 super.write(buffer, off, nbytes);
94 crc.update(buffer, off, nbytes);
H A DGZIPInputStream.java151 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
159 if (off <= buffer.length && nbytes >= 0 && off >= 0
160 && buffer.length - off >= nbytes) {
161 int val = super.read(buffer, off, nbytes);
H A DZipOutputStream.java402 public void write(byte[] buffer, int off, int nbytes) argument
405 if ((off > buffer.length) || (nbytes < 0) || (off < 0)
406 || (buffer.length - off < nbytes)) {
416 out.write(buffer, off, nbytes);
418 super.write(buffer, off, nbytes);
420 crc.update(buffer, off, nbytes);
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DByteBufferTest.java1408 int nbytes = 2;
1409 byte bytes[] = new byte[nbytes];
1414 for (int i = 0; buf.remaining() >= nbytes; i++) {
1417 assertEquals(i * nbytes, buf.position());
1442 int nbytes = 2;
1443 byte bytes[] = new byte[nbytes];
1448 for (int i = 0; i <= buf.limit() - nbytes; i++) {
1465 buf.getChar(buf.limit() - nbytes + 1);
1492 int nbytes = 2;
1493 byte bytes[] = new byte[nbytes];
[all...]
/dalvik/libcore/luni/src/main/java/java/io/
H A DDataInputStream.java289 int nbytes = in.read(buf, nread, 4 - nread);
290 if (nbytes == -1) {
293 nread += nbytes;
393 int nbytes = in.read(buf, nread, 2 - nread);
394 if (nbytes == -1) {
397 nread += nbytes;
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java45 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
46 return is.read(buf, off, nbytes);
/dalvik/libcore/luni/src/main/native/
H A Dorg_apache_harmony_luni_platform_OSFileSystem.cpp295 jint buf, jint offset, jint nbytes) {
297 if(nbytes == 0) {
301 result = read(fd, (void *) ((jint *)(buf+offset)), (int) nbytes);
315 jint buf, jint offset, jint nbytes) {
321 rc = write (fd, (const void *) ((jint *)(buf+offset)), (int) nbytes);
338 jbyteArray byteArray, jint offset, jint nbytes) {
344 if (nbytes == 0) {
351 result = read(fd, (void *) (bytes + offset), (int) nbytes);
390 jbyteArray byteArray, jint offset, jint nbytes) {
397 result = write(fd, (const char *) bytes + offset, (int) nbytes);
294 harmony_io_readDirectImpl(JNIEnv * env, jobject thiz, jint fd, jint buf, jint offset, jint nbytes) argument
314 harmony_io_writeDirectImpl(JNIEnv * env, jobject thiz, jint fd, jint buf, jint offset, jint nbytes) argument
337 harmony_io_readImpl(JNIEnv * env, jobject thiz, jint fd, jbyteArray byteArray, jint offset, jint nbytes) argument
389 harmony_io_writeImpl(JNIEnv * env, jobject thiz, jint fd, jbyteArray byteArray, jint offset, jint nbytes) argument
732 harmony_io_ttyReadImpl(JNIEnv *env, jobject thiz, jbyteArray byteArray, jint offset, jint nbytes) argument
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/
H A DJarURLConnection.java239 int nbytes = 0;
240 while ((nbytes = is.read(buf)) > -1) {
241 fos.write(buf, 0, nbytes);
493 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
494 return inputStream.read(buf, off, nbytes);
498 public long skip(long nbytes) throws IOException { argument
499 return inputStream.skip(nbytes);
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java110 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
111 int r = super.read(buf, off, nbytes);
131 public long skip(long nbytes) throws IOException { argument
134 while (cnt < nbytes) {
136 (rem = nbytes - cnt) > buf.length ? buf.length
H A DJarVerifier.java119 public void write(byte[] buf, int off, int nbytes) { argument
120 digest.update(buf, off, nbytes);
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DPipedOutputStreamTest.java66 public String read(int nbytes) { argument
67 byte[] buf = new byte[nbytes];
69 reader.read(buf, 0, nbytes);
H A DPipedWriterTest.java79 public String read(int nbytes) { argument
80 buf = new char[nbytes];
82 pr.read(buf, 0, nbytes);
H A DPipedInputStreamTest.java47 public PWriter(PipedOutputStream pout, int nbytes) { argument
49 bytes = new byte[nbytes];
/dalvik/tools/dmtracedump/
H A DTraceDump.c251 int nbytes = 0; local
254 nbytes += 4;
255 if (nbytes >= len)
262 nbytes += 4;
263 if (nbytes >= len)
270 nbytes += 5;
271 if (nbytes >= len)
279 nbytes += 1;
280 if (nbytes >= len)
286 if (nbytes >
1836 int nbytes = sizeof(MethodEntry*) * pClass->numMethods; local
2062 int nbytes = sizeof(UniqueMethodEntry) * traceData->numUniqueMethods; local
2099 int nbytes = sizeof(MethodEntry*) * pUnique->numMethods; local
2156 int nbytes = sizeof(UniqueMethodEntry*) * traceData->numUniqueMethods; local
[all...]
/dalvik/vm/alloc/
H A DHeapSource.c1207 static void releasePagesInRange(void *start, void *end, void *nbytes) argument
1217 *(size_t *)nbytes += length;
/dalvik/libcore/sql/src/main/native/
H A Dsqlite_jni.c3916 int nbytes; local
3926 nbytes = sqlite3_column_bytes((sqlite3_stmt *) v->vm, col);
3930 b = (*env)->NewByteArray(env, nbytes);
3935 (*env)->SetByteArrayRegion(env, b, 0, nbytes, data);
3953 int nbytes; local
3963 nbytes = sqlite3_column_bytes16((sqlite3_stmt *) v->vm, col);
3967 nbytes /= sizeof (jchar);
3968 b = (*env)->NewString(env, data, nbytes);

Completed in 488 milliseconds