Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java104 int prevPos = 0; in precomputeGradientColors() local
110 prevPos = nextPos++; in precomputeGradientColors()
113 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors()
114 (mPositions[nextPos] - mPositions[prevPos]); in precomputeGradientColors()
116 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp173 int prevPos; in writeHeader_native() local
178 prevPos = lseek(fd, 0, SEEK_CUR); in writeHeader_native()
186 header.dataSize = prevPos - (pos + header.headerSize); in writeHeader_native()
209 lseek(fd, prevPos, SEEK_SET); in writeHeader_native()
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_file.c566 off_t prevPos; in DRM_file_write() local
580 prevPos = lseek( (int)handle, 0, SEEK_CUR); in DRM_file_write()
581 if ( (off_t)-1 == prevPos ) in DRM_file_write()
586 delta = (int)prevPos + length - prevFileSize; in DRM_file_write()
600 delta = prevPos + n - prevFileSize; in DRM_file_write()