/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 289 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/ |
D | bwfilter.c | 29 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/ |
D | EdgeEffect.java | 200 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 …]
|
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()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Utils.java | 99 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()
|
D | OverScroller.java | 525 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/ |
D | jpegutil.h | 36 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/ |
D | UnitBezier.java | 93 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/ |
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/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarHvacManagerTest.java | 123 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/ |
D | BitmapTransformer.java | 50 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/ |
D | user_action_generator.py | 93 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/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 308 r.left = Math.min(r.right, r.left + insets.left); in insetRect() 309 r.top = Math.min(r.bottom, r.top + insets.top); in insetRect() 315 float scale = Math.min(Math.min(scaleX, scaleY), 1.0f); in shrinkRect() 347 public static float getProgress(float current, float min, float max) { in getProgress() argument 348 return Math.abs(current - min) / Math.abs(max - min); in getProgress() 351 public static float mapRange(float value, float min, float max) { in mapRange() argument 352 return min + (value * (max - min)); in mapRange() 421 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange() 428 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange() 435 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | SeekBarPreference.java | 183 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/ |
D | SeekBarPreference.java | 194 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/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipDatetimeTest.java | 36 private Date makeDate(int month, int day, int year, int hours, int min, int sec, TimeZone tz) { in makeDate() argument 41 builder.setTimeOfDay(hours, min, sec, 0); in makeDate() 46 private Date makeDate(int month, int day, int year, int hours, int min, int sec) { in makeDate() argument 47 return makeDate(month, day, year, hours, min, sec, null); in makeDate() 50 private String makeTzAdjustedString(int month, int day, int year, int hours, int min, in makeTzAdjustedString() argument 53 cal.setTime(makeDate(month, day, year, hours, min, sec)); in makeTzAdjustedString()
|
/packages/apps/TV/tests/tunerscripts/ |
D | measure-tuning-time.awk | 14 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/ |
D | CarPropertyConfig.java | 549 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/Car/Settings/src/com/android/car/settings/common/ |
D | SeekBarPreference.java | 196 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/ |
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 …]
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | BlePacketFactory.java | 68 - getPacketHeaderSize(totalPackets, messageId, Math.min(payloadSize, maxSize)); in makeBlePackets() 71 int end = Math.min(payloadSize, maxPayloadSize); in makeBlePackets() 80 end = Math.min(start + maxPayloadSize, payloadSize); in makeBlePackets() 105 + getEncodedSize(Math.min(payloadSize, maxSize)) + FIELD_NUMBER_ENCODING_SIZE; in getTotalPacketNumber()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | GalleryBitmapPool.java | 87 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/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 163 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()
|