Searched refs:msdIndex (Results 1 – 2 of 2) sorted by relevance
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | Evaluator.java | 414 final int msdIndex = getMsdIndexOf(mResultString); in onPostExecute() local 416 final int newInitPrecOffset = getPreferredPrec(mResultString, msdIndex, leastDigOffset); in onPostExecute() 423 mCalculator.onEvaluate(initPrecOffset, msdIndex, leastDigOffset, truncatedWholePart); in onPostExecute() 629 private String getShortString(String cache, int msdIndex, int lsdOffset) { in getShortString() argument 640 if (msdIndex >= cache.length() - SHORT_TARGET_LENGTH) { in getShortString() 641 msdIndex = INVALID_MSD; in getShortString() 643 if (msdIndex == INVALID_MSD) { in getShortString() 652 if (lsdOffset < -1 && dotIndex - msdIndex + negative <= SHORT_TARGET_LENGTH in getShortString() 658 if (msdIndex > dotIndex) { in getShortString() 659 if (msdIndex <= dotIndex + EXP_COST + 1) { in getShortString() [all …]
|
D | CalculatorResult.java | 242 private void initPositions(int initPrecOffset, int msdIndex, int lsdOffset, in initPositions() argument 253 if (msdIndex == Evaluator.INVALID_MSD) { in initPositions() 270 if (msdIndex > wholeLen && msdIndex <= wholeLen + 3) { in initPositions() 272 msdIndex = wholeLen - 1; in initPositions() 274 int minCharOffset = msdIndex - wholeLen; in initPositions() 372 final int msdIndex = truncated ? -1 : getNaiveMsdIndexOf(in); // INVALID_MSD is OK. in formatResult() local 380 if ((decIndex == -1 || msdIndex != Evaluator.INVALID_MSD in formatResult() 381 && msdIndex - decIndex > MAX_LEADING_ZEROES + 1) && precOffset != -1) { in formatResult() 389 if (!truncated && msdIndex < maxDigs - 1 in formatResult() 390 && result.length() - msdIndex + 1 + minusSpace in formatResult() [all …]
|