Searched refs:length (Results 1 - 25 of 1912) sorted by relevance

1234567891011>>

/frameworks/base/obex/javax/obex/
H A DPasswordAuthentication.java55 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 DPrivateInputStream.java76 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 DglMapBufferRange.java1 // 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 DglGetShaderSource.java1 // 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 DglMapBufferRange.cpp1 /* 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 DReprocessFormatsMap.java51 * 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 DJapanesePhoneNumberFormatter.java162 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 DLimitedLengthInputStreamTest.java42 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 DCharsets.java52 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 DCharSequences.java36 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 DBluetoothInputStream.java69 * 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 DMergeCursor.java47 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/base/libs/common_time/
H A Dcommon_time_server_packets.cpp42 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 DExif.java35 * @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 DExif.java30 * @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/opt/net/voip/src/jni/rtp/
H A DAmrCodec.cpp55 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 DDatabaseUtilsCompat.java50 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 DSentenceSuggestionsInfo.java50 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/graphics/java/android/graphics/
H A DDiscretePathEffect.java29 private static native long nativeCreate(float length, float deviation); argument
/frameworks/base/tools/aapt/
H A Dpseudolocalize.h13 // Generated string could not be shorter that length, but it could be slightly
15 String16 pseudo_generate_expansion(const unsigned int length);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DComprehensionTlv.java47 * @param length Length of the value
51 protected ComprehensionTlv(int tag, boolean cr, int length, byte[] data, argument
55 mLength = length;
91 int endIndex = data.length;
117 int endIndex = data.length;
150 /* length */
151 int length;
154 length = temp;
156 length = data[curIndex++] & 0xff;
157 if (length <
[all...]
H A DTextAttribute.java27 public int length; field in class:TextAttribute
36 public TextAttribute(int start, int length, TextAlignment align, argument
40 this.length = length;
/frameworks/opt/chips/tests/src/com/android/ex/chips/
H A DChipsTest.java112 public int length() { method in class:ChipsTest.MockRecipientEditTextView
113 return mEditable != null ? mEditable.length() : 0;
190 int firstEnd = firstStart + first.trim().length();
192 int secondEnd = secondStart + second.trim().length();
193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0);
194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0);
199 assertEquals(editableString.indexOf(second), secondStart - extra.length());
208 firstEnd = firstStart + first.length();
209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0);
212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLines2Activity.java89 private void drawVerticalLine(Canvas canvas, Paint p, float length, float x, float y) { argument
90 canvas.drawLine(x, y, x, y + length, p);
93 private void drawDiagonalLine(Canvas canvas, Paint p, float length, float x, float y) { argument
94 canvas.drawLine(x, y, x + length, y + length, p);
161 for (float length = 1; length <= 10; length +=1 ) {
163 drawVerticalLine(canvas, p, length, x, yOffset);
166 drawVerticalLine(canvas, p, length,
[all...]
/frameworks/base/core/java/android/ddm/
H A DDdmHandleHello.java68 new Chunk(ChunkHandler.type("TEST"), data, 1, data.length-2);
134 if (vmInstructionSet != null && vmInstructionSet.length() > 0) {
141 + vmIdent.length() * 2
142 + appName.length() * 2
143 + instructionSetDescription.length() * 2
144 + vmFlags.length() * 2);
148 out.putInt(vmIdent.length());
149 out.putInt(appName.length());
153 out.putInt(instructionSetDescription.length());
155 out.putInt(vmFlags.length());
[all...]

Completed in 646 milliseconds

1234567891011>>