Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java105 int prevPos = 0; in precomputeGradientColors() local
111 prevPos = nextPos++; in precomputeGradientColors()
114 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors()
115 (mPositions[nextPos] - mPositions[prevPos]); in precomputeGradientColors()
117 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.cpp266 size_t prevPos = mBuffer.wp()->pos(); in start() local
274 mExpectedObjectToken = makeToken(sizePos - prevPos, in start()