/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 | ObexPacket.java | 28 private ObexPacket(int headerId, int length) { argument 30 mLength = length; 52 // Read the 2 byte length field from the stream 53 int length = is.read(); 54 length = (length << 8) + is.read(); 56 ObexPacket newPacket = new ObexPacket(headerId, length); 60 if (length > 3) { 62 temp = new byte[length - 3]; 64 while (bytesReceived != temp.length) { [all...] |
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...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glMapBufferRange.java | 1 // C function GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access ) 6 int length, 3 glMapBufferRange( int target, int offset, int length, int access ) argument
|
H A D | glGetShaderSource.java | 1 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 6 int[] length, 12 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 18 java.nio.IntBuffer length, 22 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 3 glGetShaderSource( int shader, int bufsize, int[] length, int lengthOffset, byte[] source, int sourceOffset ) argument 15 glGetShaderSource( int shader, int bufsize, java.nio.IntBuffer length, byte source ) argument
|
H A D | glMapBufferRange.cpp | 1 /* GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access ) */ 4 (JNIEnv *_env, jobject _this, jint target, jint offset, jint length, jint access) { 6 (GLintptr)offset, (GLsizeiptr)length, (GLbitfield)access); 9 _buf = _env->NewDirectByteBuffer(_p, length); 3 android_glMapBufferRange__IIII(JNIEnv *_env, jobject _this, jint target, jint offset, jint length, jint access) argument
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | ReprocessFormatsMap.java | 51 * The inner array always contains {@code [format, length, ...]} where ... has length elements. 64 * (missing output format length or too few output formats) 77 int left = entry.length; 78 for (int i = 0; i < entry.length; ) { 86 String.format("Input %x had no output format length listed", inputFormat)); 89 final int length = entry[i]; 93 for (int j = 0; j < length; ++j) { 98 if (length > 0) { 99 if (left < length) { [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | JapanesePhoneNumberFormatter.java | 162 int length = text.length(); 163 if (length > 3 166 } else if (length < 1 || text.charAt(0) != '0') { 170 CharSequence saved = text.subSequence(0, length); 174 while (i < text.length()) { 182 length = text.length(); 187 while (i < length) { 190 text.replace(0, length, save [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | LimitedLengthInputStreamTest.java | 42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); 53 fail("Should throw IOException on negative length"); 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument 82 byte[] temp = new byte[TEST_STRING1.length]; 83 byte[] expected = new byte[length]; 84 byte[] actual = new byte[length]; 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 89 assertEquals(length, i 131 checkReadBytes_WithString1(int offset, int length) argument 167 checkSingleByteRead_WithString1(int offset, int length) argument [all...] |
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | Charsets.java | 52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { argument 53 CharBuffer cb = CharBuffer.allocate(length); 54 cb.put(chars, offset, length); 62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { argument 63 CharBuffer cb = CharBuffer.allocate(length); 64 cb.put(chars, offset, length); 72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { argument 73 CharBuffer cb = CharBuffer.allocate(length); 74 cb.put(chars, offset, length); 82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument 102 asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) argument 121 isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars) argument [all...] |
/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/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++) { 161 int length = mCursors.length; 162 for (int i = 0 ; i < length ; [all...] |
/frameworks/native/libs/binder/ |
H A D | IProcessInfoService.cpp | 31 virtual status_t getProcessStatesFromPids(size_t length, /*in*/ int32_t* pids, argument 36 data.writeInt32Array(length, pids); 37 data.writeInt32(length); // write length of output array, used by java AIDL stubs 43 if (static_cast<size_t>(replyLen) != length) { 46 if (replyLen > 0 && (err = reply.read(states, length * sizeof(*states))) != NO_ERROR) { 52 virtual status_t getProcessStatesAndOomScoresFromPids(size_t length, argument 57 data.writeInt32Array(length, pids); 58 // write length of output arrays, used by java AIDL stubs 59 data.writeInt32(length); [all...] |
/frameworks/base/libs/common_time/ |
H A D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 53 if ((offset + sizeof(field_name)) > length) \ 79 uint32_t length) { 91 uint32_t length) { 104 uint32_t length) { 107 ret = serializeHeader(data, length); 112 length -= ret; 117 length); 121 length); 124 tmp =((SyncRequestPacket*)(this))->serializePacket(data, length); 78 serializeHeader(uint8_t* data, uint32_t length) argument 90 deserializeHeader(const uint8_t* data, uint32_t length) argument 103 serializePacket(uint8_t* data, uint32_t length) argument 143 deserializePacket( const uint8_t* data, uint32_t length, uint64_t expectedSyncGroupID) argument 184 serializePacket(uint8_t* data, uint32_t length) argument 194 deserializePacket(const uint8_t* data, uint32_t length) argument 206 serializePacket(uint8_t* data, uint32_t length) argument 216 deserializePacket(const uint8_t* data, uint32_t length) argument 228 serializePacket(uint8_t* data, uint32_t length) argument 237 deserializePacket(const uint8_t* data, uint32_t length) argument 246 serializePacket(uint8_t* data, uint32_t length) argument 258 deserializePacket(const uint8_t* data, uint32_t length) argument 270 serializePacket(uint8_t* data, uint32_t length) argument 280 deserializePacket(const uint8_t* data, uint32_t length) argument [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | Exif.java | 35 * @param byteSize Recommended parameter declaring the length of the input stream. If you 62 has(jpeg, byteSize, offset + length - 1) 64 where length is a variable int (around 30KB above) read from the EXIF headers. 74 int length = 0; 106 // Get the length and check if it is reasonable. 107 length = pack(jpeg, offset, 2, false); 108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { 109 Log.e(TAG, "Invalid length"); 114 if (marker == 0xE1 && length > 187 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | Exif.java | 30 * @param byteSize Recommended parameter declaring the length of the input stream. If you 57 has(jpeg, byteSize, offset + length - 1) 59 where length is a variable int (around 30KB above) read from the EXIF headers. 69 int length = 0; 101 // Get the length and check if it is reasonable. 102 length = pack(jpeg, offset, 2, false); 103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { 104 Log.e(TAG, "Invalid length"); 109 if (marker == 0xE1 && length > 182 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument [all...] |
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiPortImpl.java | 59 * message byte array contains variable length MIDI message. 60 * messageSize is size of variable length MIDI message 70 int length = 0; 72 dest[length++] = PACKET_TYPE_DATA; 74 System.arraycopy(message, offset, dest, length, size); 75 length += size; 79 dest[length++] = (byte)timestamp; 83 return length; 115 // message length is total buffer length minu [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/ |
H A D | Asn1Octets.java | 10 public Asn1Octets(int tag, Asn1Class asn1Class, int length, ByteBuffer data) { argument 11 super(tag, asn1Class, false, length); 12 mOctets = new byte[length]; 17 public Asn1Octets(int tag, Asn1Class asn1Class, int length, ByteBuffer data, int bitResidual) { argument 18 super(tag, asn1Class, false, length); 19 mOctets = new byte[length - 1];
|
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AmrCodec.cpp | 55 int decode(int16_t *samples, int count, void *payload, int length); 105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode, local 108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) { 115 ++length; 121 // Shift left 6 bits and update the length. 122 bytes[length + 1] = 0; 123 for (int i = 0; i <= length; ++i) { 126 length = (10 + gFrameBits[mMode] + 7) >> 3; 128 return length; 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) argument 229 int length = AMREncode(mEncoder, mSidSync, MR122, local 242 decode(int16_t *samples, int count, void *payload, int length) argument [all...] |
/frameworks/support/v4/java/android/support/v4/database/ |
H A D | DatabaseUtilsCompat.java | 50 if (originalValues == null || originalValues.length == 0) { 53 String[] result = new String[originalValues.length + newValues.length ]; 54 System.arraycopy(originalValues, 0, result, 0, originalValues.length); 55 System.arraycopy(newValues, 0, result, originalValues.length, newValues.length);
|
/frameworks/base/core/java/android/view/textservice/ |
H A D | SentenceSuggestionsInfo.java | 50 if (suggestionsInfos.length != offsets.length || offsets.length != lengths.length) { 53 final int infoSize = suggestionsInfos.length; 63 mOffsets = new int[mSuggestionsInfos.length]; 65 mLengths = new int[mSuggestionsInfos.length]; 77 final int infoSize = mSuggestionsInfos.length; 93 return mSuggestionsInfos.length; 101 if (i >= 0 && i < mSuggestionsInfos.length) { [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | ArrayUtils.java | 32 return ((array != null) && (array.length > 0)) ? array.clone() : array; 36 return ((array != null) && (array.length > 0)) ? array.clone() : array; 40 return concat(arr1, 0, (arr1 != null) ? arr1.length : 0, 41 arr2, 0, (arr2 != null) ? arr2.length : 0); 62 if ((offset == 0) && (len == arr.length)) { 71 if ((arr1 == null) || (arr1.length == 0)) { 73 } else if ((arr2 == null) || (arr2.length == 0)) { 76 int[] result = new int[arr1.length + arr2.length]; 77 System.arraycopy(arr1, 0, result, 0, arr1.length); [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollBarUtils.java | 24 int length = Math.round((float) size * extent / range); 25 if (length < minLength) { 26 length = minLength; 28 return length;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | DiscretePathEffect.java | 29 private static native long nativeCreate(float length, float deviation); argument
|