Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
DBufferedDecoder.java55 int len, in processBytes() argument
59 if (len < 0) in processBytes()
67 if (len > gapLen) in processBytes()
75 len -= gapLen; in processBytes()
79 int chunkSize = len - (len % buf.length); in processBytes()
83 len -= chunkSize; in processBytes()
87 if (len != 0) in processBytes()
89 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
91 bufOff += len; in processBytes()
DBufferedEncoder.java55 int len, in processBytes() argument
59 if (len < 0) in processBytes()
67 if (len > gapLen) in processBytes()
75 len -= gapLen; in processBytes()
79 int chunkSize = len - (len % buf.length); in processBytes()
83 len -= chunkSize; in processBytes()
87 if (len != 0) in processBytes()
89 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
91 bufOff += len; in processBytes()
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java336 int len = elements.length; in toArray() local
337 if (a.length < len) in toArray()
338 return (T[]) Java6Arrays.copyOf(elements, len, a.getClass()); in toArray()
340 System.arraycopy(elements, 0, a, 0, len); in toArray()
341 if (a.length > len) in toArray()
342 a[len] = null; in toArray()
377 int len = elements.length; in set() local
378 Object[] newElements = Java6Arrays.copyOf(elements, len); in set()
402 int len = elements.length; in add() local
403 Object[] newElements = Java6Arrays.copyOf(elements, len + 1); in add()
[all …]
/dalvik/vm/
DUtfString.c118 int ic, len = 0; in dvmUtf8Len() local
121 len++; in dvmUtf8Len()
132 return len; in dvmUtf8Len()
148 static int utf16_utf8ByteLen(const u2* utf16Str, int len) in utf16_utf8ByteLen() argument
152 while (len--) { in utf16_utf8ByteLen()
175 static void convertUtf16ToUtf8(char* utf8Str, const u2* utf16Str, int len) in convertUtf16ToUtf8() argument
177 assert(len >= 0); in convertUtf16ToUtf8()
179 while (len--) { in convertUtf16ToUtf8()
205 static inline u4 dvmComputeUtf16Hash(const u2* utf16Str, int len) in dvmComputeUtf16Hash() argument
209 while (len--) in dvmComputeUtf16Hash()
[all …]
/dalvik/libcore/support/src/test/java/tests/support/
DSupport_ASimpleInputStream.java20 public int len; field in Support_ASimpleInputStream
37 len = buf.length; in Support_ASimpleInputStream()
42 len = input.length; in Support_ASimpleInputStream()
43 buf = new byte[len]; in Support_ASimpleInputStream()
44 System.arraycopy(input, 0, buf, 0, len); in Support_ASimpleInputStream()
59 return len - pos; in available()
67 if (pos < len) { in read()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
DCTSBlockCipher.java47 int len) in getUpdateOutputSize() argument
49 int total = len + bufOff; in getUpdateOutputSize()
69 int len) in getOutputSize() argument
71 return len + bufOff; in getOutputSize()
120 int len, in processBytes() argument
125 if (len < 0) in processBytes()
131 int length = getUpdateOutputSize(len); in processBytes()
144 if (len > gapLen) in processBytes()
153 len -= gapLen; in processBytes()
156 while (len > blockSize) in processBytes()
[all …]
DPaddedBlockCipher.java43 int len) in getOutputSize() argument
45 int total = len + bufOff; in getOutputSize()
70 int len) in getUpdateOutputSize() argument
72 int total = len + bufOff; in getUpdateOutputSize()
125 int len, in processBytes() argument
130 if (len < 0) in processBytes()
136 int length = getUpdateOutputSize(len); in processBytes()
149 if (len > gapLen) in processBytes()
156 len -= gapLen; in processBytes()
159 while (len > buf.length) in processBytes()
[all …]
/dalvik/libcore/sql/src/main/java/SQLite/
DBlob.java132 public int read(byte b[], int off, int len) throws IOException { in read() argument
133 if (off + len > b.length) { in read()
134 len = b.length - off; in read()
136 if (len < 0) { in read()
139 if (len == 0) { in read()
142 int n = blob.read(b, off, pos, len); in read()
225 public void write(byte[] b, int off, int len) throws IOException { in write() argument
227 if (off + len > b.length) { in write()
228 len = b.length - off; in write()
230 if (len <= 0) { in write()
[all …]
/dalvik/libcore/luni/src/main/java/java/io/
DCharArrayWriter.java168 public void write(char[] c, int offset, int len) { in write() argument
180 if ((offset | len) < 0 || len > c.length - offset) { in write()
185 expand(len); in write()
186 System.arraycopy(c, offset, this.buf, this.count, len); in write()
187 this.count += len; in write()
225 public void write(String str, int offset, int len) { in write() argument
235 if ((offset | len) < 0 || len > str.length() - offset) { in write()
240 expand(len); in write()
241 str.getChars(offset, offset + len, buf, this.count); in write()
242 this.count += len; in write()
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpecSet.java63 int len = specs.length; in equals() local
65 if ((len != otherSpecs.length) || (size() != otherSet.size())) { in equals()
69 for (int i = 0; i < len; i++) { in equals()
88 int len = specs.length; in hashCode() local
91 for (int i = 0; i < len; i++) { in hashCode()
103 int len = specs.length; in toString() local
104 StringBuffer sb = new StringBuffer(len * 25); in toString()
109 for (int i = 0; i < len; i++) { in toString()
145 int len = specs.length; in size() local
148 for (int i = 0; i < len; i++) { in size()
[all …]
/dalvik/libcore/nio/src/main/java/java/nio/
DIntBuffer.java90 public static IntBuffer wrap(int[] array, int start, int len) { in wrap() argument
94 if (start < 0 || len < 0 || (long)len + (long)start > array.length) { in wrap()
100 buf.limit = start + len; in wrap()
335 public IntBuffer get(int[] dest, int off, int len) { in get() argument
337 if (off < 0 || len < 0 || (long)len + (long)off > length) { in get()
340 if (len > remaining()) { in get()
343 for (int i = off; i < off + len; i++) { in get()
495 public IntBuffer put(int[] src, int off, int len) { in put() argument
497 if (off < 0 || len < 0 || (long)len + (long)off > length) { in put()
501 if (len > remaining()) { in put()
[all …]
DShortBuffer.java91 public static ShortBuffer wrap(short[] array, int start, int len) { in wrap() argument
95 if (start< 0 || len < 0 || (long)start + (long)len > array.length) { in wrap()
101 buf.limit = start + len; in wrap()
335 public ShortBuffer get(short[] dest, int off, int len) { in get() argument
337 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
340 if (len > remaining()) { in get()
343 for (int i = off; i < off + len; i++) { in get()
496 public ShortBuffer put(short[] src, int off, int len) { in put() argument
498 if (off < 0 || len < 0 || (long)off + (long)len > length) { in put()
502 if (len > remaining()) { in put()
[all …]
DReadWriteDirectByteBuffer.java120 public ByteBuffer put(byte[] src, int off, int len) { in put() argument
122 if (off < 0 || len < 0 || (long)off + (long)len > length) { in put()
125 if (len > remaining()) { in put()
132 len); in put()
133 position += len; in put()
161 ByteBuffer put(short[] src, int off, int len) { in put() argument
163 if (off < 0 || len < 0 || (long)off + (long)len > length) { in put()
166 if (len << 1 > remaining()) { in put()
173 getBaseAddress().setShortArray(offset + position, src, off, len, swap); in put()
174 position += len << 1; in put()
[all …]
DDoubleArrayBuffer.java66 public final DoubleBuffer get(double[] dest, int off, int len) { in get() argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
71 if (len > remaining()) { in get()
75 off, len); in get()
76 position += len; in get()
DIntArrayBuffer.java66 public final IntBuffer get(int[] dest, int off, int len) { in get() argument
68 if (off < 0 || len < 0 || (long)len + (long)off > length) { in get()
71 if (len > remaining()) { in get()
74 System.arraycopy(backingArray, offset+position, dest, off, len); in get()
75 position += len; in get()
DShortArrayBuffer.java66 public final ShortBuffer get(short[] dest, int off, int len) { in get() argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
71 if (len > remaining()) { in get()
75 off, len); in get()
76 position += len; in get()
DLongArrayBuffer.java66 public final LongBuffer get(long[] dest, int off, int len) { in get() argument
68 if (off < 0 || len < 0 || (long)len + (long)off > length) { in get()
71 if (len > remaining()) { in get()
74 System.arraycopy(backingArray, offset+position, dest, off, len); in get()
75 position += len; in get()
DFloatArrayBuffer.java66 public final FloatBuffer get(float[] dest, int off, int len) { in get() argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
71 if (len > remaining()) { in get()
74 System.arraycopy(backingArray, offset+position, dest, off, len); in get()
75 position += len; in get()
DFloatBuffer.java93 public static FloatBuffer wrap(float[] array, int start, int len) { in wrap() argument
97 if (start < 0 || len < 0 || (long)start + (long)len > array.length) { in wrap()
103 buf.limit = start + len; in wrap()
340 public FloatBuffer get(float[] dest, int off, int len) { in get() argument
342 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
346 if (len > remaining()) { in get()
349 for (int i = off; i < off + len; i++) { in get()
502 public FloatBuffer put(float[] src, int off, int len) { in put() argument
504 if (off < 0 || len < 0 || (long)off + (long)len > length) { in put()
508 if (len > remaining()) { in put()
[all …]
DDoubleBuffer.java92 public static DoubleBuffer wrap(double[] array, int start, int len) { in wrap() argument
94 if (start < 0 || len < 0 || (long)start + (long)len > length) { in wrap()
100 buf.limit = start + len; in wrap()
340 public DoubleBuffer get(double[] dest, int off, int len) { in get() argument
342 if (off < 0 || len < 0 || (long)off + (long)len > length) { in get()
346 if (len > remaining()) { in get()
349 for (int i = off; i < off + len; i++) { in get()
504 public DoubleBuffer put(double[] src, int off, int len) { in put() argument
506 if (off < 0 || len < 0 || (long)off + (long)len > length) { in put()
510 if (len > remaining()) { in put()
[all …]
DLongBuffer.java91 public static LongBuffer wrap(long[] array, int start, int len) { in wrap() argument
95 if (start < 0 || len < 0 || (long)len + (long)start > array.length) { in wrap()
101 buf.limit = start + len; in wrap()
336 public LongBuffer get(long[] dest, int off, int len) { in get() argument
338 if (off < 0 || len < 0 || (long)len + (long)off > length) { in get()
342 if (len > remaining()) { in get()
345 for (int i = off; i < off + len; i++) { in get()
499 public LongBuffer put(long[] src, int off, int len) { in put() argument
501 if (off < 0 || len < 0 || (long)len + (long)off > length) { in put()
505 if (len > remaining()) { in put()
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DPublicClassLoader.java37 long len = file.length(); in getBytes() local
38 byte raw[] = new byte[(int)len]; in getBytes()
41 if (r != len) in getBytes()
42 throw new IOException( "Can't read all, "+r+" != "+len ); in getBytes()
64 int len; in loadClass() local
66 len = is.read(buf); in loadClass()
67 clazz = defineClass(name, buf, 0, len); in loadClass()
81 public Class<?> defineClassTest(byte[] b, int off, int len) { in defineClassTest() argument
82 return defineClass(b, off, len); in defineClassTest()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
DBufferedBlockCipher.java111 int len) in getUpdateOutputSize() argument
113 int total = len + bufOff; in getUpdateOutputSize()
137 int len) in getOutputSize() argument
139 int total = len + bufOff; in getOutputSize()
202 int len, in processBytes() argument
207 if (len < 0) in processBytes()
213 int length = getUpdateOutputSize(len); in processBytes()
226 if (len > gapLen) in processBytes()
233 len -= gapLen; in processBytes()
236 while (len > buf.length) in processBytes()
[all …]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/digests/
DGeneralDigest.java58 int len) in update() argument
63 while ((xBufOff != 0) && (len > 0)) in update()
68 len--; in update()
74 while (len > xBuf.length) in update()
79 len -= xBuf.length; in update()
86 while (len > 0) in update()
91 len--; in update()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java93 int len) in getOutputSize() argument
95 int total = len + bufOff; in getOutputSize()
120 int len) in getUpdateOutputSize() argument
122 int total = len + bufOff; in getUpdateOutputSize()
177 int len, in processBytes() argument
182 if (len < 0) in processBytes()
188 int length = getUpdateOutputSize(len); in processBytes()
201 if (len > gapLen) in processBytes()
208 len -= gapLen; in processBytes()
211 while (len > buf.length) in processBytes()
[all …]

12345678910>>...12