/aosp12/frameworks/base/obex/javax/obex/ |
H A D | ServerSession.java | 263 int totalLength = 3; in sendResponse() local 275 data[2] = (byte)totalLength; in sendResponse() 301 int totalLength = 3; in handleSetPathRequest() local 315 totalLength = 3; in handleSetPathRequest() 392 totalLength = 3; in handleSetPathRequest() 426 int totalLength = 3; in handleDisconnectRequest() local 437 totalLength = 3; in handleDisconnectRequest() 492 totalLength = 3; in handleDisconnectRequest() 535 int totalLength = 7; in handleConnectRequest() local 575 totalLength = 7; in handleConnectRequest() [all …]
|
H A D | ClientSession.java | 107 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()
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/data/ |
H A D | Timer.kt | 40 val totalLength: Long, 134 get() = totalLength - remainingTime 143 Timer(id, State.RUNNING, length, totalLength, 235 Timer(id, state, length, totalLength, timeSinceBoot, wallClockTime, 247 Timer(id, state, length, totalLength, lastStartTime, 261 val totalLength: Long 264 totalLength = length 267 totalLength = this.totalLength 271 return Timer(id, state, length, totalLength, lastStartTime, 286 val totalLength = totalLength + delta regex [all …]
|
H A D | TimerDAO.kt | 75 val totalLength: Long = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE) 78 val remainingTime: Long = prefs.getLong(REMAINING_TIME + id, totalLength) 81 timers.add(Timer(id, it, length, totalLength, lastStartTime, 108 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) 118 return Timer(id, timer.state, timer.length, timer.totalLength, 134 editor.putLong(TOTAL_LENGTH + id, timer.totalLength)
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
H A D | EllipsizeLayout.kt | 74 var totalLength = 0 regex 111 totalLength += (child.measuredWidth + 120 outOfSpec = outOfSpec or (ellipsizeView == null || totalLength == 0) 122 if (!outOfSpec && totalLength > parentWidth) { 123 var maxWidth = ellipsizeView!!.measuredWidth - (totalLength - parentWidth)
|
/aosp12/frameworks/base/media/jni/ |
H A D | android_media_MediaDescrambler.cpp | 55 ssize_t totalLength, 204 ssize_t totalLength, in descramble() argument 219 if (!ensureBufferCapacity(totalLength)) { in descramble() 224 (const void*)((const uint8_t*)srcPtr + srcOffset), totalLength); in descramble() 250 if (*bytesWritten > 0 && (ssize_t) *bytesWritten <= totalLength) { in descramble() 390 ssize_t totalLength = getSubSampleInfo( in android_media_MediaDescrambler_native_descramble() local 393 if (totalLength < 0) { in android_media_MediaDescrambler_native_descramble() 402 env, srcBuf, srcOffset, srcLimit, totalLength, &srcPtr, &srcArray); in android_media_MediaDescrambler_native_descramble() 409 env, dstBuf, dstOffset, dstLimit, totalLength, &dstPtr, &dstArray); in android_media_MediaDescrambler_native_descramble() 430 scramblingControl, totalLength, subSamples, in android_media_MediaDescrambler_native_descramble()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | BerTlv.java | 134 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()
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 824 final int totalLength = mTotalLength; in measureVertical() local 825 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical() 854 final int totalLength = mTotalLength; in measureVertical() local 855 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical() 935 final int totalLength = mTotalLength; in measureVertical() local 936 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical() 1015 mTotalLength = Math.max(totalLength, totalLength + child.getMeasuredHeight() + in measureVertical() 1171 mTotalLength = Math.max(totalLength, totalLength + in measureHorizontal() 1221 mTotalLength = Math.max(totalLength, totalLength + childWidth + lp.leftMargin in measureHorizontal() 1318 mTotalLength = Math.max(totalLength, totalLength + largestChildWidth + in measureHorizontal() [all …]
|
/aosp12/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
H A D | ArrayUtils.java | 87 int totalLength = 0; in concatElements() local 93 totalLength += item.length; in concatElements() 97 if (totalLength == 0) { in concatElements() 101 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements()
|
/aosp12/packages/apps/TV/common/src/com/android/tv/common/util/ |
H A D | CollectionUtils.java | 36 int totalLength = first.length; in concatAll() local 38 totalLength += array.length; in concatAll() 40 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | CachedPathIteratorFactory.java | 82 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()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ConversationHeaderLinearLayout.java | 55 int totalLength = 0; in calculateTotalChildLength() local 64 totalLength += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin; in calculateTotalChildLength() 66 return totalLength + getPaddingLeft() + getPaddingRight(); in calculateTotalChildLength()
|
H A D | AlertDialogLayout.java | 284 final int totalLength = getMeasuredHeight(); in onLayout() local 294 childTop = mPaddingTop + bottom - top - totalLength; in onLayout() 299 childTop = mPaddingTop + (bottom - top - totalLength) / 2; in onLayout()
|
/aosp12/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | MatchParentShrinkingLinearLayout.java | 689 final int totalLength = mTotalLength; in measureVertical() local 690 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical() 717 final int totalLength = mTotalLength; in measureVertical() local 718 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical() 799 final int totalLength = mTotalLength; in measureVertical() local 800 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical() 903 final int totalLength = mTotalLength; in measureVertical() local 904 mTotalLength = Math.max(totalLength, totalLength + child.getMeasuredHeight() + in measureVertical()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ContactPhotoUtils.java | 159 int totalLength = 0; in savePhotoFromUriToUri() local 162 totalLength += length; in savePhotoFromUriToUri() 165 Log.v(TAG, "Wrote " + totalLength + " bytes for photo " + inputUri.toString()); in savePhotoFromUriToUri()
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | EventLog.java | 260 int totalLength = 0; in encodeObject() local 263 totalLength += bytes[i].length; in encodeObject() 265 ByteBuffer buffer = ByteBuffer.allocate(1 + 1 + totalLength) in encodeObject()
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | Movie.cpp | 117 int totalLength = env->GetArrayLength(byteArray); in movie_decodeByteArray() local 118 if ((offset | length) < 0 || offset + length > totalLength) { in movie_decodeByteArray()
|
H A D | Path.cpp | 435 float totalLength = lengths.back(); in approximate() local 436 if (totalLength == 0) { in approximate() 440 totalLength = 1; in approximate() 451 approximation[approximationIndex++] = lengths[i] / totalLength; in approximate()
|
/aosp12/frameworks/base/core/java/android/net/ |
H A D | SSLCertificateSocketFactory.java | 361 int totalLength = 0; in toLengthPrefixedList() local 366 totalLength += 1 + s.length; in toLengthPrefixedList() 368 byte[] result = new byte[totalLength]; in toLengthPrefixedList()
|
/aosp12/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.cpp | 480 uint32_t totalLength = MtpPacket::getUInt32(MTP_CONTAINER_LENGTH_OFFSET); in read() local 481 allocate(totalLength); in read() 482 while (totalLength > static_cast<uint32_t>(length)) { in read() 484 request->buffer_length = totalLength - length; in read()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | UsimDataDownloadHandler.java | 138 int totalLength = bodyLength + 1 + (bodyLength > 127 ? 2 : 1); in handleDataDownload() local 140 byte[] envelope = new byte[totalLength]; in handleDataDownload()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 357 int totalLength = 0; in concatElements() local 363 totalLength += item.length; in concatElements() 367 if (totalLength == 0) { in concatElements() 371 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | MmsUtils.java | 300 int totalLength = 0; in makePduBody() local 308 totalLength += getDataLength(context, part.getContentUri()); in makePduBody() 310 totalLength += getMediaFileSize(part.getContentUri()); in makePduBody() 325 totalLength = 0; in makePduBody() 348 totalLength += addPicturePart(context, pb, index, part, in makePduBody() 355 totalLength += length; in makePduBody() 361 totalLength += addVCardPart(context, pb, part, srcName); in makePduBody() 367 totalLength += addOtherPart(context, pb, part, srcName); in makePduBody() 374 totalLength += addOtherPart(context, pb, part, srcName); in makePduBody() 387 totalLength += addTextPart(context, pb, text, srcName); in makePduBody() [all …]
|
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | PublicApiFunctionalTest.java | 226 int totalLength = FILE_CONTENT.length(); in buildPartialResponse() local 230 .setHeader("Content-length", isFirstResponse ? totalLength : (end - start)) in buildPartialResponse() 234 "Content-range", "bytes " + start + "-" + totalLength + "/" + totalLength); in buildPartialResponse()
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerCircleView.kt | 130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat())
|