/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DalvikLogging.java | 38 int length = loggerName.length(); 39 if (length <= 23) { 44 return length - (lastPeriod + 1) <= 23 46 : loggerName.substring(loggerName.length() - 23);
|
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramPacket.java | 35 private int length; field in class:DatagramPacket 38 * The last user-supplied length (as opposed to a length set by simply receiving a packet). 39 * This length (unlike 'length') is sticky, and survives until the user sets another length. 52 * {@code length} bytes. 56 * @param length 57 * the length of the data buffer. 59 public DatagramPacket(byte[] data, int length) { argument 74 DatagramPacket(byte[] data, int offset, int length) argument 95 DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) argument 116 DatagramPacket(byte[] data, int length, InetAddress host, int port) argument 211 setLength(int length) argument 232 setReceivedLength(int length) argument 264 DatagramPacket(byte[] data, int length, SocketAddress sockAddr) argument 286 DatagramPacket(byte[] data, int offset, int length, SocketAddress sockAddr) argument [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | CharsetUtils.java | 29 public static native byte[] toAsciiBytes(String s, int offset, int length); argument 35 public static native byte[] toIsoLatin1Bytes(String s, int offset, int length); argument 41 public static native byte[] toUtf8Bytes(String s, int offset, int length); argument 47 public static byte[] toBigEndianUtf16Bytes(String s, int offset, int length) { argument 48 byte[] result = new byte[length * 2]; 49 int end = offset + length; 67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument 76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | StringLengthBenchmark.java | 24 int length = 0; 26 length = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".length(); 28 if (length != 51) throw new RuntimeException();
|
H A D | CharsetBenchmark.java | 25 private int length; field in class:CharsetBenchmark 44 byte[] bytes = makeBytes(makeString(length)); 51 byte[] bytes = makeBytes(makeString(length)); 53 new String(bytes, 0, bytes.length); 58 byte[] bytes = makeBytes(makeString(length)); 60 new String(bytes, 0, bytes.length, name); 65 String string = makeString(length); 71 private static String makeString(int length) { argument 72 StringBuilder result = new StringBuilder(length); 73 for (int i = 0; i < length; [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
H A D | EncodedKeySpec.java | 37 this.encodedKey = new byte[encodedKey.length]; 39 this.encodedKey, 0, this.encodedKey.length); 50 byte[] ret = new byte[encodedKey.length]; 51 System.arraycopy(encodedKey, 0, ret, 0, ret.length);
|
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 29 if (s.length() != length) { 32 for (int i = 0; i < length; i++) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { argument 46 for (int i = start; i < start + length; i++) { 53 int index = hashCode & (pool.length - 1); 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length); [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | MalformedInputException.java | 32 // the length of the malformed input 38 * @param length 39 * the length of the malformed input. 41 public MalformedInputException(int length) { argument 42 this.inputLength = length; 46 * Gets the length of the malformed input. 48 * @return the length of the malformed input.
|
H A D | UnmappableCharacterException.java | 32 // The length of the unmappable character 38 * @param length 39 * the length of the unmappable character. 41 public UnmappableCharacterException(int length) { argument 42 this.inputLength = length; 46 * Returns the length of the unmappable character.
|
H A D | CoderResult.java | 34 * calling <code>CoderResult.malformedForLength(int)</code> with the length of 71 * length 77 * certain length 84 // the length of the erroneous input 85 private final int length; field in class:CoderResult 92 * @param length 93 * the length of the erroneous input 95 private CoderResult(int type, int length) { argument 97 this.length = length; 111 malformedForLength(int length) argument 139 unmappableForLength(int length) argument 198 public int length() throws UnsupportedOperationException { method in class:CoderResult [all...] |
/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | PBEKeySpec.java | 47 this.password = new char[password.length]; 48 System.arraycopy(password, 0, this.password, 0, password.length); 57 * iteration count and the desired length of the derived key. 66 * the desired key length of the derived key, 71 * the key length is zero or negative. 78 if (salt.length == 0) { 79 throw new IllegalArgumentException("salt.length == 0"); 91 this.password = new char[password.length]; 92 System.arraycopy(password, 0, this.password, 0, password.length); 94 this.salt = new byte[salt.length]; [all...] |
H A D | PBEParameterSpec.java | 50 this.salt = new byte[salt.length]; 51 System.arraycopy(salt, 0, this.salt, 0, salt.length); 61 byte[] result = new byte[salt.length]; 62 System.arraycopy(salt, 0, result, 0, salt.length);
|
H A D | IvParameterSpec.java | 47 this.iv = new byte[iv.length]; 48 System.arraycopy(iv, 0, this.iv, 0, iv.length); 64 if ((iv == null) || (iv.length - offset < byteCount)) { 67 Arrays.checkOffsetAndCount(iv.length, offset, byteCount); 78 byte[] res = new byte[iv.length]; 79 System.arraycopy(iv, 0, res, 0, iv.length);
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 43 if (bytes == null || bytes.length == 0) { 44 if (rhsBytes == null || rhsBytes.length == 0) { 49 if (rhsBytes == null || rhsBytes.length == 0) { 54 int count = Math.min(bytes.length, rhsBytes.length); 65 if (bytes.length < rhsBytes.length) { 68 if (bytes.length > rhsBytes.length) { 96 if (bytes != null && bytes.length ! [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | Chunk.java | 25 * The "offset" and "length" fields are present so handlers can over-allocate 35 public int offset, length; // position within "data" field in class:Chunk 45 public Chunk(int type, byte[] data, int offset, int length) { argument 49 this.length = length; 61 this.length = buf.position();
|
/libcore/luni/src/main/java/java/io/ |
H A D | BufferedOutputStream.java | 106 * @param length 110 * if {@code offset < 0} or {@code length < 0}, or if 111 * {@code offset + length} is greater than the size of 121 public synchronized void write(byte[] buffer, int offset, int length) throws IOException { argument 129 if (length >= internalBuffer.length) { 131 out.write(buffer, offset, length); 135 Arrays.checkOffsetAndCount(buffer.length, offset, length); 138 if (length > (internalBuffe [all...] |
H A D | PushbackInputStream.java | 37 * {@code buf.length} indicates that no bytes are available. A value of 0 89 return buf.length - pos + in.available(); 141 if (pos < buf.length) { 158 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}. 170 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); 173 if (pos < buf.length) { 174 copyLength = (buf.length - pos >= byteCount) ? byteCount : buf.length - pos; 216 if (pos < buf.length) { 217 numSkipped += (byteCount < buf.length 272 unread(byte[] buffer, int offset, int length) argument [all...] |
H A D | OptionalDataException.java | 42 public int length; field in class:OptionalDataException
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
H A D | AttributesImpl.java | 61 length = 0; 95 return length; 109 if (index >= 0 && index < length) { 127 if (index >= 0 && index < length) { 145 if (index >= 0 && index < length) { 163 if (index >= 0 && index < length) { 180 if (index >= 0 && index < length) { 203 int max = length * 5; 222 int max = length * 5; 244 int max = length * 612 int length; field in class:AttributesImpl [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | StringTokenizer.java | 112 for (int i = position, length = string.length(); i < length; i++) { 148 int length = string.length(); 149 if (position < length) { 155 for (int i = position; i < length; i++) 186 int length = string.length(); 188 if (i < length) { [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | BerInputStream.java | 50 * Primary is used for decoding indefinite length encoding 54 /** Indicates indefinite length of the current type */ 60 /** Current decoded length */ 61 protected int length; field in class:BerInputStream 76 this(encoded, 0, encoded.length); 84 * @param expectedLength expected length of full encoding, this includes 85 * identifier, length an content octets 94 // compare expected and decoded length 95 if (length != INDEFINIT_LENGTH 96 && (offset + expectedLength) != (this.offset + this.length)) { [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringBuilderTest.java | 26 sb.deleteCharAt(sb.length() - 1); 54 sb.delete(sb.length() - 3, sb.length()); 69 sb.deleteCharAt(sb.length()); 87 sb.delete(sb.length(), sb.length() + 2); 88 sb.delete(sb.length(), sb.length()); 95 sb.delete(sb.length() + 2, sb.length() [all...] |
/libcore/dex/src/main/java/com/android/dex/ |
H A D | ClassData.java | 50 Field[] result = new Field[staticFields.length + instanceFields.length]; 51 System.arraycopy(staticFields, 0, result, 0, staticFields.length); 52 System.arraycopy(instanceFields, 0, result, staticFields.length, instanceFields.length); 57 Method[] result = new Method[directMethods.length + virtualMethods.length]; 58 System.arraycopy(directMethods, 0, result, 0, directMethods.length); 59 System.arraycopy(virtualMethods, 0, result, directMethods.length, virtualMethods.length); [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | StringToReal.java | 73 private static StringExponentPair initialParse(String s, int length, boolean isDouble) { argument 75 if (length == 0) { 82 char c = s.charAt(length - 1); 84 length--; 85 if (length == 0) { 93 if (end + 1 == length) { 107 String exponentString = s.substring(exponentOffset, length); 111 for (int i = 0; i < exponentString.length(); ++i) { 137 end = length; 144 --length; [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | X509TrustManagerImpl.java | 12 if(ax509certificate == null || ax509certificate.length == 0) 13 throw new IllegalArgumentException("null or zero-length certificate chain"); 14 if(s == null || s.length() == 0) 15 throw new IllegalArgumentException("null or zero-length authentication type"); 17 for (int i = 0; i < ax509certificate.length; i++) { 27 if(ax509certificate == null || ax509certificate.length == 0) 28 throw new IllegalArgumentException("null or zero-length certificate chain"); 29 if(s == null || s.length() == 0) 30 throw new IllegalArgumentException("null or zero-length authentication type"); 32 for (int i = 0; i < ax509certificate.length; [all...] |