Home
last modified time | relevance | path

Searched refs:prevPos (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java111 int prevPos = 0; in precomputeGradientColors() local
123 prevPos = nextPos++; in precomputeGradientColors()
126 if (nextPos == mPositions.length || currentPos == prevPos) { in precomputeGradientColors()
127 mGradient[i] = mColors[prevPos]; in precomputeGradientColors()
129 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors()
130 (mPositions[nextPos] - mPositions[prevPos]); in precomputeGradientColors()
132 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp174 int prevPos; in writeHeader_native() local
179 prevPos = lseek(fd, 0, SEEK_CUR); in writeHeader_native()
187 header.dataSize = prevPos - (pos + header.headerSize); in writeHeader_native()
210 lseek(fd, prevPos, SEEK_SET); in writeHeader_native()
/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp257 size_t prevPos = mBuffer->wp()->pos(); in start() local
265 mExpectedObjectToken = makeToken(sizePos - prevPos, in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleData.java340 int prevPos = mBubbles.indexOf(bubble); in doUpdate() local
343 if (prevPos != newPos) { in doUpdate()