Searched refs:len (Results 276 - 300 of 322) sorted by relevance

<<111213

/libcore/luni/src/main/native/
H A Djava_math_NativeBN.cpp175 static void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong ret) { argument
181 if (!BN_bin2bn(reinterpret_cast<const unsigned char*>(bytes.get()), len, toBigNum(ret))) {
189 static void NativeBN_litEndInts2bn(JNIEnv* env, jclass, jintArray arr, int len, jboolean neg, jlong ret0) { argument
202 size_t numBytes = len * sizeof(int);
H A Dlibcore_icu_NativeConverter.cpp517 int8_t len = sizeof(replacementBytes); local
518 ucnv_getSubstChars(cnv, replacementBytes, &len, &status);
522 jbyteArray result = env->NewByteArray(len);
526 env->SetByteArrayRegion(result, 0, len, reinterpret_cast<jbyte*>(replacementBytes));
/libcore/ojluni/src/main/native/
H A DLinuxWatchService.c63 arr[3] = (jint)offsetof(struct inotify_event, len);
H A Djni_util.c39 #define MALLOC_MIN4(len) ((char *)malloc((len) + 1 < 4 ? 4 : (len) + 1))
395 // int len = (int)strlen(str);
401 // if (len > 512) {
402 // str1 = (jchar *)malloc(len * sizeof(jchar));
410 // for (i=0;i<len;i++)
412 // result = (*env)->NewString(env, str1, len);
423 // jint len = (*env)->GetStringLength(env, jstr);
429 // result = MALLOC_MIN4(len);
845 Canonicalize(JNIEnv *env, char *orig, char *out, int len) argument
[all...]
H A Dnet_util.c344 in_cksum(unsigned short *addr, int len) { argument
345 int nleft = len;
/libcore/tools/docs/crypto/
H A Dupdate_crypto_support.py99 name = name[:-1 * len("/PKCS7PADDING")] + "/PKCS5PADDING"
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedInputStreamTest.java406 public int read(byte[] buf, int off, int len) throws IOException {
410 int toRead = len;
H A DBufferedReaderTest.java231 /* Null buffer should throw NPE even when len == 0 */
309 public int read(char[] buf, int off, int len) throws IOException {
312 int toRead = len;
/libcore/luni/src/test/java/libcore/java/util/
H A DLibcoreIoDerivedBase64Test.java296 /** Assert that actual equals the first len bytes of expected. */
297 private static void assertSubArrayEquals(int[] expected, int len, int[] actual) { argument
299 String expectedString = intsToString(expected, len);
/libcore/luni/src/test/java/tests/java/security/
H A DSecureClassLoaderTest.java231 public Class define(String name, byte[] b, int off, int len, argument
233 return defineClass(name, b, off, len, cs);
/libcore/ojluni/src/main/java/java/io/
H A DPrintStream.java475 * Writes <code>len</code> bytes from the specified byte array starting at
486 * @param len Number of bytes to write
488 public void write(byte buf[], int off, int len) { argument
492 out.write(buf, off, len);
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DBaseCalendar.java185 protected void setCache(int year, long jan1, int len) { argument
188 cachedFixedDateNextJan1 = jan1 + len;
/libcore/ojluni/src/main/java/javax/crypto/
H A DCipher.java2265 * @param len the number of AAD bytes
2270 * {@code len} is greater than the length of the
2283 public final void updateAAD(byte[] src, int offset, int len) { argument
2287 if ((src == null) || (offset < 0) || (len < 0)
2288 || ((len + offset) > src.length)) {
2293 if (len == 0) {
2296 spi.engineUpdateAAD(src, offset, len);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DStringTest.java47 private static String newString(int start, int len, char[] data) throws Exception { argument
49 return new String(data, start, len);
52 return UNSAFE_CONSTRUCTOR.newInstance(Integer.valueOf(start), Integer.valueOf(len),
/libcore/ojluni/src/main/java/java/net/
H A DURL.java634 int len = protocol.length();
635 if (len < 1)
640 for (int i = 1; i < len; i++) {
/libcore/ojluni/src/main/java/java/util/
H A DArrayDeque.java819 int len = a.length;
820 if (size > len) {
825 if (size < len)
H A DPriorityQueue.java259 int len = a.length;
260 if (len == 1 || this.comparator != null)
/libcore/ojluni/src/main/java/java/util/prefs/
H A DFileSystemPreferences.java849 int len = s.length();
850 byte[] result = new byte[2*len];
851 for (int i=0, j=0; i<len; i++) {
/libcore/ojluni/src/main/java/sun/util/logging/
H A DPlatformLogger.java657 int len = (params != null) ? params.length : 0;
658 Object[] sparams = new String[len];
659 for (int i = 0; i < len; i++) {
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSignatureTest.java234 * Class under test for sign(byte[], offset, len)
623 protected void engineUpdate(byte[] b, int off, int len) argument
683 protected void engineUpdate(byte[] b, int off, int len) argument
/libcore/ojluni/src/main/java/java/lang/
H A DPackage.java252 int len = Math.max(di.length, si.length);
253 for (int i = 0; i < len; i++) {
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerValue.java319 public DerValue(byte[] buf, int offset, int len) throws IOException { argument
320 data = init(true, new ByteArrayInputStream(buf, offset, len));
/libcore/luni/src/test/java/libcore/java/io/
H A DOldBufferedWriterTest.java308 public void write(char cbuf[], int off, int len) throws IOException {
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalConstructorsTest.java275 * new BigDecimal(char[] value, int offset, int len, MathContext mc);
280 int len = 12;
284 BigDecimal result = new BigDecimal(value, offset, len, mc);
368 * new BigDecimal(char[] value, int offset, int len, MathContext mc);
373 int len = 120;
378 new BigDecimal(value, offset, len, mc);
389 // (even if for quite sure the implementation will use the offset/len variant internally):
/libcore/luni/src/test/java/libcore/xml/
H A DXmlPullParserFactoryTest.java202 public XmlSerializer text(char[] buf, int start, int len) throws IOException { argument

Completed in 514 milliseconds

<<111213