Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.kt40 val totalLength: Long, in <lambda>() constant in com.android.deskclock.data.Timer
134 get() = totalLength - remainingTime in <lambda>()
143 Timer(id, State.RUNNING, length, totalLength, in <lambda>()
159 return Timer(id, State.PAUSED, length, totalLength, UNUSED, UNUSED, remainingTime, label, in <lambda>()
214 return Timer(id, state, length, totalLength, timeSinceBoot, wallClockTime, in <lambda>()
235 Timer(id, state, length, totalLength, timeSinceBoot, wallClockTime, in <lambda>()
247 Timer(id, state, length, totalLength, lastStartTime, in <lambda>()
261 val totalLength: Long in <lambda>() constant
264 totalLength = length in <lambda>()
267 totalLength = this.totalLength in <lambda>()
[all …]
DTimerDAO.kt75 val totalLength: Long = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE) in getTimers() constant
78 val remainingTime: Long = prefs.getLong(REMAINING_TIME + id, totalLength) in getTimers()
81 timers.add(Timer(id, it, length, totalLength, lastStartTime, in getTimers()
108 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) in addTimer()
118 return Timer(id, timer.state, timer.length, timer.totalLength, in addTimer()
134 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) in updateTimer()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.kt74 var totalLength = 0 in onMeasure() variable
111 totalLength += (child.measuredWidth + in onMeasure()
120 outOfSpec = outOfSpec or (ellipsizeView == null || totalLength == 0) in onMeasure()
122 if (!outOfSpec && totalLength > parentWidth) { in onMeasure()
123 var maxWidth = ellipsizeView!!.measuredWidth - (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/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/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.java300 int totalLength = 0; in makePduBody() local
308 totalLength += getDataLength(context, part.getContentUri()); in makePduBody()
310 totalLength += getMediaFileSize(part.getContentUri()); in makePduBody()
315 final int byteBudget = MmsConfig.get(subId).getMaxMessageSize() - totalLength 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()
[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/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat()) in onDraw()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1736 final int totalLength = dataLength + IPV4_HEADER_LEN + IPV4_TCP_HEADER_LEN; in ipv4TcpPacket() local
1738 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4TcpPacket()
1742 packet.putShort(IPV4_TOTAL_LENGTH_OFFSET, (short) totalLength); in ipv4TcpPacket()
1829 final int totalLength = dataLength + IPV4_HEADER_LEN + UDP_HEADER_LEN; in ipv4UdpPacket() local
1831 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4UdpPacket()
1835 packet.putShort(IPV4_TOTAL_LENGTH_OFFSET, (short) totalLength); in ipv4UdpPacket()