/libcore/luni/src/main/java/java/sql/ |
H A D | Clob.java | 151 * Writes {@code len} characters of a string, starting at a specified 160 * @param len 166 public int setString(long pos, String str, int offset, int len) argument 172 * @param len 178 public void truncate(long len) throws SQLException; argument
|
/libcore/luni/src/main/native/ |
H A D | ZipUtilities.h | 36 void setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, bool inflate); 37 void setInput(JNIEnv* env, jbyteArray buf, jint off, jint len);
|
H A D | java_util_zip_Adler32.cpp | 26 static jlong Adler32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong crc) { argument 31 return adler32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
H A D | java_util_zip_CRC32.cpp | 26 static jlong CRC32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong crc) { argument 31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
H A D | java_util_zip_Inflater.cpp | 51 static void Inflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong handle) { argument 52 toNativeZipStream(handle)->setInput(env, buf, off, len); 55 static jint Inflater_setFileInputImpl(JNIEnv* env, jobject, jobject javaFileDescriptor, jlong off, jint len, jlong handle) { argument 60 if (stream->inCap < len) { 61 stream->setInput(env, NULL, 0, len); 64 stream->stream.avail_in = len; 79 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, dst, len))) > 0) { 81 len -= byteCount; 91 static jint Inflater_inflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong handle) { argument 98 stream->stream.avail_out = len; 145 Inflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlong handle) argument [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | SignatureSpi.java | 99 * @param len 105 protected abstract void engineUpdate(byte[] b, int off, int len) argument 173 * @param len 180 * if {@code offset} or {@code len} are not valid in respect to 183 protected int engineSign(byte[] outbuf, int offset, int len) throws SignatureException { argument 188 if (len < tmp.length) { 189 throw new SignatureException("The value of len parameter is less than the actual signature length"); 194 if (offset + len > outbuf.length) { 195 throw new SignatureException("offset + len > outbuf.length");
|
H A D | SecureClassLoader.java | 76 * @param len 82 * if {@code off} or {@code len} are not valid in respect to 91 protected final Class<?> defineClass(String name, byte[] b, int off, int len, argument 93 return cs == null ? defineClass(name, b, off, len) : defineClass(name, 94 b, off, len, getPD(cs));
|
H A D | MessageDigest.java | 194 * @param len 197 * if {@code offset} or {@code len} are not valid in respect to 200 public void update(byte[] input, int offset, int len) { argument 202 // offset < 0 || len < 0 || 205 (long) offset + (long) len > input.length) { 208 engineUpdate(input, offset, len); 245 * @param len 251 * if {@code offset} or {@code len} are not valid in respect to 255 public int digest(byte[] buf, int offset, int len) throws DigestException { argument 257 // offset < 0 || len < [all...] |
/libcore/luni/src/main/java/java/math/ |
H A D | NativeBN.java | 42 public static native void BN_bin2bn(byte[] s, int len, boolean neg, long ret); argument 43 // BIGNUM * BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); 47 public static native void litEndInts2bn(int[] ints, int len, boolean neg, long ret); argument 49 public static native void twosComp2bn(byte[] s, int len, long ret); argument
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherOutputStream.java | 79 * Writes the {@code len} bytes from buffer {@code b} starting at offset 86 * @param len 91 @Override public void write(byte[] b, int off, int len) throws IOException { argument 92 if (len == 0) { 95 byte[] result = cipher.update(b, off, len);
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 97 int len = bytes.length; 98 int inc = ((len - 32) / 32) + 1; 99 for (int i = 0; i < len;) {
|
/libcore/luni/src/main/java/java/io/ |
H A D | CharArrayWriter.java | 159 * @param len 162 * if {@code offset < 0} or {@code len < 0}, or if 163 * {@code offset + len} is bigger than the size of {@code c}. 166 public void write(char[] buffer, int offset, int len) { argument 167 Arrays.checkOffsetAndCount(buffer.length, offset, len); 169 expand(len); 170 System.arraycopy(buffer, offset, this.buf, this.count, len); 171 this.count += len;
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Base64.java | 39 public static byte[] decode(byte[] in, int len) { argument 41 int length = len / 4 * 3; 53 for (;;len--) { 54 chr = in[len-1]; 74 for (int i=0; i<len; i++) {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | MacSpiTest.java | 72 protected void engineUpdate(byte[] input, int offset, int len) { argument 73 super.engineUpdate(input, offset, len); 106 protected void engineUpdate(byte[] input, int offset, int len) { argument 107 super.engineUpdate(input, offset, len); 145 protected void engineUpdate(byte[] input, int offset, int len) { argument 146 super.engineUpdate(input, offset, len); 245 protected void engineUpdate(byte[] input, int offset, int len) { argument
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | OldCharset_AbstractTest.java | 204 int len = actualCB.length(); 205 if (expectedCB.length() != len) { 207 if (expectedCB.length() < len) len = expectedCB.length(); 209 for (int i = 0; i < len; i++) { 245 int len = actualBB.remaining(); 246 if (expected.length != len) { 248 if (expected.length < len) len = expected.length; 250 for (int i = 0; i < len; [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | Types.java | 138 int len = as.length-1; 139 if (as[len].length() > 1){ 140 out.append(as[len].substring(1, as[len].length() - 1)); 142 char ch = as[len].charAt(0); 163 for (int i = 0; i < len; i++){
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | CollatorTest.java | 66 int len = arr.length; 68 len--; 69 String foo = new String(arr, 0, len, "iso8859-1"); 72 len = arr.length; 74 len--; 75 String bar = new String(arr, 0, len, "iso8859-1");
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | SecretKeySpecTest.java | 76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 84 int len = 4; 102 new SecretKeySpec(key, offset, len, null); 142 int len = 4; 203 int len = 4; 204 SecretKeySpec sks = new SecretKeySpec(key, offset, len, algorithm); 205 assertEquals("Key length is incorrect", len, sks.getEncoded().length);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | Adler32Test.java | 133 int len = 1; 136 adl.update(byteArray, off, len); 152 adl.update(byteArray, offError, len);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidByteArrayInputStreamTest.java | 57 int len = a.read(b, 0, x); 58 if (len < 0) { 61 return new String(b, 0, len);
|
H A D | OldAndroidCharArrayReaderTest.java | 56 int len = a.read(b, 0, x); 57 if (len < 0) { 60 return new String(b, 0, len);
|
H A D | OldAndroidPushbackReaderTest.java | 71 int len = a.read(b, 0, x); 72 if (len < 0) { 75 return new String(b, 0, len);
|
H A D | OldAndroidStringReaderTest.java | 54 int len = a.read(b, 0, x); 55 if (len < 0) { 58 return new String(b, 0, len);
|
/libcore/luni/src/main/java/java/util/regex/ |
H A D | Splitter.java | 41 int len = re.length(); 42 if (len == 0) { 46 if (len == 1 && METACHARACTERS.indexOf(ch) == -1) { 48 } else if (len == 2 && ch == '\\') {
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipStreamTest.java | 147 int len, totalLen = 0; 149 while ((len = in.read(buf)) > 0) { 150 contents.write(buf, 0, len); 151 totalLen += len;
|