Searched defs:len (Results 51 - 75 of 78) sorted by relevance

1234

/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlSerializer.java296 XmlSerializer text (char [] buf, int start, int len) argument
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLSignature.java93 protected void engineUpdate(byte[] input, int offset, int len) { argument
103 NativeCrypto.EVP_SignUpdate(ctx, input, offset, len);
113 NativeCrypto.EVP_VerifyUpdate(ctx, input, offset, len);
H A DSSLEngineImpl.java566 * @param len specifies the maximum number of buffers to be procesed.
573 int len, ByteBuffer dst) throws SSLException {
656 dataStream.setSourceBuffers(srcs, offset, len);
572 wrap(ByteBuffer[] srcs, int offset, int len, ByteBuffer dst) argument
H A DSSLRecordProtocol.java196 byte[] fragment, int offset, int len) {
199 +len+"]:");
200 logger.print(fragment, offset, len);
202 if (len > MAX_DATA_LENGTH) {
206 "The provided chunk of data is too big: " + len
212 activeWriteState.encrypt(content_type, fragment, offset, len);
195 wrap(byte content_type, byte[] fragment, int offset, int len) argument
H A DSSLSocketImpl.java663 logger.println("SSLSocket.needAppData: app data len: "
672 protected void writeAppData(byte[] data, int offset, int len) throws IOException { argument
678 len + " " + SSLRecordProtocol.MAX_DATA_LENGTH);
679 //logger.println(new String(data, offset, len));
682 if (len < SSLRecordProtocol.MAX_DATA_LENGTH) {
684 data, offset, len));
686 while (len >= SSLRecordProtocol.MAX_DATA_LENGTH) {
691 len -= SSLRecordProtocol.MAX_DATA_LENGTH;
693 if (len > 0) {
696 data, offset, len));
[all...]
/libcore/luni/src/main/java/java/lang/
H A DAbstractStringBuilder.java61 final void set(char[] val, int len) throws InvalidObjectException { argument
65 if (val.length < len) {
71 count = len;
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java42 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
H A DBigDecimal.java258 * @param len
261 * if {@code offset < 0 || len <= 0 || offset+len-1 < 0 ||
262 * offset+len-1 >= in.length}, or if {@code in} does not
265 public BigDecimal(char[] in, int offset, int len) { argument
267 int last = offset + (len - 1); // last index to be copied
275 if ((last >= in.length) || (offset < 0) || (len <= 0) || (last < 0)) {
277 " len=" + len + " in.length=" + in.length);
279 unscaledBuffer = new StringBuilder(len);
373 BigDecimal(char[] in, int offset, int len, MathContext mc) argument
[all...]
/libcore/luni/src/main/java/java/security/
H A DSignature.java333 * @param len
340 * if {@code offset} or {@code len} are not valid in respect to
343 public final int sign(byte[] outbuf, int offset, int len) argument
345 if (outbuf == null || offset < 0 || len < 0 ||
346 offset + len > outbuf.length) {
352 return engineSign(outbuf, offset, len);
456 * @param len
462 public final void update(byte[] data, int off, int len) argument
467 if (data == null || off < 0 || len < 0 ||
468 off + len > dat
[all...]
/libcore/luni/src/main/java/java/util/
H A DArrays.java1739 * {@code len}.
1743 public static void checkStartAndEnd(int len, int start, int end) { argument
1744 if (start < 0 || end > len) {
1745 throw new ArrayIndexOutOfBoundsException("start < 0 || end > len."
1746 + " start=" + start + ", end=" + end + ", len=" + len);
H A DComparableTimSort.java84 * 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);
460 * @param len the length of the range; must be > 0
470 int base, int len, int hint) {
471 if (DEBUG) assert len >
469 gallopLeft(Comparable<Object> key, Object[] a, int base, int len, int hint) argument
539 gallopRight(Comparable<Object> key, Object[] a, int base, int len, int hint) argument
[all...]
H A DTimSort.java109 * 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);
492 * @param len the length of the range; must be > 0
502 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, argument
504 if (DEBUG) assert len >
572 gallopRight(T key, T[] a, int base, int len, int hint, Comparator<? super T> c) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DFileHandler.java546 public void write(byte[] b, int off, int len) throws IOException { argument
547 wrapped.write(b, off, len);
548 length += len;
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CertFactoryImpl.java836 public int read(byte[] b, int off, int len) throws IOException { argument
839 for (i=0; i<len; i++) {
/libcore/luni/src/main/native/
H A Djava_text_Bidi.cpp125 int len = ubidi_getLength(uBiDi(ptr)); local
126 jbyteArray result = env->NewByteArray(len);
127 env->SetByteArrayRegion(result, 0, len, reinterpret_cast<const jbyte*>(levels));
H A Djava_math_NativeBN.cpp163 static void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong ret) { argument
169 BN_bin2bn(reinterpret_cast<const unsigned char*>(bytes.get()), len, toBigNum(ret)); local
182 static void NativeBN_litEndInts2bn(JNIEnv* env, jclass, jintArray arr, int len, jboolean neg, jlong ret0) { argument
186 if (len > 0) {
194 if ((tmpInts != NULL) && (bn_wexpand(ret, len) != NULL)) {
195 int i = len; do { i--; ret->d[i] = tmpInts[i]; } while (i > 0);
196 ret->top = len;
205 } else { // (len = 0) means value = 0 and sign will be 0, too.
371 int len = a->top; local
372 if (len
[all...]
H A Dlibcore_icu_NativeConverter.cpp514 int8_t len = sizeof(replacementBytes); local
515 ucnv_getSubstChars(cnv, replacementBytes, &len, &status);
519 jbyteArray result = env->NewByteArray(len);
523 env->SetByteArrayRegion(result, 0, len, reinterpret_cast<jbyte*>(replacementBytes));
H A Dlibcore_icu_NativeDecimalFormat.cpp223 int len = fpi->getData(NULL, 0); local
225 if (len) {
226 data = env->NewIntArray(len);
231 fpi->getData(ints.get(), len);
271 static jobject newBigDecimal(JNIEnv* env, const char* value, jsize len) { argument
278 UnicodeString tmp(value, len, UnicodeString::kInvariant);
318 int len = str.length(); local
326 return newBigDecimal(env, data, len);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DMessageDigest2Test.java259 int len = digest.getDigestLength();
260 byte[] digestBytes = new byte[len];
474 public void engineUpdate(byte[] input, int offset, int len) { argument
H A DSignatureSpiTest.java129 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
H A DSignatureTest.java233 * Class under test for sign(byte[], offset, len)
602 protected void engineUpdate(byte[] b, int off, int len) argument
H A DSignature2Test.java571 protected void engineUpdate(byte[] b, int off, int len) argument
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java478 @Override public void write(byte[] buffer, int offset, int len) { argument
479 numBytesReceived += len;
480 super.write(buffer, offset, Math.min(len, bodyLimit - count));
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java540 public XmlSerializer text(char[] text, int start, int len) argument
542 text(new String(text, start, len));
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldPreparedStatementTest.java2358 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument
2363 public void truncate(long len) throws SQLException { argument
2412 public int setString(long pos, String str, int offset, int len) argument
2417 public void truncate(long len) throws SQLException {} argument

Completed in 2873 milliseconds

1234