Home
last modified time | relevance | path

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

12345678910>>...23

/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java289 public boolean springBack(int start, int min, int max) { in springBack() argument
291 return mScroller.springback(start, min, max); in springBack()
294 public void fling(int start, int velocity, int min, int max) { in fling() argument
295 fling(start, velocity, min, max, 0); in fling()
313 public void fling(int start, int velocity, int min, int max, int over) { in fling() argument
323 mScroller.fling(start, velocity, min, max, over); in fling()
605 boolean springback(int start, int min, int max) { in springback() argument
614 if (start < min) { in springback()
615 startSpringback(start, min, 0); in springback()
637 void fling(int start, int velocity, int min, int max, int over) { in fling() argument
[all …]
/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/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()
/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/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/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/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()
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()
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()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarHvacManagerTest.java123 int min = property.getMinValue(areaId) == null ? 0 : property.getMinValue(areaId); in checkIntMinMax() local
125 assertTrue(min <= max); in checkIntMinMax()
128 int min = property.getMinValue() == null ? 0 : property.getMinValue(); in checkIntMinMax() local
130 assertTrue(min <= max); in checkIntMinMax()
148 float min = in checkFloatMinMax() local
152 assertTrue(min <= max); in checkFloatMinMax()
155 float min = property.getMinValue() == null ? 0f : property.getMinValue(); in checkFloatMinMax() local
157 assertTrue(min <= max); in checkFloatMinMax()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DBitmapTransformer.java50 int pixelArraySize = Math.min(resultBitmap.getWidth(), bitmap.getWidth()) in applyFillTransformation()
51 * Math.min(resultBitmap.getHeight(), bitmap.getHeight()); in applyFillTransformation()
61 Math.min(resultBitmap.getWidth(), bitmap.getWidth()) /* width */, in applyFillTransformation()
62 Math.min(resultBitmap.getHeight(), bitmap.getHeight()) /* height */); in applyFillTransformation()
71 Math.min(resultBitmap.getWidth(), bitmap.getWidth()) /* width */, in applyFillTransformation()
72 Math.min(resultBitmap.getHeight(), bitmap.getHeight()) /* height */); in applyFillTransformation()
/packages/services/Car/tools/emulator/
Duser_action_generator.py93 self.min = vhalAreaConfig.min_int32_value
96 self.min = vhalAreaConfig.min_int64_value
99 self.min = vhalAreaConfig.min_float_value
102 self.min = None
133 begin = areaConfig.min if begin < areaConfig.min else begin
137 end = areaConfig.min if end < areaConfig.min else end
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSeekBarPreference.java183 public void setMin(int min) { in setMin() argument
184 if (min != mMin) { in setMin()
185 mMin = min; in setMin()
314 myState.min = mMin; in onSaveInstanceState()
331 mMin = myState.min; in onRestoreInstanceState()
344 int min; field in SeekBarPreference.SavedState
352 min = source.readInt(); in SavedState()
362 dest.writeInt(min); in writeToParcel()
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java194 public void setMin(int min) { in setMin() argument
195 if (min != mMin) { in setMin()
196 mMin = min; in setMin()
325 myState.min = mMin; in onSaveInstanceState()
342 mMin = myState.min; in onRestoreInstanceState()
355 int min; field in SeekBarPreference.SavedState
363 min = source.readInt(); in SavedState()
373 dest.writeInt(min); in writeToParcel()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java345 r.left = Math.min(r.right, r.left + insets.left); in insetRect()
346 r.top = Math.min(r.bottom, r.top + insets.top); in insetRect()
352 float scale = Math.min(Math.min(scaleX, scaleY), 1.0f); in shrinkRect()
384 public static float getProgress(float current, float min, float max) { in getProgress() argument
385 return Math.abs(current - min) / Math.abs(max - min); in getProgress()
388 public static float mapRange(float value, float min, float max) { in mapRange() argument
389 return min + (value * (max - min)); in mapRange()
546 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
553 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
560 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
/packages/apps/TV/tests/tunerscripts/
Dmeasure-tuning-time.awk14 min = tune_time;
17 if (tune_time < min) {
18 min = tune_time
29 print "Minimum tune time", min, "ms";
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java549 public Builder<T> addAreaConfig(int areaId, T min, T max) {
550 if (!isRangeAvailable(min, max)) {
553 mSupportedAreas.put(areaId, new AreaConfig<>(min, max));
625 private boolean isRangeAvailable(T min, T max) {
626 if (min == null || max == null) {
632 return (Integer) min != 0 || (Integer) max != 0;
634 return (Long) min != 0L || (Long) max != 0L;
636 return (Float) min != 0f || (Float) max != 0f;
/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/Car/Settings/src/com/android/car/settings/common/
DSeekBarPreference.java196 public void setMin(int min) { in setMin() argument
197 if (min > mMax) { in setMin()
198 min = mMax; in setMin()
200 if (min != mMin) { in setMin()
201 mMin = min; in setMin()
242 mSeekBarIncrement = Math.min(mMax - mMin, Math.abs(seekBarIncrement)); in setSeekBarIncrement()
/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/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/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()

12345678910>>...23