Home
last modified time | relevance | path

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

/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorText.java95 private int mWidthConstraint = -1; field in CalculatorText
144 if (mWidthConstraint != width) { in onMeasure()
145 mWidthConstraint = width; in onMeasure()
162 public int getWidthConstraint() { return mWidthConstraint; } in getWidthConstraint()
193 if (mWidthConstraint < 0 || mMaximumTextSize <= mMinimumTextSize) { in getVariableTextSize()
205 if (Layout.getDesiredWidth(text, mTempPaint) > mWidthConstraint) { in getVariableTextSize()
DCalculatorResult.java87 private int mWidthConstraint = -1; field in CalculatorResult
204 mWidthConstraint = newWidthConstraint; in onMeasure()
485 result = (int) Math.floor(mWidthConstraint / mCharWidth); in getMaxChars()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditText.java69 private int mWidthConstraint = -1; field in CalculatorEditText
115 mWidthConstraint = in onMeasure()
156 if (mWidthConstraint < 0 || mMaximumTextSize <= mMinimumTextSize) { in getVariableTextSize()
169 if (mTempPaint.measureText(text) > mWidthConstraint) { in getVariableTextSize()