Searched defs:len (Results 1 - 25 of 202) sorted by relevance

123456789

/dalvik/vm/alloc/TEST/HeapBitmapTest/include/cutils/
H A Dashmem.h9 ashmem_create_region(const char *name, size_t len) argument
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/
H A DIvParameterSpec.java53 * Creates a new <code>IvParameterSpec</code> instance with <code>len</code>
61 * @param len
65 * <code>len</code> do not specify a valid chunk in the
68 * if <code>offset</code> or <code>len</code> are negative.
70 public IvParameterSpec(byte[] iv, int offset, int len) { argument
71 if ((iv == null) || (iv.length - offset < len)) {
75 if (offset < 0 || len < 0) {
78 this.iv = new byte[len];
79 System.arraycopy(iv, offset, this.iv, 0, len);
H A DSecretKeySpec.java81 * length <code>len</code> and the specified <code>algorithm</code> name.
87 * @param len
93 * is empty or <code>offset</code> and <code>len</code> do not
96 * if <code>offset</code> or <code>len</code> is negative.
98 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument
106 if (len < 0 || offset < 0) {
110 if ((key.length - offset < len)) {
117 this.key = new byte[len];
118 System.arraycopy(key, offset, this.key, 0, len);
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DMGFParameters.java22 int len)
24 this.seed = new byte[len];
25 System.arraycopy(seed, off, this.seed, 0, len);
19 MGFParameters( byte[] seed, int off, int len) argument
/dalvik/libcore/archive/src/main/native/
H A Djava_util_zip_Adler32.c25 jbyteArray buf, int off, int len,
35 result = (jlong) adler32 ((uLong) crc, (Bytef *) (b + off), (uInt) len);
24 Java_java_util_zip_Adler32_updateImpl(JNIEnv * env, jobject recv, jbyteArray buf, int off, int len, jlong crc) argument
H A Djava_util_zip_CRC32.c24 jbyteArray buf, int off, int len,
33 result = crc32 ((uLong) crc, (Bytef *) (b + off), (uInt) len);
23 Java_java_util_zip_CRC32_updateImpl(JNIEnv * env, jobject recv, jbyteArray buf, int off, int len, jlong crc) argument
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DCipherOutputStream.java107 * Writes the {@code len} bytes from buffer {@code b} starting at offset
114 * @param len
121 public void write(byte[] b, int off, int len) throws IOException { argument
122 if (len == 0) {
125 byte[] result = cipher.update(b, off, len);
H A DMacSpi.java82 * len}.
88 * @param len
92 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DBase64.java37 public static byte[] decode(byte[] in, int len) { argument
39 int length = len / 4 * 3;
51 for (;;len--) {
52 chr = in[len-1];
72 for (int i=0; i<len; i++) {
H A DPasswordProtectedInputStream.java57 public int read(byte b[], int off, int len) throws IOException { argument
58 int read = in.read(b, off, len);
H A DPositionedInputStream.java60 public int read(byte b[], int off, int len) throws IOException { argument
61 int read = in.read(b, off, len);
/dalvik/libcore/nio/src/main/java/java/nio/
H A DDoubleArrayBuffer.java66 public final DoubleBuffer get(double[] dest, int off, int len) { argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) {
71 if (len > remaining()) {
75 off, len);
76 position += len;
H A DFloatArrayBuffer.java66 public final FloatBuffer get(float[] dest, int off, int len) { argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) {
71 if (len > remaining()) {
74 System.arraycopy(backingArray, offset+position, dest, off, len);
75 position += len;
H A DIntArrayBuffer.java66 public final IntBuffer get(int[] dest, int off, int len) { argument
68 if (off < 0 || len < 0 || (long)len + (long)off > length) {
71 if (len > remaining()) {
74 System.arraycopy(backingArray, offset+position, dest, off, len);
75 position += len;
H A DLongArrayBuffer.java66 public final LongBuffer get(long[] dest, int off, int len) { argument
68 if (off < 0 || len < 0 || (long)len + (long)off > length) {
71 if (len > remaining()) {
74 System.arraycopy(backingArray, offset+position, dest, off, len);
75 position += len;
H A DShortArrayBuffer.java66 public final ShortBuffer get(short[] dest, int off, int len) { argument
68 if (off < 0 || len < 0 || (long)off + (long)len > length) {
71 if (len > remaining()) {
75 off, len);
76 position += len;
/dalvik/libcore/security/src/main/java/java/security/
H A DDigestInputStream.java109 * Reads {@code len} bytes into the specified {@code byte[]}, starting from
121 * @param len
129 public int read(byte[] b, int off, int len) throws IOException { argument
130 // read next up to len bytes
131 int bytesRead = in.read(b, off, len);
H A DDigestOutputStream.java101 * Writes {@code len} bytes into the stream, starting from the specified
108 * @param len
114 public void write(byte[] b, int off, int len) throws IOException { argument
117 digest.update(b, off, len);
119 // write len bytes
120 out.write(b, off, len);
H A DMessageDigestSpi.java68 * @param len
71 * if {@code offset} or {@code len} are not valid in respect to
75 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
123 * @param len
129 * if {@code offset} or {@code len} are not valid in respect to
134 protected int engineDigest(byte[] buf, int offset, int len) argument
136 if (len < engineGetDigestLength()) {
144 if (offset + len > buf.length) {
149 if (len < tmp.length) {
H A DSecureClassLoader.java105 * @param len
111 * if {@code off} or {@code len} are not valid in respect to
121 protected final Class<?> defineClass(String name, byte[] b, int off, int len, argument
123 return cs == null ? defineClass(name, b, off, len) : defineClass(name,
124 b, off, len, getPD(cs));
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DAsymmetricBlockCipher.java34 * process the block of len bytes stored in in from offset inOff.
38 * @param len the length of the block to be processed.
43 public byte[] processBlock(byte[] in, int inOff, int len) argument
H A DDerivationFunction.java15 public int generateBytes(byte[] out, int outOff, int len) argument
H A DDigest.java34 * @param len the length of the data.
36 public void update(byte[] in, int inOff, int len); argument
H A DMac.java45 * @param len the length of the input starting at inOff.
49 public void update(byte[] in, int inOff, int len) argument
H A DSigner.java24 public void update(byte[] in, int off, int len); argument

Completed in 445 milliseconds

123456789