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

1234567

/dalvik/dx/src/com/android/dx/util/
H A DByteArray.java122 * @param off {@code >= 0, < size();} offset to fetch
125 public int getByte(int off) { argument
126 checkOffsets(off, off + 1);
127 return getByte0(off);
133 * @param off {@code >= 0, < (size() - 1);} offset to fetch
136 public int getShort(int off) { argument
137 checkOffsets(off, off + 2);
138 return (getByte0(off) <<
147 getInt(int off) argument
161 getLong(int off) argument
181 getUnsignedByte(int off) argument
192 getUnsignedShort(int off) argument
235 getByte0(int off) argument
246 getUnsignedByte0(int off) argument
[all...]
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DAdler32.java74 * @param off
82 public void update(byte[] buf, int off, int nbytes) { argument
84 if (off <= buf.length && nbytes >= 0 && off >= 0
85 && buf.length - off >= nbytes) {
86 adler = updateImpl(buf, off, nbytes, adler);
92 private native long updateImpl(byte[] buf, int off, int nbytes, long adler1); argument
H A DCRC32.java69 * buf}, starting at offset {@code off}.
73 * @param off
78 public void update(byte[] buf, int off, int nbytes) { argument
80 if (off <= buf.length && nbytes >= 0 && off >= 0
81 && buf.length - off >= nbytes) {
83 crc = updateImpl(buf, off, nbytes, crc);
89 private native long updateImpl(byte[] buf, int off, int nbytes, long crc1); argument
H A DChecksum.java44 * @param off
49 public void update(byte[] buf, int off, int nbytes); argument
H A DDeflater.java200 * @param off
206 public synchronized int deflate(byte[] buf, int off, int nbytes) { argument
207 return deflateImpl(buf, off, nbytes, flushParm);
215 * @param off the offset within {@code buf} at which to start writing to.
227 public synchronized int deflate(byte[] buf, int off, int nbytes, int flush) { argument
231 return deflateImpl(buf, off, nbytes, flush);
235 byte[] buf, int off, int nbytes, int flush) {
239 if (off > buf.length || nbytes < 0 || off < 0 || buf.length - off < nbyte
234 deflateImpl( byte[] buf, int off, int nbytes, int flush) argument
248 deflateImpl(byte[] buf, int off, int nbytes, long handle, int flushParm1) argument
419 setDictionary(byte[] buf, int off, int nbytes) argument
432 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
458 setInput(byte[] buf, int off, int nbytes) argument
480 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
[all...]
H A DInflater.java220 * buf} starting at {@code off}.
224 * @param off
233 public synchronized int inflate(byte[] buf, int off, int nbytes) argument
236 if (off > buf.length || nbytes < 0 || off < 0
237 || buf.length - off < nbytes) {
255 int result = inflateImpl(buf, off, nbytes, streamHandle);
264 private native synchronized int inflateImpl(byte[] buf, int off, argument
332 * @param off
338 public synchronized void setDictionary(byte[] buf, int off, in argument
351 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
380 setInput(byte[] buf, int off, int nbytes) argument
409 setFileInput(FileDescriptor fd, long off, int nbytes) argument
419 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
423 setFileInputImpl(FileDescriptor fd, long off, int nbytes, long handle) argument
[all...]
H A DCheckedOutputStream.java73 * Writes n bytes of data from {@code buf} starting at offset {@code off} to
78 * @param off
87 public void write(byte[] buf, int off, int nbytes) throws IOException { argument
88 out.write(buf, off, nbytes);
89 check.update(buf, off, nbytes);
H A DGZIPInputStream.java135 private long getLong(byte[] buffer, int off) { argument
137 l |= (buffer[off] & 0xFF);
138 l |= (buffer[off + 1] & 0xFF) << 8;
139 l |= (buffer[off + 2] & 0xFF) << 16;
140 l |= ((long) (buffer[off + 3] & 0xFF)) << 24;
144 private int getShort(byte[] buffer, int off) { argument
145 return (buffer[off] & 0xFF) | ((buffer[off + 1] & 0xFF) << 8);
154 * @param off
160 public int read(byte[] buffer, int off, in argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DMGFParameters.java21 int off,
25 System.arraycopy(seed, off, this.seed, 0, len);
19 MGFParameters( byte[] seed, int off, int len) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
H A DEncoder.java12 int encode(byte[] data, int off, int length, OutputStream out) throws IOException; argument
14 int decode(byte[] data, int off, int length, OutputStream out) throws IOException; argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/io/
H A DDigestOutputStream.java31 int off,
35 digest.update(b, off, len);
36 out.write(b, off, len);
29 write( byte[] b, int off, int len) argument
H A DMacOutputStream.java31 int off,
35 mac.update(b, off, len);
36 out.write(b, off, len);
29 write( byte[] b, int off, int len) argument
H A DDigestInputStream.java36 int off,
40 int n = in.read(b, off, len);
43 digest.update(b, off, n);
34 read( byte[] b, int off, int len) argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DPasswordProtectedInputStream.java57 public int read(byte b[], int off, int len) throws IOException { argument
58 int read = in.read(b, off, len);
60 int lastIndex = off + read;
61 for (int i = off; i < lastIndex; i++) {
/dalvik/libcore/nio/src/main/java/java/nio/
H A DDoubleArrayBuffer.java69 public final DoubleBuffer get(double[] dest, int off, int len) { argument
71 if (off < 0 || len < 0 || (long) off + (long) len > length) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
H A DFloatArrayBuffer.java69 public final FloatBuffer get(float[] dest, int off, int len) { argument
71 if (off < 0 || len < 0 || (long) off + (long) len > length) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
H A DIntArrayBuffer.java69 public final IntBuffer get(int[] dest, int off, int len) { argument
71 if (off < 0 || len < 0 || (long) len + (long) off > length) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
H A DLongArrayBuffer.java69 public final LongBuffer get(long[] dest, int off, int len) { argument
71 if (off < 0 || len < 0 || (long) len + (long) off > length) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
H A DShortArrayBuffer.java69 public final ShortBuffer get(short[] dest, int off, int len) { argument
71 if (off < 0 || len < 0 || (long) off + (long) len > length) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DSigner.java24 public void update(byte[] in, int off, int len); argument
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/
H A DSourceDataLine.java27 int write(byte[] b, int off, int len); argument
H A DTargetDataLine.java27 int read(byte[] b, int off, int len); argument
/dalvik/libcore/sql/src/main/java/SQLite/
H A DBlob.java123 * @param off offset into byte array
128 public int read(byte b[], int off, int len) throws IOException { argument
129 if (off + len > b.length) {
130 len = b.length - off;
138 int n = blob.read(b, off, pos, len);
217 * @param off offset within byte array
221 public void write(byte[] b, int off, int len) throws IOException { argument
223 if (off + len > b.length) {
224 len = b.length - off;
229 pos += blob.write(b, off, po
291 write(byte[] b, int off, int pos, int len) argument
302 read(byte[] b, int off, int pos, int len) argument
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DDigestInputStream.java35 // Indicates whether digest functionality is on or off
104 * @param off
115 public int read(byte[] b, int off, int len) throws IOException { argument
117 int bytesRead = in.read(b, off, len);
122 digest.update(b, off, bytesRead);
149 (isOn ? ", is on" : ", is off"); //$NON-NLS-1$ //$NON-NLS-2$
H A DDigestOutputStream.java35 // Indicates whether digest functionality is on or off
96 * @param off
104 public void write(byte[] b, int off, int len) throws IOException { argument
107 digest.update(b, off, len);
110 out.write(b, off, len);
134 (isOn ? ", is on" : ", is off"); //$NON-NLS-1$ //$NON-NLS-2$

Completed in 281 milliseconds

1234567