Home
last modified time | relevance | path

Searched refs:totalLength (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/obex/javax/obex/
DServerSession.java263 int totalLength = 3; in sendResponse() local
271 totalLength += header.length; in sendResponse()
272 data = new byte[totalLength]; in sendResponse()
274 data[1] = (byte)(totalLength >> 8); in sendResponse()
275 data[2] = (byte)totalLength; in sendResponse()
278 data = new byte[totalLength]; in sendResponse()
281 data[2] = (byte)totalLength; in sendResponse()
301 int totalLength = 3; in handleSetPathRequest() local
315 totalLength = 3; in handleSetPathRequest()
389 totalLength += head.length; in handleSetPathRequest()
[all …]
DClientSession.java107 int totalLength = 4; in connect() local
117 totalLength += head.length; in connect()
128 byte[] requestPacket = new byte[totalLength]; in connect()
339 int totalLength = 2; in setPath() local
365 totalLength += head.length; in setPath()
367 if (totalLength > mMaxTxPacketSize) { in setPath()
393 byte[] packet = new byte[totalLength]; in setPath()
/frameworks/support/tv-provider/src/android/support/media/tv/
DCollectionUtils.java37 int totalLength = first.length; in concatAll() local
39 totalLength += array.length; in concatAll()
41 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DBerTlv.java134 int totalLength = 0; in decode() local
138 totalLength += itemLength + 3; //3: 'tag'(1 byte) and 'length'(2 bytes). in decode()
140 totalLength += itemLength + 2; //2: 'tag'(1 byte) and 'length'(1 byte). in decode()
154 if (length != totalLength) { in decode()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp164 ssize_t totalLength, in descramble() argument
179 if (!ensureBufferCapacity(totalLength)) { in descramble()
184 (const void*)((const uint8_t*)srcPtr + srcOffset), totalLength); in descramble()
210 if (*bytesWritten > 0 && (ssize_t) *bytesWritten <= totalLength) { in descramble()
343 ssize_t totalLength = getSubSampleInfo( in android_media_MediaDescrambler_native_descramble() local
346 if (totalLength < 0) { in android_media_MediaDescrambler_native_descramble()
355 env, srcBuf, srcOffset, srcLimit, totalLength, &srcPtr, &srcArray); in android_media_MediaDescrambler_native_descramble()
362 env, dstBuf, dstOffset, dstLimit, totalLength, &dstPtr, &dstArray); in android_media_MediaDescrambler_native_descramble()
377 key, totalLength, subSamples, in android_media_MediaDescrambler_native_descramble()
Dandroid_media_MediaDescrambler.h42 ssize_t totalLength,
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java639 final int totalLength = mTotalLength; in measureVertical() local
640 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
667 final int totalLength = mTotalLength; in measureVertical() local
668 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
750 final int totalLength = mTotalLength; in measureVertical() local
751 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
835 final int totalLength = mTotalLength; in measureVertical() local
836 mTotalLength = Math.max(totalLength, totalLength + child.getMeasuredHeight() + in measureVertical()
989 final int totalLength = mTotalLength; in measureHorizontal() local
990 mTotalLength = Math.max(totalLength, totalLength + in measureHorizontal()
[all …]
DAlertDialogLayout.java273 final int totalLength = getMeasuredHeight(); in onLayout() local
283 childTop = getPaddingTop() + bottom - top - totalLength; in onLayout()
288 childTop = getPaddingTop() + (bottom - top - totalLength) / 2; in onLayout()
/frameworks/base/core/java/android/widget/
DLinearLayout.java788 final int totalLength = mTotalLength; in measureVertical() local
789 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
818 final int totalLength = mTotalLength; in measureVertical() local
819 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
899 final int totalLength = mTotalLength; in measureVertical() local
900 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
977 final int totalLength = mTotalLength; in measureVertical() local
978 mTotalLength = Math.max(totalLength, totalLength + child.getMeasuredHeight() + in measureVertical()
1133 final int totalLength = mTotalLength; in measureHorizontal() local
1134 mTotalLength = Math.max(totalLength, totalLength + in measureHorizontal()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java82 float totalLength = 0; in CachedPathIteratorFactory() local
122 totalLength += mSegmentsLength[i]; in CachedPathIteratorFactory()
125 mTotalLength = totalLength; in CachedPathIteratorFactory()
220 float totalLength = 0; in getFlatPathLength() local
231 totalLength += Point2D.distance(previousPoint[0], previousPoint[1], segment[0], in getFlatPathLength()
241 return totalLength; in getFlatPathLength()
/frameworks/av/media/libstagefright/foundation/
DParsedMessage.cpp169 size_t totalLength = offset + contentLength; in parse() local
171 if (size < totalLength) { in parse()
177 return totalLength; in parse()
/frameworks/base/core/java/com/android/internal/widget/
DAlertDialogLayout.java282 final int totalLength = getMeasuredHeight(); in onLayout() local
292 childTop = mPaddingTop + bottom - top - totalLength; in onLayout()
297 childTop = mPaddingTop + (bottom - top - totalLength) / 2; in onLayout()
/frameworks/base/core/java/android/net/
DSSLCertificateSocketFactory.java314 int totalLength = 0; in toLengthPrefixedList() local
319 totalLength += 1 + s.length; in toLengthPrefixedList()
321 byte[] result = new byte[totalLength]; in toLengthPrefixedList()
/frameworks/base/core/jni/android/graphics/
DMovie.cpp120 int totalLength = env->GetArrayLength(byteArray); in movie_decodeByteArray() local
121 if ((offset | length) < 0 || offset + length > totalLength) { in movie_decodeByteArray()
DPath.cpp439 float totalLength = lengths.back(); in approximate() local
440 if (totalLength == 0) { in approximate()
444 totalLength = 1; in approximate()
455 approximation[approximationIndex++] = lengths[i] / totalLength; in approximate()
/frameworks/av/media/mtp/
DMtpDataPacket.cpp479 uint32_t totalLength = MtpPacket::getUInt32(MTP_CONTAINER_LENGTH_OFFSET); in read() local
480 allocate(totalLength); in read()
481 while (totalLength > static_cast<uint32_t>(length)) { in read()
483 request->buffer_length = totalLength - length; in read()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java126 int totalLength = bodyLength + 1 + (bodyLength > 127 ? 2 : 1); in handleDataDownload() local
128 byte[] envelope = new byte[totalLength]; in handleDataDownload()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DAnimatorInflaterCompat.java436 float totalLength = 0; in setupPathMotion() local
443 totalLength += pathLength; in setupPathMotion()
444 contourLengths.add(totalLength); in setupPathMotion()
451 final int numPoints = min(MAX_NUM_POINTS, (int) (totalLength / precision) + 1); in setupPathMotion()
458 float step = totalLength / (numPoints - 1); in setupPathMotion()
/frameworks/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java493 float totalLength = 0; in nApproximate() local
501 totalLength += currentPoint.distance(previousPoint); in nApproximate()
518 result[i * 3] = walkedDistance / totalLength; in nApproximate()
/frameworks/support/compat/java/android/support/v4/graphics/
DPathParser.java219 int totalLength = s.length(); in getFloats() local
224 while (startPosition < totalLength) { in getFloats()
/frameworks/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java343 int totalLength = s.length(); in getFloats() local
348 while (startPosition < totalLength) { in getFloats()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java5913 int totalLength = 0;
5917 totalLength += accounts.length;
5919 if (totalLength == 0) {
5922 accountsArray = new Account[totalLength];
5923 totalLength = 0;
5925 System.arraycopy(accountsOfType, 0, accountsArray, totalLength,
5927 totalLength += accountsOfType.length;
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java3727 int totalLength = 0; in writeTo() local
3736 totalLength += maxLength; in writeTo()
3741 totalLength += (mCols - 1) * 2; in writeTo()
3742 for (int i = 0; i < totalLength; ++i) { in writeTo()