/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | RangeArray.java | 24 public RangeArray(int min, int max) { in RangeArray() argument 25 mData = (T[]) new Object[max - min + 1]; in RangeArray() 26 mOffset = min; in RangeArray() 30 public RangeArray(T[] src, int min, int max) { in RangeArray() argument 31 if (max - min + 1 != src.length) { in RangeArray() 35 mOffset = min; in RangeArray()
|
D | RangeBoolArray.java | 24 public RangeBoolArray(int min, int max) { in RangeBoolArray() argument 25 mData = new boolean[max - min + 1]; in RangeBoolArray() 26 mOffset = min; in RangeBoolArray() 30 public RangeBoolArray(boolean[] src, int min, int max) { in RangeBoolArray() argument 32 mOffset = min; in RangeBoolArray()
|
D | RangeIntArray.java | 24 public RangeIntArray(int min, int max) { in RangeIntArray() argument 25 mData = new int[max - min + 1]; in RangeIntArray() 26 mOffset = min; in RangeIntArray() 30 public RangeIntArray(int[] src, int min, int max) { in RangeIntArray() argument 32 mOffset = min; in RangeIntArray()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeEffect.java | 197 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull() 199 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull() 201 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull() 214 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull() 279 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb() 282 HELD_EDGE_SCALE_Y, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1.f)); in onAbsorb() 288 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f), 1.75f); in onAbsorb() 291 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb() 313 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw() 315 int glowBottom = (int) Math.min( in draw() [all …]
|
D | ScrollerHelper.java | 74 public void fling(int velocity, int min, int max) { in fling() argument 79 min, max, // minX, maxX in fling() 85 public int startScroll(int distance, int min, int max) { in startScroll() argument 89 int newPosition = Utils.clamp(finalPosition + distance, min, max); in startScroll()
|
D | FlingScroller.java | 107 progress = Math.min(progress, 1); in computeScrollOffset() 118 r = Math.min(r, mMaxX); in getX() 128 r = Math.min(r, mMaxY); in getY()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Utils.java | 98 public static int clamp(int x, int min, int max) { in clamp() argument 100 if (x < min) return min; in clamp() 105 public static float clamp(float x, float min, float max) { in clamp() argument 107 if (x < min) return min; in clamp() 112 public static long clamp(long x, long min, long max) { in clamp() argument 114 if (x < min) return min; in clamp() 320 newSize = Math.min(source.length, newSize); in copyOf() 331 int length = Math.min(s.length(), MASK_STRING.length()); in maskDebugInfo()
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
D | PartialInputStream.java | 36 return Math.min(super.available(), getBytesLeft()); in available() 51 len = Math.min(len, getBytesLeft()); in read() 56 n = Math.min(n, getBytesLeft()); in skip() 61 return (int)Math.min(Integer.MAX_VALUE, limit - position); in getBytesLeft()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | UserHistoryForgettingCurveUtils.java | 131 final int et = Math.min(FC_FREQ_MAX, Math.max(0, elapsedTime)); in calcFreq() 132 final int l = Math.min(FC_LEVEL_MAX, Math.max(0, level)); in calcFreq() 137 final int et = Math.min(FC_FREQ_MAX, Math.max(0, elapsedTime)); in calcFc() 138 final int c = Math.min(COUNT_MAX, Math.max(0, count)); in calcFc() 139 final int l = Math.min(FC_LEVEL_MAX, Math.max(0, level)); in calcFc() 216 final int intFreq = Math.min(FC_FREQ_MAX, Math.max(0, (int)freq));
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
D | njd.h | 63 #define NORMALIZE_HINDO(freq, max, min) \ argument 64 (((freq) < (min)) ? (min) : (((freq) > (max)) ? (max) : (freq)))
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppWidgetResizeFrame.java | 171 mDeltaX = Math.min(mBaselineWidth - 2 * mTouchTargetWidth, mDeltaX); in updateDeltas() 173 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas() 179 mDeltaY = Math.min(mBaselineHeight - 2 * mTouchTargetWidth, mDeltaY); in updateDeltas() 181 mDeltaY = Math.min(mDragLayer.getHeight() - (mBaselineY + mBaselineHeight), deltaY); in updateDeltas() 260 cellXInc = Math.min(lp.cellHSpan - mMinHSpan, cellXInc); in resizeWidgetIfNeeded() 262 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded() 267 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 274 cellYInc = Math.min(lp.cellVSpan - mMinVSpan, cellYInc); in resizeWidgetIfNeeded() 276 vSpanInc = Math.min(cellY, vSpanInc); in resizeWidgetIfNeeded() 280 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
D | FileLogger.java | 74 int min = d.getMinutes(); in log() local 82 if (min < 10) in log() 84 sb.append(min); in log()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | SnapshotGridView.java | 46 widthSize = Math.min( in onMeasure() 47 Math.min(numCols, MAX_COLUMNS) * mColWidth, in onMeasure()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | InvertedChartAxis.java | 34 public boolean setBounds(long min, long max) { in setBounds() argument 35 return mWrapped.setBounds(min, max); in setBounds()
|
D | ChartDataUsageView.java | 412 : Math.min(visibleEnd, historyEnd); in setVisibleRange() 473 public boolean setBounds(long min, long max) { in setBounds() argument 474 if (mMin != min || mMax != max) { in setBounds() 475 mMin = min; in setBounds() 555 public boolean setBounds(long min, long max) { in setBounds() argument 556 if (mMin != min || mMax != max) { in setBounds() 557 mMin = min; in setBounds()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoProgressBar.java | 141 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress() 148 mLeftMostProgress = Math.min(mLeftMostProgress, mProgress); in setProgress() 177 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
|
/packages/apps/Camera/src/com/android/camera/ |
D | PanoProgressBar.java | 144 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress() 151 mLeftMostProgress = Math.min(mLeftMostProgress, mProgress); in setProgress() 180 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ForgettingCurveTests.java | 38 assertEquals(l, Math.max(1, Math.min(i + 1, 3))); in testFcToFreq() 46 assertEquals(l, Math.min(i + 1, 3)); in testFcToFreq()
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 155 int part = Math.min(remaining, currentBuffer.length - inBufferPos); in write() 253 int c = Math.min(buf.length, remaining); in writeTo() 278 int c = Math.min(buf.length, remaining); in toByteArray()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 229 mScrollY = Math.max(0, Math.min(mMaxScrollY, mScrollY)); in onLayout() 297 startRow = Math.max(Math.min(startRow, mRows - 1), 0); in moveDataWindow() 298 endRow = Math.max(Math.min(endRow, mRows), 0); in moveDataWindow() 405 mCurrentSelection = Math.min(index, mCount - 1); in setSelectedIndex() 524 int col = Math.min(mColumns - 1, in computeSelectedIndex() 560 y = Math.max(0, Math.min(mMaxScrollY, y)); in scrollTo() 600 sel = Math.min(mCount - 1, sel + mColumns); in onKeyDown() 625 topPos = Math.min(mCount - 1, topPos); in onKeyDown() 666 startRow = Math.max(Math.min(startRow, mRows - 1), 0); in paintDecoration() 667 endRow = Math.max(Math.min(endRow, mRows), 0); in paintDecoration() [all …]
|
D | ImageViewTouchBase.java | 269 float widthScale = Math.min(viewWidth / w, 3.0f); in getProperBaseMatrix() 270 float heightScale = Math.min(viewHeight / h, 3.0f); in getProperBaseMatrix() 271 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix() 329 float currentMs = Math.min(durationMs, now - startTime); in zoomTo()
|
/packages/apps/Email/src/com/android/email/view/ |
D | SizeBoundingFrameLayout.java | 92 widthSize = Math.min(widthSize, mMaxWidth); in onMeasure() 104 heightSize = Math.min(heightSize, mMaxHeight); in onMeasure()
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
D | CropView.java | 147 deltaX = (deltaX > 0) ? Math.min(displayBounds.right - cropped.right, deltaX) in moveEdges() 149 deltaY = (deltaY > 0) ? Math.min(displayBounds.bottom - cropped.bottom, deltaY) in moveEdges() 157 cropped.left = Math.min(cropped.left + deltaX, cropped.right - minWidth); in moveEdges() 160 cropped.top = Math.min(cropped.top + deltaY, cropped.bottom - minHeight); in moveEdges()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 155 int min = timeout / 60; in formatTimeRemaining() local 156 sb.append(min).append(':'); in formatTimeRemaining() 157 int sec = timeout - (min * 60); in formatTimeRemaining()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | TimezoneAdapter.java | 113 int min = p / 60000; in buildGmtDisplayName() local 114 min %= 60; in buildGmtDisplayName() 116 if (min < 10) { in buildGmtDisplayName() 119 name.append(min); in buildGmtDisplayName()
|