Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/packages/apps/Gallery2/jni/filters/
Dbwfilter.c29 float min = MIN(sg,sb); in JNIFUNCF() local
30 min = MIN(sr,min); in JNIFUNCF()
33 float avg = (min+max)/2; in JNIFUNCF()
45 min = MIN(g,b); in JNIFUNCF()
46 min = MIN(r,min); in JNIFUNCF()
49 avg =(min+max)/2; in JNIFUNCF()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dsaturation.rs47 int min = max;
55 else if (min > v) {
56 min = v;
60 min = min - 1;
65 satLut[i] = (v - min)/(float)(max - min);
86 S = 1 + min / 100.f;
115 iMin = min (gi, bi);
118 iMin = min (ri, bi);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java200 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
202 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull()
204 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull()
217 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull()
282 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb()
285 HELD_EDGE_SCALE_Y, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1.f)); in onAbsorb()
291 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f), 1.75f); in onAbsorb()
294 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb()
316 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw()
318 int glowBottom = (int) Math.min( in draw()
[all …]
DScrollerHelper.java74 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()
DAbstractSlotRenderer.java52 width = height = Math.min(width, height); in drawContent()
60 float scale = Math.min( in drawContent()
78 int s = Math.min(width, height) / 6; in drawVideoOverlay()
83 int iconSize = Math.min(width, height) / 6; in drawPanoramaIcon()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DUnitBezier.java93 float min = 0.0f; in solve() local
97 if (input < min) { in solve()
98 return min; in solve()
104 while (min < max) { in solve()
111 min = input; in solve()
116 input = (max - min) * .5f + min; in solve()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DRangeArray.java24 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()
DRangeBoolArray.java24 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()
DRangeIntArray.java24 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/Camera2/jni/
Djpegutil.h36 inline int min(int a, int b) { return a < b ? a : b; } in min() function
194 y = min(y, transform_.output_height() - 1); in LoadAt()
197 output_width = min(output_width, transform_.output_width()); in LoadAt()
198 output_width = min(output_width, plane_.width); in LoadAt()
213 startX = min(startX, plane_.width - 1); in LoadAt()
214 startY = min(startY, plane_.height - 1); in LoadAt()
215 endX = min(endX, plane_.width - 1); in LoadAt()
216 endY = min(endY, plane_.height - 1); in LoadAt()
243 for (int idx = plane_start; idx >= min(plane_start, plane_end) && in LoadAt()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java99 public static int clamp(int x, int min, int max) { in clamp() argument
101 if (x < min) return min; in clamp()
106 public static float clamp(float x, float min, float max) { in clamp() argument
108 if (x < min) return min; in clamp()
113 public static long clamp(long x, long min, long max) { in clamp() argument
115 if (x < min) return min; in clamp()
321 newSize = Math.min(source.length, newSize); in copyOf()
332 int length = Math.min(s.length(), MASK_STRING.length()); in maskDebugInfo()
DOverScroller.java525 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); in timePassed()
716 boolean springback(int start, int min, int max) { in springback() argument
725 if (start < min) { in springback()
726 startSpringback(start, min, 0); in springback()
748 void fling(int start, int velocity, int min, int max, int over) { in fling() argument
756 if (start > max || start < min) { in fling()
757 startAfterEdge(start, min, max, velocity); in fling()
773 if (mFinal < min) { in fling()
774 adjustDuration(mStart, mFinal, min); in fling()
775 mFinal = min; in fling()
[all …]
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarHvacManagerTest.java103 int min = property.getMinValue(areId); in checkIntMinMax() local
105 assertTrue(min <= max); in checkIntMinMax()
108 int min = property.getMinValue(); in checkIntMinMax() local
110 assertTrue(min <= max); in checkIntMinMax()
128 float min = property.getMinValue(areId); in checkFloatMinMax() local
130 assertTrue(min <= max); in checkFloatMinMax()
133 float min = property.getMinValue(); in checkFloatMinMax() local
135 assertTrue(min <= max); in checkFloatMinMax()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherEdgeEffect.java117 mBaseGlowScale = h > 0 ? Math.min(oh / h, 1.f) : 1.f; in setSize()
119 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h)); in setSize()
188 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull()
240 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); in onAbsorb()
255 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f) / 2, 1.f); in onAbsorb()
258 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb()
295 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0); in draw()
297 final float displacement = Math.max(0, Math.min(mDisplacement, 1.f)) - 0.5f; in draw()
322 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DPartialInputStream.java36 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/apps/Launcher2/src/com/android/launcher2/
DAppWidgetResizeFrame.java179 mDeltaX = Math.min(mBaselineWidth - 2 * mTouchTargetWidth, mDeltaX); in updateDeltas()
181 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas()
187 mDeltaY = Math.min(mBaselineHeight - 2 * mTouchTargetWidth, mDeltaY); in updateDeltas()
189 mDeltaY = Math.min(mDragLayer.getHeight() - (mBaselineY + mBaselineHeight), deltaY); in updateDeltas()
268 cellXInc = Math.min(lp.cellHSpan - mMinHSpan, cellXInc); in resizeWidgetIfNeeded()
270 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded()
275 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
282 cellYInc = Math.min(lp.cellVSpan - mMinVSpan, cellYInc); in resizeWidgetIfNeeded()
284 vSpanInc = Math.min(cellY, vSpanInc); in resizeWidgetIfNeeded()
288 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
/packages/apps/Gallery2/src/com/android/photos/data/
DGalleryBitmapPool.java87 int min, max; in getPoolIndexForDimensions() local
89 min = height; in getPoolIndexForDimensions()
92 min = width; in getPoolIndexForDimensions()
96 if (min * ar.x == max * ar.y) { in getPoolIndexForDimensions()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java187 mDeltaX = Math.min(mBaselineWidth - 2 * mTouchTargetWidth, mDeltaX); in updateDeltas()
189 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas()
195 mDeltaY = Math.min(mBaselineHeight - 2 * mTouchTargetWidth, mDeltaY); in updateDeltas()
197 mDeltaY = Math.min(mDragLayer.getHeight() - (mBaselineY + mBaselineHeight), deltaY); in updateDeltas()
276 cellXInc = Math.min(lp.cellHSpan - mMinHSpan, cellXInc); in resizeWidgetIfNeeded()
278 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded()
283 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
290 cellYInc = Math.min(lp.cellVSpan - mMinVSpan, cellYInc); in resizeWidgetIfNeeded()
292 vSpanInc = Math.min(cellY, vSpanInc); in resizeWidgetIfNeeded()
296 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
DPageIndicator.java99 int windowSize = Math.min(mMarkers.size(), mMaxWindowSize); in offsetWindowCenterTo()
103 int windowEnd = Math.min(mMarkers.size(), windowStart + mMaxWindowSize); in offsetWindowCenterTo()
104 windowStart = windowEnd - Math.min(mMarkers.size(), windowSize); in offsetWindowCenterTo()
163 index = Math.max(0, Math.min(index, mMarkers.size())); in addMarker()
186 index = Math.max(0, Math.min(mMarkers.size() - 1, index)); in removeMarker()
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
DPointMeteringParameters.java95 int minCropEdge = Math.min(cropRegion.width(), cropRegion.height()); in regionForNormalizedCoord()
148 private int clamp(int value, int min, int max) { in clamp() argument
149 return Math.min(Math.max(value, min), max); in clamp()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnjd.h63 #define NORMALIZE_HINDO(freq, max, min) \ argument
64 (((freq) < (min)) ? (min) : (((freq) > (max)) ? (max) : (freq)))
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp163 return std::min(std::max(level, MIN_VISIBLE_LEVEL), MAX_LEVEL); in clampToVisibleEntryLevelRange()
168 return std::min(std::max(count, 0), OCCURRENCES_TO_RAISE_THE_LEVEL - 1); in clampToValidCountRange()
172 return std::min(std::max(level, 0), MAX_LEVEL); in clampToValidLevelRange()
176 return std::min(std::max(timeStepCount, 0), MAX_ELAPSED_TIME_STEP_COUNT); in clampToValidTimeStepCountRange()
209 std::min(std::max(static_cast<int>(probability), 1), MAX_PROBABILITY); in ProbabilityTable()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java229 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 …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Dedit_distance.h43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance()
45 std::min( in getEditDistance()
49 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance()
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java245 cropLeft = Math.min(cropLeft, img.getWidth() - 1); in compressJpegFromYUV420Image()
249 cropRight = Math.min(cropRight, img.getWidth()); in compressJpegFromYUV420Image()
253 cropTop = Math.min(cropTop, img.getHeight() - 1); in compressJpegFromYUV420Image()
257 cropBot = Math.min(cropBot, img.getHeight()); in compressJpegFromYUV420Image()

12345678910>>...18