/frameworks/minikin/include/minikin/ |
D | Range.h | 32 Range(uint32_t start, uint32_t end) : mStart(start), mEnd(end) {} in Range() 39 inline bool isValid() const { return mStart != NOWHERE && mEnd != NOWHERE; } in isValid() 41 inline uint32_t getStart() const { return mStart; } // inclusive in getStart() 42 inline void setStart(uint32_t start) { mStart = start; } // inclusive in setStart() 47 inline uint32_t getLength() const { return mEnd - mStart; } in getLength() 49 inline bool isEmpty() const { return mStart == mEnd; } in isEmpty() 51 inline uint32_t toRangeOffset(uint32_t globalPos) const { return globalPos - mStart; } in toRangeOffset() 52 inline uint32_t toGlobalOffset(uint32_t rangePos) const { return mStart + rangePos; } in toGlobalOffset() 56 return std::make_pair(Range(mStart, pos), Range(pos, mEnd)); in split() 60 return mStart <= other.mStart && other.mEnd <= mEnd; in contains() [all …]
|
D | LayoutCache.h | 43 mStart(range.getStart()), in LayoutCacheKey() 61 return mId == o.mId && mStart == o.mStart && mCount == o.mCount && mStyle == o.mStyle && 87 size_t mStart; variable 109 .update(mStart) in computeHash()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | RollingBuffer.java | 28 private int mStart; field in RollingBuffer 112 mStart = offsetOf(index); in truncate() 121 mTimes[mStart] = minTime; in truncate() 129 mStart = 0; in clear() 157 return (mStart + index) % mSize; in offsetOf() 164 System.arraycopy(mTimes, mStart, times, 0, mCount - mStart); in expandBuffer() 165 System.arraycopy(mTimes, 0, times, mCount - mStart, mStart); in expandBuffer() 166 System.arraycopy(mValues, mStart, values, 0, mCount - mStart); in expandBuffer() 167 System.arraycopy(mValues, 0, values, mCount - mStart, mStart); in expandBuffer() 169 mStart = 0; in expandBuffer()
|
D | History.java | 31 private int mStart; field in History 56 mStart = 0; in History() 75 mStart = (mStart + 1) % mSize; in add() 89 final int index = (mStart + i) % mSize; in toString()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/ |
D | ByteRange.java | 23 private final long mStart; field in ByteRange 30 mStart = start; in ByteRange() 36 return mStart; in getStart() 46 return (int) (mEnd - mStart + 1); in getLength() 52 return new ByteRange(mStart, mEnd + length); in extend() 65 return (mEnd == byteRange.mEnd && mStart == byteRange.mStart); in equals() 71 result = 31 * result + (int) (mStart ^ (mStart >>> 32)); in hashCode() 78 return String.format("ByteRange{mStart=%d, mEnd=%d}", mStart, mEnd); in toString()
|
/frameworks/base/core/java/android/print/ |
D | PageRange.java | 38 private final int mStart; field in PageRange 60 mStart = start; in PageRange() 74 return mStart; in getStart() 95 return (pageIndex >= mStart) && (pageIndex <= mEnd); in contains() 107 return mEnd - mStart + 1; in getSize() 117 parcel.writeInt(mStart); in writeToParcel() 126 result = prime * result + mStart; in hashCode() 145 if (mStart != other.mStart) { in equals() 153 if (mStart == 0 && mEnd == Integer.MAX_VALUE) { in toString() 158 .append(mStart) in toString()
|
/frameworks/base/core/java/android/text/ |
D | InputFilter.java | 108 private final int mStart, mEnd; field in InputFilter.AllCaps.CharSequenceWrapper 113 mStart = start; in CharSequenceWrapper() 126 return mSource.charAt(mStart + index); in charAt() 133 return new CharSequenceWrapper(mSource, mStart + start, mStart + end); in subSequence() 137 return mSource.subSequence(mStart, mEnd).toString(); in toString() 141 return ((Spanned) mSource).getSpans(mStart + start, mStart + end, type); in getSpans() 145 return ((Spanned) mSource).getSpanStart(tag) - mStart; in getSpanStart() 149 return ((Spanned) mSource).getSpanEnd(tag) - mStart; in getSpanEnd() 157 return ((Spanned) mSource).nextSpanTransition(mStart + start, mStart + limit, type) in nextSpanTransition() 158 - mStart; in nextSpanTransition()
|
D | AlteredCharSequence.java | 48 mStart = substart; in AlteredCharSequence() 54 mStart = substart; in update() 92 if (off >= mStart && off < mEnd) in charAt() 93 return mChars[off - mStart]; in charAt() 104 mChars, mStart - start, mEnd - start); in subSequence() 110 start = Math.max(mStart, start); in getChars() 114 System.arraycopy(mChars, start - mStart, dest, off, end - start); in getChars() 125 private int mStart; field in AlteredCharSequence
|
D | TextLine.java | 60 private int mStart; field in TextLine 179 mStart = start; in set() 242 return mCharsValid ? mChars[i] : mText.charAt(i + mStart); in charAt() 251 while (end > 0 && isLineEndSpace(mText.charAt(mStart + end - 1))) { in justify() 716 return TextUtils.getOffsetAfter(mText, offset + mStart) - mStart; 718 return TextUtils.getOffsetBefore(mText, offset + mStart) - mStart; 733 int limit = mStart + runLimit; 735 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, 736 MetricAffectingSpan.class) - mStart; 743 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | RingBufferIndices.java | 27 private int mStart; field in RingBufferIndices 48 int pos = mStart; in add() 49 mStart++; in add() 50 if (mStart == mCapacity) { in add() 51 mStart = 0; in add() 60 mStart = 0; in clear() 76 int index = mStart + pos; in indexOf()
|
/frameworks/base/core/java/android/widget/ |
D | RtlSpacingHelper.java | 30 private int mStart = UNDEFINED; field in RtlSpacingHelper 55 mStart = start; in setRelative() 81 mRight = mStart != UNDEFINED ? mStart : mExplicitRight; in setDirection() 83 mLeft = mStart != UNDEFINED ? mStart : mExplicitLeft; in setDirection()
|
D | OverScroller.java | 199 return mScrollerX.mStart; in getStartX() 208 return mScrollerY.mStart; in getStartY() 541 final int dx = mScrollerX.mFinal - mScrollerX.mStart; in isScrollingInDirection() 542 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() 549 private int mStart; field in OverScroller.SplineOverScroller 659 mCurrentPosition = mStart + Math.round(q * (mFinal - mStart)); in updateScroll() 691 mCurrentPosition = mStart = start; in startScroll() 725 mCurrentPosition = mStart = mFinal = start; in springback() 744 mCurrentPosition = mStart = start; in startSpringback() 760 mCurrentPosition = mStart = start; in fling() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkStatsSummaryLoader.java | 35 private final long mStart; field in NetworkStatsSummaryLoader 41 mStart = builder.mStart; in NetworkStatsSummaryLoader() 57 return mNetworkStatsManager.querySummary(mNetworkTemplate, mStart, mEnd); in loadInBackground() 78 private long mStart; field in NetworkStatsSummaryLoader.Builder 87 mStart = start; in setStartTime()
|
/frameworks/base/libs/hwui/utils/ |
D | Timing.h | 25 explicit MethodTimer(const char* name) : mMethodName(name) { gettimeofday(&mStart, nullptr); } in MethodTimer() 30 long long elapsed = (stop.tv_sec * 1000000) - (mStart.tv_sec * 1000000) + in ~MethodTimer() 31 (stop.tv_usec - mStart.tv_usec); in ~MethodTimer() 37 struct timeval mStart; variable
|
/frameworks/base/core/java/android/text/method/ |
D | WordIterator.java | 41 private int mStart, mEnd; field in WordIterator 65 mStart = Math.max(0, start - WINDOW_WIDTH); in setCharSequence() 67 mIterator.setText(new CharSequenceCharacterIterator(charSequence, mStart, mEnd)); in setCharSequence() 319 if (mStart < offset && offset <= mEnd) { in isAfterPunctuation() 335 if (mStart <= offset && offset < mEnd) { in isOnPunctuation() 383 if (mStart < offset && offset <= mEnd) { in isAfterLetterOrDigit() 391 if (mStart <= offset && offset < mEnd) { in isOnLetterOrDigit() 399 if (!(mStart <= offset && offset <= mEnd)) { in checkOffsetIsValid() 401 ". Valid range is [" + mStart + ", " + mEnd + "]"); in checkOffsetIsValid()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 402 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset() 455 mStart = offset; in openChunk() 460 if (fseek(mFp, mStart, SEEK_SET) != 0) { in openChunk() 479 mStart = -1; // not used in openChunk() 528 if (ftell(mFp) != mStart + mOffset) { in read() 530 ftell(mFp), (long) mStart, (long) mOffset); in read() 565 actualOffset = mStart + newPosn; in seek() 572 mOffset = actualOffset - mStart; in seek() 644 fseek(mFp, mStart, SEEK_SET); in getBuffer() 661 if (!map->create(NULL, fileno(mFp), mStart, mLength, true)) { in getBuffer() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PooledStringWriter.java | 44 private int mStart; field in PooledStringWriter 54 mStart = out.dataPosition(); in PooledStringWriter() 76 mOut.setDataPosition(mStart); in finish()
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | MeasuredText_Builder_Delegate.java | 127 measureText(mNativePaint, builder.mText, mStart, mEnd - mStart, builder.mWidths, in addTo() 142 builder.mWidths[mStart] = mWidth; in addTo() 143 Arrays.fill(builder.mWidths, mStart + 1, mEnd, 0.0f); in addTo()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMap.java | 92 private final long mStart; field in ChunkListingMap.Entry 95 mStart = start; in Entry() 106 return mStart; in getStart()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | DisplayCutoutView.java | 39 private final boolean mStart; field in DisplayCutoutView 43 mStart = start; in DisplayCutoutView() 94 if (mStart) { in hasCutout() 144 if (mStart) { in localBounds()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 984 private int mStart; field in AutomaticBrightnessController.AmbientLightRingBuffer 1012 int length = mCapacity - mStart; in push() 1013 System.arraycopy(mRingLux, mStart, newRingLux, 0, length); in push() 1014 System.arraycopy(mRingTime, mStart, newRingTime, 0, length); in push() 1015 if (mStart != 0) { in push() 1016 System.arraycopy(mRingLux, 0, newRingLux, length, mStart); in push() 1017 System.arraycopy(mRingTime, 0, newRingTime, length, mStart); in push() 1024 mStart = 0; in push() 1041 int next = mStart + 1; in prune() 1055 mStart = next; in prune() [all …]
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | SelectionEvent.java | 139 private int mStart; field in SelectionEvent 173 mStart = in.readInt(); in SelectionEvent() 202 dest.writeInt(mStart); in writeToParcel() 556 return mStart; in getStart() 562 mStart = start; in setStart() 641 mEventIndex, mSessionId, mStart, mEnd, mSmartStart, mSmartEnd); in hashCode() 669 && mStart == other.mStart in equals() 687 mSessionId, mStart, mEnd, mSmartStart, mSmartEnd); in toString()
|
/frameworks/base/core/java/android/app/admin/ |
D | FreezePeriod.java | 45 private final MonthDay mStart; field in FreezePeriod 62 mStart = start; in FreezePeriod() 63 mStartDay = mStart.atYear(DUMMY_YEAR).getDayOfYear(); in FreezePeriod() 72 return mStart; in getStart() 87 mStart = dayOfYearToMonthDay(startDay); in FreezePeriod()
|
/frameworks/base/core/java/android/view/textclassifier/logging/ |
D | SmartSelectionEventTracker.java | 136 Preconditions.checkArgument(event.mEnd == event.mStart + 1); in logEvent() 137 mOrigStart = event.mStart; in logEvent() 144 mSmartIndices[0] = event.mStart; in logEvent() 149 if (mPrevIndices[0] == event.mStart && mPrevIndices[1] == event.mEnd) { in logEvent() 176 .addTaggedData(EVENT_START, getRangeDelta(event.mStart)) in writeEvent() 182 mPrevIndices[0] = event.mStart; in writeEvent() 424 private final int mStart; field in SmartSelectionEventTracker.SelectionEvent 434 mStart = start; in SelectionEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 51 private long mStart; field in InstallerTest.Timer 59 mStart = SystemClock.currentTimeMicro(); in start() 63 mTotal += SystemClock.currentTimeMicro() - mStart; in stop() 67 mStart = 0; in reset()
|