Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java108 Timer(int id, State state, long length, long totalLength, long lastStartTime, in Timer() argument
113 mTotalLength = totalLength; in Timer()
316 final long totalLength; in setLength() local
319 totalLength = length; in setLength()
322 totalLength = mTotalLength; in setLength()
326 return new Timer(mId, mState, length, totalLength, mLastStartTime, in setLength()
341 final long totalLength = mTotalLength + delta; in setRemainingTime() local
356 return new Timer(mId, state, mLength, totalLength, lastStartTime, in setRemainingTime()
DTimerDAO.java87 final long totalLength = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE); in getTimers() local
91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers()
94 timers.add(new Timer(id, state, length, totalLength, lastStartTime, in getTimers()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java65 int totalLength = 0; in onMeasure() local
101 totalLength += child.getMeasuredWidth() in onMeasure()
109 outOfSpec |= (ellipsizeView == null) || (totalLength == 0); in onMeasure()
111 if (!outOfSpec && totalLength > parentWidth) { in onMeasure()
112 int maxWidth = ellipsizeView.getMeasuredWidth() - (totalLength - parentWidth); in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java689 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java689 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()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCollectionUtils.java36 int totalLength = first.length; in concatAll() local
38 totalLength += array.length; in concatAll()
40 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java516 int totalLength = prefix.length() + encodedLength in encodeB() local
518 if (totalLength <= ENCODED_WORD_MAX_LENGTH - usedCharacters) { in encodeB()
544 int totalLength = prefix.length() + encodedLength in encodeQ() local
546 if (totalLength <= ENCODED_WORD_MAX_LENGTH - usedCharacters) { in encodeQ()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java159 int totalLength = 0; in savePhotoFromUriToUri() local
162 totalLength += length; in savePhotoFromUriToUri()
165 Log.v(TAG, "Wrote " + totalLength + " bytes for photo " + inputUri.toString()); in savePhotoFromUriToUri()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java302 int totalLength = 0; in makePduBody() local
310 totalLength += getDataLength(context, part.getContentUri()); in makePduBody()
312 totalLength += getMediaFileSize(part.getContentUri()); in makePduBody()
317 final int byteBudget = MmsConfig.get(subId).getMaxMessageSize() - totalLength in makePduBody()
327 totalLength = 0; in makePduBody()
345 totalLength += addPicturePart(context, pb, index, part, in makePduBody()
351 totalLength += length; in makePduBody()
357 totalLength += addVCardPart(context, pb, part, srcName); in makePduBody()
362 totalLength += addOtherPart(context, pb, part, srcName); in makePduBody()
369 totalLength += addOtherPart(context, pb, part, srcName); in makePduBody()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java226 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()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1687 final int totalLength = dataLength + IPV4_HEADER_LEN + IPV4_TCP_HEADER_LEN; in ipv4Packet() local
1689 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4Packet()
1696 packet.putShort(IPV4_TOTAL_LENGTH_OFFSET, (short) totalLength); in ipv4Packet()
1782 final int totalLength = dataLength + IPV4_HEADER_LEN + UDP_HEADER_LEN; in ipv4UdpPacket() local
1784 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4UdpPacket()
1791 packet.putShort(IPV4_TOTAL_LENGTH_OFFSET, (short) totalLength); in ipv4UdpPacket()