/packages/apps/TV/src/com/android/tv/menu/ |
D | PlaybackProgressBar.java | 80 public void setMax(long max) { in setMax() argument 81 if (max < 0) { in setMax() 82 max = 0; in setMax() 84 if (max != mMax) { in setMax() 85 mMax = max; in setMax() 86 if (mProgressStart > max) { in setMax() 87 mProgressStart = max; in setMax() 89 if (mProgressEnd > max) { in setMax() 90 mProgressEnd = max; in setMax() 92 if (mProgress > max) { in setMax() [all …]
|
/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 616 } else if (start > max) { in springback() 617 startSpringback(start, max, 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 | 31 float max = MAX(sg,sb); in JNIFUNCF() local 32 max = MAX(sr,max); in JNIFUNCF() 33 float avg = (min+max)/2; in JNIFUNCF() 47 max = MAX(g,b); in JNIFUNCF() 48 max = MAX(r,max); in JNIFUNCF() 49 avg =(min+max)/2; in JNIFUNCF()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 227 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration() 716 boolean springback(int start, int min, int max) { in springback() argument 727 } else if (start > max) { in springback() 728 startSpringback(start, max, 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() 778 if (mFinal > max) { in fling() 779 adjustDuration(mStart, mFinal, max); in fling() 780 mFinal = max; in fling() [all …]
|
D | Utils.java | 99 public static int clamp(int x, int min, int max) { in clamp() argument 100 if (x > max) return max; in clamp() 106 public static float clamp(float x, float min, float max) { in clamp() argument 107 if (x > max) return max; in clamp() 113 public static long clamp(long x, long min, long max) { in clamp() argument 114 if (x > max) return max; in clamp()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarHvacManagerTest.java | 124 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax() local 125 assertTrue(min <= max); in checkIntMinMax() 129 int max = property.getMaxValue() == null ? 0 : property.getMinValue(); in checkIntMinMax() local 130 assertTrue(min <= max); in checkIntMinMax() 150 float max = in checkFloatMinMax() local 152 assertTrue(min <= max); in checkFloatMinMax() 156 float max = property.getMaxValue() == null ? 0f : property.getMinValue(); in checkFloatMinMax() local 157 assertTrue(min <= max); in checkFloatMinMax()
|
/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() 201 mEdgeScaleY = mEdgeScaleYStart = Math.max( in onPull() 217 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull() 266 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity)); in onAbsorb() 282 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb() 284 mEdgeScaleYFinish = Math.max( in onAbsorb() 293 mGlowAlphaFinish = Math.max( in onAbsorb() 316 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw() 332 mEdge.setAlpha((int) (Math.max(0, Math.min(mEdgeAlpha, 1)) * 255)); in draw()
|
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/services/Car/tools/emulator/ |
D | user_action_generator.py | 94 self.max = vhalAreaConfig.max_int32_value 97 self.max = vhalAreaConfig.max_int64_value 100 self.max = vhalAreaConfig.max_float_value 103 self.max = None 134 end = areaConfig.max if end > areaConfig.max else end 136 begin = areaConfig.max if begin > areaConfig.max else begin
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
D | UnitBezier.java | 94 float max = 1.0f; in solve() local 100 if (input > max) { in solve() 101 return max; in solve() 104 while (min < max) { in solve() 113 max = input; in solve() 116 input = (max - min) * .5f + min; in solve()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoSource.java | 171 int rawLongSide = Math.max(options.outWidth, options.outHeight); in load() 176 float insideRatio = Math.max((float) longSide / (float) rawLongSide, in load() 178 float outsideRatio = Math.max((float) longSide / (float) rawLongSide, in load() 200 rawLongSide = Math.max(options.outWidth, options.outHeight); in load() 201 rawShortSide = Math.max(options.outWidth, options.outHeight); in load() 203 ratio = Math.max((float) longSide / (float) rawLongSide, in load() 275 protected int pickRandomStart(int total, int max) { in pickRandomStart() argument 276 if (max >= total) { in pickRandomStart() 279 return (mRNG.nextInt() % (total - max)) - 1; in pickRandomStart()
|
/packages/apps/TV/common/src/com/android/tv/common/support/tis/ |
D | SimpleSessionManager.java | 31 private final int max; field in SimpleSessionManager 33 public SimpleSessionManager(int max) { in SimpleSessionManager() argument 34 this.max = max; in SimpleSessionManager() 50 return sessions.size() < max; in canCreateNewSession()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | SeekBarPreference.java | 176 public void setMax(int max) { in setMax() argument 177 if (max != mMax) { in setMax() 178 mMax = max; in setMax() 313 myState.max = mMax; in onSaveInstanceState() 330 mMax = myState.max; in onRestoreInstanceState() 343 int max; field in SeekBarPreference.SavedState 351 max = source.readInt(); in SavedState() 361 dest.writeInt(max); in writeToParcel()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | SeekBarPreference.java | 187 public void setMax(int max) { in setMax() argument 188 if (max != mMax) { in setMax() 189 mMax = max; in setMax() 324 myState.max = mMax; in onSaveInstanceState() 341 mMax = myState.max; in onRestoreInstanceState() 354 int max; field in SeekBarPreference.SavedState 362 max = source.readInt(); in SavedState() 372 dest.writeInt(max); in writeToParcel()
|
D | MatchParentShrinkingLinearLayout.java | 593 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum() 690 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical() 718 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical() 722 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical() 756 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical() 765 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical() 768 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical() 800 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical() 811 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical() 893 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical() [all …]
|
/packages/apps/Camera2/jni/ |
D | jpegutil.h | 38 inline int max(int a, int b) { return a > b ? a : b; } in max() function 217 startX = max(startX, 0); in LoadAt() 218 startY = max(startY, 0); in LoadAt() 219 endX = max(endX, 0); in LoadAt() 220 endY = max(endY, 0); in LoadAt() 244 idx <= max(plane_start, plane_end); in LoadAt()
|
/packages/apps/TV/tests/tunerscripts/ |
D | measure-tuning-time.awk | 15 max = tune_time; 20 if (tune_time > max) { 21 max = tune_time 30 print "Maximum tune time", max, "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/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() 30 public RangeArray(T[] src, int min, int max) { in RangeArray() argument 31 if (max - min + 1 != src.length) { in RangeArray()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_random.h | 57 inline int db_RandomInt(int &r,int max) in db_RandomInt() argument 61 dtemp=db_QuickRandomDouble(r)*(max+1); in db_RandomInt() 64 if(itemp>=max) return(max); in db_RandomInt()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/ |
D | AutofillTestingHelper.java | 31 public void setLoggingLevel(int max) { in setLoggingLevel() argument 32 setGlobal(Settings.Global.AUTOFILL_LOGGING_LEVEL, max); in setLoggingLevel() 35 public void setMaxPartitionsSize(int max) { in setMaxPartitionsSize() argument 36 setGlobal(Settings.Global.AUTOFILL_MAX_PARTITIONS_SIZE, max); in setMaxPartitionsSize()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | BitmapTransformer.java | 59 Math.max(0, horizontalOffset), in applyFillTransformation() 60 Math.max(0, verticalOffset), in applyFillTransformation() 69 Math.max(0, -1 * horizontalOffset), in applyFillTransformation() 70 Math.max(0, -1 * verticalOffset), in applyFillTransformation()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluator.java | 107 - (double) Math.max(diffMs - DIFF_MS_TOLERANCE_FOR_OLD_PROGRAM, 0) in calculateRoutineWatchScore() 144 maxMatchedWordSeqLen = Math.max(maxMatchedWordSeqLen, matchedWordSeqLen[j]); in calculateMaximumMatchedWordSequenceLength() 150 maxMatchedWordSeqLen = Math.max(maxMatchedWordSeqLen, len); in calculateMaximumMatchedWordSequenceLength() 178 Math.max( in calculateOverlappedIntervalScore() 181 - Math.max(t1.startTimeOfDayInSec, t2.startTimeOfDayInSec)); in calculateOverlappedIntervalScore() 187 Math.max( in calculateOverlappedIntervalScore()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 79 out.top = Math.max(insets.top, insets.left); 80 out.bottom = Math.max(insets.right, insets.bottom); 83 out.top = Math.max(insets.top, insets.left); 103 out.top = Math.max(insets.top, insets.right); 104 out.bottom = Math.max(insets.left, insets.bottom); 107 out.top = Math.max(insets.top, insets.right);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ImageSavingTask.java | 49 int max; field in ImageSavingTask.UpdateProgress 110 public void onProgress(int max, int current) { in doInBackground() 112 updateProgress.max = max; in doInBackground() 144 mProcessingService.updateProgress(progress.max, progress.current); in onUpdate()
|