Home
last modified time | relevance | path

Searched refs:lsdOffset (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java361 final int lsdOffset = getLsdOffset(res.ratVal, initResult, in doInBackground() local
363 final int initDisplayOffset = getPreferredPrec(initResult, msd, lsdOffset); in doInBackground()
629 private String getShortString(String cache, int msdIndex, int lsdOffset) { in getShortString() argument
644 if (lsdOffset < INIT_PREC) { in getShortString()
652 if (lsdOffset < -1 && dotIndex - msdIndex + negative <= SHORT_TARGET_LENGTH in getShortString()
653 && lsdOffset >= -CalculatorResult.MAX_TRAILING_ZEROES - 1) { in getShortString()
656 lsdOffset = -1; in getShortString()
663 } else if (lsdOffset <= SHORT_TARGET_LENGTH - negative - 2 in getShortString()
664 && lsdOffset <= CalculatorResult.MAX_LEADING_ZEROES + 1) { in getShortString()
675 if (lsdOffset != Integer.MAX_VALUE) { in getShortString()
[all …]
DCalculatorResult.java242 private void initPositions(int initPrecOffset, int msdIndex, int lsdOffset, in initPositions() argument
247 mLsdOffset = lsdOffset; in initPositions()
255 if (lsdOffset == Integer.MIN_VALUE) { in initPositions()
286 if (lsdOffset < MAX_RIGHT_SCROLL) { in initPositions()
287 mMaxCharOffset = lsdOffset; in initPositions()
305 newMaxCharOffset = mMaxCharOffset + expLen(-lsdOffset); in initPositions()