/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | ExemptionMechanismSpiTest.java | 92 int len = MyExemptionMechanismSpi.getLength(); 94 assertEquals("Incorrect length", bbRes.length, len); 96 emSpi.engineGenExemptionBlob(new byte[1], len), len);
|
H A D | CipherSpiTest.java | 217 int len = bb.length; 219 ByteBuffer bb1 = ByteBuffer.allocate(len); 233 bb1.position(len); 238 bb2.position(len - 2); 267 int len = 10; 268 byte[] bbuf = new byte[len]; 284 ByteBuffer bb2 = ByteBuffer.allocate(len); 289 bb2.position(len - 2);
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldErrorManagerTest.java | 60 public synchronized void write(byte[] buffer, int offset, int len) { argument 61 linesWritten.append(new String(buffer, offset, len));
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipFileTest.java | 128 int len, totalLen1, totalLen2; 160 while ((len = stream1.read(buf)) > 0) { 161 totalLen1 += len; 169 while ((len = stream2.read(buf)) > 0) { 170 totalLen2 += len;
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | DerOutputStream.java | 36 private int[][] len = new int[initSize][]; field in class:DerOutputStream 57 length = len[index][0]; 66 int[] compLens = len[index]; 91 int[] compLens = len[index]; 106 System.arraycopy(len, 0, newLen, 0, val.length); 107 len = newLen; 113 len[index] = lengths;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest1Test.java | 71 // offset + len > buf.length 77 // offset + len > Integer.MAX_VALUE 82 // offset<0 and len<0 are passed to provider 84 final int len = -1; 90 assertEquals("len", len, arg2); 94 md.update(bytes, offset, len); 161 // offset + len > buf.length 167 // offset + len > Integer.MAX_VALUE 172 // offset<0 and len< 317 engineUpdate(byte[] input, int offset, int len) argument [all...] |
H A D | SignatureSpiTest.java | 129 protected void engineUpdate(byte[] b, int off, int len) 172 public void engineUpdate(byte[] b, int off, int len) { argument 206 public void engineUpdate(byte[] b, int off, int len) { argument 260 protected void engineUpdate(byte[] b, int off, int len) argument 285 protected int engineSign(byte[] outbuf, int offset, int len) argument
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | ZipInputStream.java | 160 ((PushbackInputStream) in).unread(buf, len - diff, diff); 172 lastRead = inRead = entryIn = len = 0; 332 if (lastRead >= len) { 334 if ((len = in.read(buf)) == -1) { 338 entryIn += len; 340 int toRead = byteCount > (len - lastRead) ? len - lastRead : byteCount; 352 if (len > 0) { 353 entryIn += len;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | CRC32Test.java | 150 int len = 1; 153 crc.update(byteArray, off, len); 169 crc.update(byteArray, offError, len);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidBufferedInputStreamTest.java | 107 int len = a.read(b, 0, x); 108 if (len < 0) { 111 return new String(b, 0, len);
|
H A D | OldAndroidBufferedReaderTest.java | 79 int len = a.read(b, 0, x); 80 if (len < 0) { 83 return new String(b, 0, len);
|
H A D | OldAndroidLineNumberReaderTest.java | 93 int len = a.read(b, 0, x); 94 if (len < 0) { 97 return new String(b, 0, len);
|
H A D | OldAndroidPushbackInputStreamTest.java | 71 int len = a.read(b, 0, x); 72 if (len < 0) { 75 return new String(b, 0, len);
|
H A D | OldFileWriterTest.java | 84 int len = str.length() * NUMBER; 86 char[] strChars = new char[len]; 127 int len = inputStr.length(); 140 assertEquals(len, flen);
|
H A D | OldAndroidDataInputStreamTest.java | 121 int len = a.read(b, 0, x); 122 if (len < 0) { 125 return new String(b, 0, len);
|
/libcore/luni/src/main/java/java/util/ |
H A D | ComparableTimSort.java | 84 * address base[i] and extends for len[i] elements. It's always 112 int len = a.length; 114 Object[] newArray = new Object[len < 2 * INITIAL_TMP_STORAGE_LENGTH ? 115 len >>> 1 : INITIAL_TMP_STORAGE_LENGTH]; 128 int stackLen = (len < 120 ? 5 : 129 len < 1542 ? 10 : 130 len < 119151 ? 19 : 40); 477 * @param len the length of the range; must be > 0 487 int base, int len, int hint) { 488 if (DEBUG) assert len > 486 gallopLeft(Comparable<Object> key, Object[] a, int base, int len, int hint) argument 556 gallopRight(Comparable<Object> key, Object[] a, int base, int len, int hint) argument [all...] |
H A D | TimSort.java | 109 * address base[i] and extends for len[i] elements. It's always 139 int len = a.length; 141 T[] newArray = (T[]) new Object[len < 2 * INITIAL_TMP_STORAGE_LENGTH ? 142 len >>> 1 : INITIAL_TMP_STORAGE_LENGTH]; 155 int stackLen = (len < 120 ? 5 : 156 len < 1542 ? 10 : 157 len < 119151 ? 19 : 40); 510 * @param len the length of the range; must be > 0 520 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, argument 522 if (DEBUG) assert len > 590 gallopRight(T key, T[] a, int base, int len, int hint, Comparator<? super T> c) argument [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySignature2.java | 60 protected void engineUpdate(byte[] b, int off, int len) argument
|
/libcore/luni/src/main/java/java/security/ |
H A D | Signature.java | 410 * @param len 417 * if {@code offset} or {@code len} are not valid in respect to 420 public final int sign(byte[] outbuf, int offset, int len) argument 422 if (outbuf == null || offset < 0 || len < 0 || 423 offset + len > outbuf.length) { 429 return engineSign(outbuf, offset, len); 533 * @param len 539 public final void update(byte[] data, int off, int len) argument 544 if (data == null || off < 0 || len < 0 || 545 off + len > dat [all...] |
/libcore/luni/src/main/native/ |
H A D | java_util_zip_Deflater.cpp | 26 static void Deflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlong handle) { argument 27 toNativeZipStream(handle)->setDictionary(env, dict, off, len, false); 67 static void Deflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong handle) { argument 68 toNativeZipStream(handle)->setInput(env, buf, off, len); 71 static jint Deflater_deflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong handle, int flushStyle) { argument 78 stream->stream.avail_out = len;
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | Mac.java | 380 * {@code input} from the specified {@code offset} and length {@code len}. 386 * @param len 391 * if {@code offset} and {@code len} do not specified a valid 394 public final void update(byte[] input, int offset, int len) throws IllegalStateException { argument 401 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) { 404 + " offset=" + offset + ", len=" + len); 406 getSpi().engineUpdate(input, offset, len);
|
H A D | CipherSpi.java | 426 int len = limit - position; 427 bInput = new byte[len]; 429 engineUpdateAAD(bInput, 0, len);
|
/libcore/luni/src/test/java/tests/support/ |
H A D | Support_SQL.java | 92 int len) { 93 for (int i = 0; i < len; ++i) 91 isEqual(byte[] b1, int off1, byte[] b2, int off2, int len) argument
|
/libcore/luni/src/test/java/libcore/io/ |
H A D | OsTest.java | 334 int len = msg.length; 336 assertEquals(len, Libcore.os.sendto(sendFd, msg, 0, len, 0, to)); 339 assertEquals(len, Libcore.os.recvfrom(recvFd, received, 0, received.length, 0, from)); 381 int len = packet.length; 384 assertEquals(len, Libcore.os.sendto(fd, packet, 0, len, 0, to, 0)); 387 assertEquals(len, Libcore.os.sendto(fd, packet, 0, len, 0, null, 0)); 393 assertEquals(len, Libcor [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | MappedByteBufferTest.java | 49 int len = mmb.capacity(); 50 assertEquals("Got wrong number of bytes", 46, len); //$NON-NLS-1$ 84 int len = mmb.capacity(); 86 0, len);
|