/frameworks/minikin/include/minikin/ |
D | Range.h | 33 Range(uint32_t start, uint32_t end) : mStart(start), mEnd(end) {} in Range() 40 inline bool isValid() const { return mStart != NOWHERE && mEnd != NOWHERE; } in isValid() 42 inline uint32_t getStart() const { return mStart; } // inclusive in getStart() 43 inline void setStart(uint32_t start) { mStart = start; } // inclusive in setStart() 48 inline uint32_t getLength() const { return mEnd - mStart; } in getLength() 50 inline bool isEmpty() const { return mStart == mEnd; } in isEmpty() 52 inline uint32_t toRangeOffset(uint32_t globalPos) const { return globalPos - mStart; } in toRangeOffset() 53 inline uint32_t toGlobalOffset(uint32_t rangePos) const { return mStart + rangePos; } in toGlobalOffset() 57 return std::make_pair(Range(mStart, pos), Range(pos, mEnd)); in split() 61 return mStart <= other.mStart && other.mEnd <= mEnd; in contains() [all …]
|
/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/core/java/android/print/ |
D | PageRange.java | 39 private final int mStart; field in PageRange 61 mStart = start; in PageRange() 75 return mStart; in getStart() 96 return (pageIndex >= mStart) && (pageIndex <= mEnd); in contains() 108 return mEnd - mStart + 1; in getSize() 118 parcel.writeInt(mStart); in writeToParcel() 127 result = prime * result + mStart; in hashCode() 146 if (mStart != other.mStart) { in equals() 154 if (mStart == 0 && mEnd == Integer.MAX_VALUE) { in toString() 159 .append(mStart) in toString()
|
/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/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 | 64 private int mStart; field in TextLine 222 mStart = start; in set() 286 return mCharsValid ? mChars[i] : mText.charAt(i + mStart); in charAt() 295 while (end > 0 && isLineEndSpace(mText.charAt(mStart + end - 1))) { in justify() 1118 return TextUtils.getOffsetAfter(mText, offset + mStart) - mStart; in getOffsetBeforeAfter() 1120 return TextUtils.getOffsetBefore(mText, offset + mStart) - mStart; in getOffsetBeforeAfter() 1136 int limit = mStart + runLimit; in getOffsetBeforeAfter() 1138 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, in getOffsetBeforeAfter() 1139 MetricAffectingSpan.class) - mStart; in getOffsetBeforeAfter() 1146 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, in getOffsetBeforeAfter() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | EdgeLight.java | 39 private float mStart; field in EdgeLight 53 mStart = offset; in EdgeLight() 59 mStart = sourceLight.getStart(); in EdgeLight() 96 mStart = start; in setEndpoints() 105 return mStart; in getStart() 113 mStart = start; in setStart() 117 return mStart + mLength; in getEnd() 122 return mStart + (mLength / 2.f); in getCenter()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | TextBoundsInfo.java | 157 private final int mStart; field in TextBoundsInfo 187 return mStart; in getStartIndex() 212 if (index < mStart || index >= mEnd) { in getCharacterBounds() 214 + "[" + mStart + ", " + mEnd + ")."); in getCharacterBounds() 216 final int offset = 4 * (index - mStart); in getCharacterBounds() 250 if (index < mStart || index >= mEnd) { in getCharacterFlags() 252 + "[" + mStart + ", " + mEnd + ")."); in getCharacterFlags() 254 final int offset = index - mStart; in getCharacterFlags() 276 if (index < mStart || index >= mEnd) { in getCharacterBidiLevel() 278 + "[" + mStart + ", " + mEnd + ")."); in getCharacterBidiLevel() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | ScriptUtils.h | 49 return mStart == o.mStart && mParent == o.mParent; 55 return std::make_pair(Range(mStart, mEnd), mScript); 59 mStart = mEnd; 60 std::tie(mEnd, mScript) = getScriptRun(mParent->mTextBuf, mParent->mRange, mStart); 67 iterator(const ScriptText* parent, uint32_t start) : mParent(parent), mStart(start) { in iterator() 68 std::tie(mEnd, mScript) = getScriptRun(mParent->mTextBuf, mParent->mRange, mStart); in iterator() 72 uint32_t mStart; variable
|
/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 | 200 return mScrollerX.mStart; in getStartX() 209 return mScrollerY.mStart; in getStartY() 526 final int dx = mScrollerX.mFinal - mScrollerX.mStart; in isScrollingInDirection() 527 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() 538 private int mStart; field in OverScroller.SplineOverScroller 648 int distance = mFinal - mStart; in updateScroll() 649 mCurrentPosition = mStart + Math.round(q * distance); in updateScroll() 683 mCurrentPosition = mStart = start; in startScroll() 704 mSplineDistance = mFinal - mStart; in setFinalPosition() 718 mCurrentPosition = mStart = mFinal = start; in springback() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/ |
D | Flattener.h | 137 std::vector<CachedSet>::const_iterator mStart; 147 mStart = start; in init() 178 while (mNumSets > 1 && mStart->getLayerCount() == 1 && in validateAndBuild() 179 mStart->getFirstLayer().getBuffer() == nullptr) { in validateAndBuild() 180 mStart++; in validateAndBuild() 191 return Run(mStart, in validateAndBuild() 192 std::reduce(mStart, mStart + mNumSets, 0u, in validateAndBuild() 204 const std::vector<CachedSet>::const_iterator& getStart() const { return mStart; } in getStart() 214 : mStart(start), in Run() 218 const std::vector<CachedSet>::const_iterator mStart; variable
|
/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 | 44 private int mStart, mEnd; field in WordIterator 76 mStart = Math.max(0, start - WINDOW_WIDTH); in setCharSequence() 78 mIterator.setText(new CharSequenceCharacterIterator(charSequence, mStart, mEnd)); in setCharSequence() 330 if (mStart < offset && offset <= mEnd) { in isAfterPunctuation() 346 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()
|
D | InsertModeTransformationMethod.java | 62 private int mStart; field in InsertModeTransformationMethod 90 mStart = start; in InsertModeTransformationMethod() 109 return new InsertModeTransformationMethod(mStart, mEnd, singleLine, in update() 169 if (start < mStart) { in onTextChanged() 170 if (start + before <= mStart) { in onTextChanged() 172 mStart += diff; in onTextChanged() 176 mStart = start; in onTextChanged() 449 return mStart; in getHighlightStart()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | DrawTweenPath.java | 30 float mStart; field in DrawTweenPath 42 mStart = start; in DrawTweenPath() 53 mStart, in write() 60 + " " + mTween + " " + mStart + " " in toString() 110 mStart, in paint()
|
D | DrawText.java | 33 int mStart = 0; field in DrawText 50 mStart = start; in DrawText() 61 COMPANION.apply(buffer, mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in write() 67 return "DrawTextRun [" + mTextID + "] " + mStart + ", " + mEnd + ", " + mX + ", " + mY; in toString() 134 context.drawTextRun(mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in paint()
|
D | DrawTextRun.java | 30 int mStart = 0; field in DrawTextRun 47 mStart = start; in DrawTextRun() 58 COMPANION.apply(buffer, mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in write() 119 context.drawTextRun(mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in paint()
|
D | DrawPath.java | 30 float mStart = 0; field in DrawPath 44 return "DrawPath " + "[" + mId + "]" + ", " + mStart + ", " + mEnd; in toString() 76 context.drawPath(mId, mStart, mEnd); in paint()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 384 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mFd(-1), mBuf(NULL) in _FileAsset() 437 mStart = offset; in openChunk() 442 if (fseek(mFp, mStart, SEEK_SET) != 0) { in openChunk() 461 mStart = -1; // not used in openChunk() 516 if (ftell(mFp) != mStart + mOffset) { in read() 518 ftell(mFp), (long) mStart, (long) mOffset); in read() 553 actualOffset = mStart + newPosn; in seek() 560 mOffset = actualOffset - mStart; in seek() 638 fseek(mFp, mStart, SEEK_SET); in getIncFsBuffer() 653 if (!map.Create(fileno(mFp), mStart, mLength, NULL /* file_name */ )) { in getIncFsBuffer() [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/proto_logging/stats/express/libexpresscatalog-utils/include/ |
D | expresscatalog-utils.h | 52 : mName(std::move(name)), mStart(std::chrono::high_resolution_clock::now()) { in ExecutionMeasure() 57 const auto duration = std::chrono::duration_cast<std::chrono::microseconds>(stop - mStart); in ~ExecutionMeasure() 63 const std::chrono::time_point<std::chrono::high_resolution_clock> mStart; variable
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 1437 private int mStart; field in AutomaticBrightnessController.AmbientLightRingBuffer 1462 if (mStart < mEnd) { in getAllLuxValues() 1463 System.arraycopy(mRingLux, mStart, values, 0, mCount); in getAllLuxValues() 1465 System.arraycopy(mRingLux, mStart, values, 0, mCapacity - mStart); in getAllLuxValues() 1466 System.arraycopy(mRingLux, 0, values, mCapacity - mStart, mEnd); in getAllLuxValues() 1482 if (mStart < mEnd) { in getAllTimestamps() 1483 System.arraycopy(mRingTime, mStart, values, 0, mCount); in getAllTimestamps() 1485 System.arraycopy(mRingTime, mStart, values, 0, mCapacity - mStart); in getAllTimestamps() 1486 System.arraycopy(mRingTime, 0, values, mCapacity - mStart, mEnd); in getAllTimestamps() 1499 int length = mCapacity - mStart; in push() [all …]
|