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

1234567891011>>

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DMGFParameters.java22 int len)
24 this.seed = new byte[len];
25 System.arraycopy(seed, off, this.seed, 0, len);
19 MGFParameters( byte[] seed, int off, int len) argument
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java20 public int len; field in class:Support_ASimpleInputStream
37 len = buf.length;
42 len = input.length;
43 buf = new byte[len];
44 System.arraycopy(input, 0, buf, 0, len);
59 return len - pos;
67 if (pos < len) {
H A DSupport_ASimpleReader.java20 public int len; field in class:Support_ASimpleReader
37 len = buf.length;
52 return len > pos;
60 int available = len - pos;
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
H A DBufferedDecoder.java55 int len,
59 if (len < 0)
67 if (len > gapLen)
75 len -= gapLen;
79 int chunkSize = len - (len % buf.length);
83 len -= chunkSize;
87 if (len != 0)
89 System.arraycopy(in, inOff, buf, bufOff, len);
91 bufOff += len;
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
[all...]
H A DBufferedEncoder.java55 int len,
59 if (len < 0)
67 if (len > gapLen)
75 len -= gapLen;
79 int chunkSize = len - (len % buf.length);
83 len -= chunkSize;
87 if (len != 0)
89 System.arraycopy(in, inOff, buf, bufOff, len);
91 bufOff += len;
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
[all...]
/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) {
74 if (len > remaining()) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
78 position += 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) {
74 if (len > remaining()) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
78 position += 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) {
74 if (len > remaining()) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
78 position += 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) {
74 if (len > remaining()) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
78 position += 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) {
74 if (len > remaining()) {
77 System.arraycopy(backingArray, offset + position, dest, off, len);
78 position += len;
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLEngineDataStream.java69 int len = (length < available) ? length : available;
70 available -= len;
71 consumed += len;
72 byte[] res = new byte[len];
78 len --;
79 if (len == 0) {
/dalvik/vm/alloc/TEST/HeapBitmapTest/include/cutils/
H A Dashmem.h9 ashmem_create_region(const char *name, size_t len) argument
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/
H A DIvParameterSpec.java53 * Creates a new <code>IvParameterSpec</code> instance with <code>len</code>
61 * @param len
65 * <code>len</code> do not specify a valid chunk in the
68 * if <code>offset</code> or <code>len</code> are negative.
70 public IvParameterSpec(byte[] iv, int offset, int len) { argument
71 if ((iv == null) || (iv.length - offset < len)) {
75 if (offset < 0 || len < 0) {
78 this.iv = new byte[len];
79 System.arraycopy(iv, offset, this.iv, 0, len);
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
H A DPaddedBlockCipher.java36 * doFinal with an input of len bytes.
38 * @param len the length of the input.
40 * with len bytes of input.
43 int len)
45 int total = len + bufOff;
63 * an input of len bytes.
65 * @param len the length of the input.
67 * with len bytes of input.
70 int len)
72 int total = len
42 getOutputSize( int len) argument
69 getUpdateOutputSize( int len) argument
122 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
[all...]
H A DCTSBlockCipher.java40 * an input of len bytes.
42 * @param len the length of the input.
44 * with len bytes of input.
47 int len)
49 int total = len + bufOff;
62 * doFinal with an input of len bytes.
64 * @param len the length of the input.
66 * with len bytes of input.
69 int len)
71 return len
46 getUpdateOutputSize( int len) argument
68 getOutputSize( int len) argument
117 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
[all...]
/dalvik/libcore/sql/src/main/java/SQLite/
H A DBlob.java124 * @param len length to be read
128 public int read(byte b[], int off, int len) throws IOException { argument
129 if (off + len > b.length) {
130 len = b.length - off;
132 if (len < 0) {
135 if (len == 0) {
138 int n = blob.read(b, off, pos, len);
218 * @param len length of data to be written
221 public void write(byte[] b, int off, int len) throws IOException { argument
223 if (off + len >
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/org/bouncycastle/crypto/digests/
H A DGeneralDigest.java58 int len)
63 while ((xBufOff != 0) && (len > 0))
68 len--;
74 while (len > xBuf.length)
79 len -= xBuf.length;
86 while (len > 0)
91 len--;
55 update( byte[] in, int inOff, int len) argument
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DPublicClassLoader.java37 long len = file.length();
38 byte raw[] = new byte[(int)len];
41 if (r != len)
42 throw new IOException( "Can't read all, "+r+" != "+len );
64 int len;
66 len = is.read(buf);
67 clazz = defineClass(name, buf, 0, len);
81 public Class<?> defineClassTest(byte[] b, int off, int len) { argument
82 return defineClass(b, off, len);
/dalvik/libcore/luni/src/main/java/java/io/
H A DCharArrayWriter.java161 * @param len
164 * if {@code offset < 0} or {@code len < 0}, or if
165 * {@code offset + len} is bigger than the size of {@code c}.
168 public void write(char[] c, int offset, int len) { argument
175 // added null check, used (offset | len) < 0 instead of
176 // (offset < 0) || (len < 0) to safe one operation
180 if ((offset | len) < 0 || len > c.length - offset) {
185 expand(len);
186 System.arraycopy(c, offset, this.buf, this.count, len);
225 write(String str, int offset, int len) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/io/
H A DDigestOutputStream.java32 int len)
35 digest.update(b, off, len);
36 out.write(b, off, len);
29 write( byte[] b, int off, int len) argument
H A DMacOutputStream.java32 int len)
35 mac.update(b, off, len);
36 out.write(b, off, len);
29 write( byte[] b, int off, int len) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DAsymmetricBlockCipher.java34 * process the block of len bytes stored in in from offset inOff.
38 * @param len the length of the block to be processed.
43 public byte[] processBlock(byte[] in, int inOff, int len) argument
H A DDerivationFunction.java15 public int generateBytes(byte[] out, int outOff, int len) argument
H A DDigest.java34 * @param len the length of the data.
36 public void update(byte[] in, int inOff, int len); argument
H A DSigner.java24 public void update(byte[] in, int off, int len); argument

Completed in 636 milliseconds

1234567891011>>