/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/ |
D | BufferedDecoder.java | 55 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()
|
D | BufferedEncoder.java | 55 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/ |
D | CopyOnWriteArrayList.java | 336 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/ |
D | UtfString.c | 118 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/ |
D | Support_ASimpleInputStream.java | 20 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/ |
D | CTSBlockCipher.java | 47 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 …]
|
D | PaddedBlockCipher.java | 43 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/ |
D | Blob.java | 132 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/ |
D | CharArrayWriter.java | 168 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/ |
D | RegisterSpecSet.java | 63 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/ |
D | IntBuffer.java | 90 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 …]
|
D | ShortBuffer.java | 91 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 …]
|
D | ReadWriteDirectByteBuffer.java | 120 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 …]
|
D | DoubleArrayBuffer.java | 66 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()
|
D | IntArrayBuffer.java | 66 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()
|
D | ShortArrayBuffer.java | 66 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()
|
D | LongArrayBuffer.java | 66 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()
|
D | FloatArrayBuffer.java | 66 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()
|
D | FloatBuffer.java | 93 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 …]
|
D | DoubleBuffer.java | 92 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 …]
|
D | LongBuffer.java | 91 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/ |
D | PublicClassLoader.java | 37 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/ |
D | BufferedBlockCipher.java | 111 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/ |
D | GeneralDigest.java | 58 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/ |
D | PaddedBufferedBlockCipher.java | 93 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 …]
|