Searched defs:length (Results 251 - 275 of 344) sorted by relevance

<<11121314

/frameworks/av/media/libstagefright/
H A DUtils.cpp207 size_t length = U16_AT(ptr); local
212 CHECK(size >= length);
215 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
216 buffer->setRange(0, buffer->size() + 4 + length);
218 ptr += length;
219 size -= length;
237 size_t length = U16_AT(ptr); local
242 CHECK(size >= length);
245 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
246 buffer->setRange(0, buffer->size() + 4 + length);
286 size_t length = U16_AT(ptr); local
[all...]
/frameworks/av/media/mtp/
H A DMtpDevice.cpp586 bool (* callback)(void* data, int offset, int length, void* clientData),
595 uint32_t length = mData.getContainerLength(); local
596 if (length - MTP_CONTAINER_HEADER_SIZE != objectSize) {
597 ALOGE("readObject error objectSize: %d, length: %d",
598 objectSize, length);
601 length -= MTP_CONTAINER_HEADER_SIZE;
602 uint32_t remaining = length;
699 uint32_t length = mData.getContainerLength(); local
700 if (length < MTP_CONTAINER_HEADER_SIZE)
702 length
585 readObject(MtpObjectHandle handle, bool (* callback)(void* data, int offset, int length, void* clientData), size_t objectSize, void* clientData) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBaseBundle.java89 BaseBundle(Parcel parcelledData, int length) { argument
90 readFromParcelInner(parcelledData, length);
1297 int length = mParcelledData.dataSize();
1298 parcel.writeInt(length);
1300 parcel.appendFrom(mParcelledData, 0, length);
1309 parcel.writeInt(-1); // dummy, will hold length
1316 // Backpatch length
1318 int length = endPos - startPos;
1319 parcel.writeInt(length);
1330 int length
1337 readFromParcelInner(Parcel parcel, int length) argument
[all...]
/frameworks/base/core/java/android/text/
H A DHtml.java153 withinStyle(out, text, 0, text.length());
158 int len = text.length();
161 for (int i = 0; i < text.length(); i = next) {
167 for(int j = 0; j < style.length; j++) {
262 for (int j = 0; j < style.length; j++) {
314 while (color.length() < 6) {
324 for (int j = style.length - 1; j >= 0; j--) {
452 Object[] obj = mSpannableStringBuilder.getSpans(0, mSpannableStringBuilder.length(), ParagraphStyle.class);
453 for (int i = 0; i < obj.length; i++) {
514 } else if (tag.length()
768 characters(char ch[], int start, int length) argument
806 ignorableWhitespace(char ch[], int start, int length) argument
[all...]
H A DStaticLayout.java49 this(source, 0, source.length(), paint, width, align,
60 this(source, 0, source.length(), paint, width, align, textDir,
135 mLines = new int[mLineDirections.length];
153 mLines = new int[mLineDirections.length];
198 for (int i = 0; i < sp.length; i++) {
215 if (chooseHt.length != 0) {
217 chooseHtv.length < chooseHt.length) {
218 chooseHtv = ArrayUtils.newUnpaddedIntArray(chooseHt.length);
221 for (int i = 0; i < chooseHt.length;
859 nLineBreakOpportunities(String locale, char[] text, int length, int[] recycle) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DIInputConnectionWrapper.java92 public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback) { argument
93 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_AFTER_CURSOR, length, flags, seq, callback));
96 public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback) { argument
97 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_BEFORE_CURSOR, length, flags, seq, callback));
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java83 int traceCapacity = mTraceX.length;
180 if (altStrategy.length() != 0) {
752 for (int i = 0; i < deviceIds.length; i++) {
785 final int valueLength = value.length();
864 private int reserve(int length) { argument
866 final int newLength = mLength + length;
868 final int oldCapacity = oldChars.length;
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp164 jint offset, jint length)
171 const status_t err = parcel->writeInt32(length);
177 void* dest = parcel->writeInplace(length);
185 memcpy(dest, ar + offset, length);
191 jint offset, jint length) {
205 const status_t err = parcel->writeInt32(length);
212 android::status_t err2 = parcel->writeBlob(length, &blob);
220 memset(blob.data(), 0, length);
222 memcpy(blob.data(), ar + offset, length);
321 // sanity check the stored length agains
163 android_os_Parcel_writeNative(JNIEnv* env, jclass clazz, jlong nativePtr, jobject data, jint offset, jint length) argument
190 android_os_Parcel_writeBlob(JNIEnv* env, jclass clazz, jlong nativePtr, jobject data, jint offset, jint length) argument
589 android_os_Parcel_unmarshall(JNIEnv* env, jclass clazz, jlong nativePtr, jbyteArray data, jint offset, jint length) argument
610 android_os_Parcel_appendFrom(JNIEnv* env, jclass clazz, jlong thisNativePtr, jlong otherNativePtr, jint offset, jint length) argument
[all...]
/frameworks/base/libs/hwui/
H A DCaches.h385 static void eventMarkNull(GLsizei length, const GLchar* marker) { } argument
386 static void startMarkNull(GLsizei length, const GLchar* marker) { } argument
389 static void setLabelNull(GLenum type, uint object, GLsizei length, argument
392 GLsizei* length, char* label) {
393 if (length) *length = 0;
391 getLabelNull(GLenum type, uint object, GLsizei bufferSize, GLsizei* length, char* label) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java207 public void setData(ByteBuffer buffer, int offset, int length) { argument
211 if (getFormat().getSize() != bytes.length) {
213 } else if (!setNativeData(bytes, offset, length)) {
380 private native boolean setNativeData(byte[] data, int offset, int length); argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifParser.java297 // Some camera models use invalid length of the offset
692 for (int i = 0, n = value.length; i < n; i++) {
700 for (int i = 0, n = value.length; i < n; i++) {
708 for (int i = 0, n = value.length; i < n; i++) {
716 for (int i = 0, n = value.length; i < n; i++) {
724 for (int i = 0, n = value.length; i < n; i++) {
762 int length = dataStream.readUnsignedShort();
768 if (length >= 8) {
771 length -= 6;
774 mApp1End = length;
800 read(byte[] buffer, int offset, int length) argument
[all...]
H A DExifTag.java211 * setValue() if the length of value does not match the component count.
232 * <li>The value.length does NOT match the component count in the definition
237 if (checkBadComponentCount(value.length)) {
250 long[] data = new long[value.length];
251 for (int i = 0; i < value.length; i++) {
255 mComponentCountActual = value.length;
282 * <li>The value.length does NOT match the component count in the definition
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) {
294 mComponentCountActual = value.length;
316 * Characters that cannot be converted are replaced with '?'. The length o
411 setValue(byte[] value, int offset, int length) argument
850 getBytes(byte[] buf, int offset, int length) argument
[all...]
/frameworks/base/tools/aapt/
H A DXMLNode.cpp376 unsigned int length = words_cnt > 3 ? outString->size() : local
379 curString.append(pseudo_generate_expansion(length));
H A DZipFile.cpp191 * that were written to stdout, the only length information is in the
194 * Of course, the central directory can be followed by a variable-length
701 status_t ZipFile::copyPartialFpToFp(FILE* dstFp, FILE* srcFp, long length, argument
710 while (length) {
714 if (readSize > length)
715 readSize = length;
731 length -= readSize;
980 /* Get the length of this entry by finding the offset
/frameworks/native/libs/input/
H A DVelocityTracker.cpp115 int length = property_get("debug.velocitytracker.strategy", value, NULL); local
116 if (length > 0) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccFileHandler.java183 * int[0] is the record length int[1] is the total length of the EF
259 int length, Message onLoaded) {
265 + " lowOffset = " + lowOffset + " length = " + length);
274 highOffset, lowOffset, length, null, null, mAid, response);
289 recordNum, READ_RECORD_MODE_ABSOLUTE, data.length,
300 0, 0, data.length,
258 loadEFImgTransparent(int fileid, int highOffset, int lowOffset, int length, Message onLoaded) argument
H A DRuimRecords.java222 // Length = length of MCC + length of MNC
223 // length of mcc = 3 (3GPP2 C.S0005 - Section 2.3)
227 // Guess the MNC length based on the MCC if we don't
259 for (int i = 0; i < mEFli.length; i+=2) {
295 int len = ((data.length - 3) < 32) ? (data.length - 3) : 32;
299 for (numBytes = 0; numBytes < spnData.length; numBytes++) {
422 if (data.length == 5) {
430 sidBuf.setLength(sidBuf.length()
469 checkLengthLegal(int length, int expectLength) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduComposer.java124 for (i = 0; i < PduContentTypes.contentTypes.length; i++) {
187 protected void arraycopy(byte[] buf, int pos, int length) { argument
188 mMessage.write(buf, pos, length);
189 mPosition = mPosition + length;
230 * Append a short length into mMessage.
237 * Short-length = <Any octet 0-30>
250 * Long-integer = Short-length Multi-octet-integer
251 * ; The Short-length indicates the length of the Multi-octet-integer
260 // Count the length o
[all...]
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h330 SLAint64 length; member in struct:SLDataLocator_AndroidFD_
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp198 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
208 for (i = 0; i < length; i++) {
217 if (i == length) {
302 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
309 for (i = 0; i < length; i++) {
/frameworks/av/media/libeffects/testlibs/
H A DEffectReverb.c171 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
178 for (i = 0; i < length; i++) {
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp115 int fd, int64_t offset, int64_t length) {
120 mLength = length;
114 setDataSource( int fd, int64_t offset, int64_t length) argument
/frameworks/av/media/libstagefright/foundation/
H A DANetworkSession.cpp361 // TCP stream carrying 16-bit length-prefixed datagrams.
386 size_t length; local
393 length = U16_AT((const uint8_t *)mInBuffer.c_str() + 2);
395 if (mInBuffer.size() < 4 + length) {
404 sp<ABuffer> data = new ABuffer(length);
405 memcpy(data->data(), mInBuffer.c_str() + 4, length);
413 mInBuffer.erase(0, 4 + length);
419 mInBuffer.c_str(), mInBuffer.size(), err != OK, &length);
432 // XXX The (old) dongle sends the wrong content length header on a
438 && length >
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp596 uint64_t length, offset; local
597 err = parseByteRange(line, segmentRangeOffset, &length, &offset);
605 itemMeta->setInt64("range-length", length);
607 segmentRangeOffset = offset + length;
888 uint64_t *length, uint64_t *offset) {
908 *length = strtoull(s, &end, 10);
886 parseByteRange( const AString &line, uint64_t curOffset, uint64_t *length, uint64_t *offset) argument
H A DPlaylistFetcher.cpp889 || !itemMeta->findInt64("range-length", &range_length)) {
1045 "bytes in length.");
1501 size_t length; local
1502 const uint8_t *data = it.getData(&length);
1508 if (length == kMatchNameLen + 1 + 8

Completed in 476 milliseconds

<<11121314