Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 990) sorted by relevance

12345678910>>...40

/aosp14/frameworks/base/core/java/android/text/style/
H A DSpanUtils.java51 if (min == max) { in toggleBold()
81 if (end > max) { in toggleBold()
100 if (end > max) { in toggleBold()
137 if (min == max) { in toggleItalic()
167 if (end > max) { in toggleItalic()
186 if (end > max) { in toggleItalic()
223 if (min == max) { in toggleUnderline()
243 if (end > max) { in toggleUnderline()
256 if (end > max) { in toggleUnderline()
280 private static int max(long packed) { in max() method in SpanUtils
[all …]
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/transport/
H A DTransportStats.java78 pw.println(String.format(Locale.US, "%sMax connection time: %d ms", prefix, stats.max)); in dumpStats()
88 Math.max(a.max, b.max), in merge()
94 public long max; field in TransportStats.Stats
100 max = 0; in Stats()
104 private Stats(int n, double average, long max, long min) { in Stats() argument
107 this.max = max; in Stats()
112 this(original.n, original.average, original.max, original.min); in Stats()
118 max = Math.max(max, sample); in register()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DTaskResizingAlgorithm.java92 width = Math.max(minVisibleWidth, Math.min(width - deltaX, maxVisibleSize.x)); in resizeDrag()
94 width = Math.max(minVisibleWidth, Math.min(width + deltaX, maxVisibleSize.x)); in resizeDrag()
114 width1 = Math.max(minVisibleWidth, Math.min(maxVisibleSize.x, width)); in resizeDrag()
119 width1 = Math.max(minVisibleWidth, in resizeDrag()
123 height2 = Math.max(minVisibleHeight, Math.min(maxVisibleSize.y, height)); in resizeDrag()
124 width2 = Math.max(width, Math.round((float) height2 * MIN_ASPECT)); in resizeDrag()
128 height2 = Math.max(minVisibleHeight, in resizeDrag()
133 width1 = Math.max(minVisibleWidth, Math.min(maxVisibleSize.x, width)); in resizeDrag()
134 height1 = Math.max(height, Math.round((float) width1 * MIN_ASPECT)); in resizeDrag()
138 width1 = Math.max(minVisibleWidth, in resizeDrag()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
H A DBrightnessUtils.java55 public static final int convertGammaToLinear(int val, int min, int max) { in convertGammaToLinear() argument
66 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
78 public static final float convertGammaToLinearFloat(int val, float min, float max) { in convertGammaToLinearFloat() argument
93 return MathUtils.lerp(min, max, normalizedRet / 12); in convertGammaToLinearFloat()
118 public static final int convertLinearToGamma(int val, int min, int max) { in convertLinearToGamma() argument
119 return convertLinearToGammaFloat((float) val, (float) min, (float) max); in convertLinearToGamma()
130 public static final int convertLinearToGammaFloat(float val, float min, float max) { in convertLinearToGammaFloat() argument
132 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat()
/aosp14/frameworks/base/core/java/android/net/metrics/
H A DNetworkMetrics.java147 (int) dnsLatencies.average(), (int) dnsLatencies.max, in toString()
150 (int) connectLatencies.average(), (int) connectLatencies.max, in toString()
163 public double max = Double.MIN_VALUE; field in NetworkMetrics.Metrics
169 this.max = Math.max(this.max, that.max); in merge()
179 max = Math.max(max, value); in count()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DWatchListDecorLayout.java117 final int width = Math.max(0, getMeasuredWidth() in applyMeasureToChild()
131 final int height = Math.max(0, getMeasuredHeight() in applyMeasureToChild()
176 maxWidth = Math.max(maxWidth, in onMeasure()
178 maxHeight = Math.max(maxHeight, in onMeasure()
195 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
196 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
201 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
202 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
215 int paddingTop = Math.max(mListView.getPaddingTop(), in onMeasure()
217 int paddingBottom = Math.max(mListView.getPaddingBottom(), in onMeasure()
[all …]
H A DDialogViewAnimator.java71 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() in onMeasure()
77 maxHeight = Math.max(maxHeight, child.getMeasuredHeight() in onMeasure()
92 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
93 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
98 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
99 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DDataUsageGraph.java58 mLimitLevel = Math.max(0, limitLevel); in setLevels()
59 mWarningLevel = Math.max(0, warningLevel); in setLevels()
60 mUsageLevel = Math.max(0, usageLevel); in setLevels()
61 mMaxLevel = Math.max(Math.max(Math.max(mLimitLevel, mWarningLevel), mUsageLevel), 1); in setLevels()
79 usageRight = Math.min(Math.max(usageRight, mMarkerWidth), w - mMarkerWidth * 2); in onDraw()
99 warningLeft = Math.min(Math.max(warningLeft, 0), w - mMarkerWidth); in onDraw()
/aosp14/frameworks/base/core/java/android/widget/
H A DEdgeEffect.java359 mGlowScaleY = Math.max(PULL_GLOW_BEGIN, mGlowScaleY); in onPull()
372 mDistance = Math.max(0f, mPullDistance); in onPull()
383 final float scale = (float) (Math.max(0, 1 - 1 / in onPull()
430 float finalDistance = Math.max(0f, deltaDistance + mDistance); in onPullDistance()
511 mGlowScaleYStart = Math.max(mGlowScaleY, 0.f); in onAbsorb()
520 mGlowAlphaFinish = Math.max( in onAbsorb()
640 + max(mTmpPoints[0], mTmpPoints[2], mTmpPoints[4], mTmpPoints[6]); in draw()
685 private float max(float f1, float f2, float f3, float f4) { in max() method in EdgeEffect
686 float max = Math.max(f1, f2); in max() local
687 max = Math.max(max, f3); in max()
[all …]
H A DLinearLayout.java715 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum()
929 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
938 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical()
1040 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
1059 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical()
1294 maxHeight = Math.max(maxHeight, childHeight); in measureHorizontal()
1302 weightedMaxHeight = Math.max(weightedMaxHeight, in measureHorizontal()
1322 final int ascent = Math.max(maxAscent[INDEX_FILL], in measureHorizontal()
1323 Math.max(maxAscent[INDEX_CENTER_VERTICAL], in measureHorizontal()
1328 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
[all …]
H A DFrameLayout.java159 return isForegroundInsidePadding() ? Math.max(mPaddingLeft, mForegroundPaddingLeft) : in getPaddingLeftWithForeground()
164 return isForegroundInsidePadding() ? Math.max(mPaddingRight, mForegroundPaddingRight) : in getPaddingRightWithForeground()
169 return isForegroundInsidePadding() ? Math.max(mPaddingTop, mForegroundPaddingTop) : in getPaddingTopWithForeground()
196 maxWidth = Math.max(maxWidth, in onMeasure()
198 maxHeight = Math.max(maxHeight, in onMeasure()
215 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
216 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
221 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
222 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
237 final int width = Math.max(0, getMeasuredWidth() in onMeasure()
[all …]
H A DDayPickerViewPager.java72 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
73 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
89 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
90 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
95 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
96 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
H A DPhysicsAnimator.kt32 import kotlin.math.max
76 friction = 1f, min = -Float.MAX_VALUE, max = Float.MAX_VALUE)
257 max: Float = defaultFling.max
327 val midpoint = (flingConfig.min + flingConfig.max) / 2
491 max = max(currentValue, this.max)
521 val flingMax = flingConfig.max
851 var max: Float,
860 constructor(friction: Float, min: Float, max: Float) :
861 this(friction, min, max, startVelocity = 0f)
868 setMaxValue(max)
[all …]
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
H A DDisplayModeDirectorTest.java243 assertThat(modeSpecs.primary.physical.max) in testDisplayModeVoting()
246 assertThat(modeSpecs.primary.render.max) in testDisplayModeVoting()
251 assertThat(modeSpecs.appRequest.physical.max) in testDisplayModeVoting()
352 assertThat(desiredSpecs.primary.physical.max) in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
367 assertThat(desiredSpecs.primary.physical.max) in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
382 assertThat(desiredSpecs.primary.physical.max) in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
397 assertThat(desiredSpecs.primary.physical.max) in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
676 assertThat(desiredSpecs.primary.physical.max).isAtLeast(90);
678 assertThat(desiredSpecs.primary.render.max).isAtLeast(90);
1484 assertThat(desiredSpecs.primary.render.max).isAtMost(60); in testAppRequestMaxRefreshRate()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DDiagonalClassifier.java102 private boolean angleBetween(float angle, float min, float max) { in angleBetween() argument
105 max = normalizeAngle(max); in angleBetween()
107 if (min > max) { // Can happen when angle is close to 0. in angleBetween()
108 return angle >= min || angle <= max; in angleBetween()
111 return angle >= min && angle <= max; in angleBetween()
/aosp14/frameworks/base/core/java/android/app/admin/
H A DPasswordMetrics.java300 maxLength = Math.max(maxLength, bytes.length - startSequence); in maxLengthSequence()
357 credType = Math.max(credType, other.credType); in maxWith()
361 length = Math.max(length, other.length); in maxWith()
362 letters = Math.max(letters, other.letters); in maxWith()
363 upperCase = Math.max(upperCase, other.upperCase); in maxWith()
364 lowerCase = Math.max(lowerCase, other.lowerCase); in maxWith()
365 numeric = Math.max(numeric, other.numeric); in maxWith()
366 symbols = Math.max(symbols, other.symbols); in maxWith()
367 nonLetter = Math.max(nonLetter, other.nonLetter); in maxWith()
368 nonNumeric = Math.max(nonNumeric, other.nonNumeric); in maxWith()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
H A DLoopingBackwardsPerfTest.java49 public void timeForwards(int max) { in timeForwards() argument
53 for (int j = 0; j < max; j++) { in timeForwards()
61 public void timeBackwards(int max) { in timeBackwards() argument
65 for (int j = max - 1; j >= 0; j--) { in timeBackwards()
/aosp14/frameworks/base/core/java/android/preference/
H A DSeekBarPreference.java117 public void setMax(int max) { in setMax() argument
118 if (max != mMax) { in setMax()
119 mMax = max; in setMax()
201 myState.max = mMax; in onSaveInstanceState()
217 mMax = myState.max; in onRestoreInstanceState()
229 int max; field in SeekBarPreference.SavedState
236 max = source.readInt(); in SavedState()
245 dest.writeInt(max); in writeToParcel()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dimgprocutil.h27 inline int clamp(int min, int val, int max) { in clamp() argument
28 return val < min ? min : (val > max ? max : val); in clamp()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java56 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); in testDrawingCacheBelowMaximumSize() local
57 assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max); in testDrawingCacheBelowMaximumSize()
64 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
65 assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max);
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DUtils.java99 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()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DGainmap.java256 public void setDisplayRatioForFullHdr(@FloatRange(from = 1.0f) float max) { in setDisplayRatioForFullHdr()
257 if (!Float.isFinite(max) || max < 1f) { in setDisplayRatioForFullHdr()
259 "setDisplayRatioForFullHdr must be >= 1.0f, got = " + max); in setDisplayRatioForFullHdr()
261 nSetDisplayRatioHdr(mNativePtr, max); in setDisplayRatioForFullHdr()
357 private static native void nSetDisplayRatioHdr(long ptr, float max); in nSetDisplayRatioHdr() argument
H A DMeshSpecification.java290 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
292 @SuppressLint("ArrayReturn") @NonNull @Size(max = 6) Varying[] varyings, in make()
328 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
330 @SuppressLint("ArrayReturn") @NonNull @Size(max = 6) Varying[] varyings, in make()
373 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
375 @SuppressLint("ArrayReturn") @NonNull @Size(max = 6) Varying[] varyings, in make()
H A DTableMaskFilter.java38 public static TableMaskFilter CreateClipTable(int min, int max) { in CreateClipTable() argument
39 return new TableMaskFilter(nativeNewClip(min, max)); in CreateClipTable()
47 private static native long nativeNewClip(int min, int max); in nativeNewClip() argument
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DOverScroll.java44 public static int dampedScroll(float amount, int max) { in dampedScroll() argument
47 float f = amount / max; in dampedScroll()
55 return Math.round(OVERSCROLL_DAMP_FACTOR * f * max); in dampedScroll()

12345678910>>...40