/frameworks/base/awt/javax/imageio/stream/ |
H A D | IIOByteBuffer.java | 30 * The IIOByteBuffer class represents a byte array with offset and length that 48 * The length. 50 private int length; field in class:IIOByteBuffer 59 * @param length 60 * the length of array. 62 public IIOByteBuffer(byte[] data, int offset, int length) { argument 65 this.length = length; 78 * Gets the length in the array which will be used. 80 * @return the length o 111 setLength(int length) argument [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | PasswordAuthentication.java | 55 mUserName = new byte[userName.length]; 56 System.arraycopy(userName, 0, mUserName, 0, userName.length); 59 mPassword = new byte[password.length]; 60 System.arraycopy(password, 0, mPassword, 0, password.length);
|
H A D | PrivateInputStream.java | 76 return mData.length - mIndex; 92 while (mData.length == mIndex) { 102 return read(b, 0, b.length); 106 public synchronized int read(byte[] b, int offset, int length) throws IOException { argument 111 if ((offset | length) < 0 || length > b.length - offset) { 116 int currentDataLength = mData.length - mIndex; 117 int remainReadLength = length; 131 currentDataLength = mData.length [all...] |
H A D | ObexHelper.java | 51 * Defines the basic packet length used by OBEX. Every OBEX packet has the 135 * <TD>Byte Sequence, length prefixed with 2 byte unsigned integer</TD> 161 int length = 0; 167 while (index < headerArray.length) { 173 * two bytes after the header identifier being the length 179 * two bytes after the header identifier being the length 184 length = 0xFF & headerArray[index]; 185 length = length << 8; 187 length [all...] |
H A D | ObexSession.java | 69 * optional tag length value triplets. The tag 0x00 is required to be in 82 byte[] realmString = new byte[description.length - 1]; 83 System.arraycopy(description, 1, realmString, 0, realmString.length); 147 * 2 option tag length value triples. The required triple has a tag of 154 header.mAuthResp = new byte[38 + userName.length]; 156 header.mAuthResp[37] = (byte)userName.length; 157 System.arraycopy(userName, 0, header.mAuthResp, 38, userName.length); 163 byte[] digest = new byte[challenge.length + password.length + 1]; 164 System.arraycopy(challenge, 0, digest, 0, challenge.length); [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | JapanesePhoneNumberFormatter.java | 160 int length = text.length(); 161 if (length > 3 164 } else if (length < 1 || text.charAt(0) != '0') { 168 CharSequence saved = text.subSequence(0, length); 172 while (i < text.length()) { 180 length = text.length(); 185 while (i < length) { 188 text.replace(0, length, save [all...] |
/frameworks/base/core/java/android/database/ |
H A D | MergeCursor.java | 47 for (int i = 0; i < mCursors.length; i++) { 58 int length = mCursors.length; 59 for (int i = 0 ; i < length ; i++) { 73 int length = mCursors.length; 74 for (int i = 0 ; i < length; i++) { 111 int length = mCursors.length; 112 for (int i = 0 ; i < length ; [all...] |
/frameworks/base/cmds/keystore/ |
H A D | keystore_get.h | 36 * The first two arguments are the key and its length. The third argument 38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or 40 static int keystore_get(const char *key, int length, char *value) argument 42 uint8_t bytes[2] = {length >> 8, length}; 46 if (length < 0 || length > KEYSTORE_MESSAGE_SIZE) { 55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 && 59 length [all...] |
H A D | keystore_cli.c | 65 uint16_t length = strlen(argv[i]); local 66 bytes[0] = length >> 8; 67 bytes[1] = length; 69 send(sock, argv[i], length, 0); 79 int length; local 85 length = bytes[0] << 8 | bytes[1]; 86 for (offset = 0; offset < length; offset += i) { 87 i = recv(sock, &bytes[offset], length - offset, 0); 93 fwrite(bytes, 1, length, stdout);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | CharSequences.java | 36 public int length() { 37 return bytes.length; 59 * is greater than length(), or if start is greater than end 63 validate(start, end, bytes.length); 69 public int length() { 76 validate(newStart, newEnd, length()); 81 return new String(bytes, start, length()); 86 static void validate(int start, int end, int length) { argument 89 if (end > length) throw new IndexOutOfBoundsException(); 97 if (a.length() ! [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 69 * Reads at most {@code length} bytes from this stream and stores them in 77 * @param length 82 * if {@code offset < 0} or {@code length < 0}, or if 83 * {@code offset + length} is greater than the length of 89 public int read(byte[] b, int offset, int length) throws IOException { argument 93 if ((offset | length) < 0 || length > b.length - offset) { 94 throw new ArrayIndexOutOfBoundsException("invalid offset or length"); [all...] |
/frameworks/base/awt/java/awt/image/ |
H A D | ByteLookupTable.java | 53 if (data.length < 1) 55 this.data = new byte[1][data.length]; 71 super(offset, data.length); 72 this.data = new byte[data.length][data[0].length]; 73 for (int i = 0; i < data.length; i++) { 82 * array length is one. 94 dst = new int[src.length]; 99 for (int i = 0; i < src.length; i++) { 124 dst = new byte[src.length]; [all...] |
H A D | ShortLookupTable.java | 53 this.data = new short[1][data.length]; 69 super(offset, data.length); 70 this.data = new short[data.length][data[0].length]; 71 for (int i = 0; i < data.length; i++) { 80 * array length is one. 101 dst = new short[src.length]; 106 for (int i = 0; i < src.length; i++) { 121 dst = new int[src.length]; 126 for (int i = 0; i < src.length; [all...] |
/frameworks/base/media/libstagefright/ |
H A D | string.cpp | 29 string::string(const char *s, size_t length) argument 30 : mString(s, length) { 33 string::string(const string &from, size_type start, size_type length) { argument 35 if (length == npos) { 36 length = from.size() - start; 38 CHECK(start + length <= from.size()); 41 mString.setTo(from.c_str() + start, length); 53 return mString.length(); 84 void string::erase(size_t from, size_t length) { argument 86 s.append(mString.string() + from + length); [all...] |
/frameworks/base/core/java/com/android/internal/database/ |
H A D | SortCursor.java | 59 int length = mCursors.length; 60 mSortColumns = new int[length]; 61 for (int i = 0 ; i < length ; i++) { 74 for (int j = 0 ; j < length; j++) { 84 for (int i = mRowNumCache.length - 1; i >= 0; i--) { 87 mCurRowNumCache = new int[ROWCACHESIZE][length]; 94 int length = mCursors.length; 95 for (int i = 0 ; i < length ; [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | DiscretePathEffect.java | 29 private static native int nativeCreate(float length, float deviation); argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
H A D | TextAttribute.java | 27 public int length; field in class:TextAttribute 36 public TextAttribute(int start, int length, TextAlignment align, argument 40 this.length = length;
|
H A D | ComprehensionTlv.java | 44 * @param length Length of the value 48 protected ComprehensionTlv(int tag, boolean cr, int length, byte[] data, argument 52 mLength = length; 88 int endIndex = data.length; 110 int endIndex = data.length; 137 /* length */ 138 int length; 141 length = temp; 143 length = data[curIndex++] & 0xff; 144 if (length < [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ResampleInputStream.java | 49 // length of 2:1 fir 81 return read(b, 0, b.length); 85 public int read(byte[] b, int offset, int length) throws IOException { argument 88 // ensure that mBuf is big enough to cover requested 'length' 89 int nIn = ((length / 2) * mRateIn / mRateOut + mFirLength) * 2; 92 } else if (nIn > mBuf.length) { 102 length = len < length ? len : (length / 2) * 2; 105 // TODO: should mBuf.length belo [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | ByteArrayBuilder.java | 46 public synchronized void append(byte[] array, int offset, int length) { argument 47 while (length > 0) { 50 c = obtainChunk(length); 54 if (c.mLength == c.mArray.length) { 55 c = obtainChunk(length); 59 int amount = Math.min(length, c.mArray.length - c.mLength); 62 length -= amount; 111 private Chunk obtainChunk(int length) { argument 112 // Correct a small length 135 Chunk(int length) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 34 private void compareBuffers(byte[] buffer1, byte[] buffer2, int length) throws Exception { argument 35 for (int i = 0; i < length; i++) { 55 newFile.writeBytes(testString, 0, 0, testString.length); 59 file.readBytes(testString, 0, 0, testString.length); 77 byte[] buffer = new byte[testString.length]; 80 file.writeBytes(testString, 0, 2000, testString.length); 81 file.readBytes(buffer, 2000, 0, testString.length); 82 compareBuffers(testString, buffer, testString.length); 85 buffer = new byte[testString.length]; 91 is.mark(testString.length); [all...] |
/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 44 if (key.length() > PROP_NAME_MAX) { 45 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX); 56 if (key.length() > PROP_NAME_MAX) { 57 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX); 71 if (key.length() > PROP_NAME_MAX) { 72 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX); 86 if (key.length() > PROP_NAME_MAX) { 87 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX); 106 if (key.length() > PROP_NAME_MAX) { 107 throw new IllegalArgumentException("key.length > " [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | GsmSmsAddress.java | 36 * @param length the length in bytes rounded up, e.g. "2 + 40 public GsmSmsAddress(byte[] data, int offset, int length) { argument 41 origBytes = new byte[length]; 42 System.arraycopy(data, offset, origBytes, 0, length); 66 byte lastByte = origBytes[length - 1]; 70 origBytes[length - 1] |= 0xf0; 73 OFFSET_TOA, length - OFFSET_TOA); 76 origBytes[length - 1] = lastByte;
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SimUtilsTest.java | 37 assertEquals("8901260450014484862", IccUtils.bcdToString(data, 0, data.length)); 40 assertEquals("0126045001448486", IccUtils.bcdToString(data, 1, data.length - 2)); 44 assertEquals("890", IccUtils.bcdToString(data, 0, data.length)); 72 assertEquals("Voice Mail", IccUtils.adnStringFieldToString(data, 1, data.length - 15)); 76 assertEquals("\u9673\u539A\u5764/M", IccUtils.adnStringFieldToString(data, 0, data.length)); 80 assertEquals("Vo\u00ECce M\u00E0il", IccUtils.adnStringFieldToString(data, 0, data.length)); 84 assertEquals("-\u0532\u0583-1", IccUtils.adnStringFieldToString(data, 0, data.length));
|
/frameworks/base/cmds/bugreport/ |
H A D | bugreport.c | 48 int length = read(s, buffer, sizeof(buffer)); local 49 if (length <= 0) 51 fwrite(buffer, 1, length, stdout);
|