Searched refs:len (Results 51 - 75 of 301) sorted by relevance

1234567891011>>

/dalvik/dx/src/com/android/dx/rop/code/
H A DRegisterSpecSet.java63 int len = specs.length;
65 if ((len != otherSpecs.length) || (size() != otherSet.size())) {
69 for (int i = 0; i < len; i++) {
88 int len = specs.length;
91 for (int i = 0; i < len; i++) {
103 int len = specs.length;
104 StringBuffer sb = new StringBuffer(len * 25);
109 for (int i = 0; i < len; i++) {
145 int len = specs.length;
148 for (int i = 0; i < len;
[all...]
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyMacSpi.java61 protected void engineUpdate(byte[] input, int offset, int len) { argument
62 if (offset >= 0 && len >= 0) {
63 length = len;
/dalvik/libcore/security/src/main/java/java/security/
H A DDigestOutputStream.java91 * Writes {@code len} bytes into the stream, starting from the specified
98 * @param len
104 public void write(byte[] b, int off, int len) throws IOException { argument
107 digest.update(b, off, len);
109 // write len bytes
110 out.write(b, off, len);
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DStreamBlockCipher.java76 * @param len the number of bytes to be processed.
84 int len,
89 if (outOff + len > out.length)
94 for (int i = 0; i != len; i++)
81 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) 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 DStreamCipher.java40 * @param len the number of bytes to be processed.
45 public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/dx/src/com/android/dx/util/
H A DIndentingWriter.java139 public void write(char[] cbuf, int off, int len) throws IOException { argument
141 while (len > 0) {
144 len--;
151 public void write(String str, int off, int len) throws IOException { argument
153 while (len > 0) {
156 len--;
/dalvik/libcore/nio/src/main/java/java/nio/
H A DReadWriteCharArrayBuffer.java113 public CharBuffer put(char[] src, int off, int len) { argument
115 if (off < 0 || len < 0 || (long) len + (long) off > length) {
118 if (len > remaining()) {
121 System.arraycopy(src, off, backingArray, offset + position, len);
122 position += len;
H A DReadWriteDoubleArrayBuffer.java116 public DoubleBuffer put(double[] src, int off, int len) { argument
118 if (off < 0 || len < 0 || (long) off + (long) len > length) {
121 if (len > remaining()) {
124 System.arraycopy(src, off, backingArray, offset + position, len);
125 position += len;
H A DReadWriteFloatArrayBuffer.java116 public FloatBuffer put(float[] src, int off, int len) { argument
118 if (off < 0 || len < 0 || (long) off + (long) len > length) {
121 if (len > remaining()) {
124 System.arraycopy(src, off, backingArray, offset + position, len);
125 position += len;
H A DReadWriteIntArrayBuffer.java113 public IntBuffer put(int[] src, int off, int len) { argument
115 if (off < 0 || len < 0 || (long) off + (long) len > length) {
118 if (len > remaining()) {
121 System.arraycopy(src, off, backingArray, offset + position, len);
122 position += len;
H A DReadWriteLongArrayBuffer.java113 public LongBuffer put(long[] src, int off, int len) { argument
115 if (off < 0 || len < 0 || (long) off + (long) len > length) {
118 if (len > remaining()) {
121 System.arraycopy(src, off, backingArray, offset + position, len);
122 position += len;
H A DReadWriteShortArrayBuffer.java116 public ShortBuffer put(short[] src, int off, int len) { argument
118 if (off < 0 || len < 0 || (long) off + (long) len > length) {
121 if (len > remaining()) {
124 System.arraycopy(src, off, backingArray, offset + position, len);
125 position += len;
H A DReadWriteDirectByteBuffer.java127 public ByteBuffer put(byte[] src, int off, int len) { argument
129 if (off < 0 || len < 0 || (long) off + (long) len > length) {
132 if (len > remaining()) {
135 getBaseAddress().setByteArray(offset + position, src, off, len);
136 position += len;
151 * @param len
157 * <code>len</code>
159 * If either <code>off</code> or <code>len</code> is
164 ByteBuffer put(short[] src, int off, int len) { argument
204 put(int[] src, int off, int len) argument
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Type.java191 int len = 1; //FIXME tag length = 1. what about long form?
192 //for (; tag > 0; tag = tag >> 8, len++);
195 len++;
198 len++;
199 for (int cur = out.length >> 8; cur > 0; len++) {
203 len += out.length;
205 return len;
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DBrokenKDF2BytesGenerator.java63 * fill len bytes of the output buffer with bytes generated from
72 int len)
75 if ((out.length - len) < outOff)
80 long oBits = len * 8;
112 if ((len - outOff) > dig.length)
119 System.arraycopy(dig, 0, out, outOff, len - outOff);
125 return len;
69 generateBytes( byte[] out, int outOff, int len) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
H A DBlockCipherMac.java97 int len)
99 if (len < 0)
108 if (len > gapLen)
115 len -= gapLen;
118 while (len > blockSize)
122 len -= blockSize;
127 System.arraycopy(in, inOff, buf, bufOff, len);
129 bufOff += len;
94 update( byte[] in, int inOff, int len) argument
H A DCBCBlockCipherMac.java140 int len)
142 if (len < 0)
151 if (len > gapLen)
158 len -= gapLen;
161 while (len > blockSize)
165 len -= blockSize;
170 System.arraycopy(in, inOff, buf, bufOff, len);
172 bufOff += len;
137 update( byte[] in, int inOff, int len) argument
/dalvik/libcore/sql/src/main/java/java/sql/
H A DBlob.java150 * @param len
157 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument
164 * @param len
170 public void truncate(long len) throws SQLException; argument
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/
H A DToSAXHandler.java122 final int len = characters.length();
123 if (len > m_charsBuff.length)
125 m_charsBuff = new char[len*2 + 1];
127 characters.getChars(0,len, m_charsBuff, 0);
128 characters(m_charsBuff, 0, len);
143 final int len = comment.length();
144 if (len > m_charsBuff.length)
146 m_charsBuff = new char[len*2 + 1];
148 comment.getChars(0,len, m_charsBuff, 0);
149 m_lexHandler.comment(m_charsBuff, 0, len);
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/
H A DOpenSSLPBEParametersGenerator.java59 int len = (bytesNeeded > buf.length) ? buf.length : bytesNeeded;
60 System.arraycopy(buf, 0, key, offset, len);
61 offset += len;
64 bytesNeeded -= len;
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySignature1.java80 protected void engineUpdate(byte[] b, int off, int len) argument
83 if (off < 0 || off > b.length || off > len) {
86 if (len < 0 || len > b.length) {
87 throw new IllegalArgumentException("incorrect parameter len");
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1_MessageDigestImpl.java195 * len number of bytes within buffer allotted for the message digest;
197 * len should be >= 20, DigestException is thrown otherwise
204 * if offset + len > buf.length <BR>
205 * if offset > buf.length or len > buf.length
208 * if len < 20
213 protected int engineDigest(byte[] buf, int offset, int len) throws DigestException { argument
218 if ( offset > buf.length || len > buf.length || (len + offset) > buf.length ) {
222 if ( len < DIGEST_LENGTH ) {
287 * The method silently returns if "len" <
305 engineUpdate(byte[] input, int offset, int len) argument
[all...]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java339 int len = elements.length;
341 boolean[] matched = new boolean[len];
344 if (++k > len)
347 for (int i = 0; i < len; ++i) {
355 return k == len;
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/
H A DSecretKeySpec.java79 * length <code>len</code> and the specified <code>algorithm</code> name.
85 * @param len
91 * is empty or <code>offset</code> and <code>len</code> do not
94 * if <code>offset</code> or <code>len</code> is negative.
96 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument
104 if (len < 0 || offset < 0) {
108 if ((key.length - offset < len)) {
115 this.key = new byte[len];
116 System.arraycopy(key, offset, this.key, 0, len);

Completed in 409 milliseconds

1234567891011>>