Home
last modified time | relevance | path

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

12345678910>>...34

/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_math_agree.java202 private float max(float v1, float v2) { in max() method in UT_math_agree
205 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree
209 rv[i] = max(v1[i], v2[i]); in max()
212 private byte max(byte v1, byte v2) { in max() method in UT_math_agree
215 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree
219 rv[i] = max(v1[i], v2[i]); in max()
222 private short max(short v1, short v2) { in max() method in UT_math_agree
225 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree
229 rv[i] = max(v1[i], v2[i]); in max()
232 private int max(int v1, int v2) { in max() method in UT_math_agree
[all …]
Dreduce_backward.rs24 IndexedVal min, max;
30 accum->max.val = negInf;
31 accum->max.idx = -1;
41 if (me.val > accum->max.val)
42 accum->max = me;
49 if (val->max.val > accum->max.val)
50 accum->max = val->max;
56 result->y = val->max.idx;
Dreduce.rs29 IndexedVal min, max;
35 accum->max.val = negInf;
36 accum->max.idx = -1;
46 if (me.val > accum->max.val)
47 accum->max = me;
54 if (val->max.val > accum->max.val)
55 accum->max = val->max;
61 result->y = val->max.idx;
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_math_agree.java202 private float max(float v1, float v2) { in max() method in UT_math_agree
205 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree
209 rv[i] = max(v1[i], v2[i]); in max()
212 private byte max(byte v1, byte v2) { in max() method in UT_math_agree
215 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree
219 rv[i] = max(v1[i], v2[i]); in max()
222 private short max(short v1, short v2) { in max() method in UT_math_agree
225 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree
229 rv[i] = max(v1[i], v2[i]); in max()
232 private int max(int v1, int v2) { in max() method in UT_math_agree
[all …]
Dreduce_backward.rs26 IndexedVal min, max;
32 accum->max.val = negInf;
33 accum->max.idx = -1;
43 if (me.val > accum->max.val)
44 accum->max = me;
51 if (val->max.val > accum->max.val)
52 accum->max = val->max;
58 result->y = val->max.idx;
Dreduce.rs30 IndexedVal min, max;
36 accum->max.val = negInf;
37 accum->max.idx = -1;
47 if (me.val > accum->max.val)
48 accum->max = me;
55 if (val->max.val > accum->max.val)
56 accum->max = val->max;
62 result->y = val->max.idx;
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_math_agree.java202 private float max(float v1, float v2) { in max() method in UT_math_agree
205 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree
209 rv[i] = max(v1[i], v2[i]); in max()
212 private byte max(byte v1, byte v2) { in max() method in UT_math_agree
215 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree
219 rv[i] = max(v1[i], v2[i]); in max()
222 private short max(short v1, short v2) { in max() method in UT_math_agree
225 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree
229 rv[i] = max(v1[i], v2[i]); in max()
232 private int max(int v1, int v2) { in max() method in UT_math_agree
[all …]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rs37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) {
38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad));
41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) {
44 return (short) (max
57 static short cylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
58 return (short) (max * sigmoid(cylinderDistance(p1, p2, img) - rad));
61 static short cogCylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
64 return (short) (max
78 short max, float3 img) {
79 return (short) (max
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBucketTest.java44 int max = 0; field in BucketTest
61 max = 0; in setUp()
66 max = Math.max(max, i); in setUp()
77 for (int i = 0; i < max + 100; i++) { in setClear()
86 for (int i = 0; i < max + 100; i++) { in setClear()
143 max = Math.max(i, max); in countOnesBefore()
146 for (int i = 0; i < max + 200; i++) { in countOnesBefore()
/frameworks/native/services/surfaceflinger/
Dclz.h41 static inline T max(T a, T b) { in max() function
45 static inline T max(T a, T b, T c) { in max() function
46 return max(a, max(b, c)); in max()
49 static inline T max(T a, T b, T c, T d) { in max() function
50 return max(a, b, max(c, d)); in max()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dfind_min_max.cpp142 int min, max; in FindMaxMin() local
147 max = min = *input_ptr; in FindMaxMin()
154 if (*input_ptr > max) in FindMaxMin()
156 max = *input_ptr; in FindMaxMin()
169 *max_ptr = max; in FindMaxMin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DDataUsageGraph.java55 mLimitLevel = Math.max(0, limitLevel); in setLevels()
56 mWarningLevel = Math.max(0, warningLevel); in setLevels()
57 mUsageLevel = Math.max(0, usageLevel); in setLevels()
58 mMaxLevel = Math.max(Math.max(Math.max(mLimitLevel, mWarningLevel), mUsageLevel), 1); in setLevels()
76 usageRight = Math.min(Math.max(usageRight, mMarkerWidth), w - mMarkerWidth * 2); in onDraw()
96 warningLeft = Math.min(Math.max(warningLeft, 0), w - mMarkerWidth); in onDraw()
/frameworks/support/design/src/android/support/design/widget/
DSwipeDismissBehavior.java306 int min, max;
311 max = mOriginalCapturedViewLeft;
314 max = mOriginalCapturedViewLeft + child.getWidth();
319 max = mOriginalCapturedViewLeft + child.getWidth();
322 max = mOriginalCapturedViewLeft;
326 max = mOriginalCapturedViewLeft + child.getWidth();
329 return clamp(min, left, max);
385 private static float clamp(float min, float value, float max) { in clamp() argument
386 return Math.min(Math.max(min, value), max); in clamp()
389 private static int clamp(int min, int value, int max) { in clamp() argument
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java539 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum()
636 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
664 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
668 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
702 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
712 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical()
715 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical()
747 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
758 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical()
821 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java48 this.buckets = new long[Math.max(buckets.length, minBucketCount)]; in FlagSet()
54 int max = 0; in FlagSet() local
56 max = Math.max(i, bits[i]); in FlagSet()
58 buckets = new long[1 + (max / sBucketSize)]; in FlagSet()
133 final int max = Math.max(buckets.length, other.buckets.length); in bitsEqual() local
134 for (int i = 0; i < max; i ++) { in bitsEqual()
/frameworks/base/core/java/android/widget/
DLinearLayout.java634 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum()
741 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
771 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
775 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
809 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
818 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical()
821 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical()
852 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
863 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical()
907 Math.max(0, childHeight), MeasureSpec.EXACTLY); in measureVertical()
[all …]
DFrameLayout.java150 return isForegroundInsidePadding() ? Math.max(mPaddingLeft, mForegroundPaddingLeft) : in getPaddingLeftWithForeground()
155 return isForegroundInsidePadding() ? Math.max(mPaddingRight, mForegroundPaddingRight) : in getPaddingRightWithForeground()
160 return isForegroundInsidePadding() ? Math.max(mPaddingTop, mForegroundPaddingTop) : in getPaddingTopWithForeground()
165 return isForegroundInsidePadding() ? Math.max(mPaddingBottom, mForegroundPaddingBottom) : in getPaddingBottomWithForeground()
187 maxWidth = Math.max(maxWidth, in onMeasure()
189 maxHeight = Math.max(maxHeight, in onMeasure()
206 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
207 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
212 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
213 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dcor_h_x2.cpp244 Word32 max; in cor_h_x2() local
252 max = 0; in cor_h_x2()
266 if (s > max) in cor_h_x2()
268 max = s; in cor_h_x2()
271 tot = (tot + (max >> 1)); in cor_h_x2()
Dhp_max.cpp249 Word32 max, t0, t1; in hp_max() local
254 max = MIN_32; in hp_max()
265 if (t0 >= max) in hp_max()
267 max = t0; in hp_max()
300 t016 = norm_l(max); in hp_max()
303 L_temp = L_shl(max, shift1, pOverflow); in hp_max()
Dcor_h_x.cpp258 Word32 max; in cor_h_x() local
269 max = 0; in cor_h_x()
296 if (s > max) in cor_h_x()
298 max = s; in cor_h_x()
302 tot += (max >> 1); in cor_h_x()
/frameworks/native/vulkan/doc/implementors_guide/
Dimplementors_guide-docinfo.adoc4 max-width: 68em;
8 max-width: 50em;
12 max-width: 50em;
20 max-width: 35em;
/frameworks/base/libs/hwui/
DPatch.cpp82 const float xStretch = std::max(width - fixed, 0.0f); in Patch()
84 rescaleX = fixed == 0.0f ? 0.0f : std::min(std::max(width, 0.0f) / fixed, 1.0f); in Patch()
94 const float yStretch = std::max(height - fixed, 0.0f); in Patch()
96 rescaleY = fixed == 0.0f ? 0.0f : std::min(std::max(height, 0.0f) / fixed, 1.0f); in Patch()
120 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; in Patch()
168 float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth; in generateRow()
192 x1 = std::max(x1, 0.0f); in generateQuad()
193 x2 = std::max(x2, 0.0f); in generateQuad()
194 y1 = std::max(y1, 0.0f); in generateQuad()
195 y2 = std::max(y2, 0.0f); in generateQuad()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DUtilities.java122 public static float clamp(float value, float min, float max) { in clamp() argument
123 return Math.max(min, Math.min(max, value)); in clamp()
129 public static int clamp(int value, int min, int max) { in clamp() argument
130 return Math.max(min, Math.min(max, value)); in clamp()
137 return Math.max(0f, Math.min(1f, value)); in clamp01()
146 public static float mapRange(@FloatRange(from=0.0,to=1.0) float value, float min, float max) { in mapRange() argument
147 return min + (value * (max - min)); in mapRange()
155 public static float unmapRange(float value, float min, float max) { in unmapRange() argument
156 return (value - min) / (max - min); in unmapRange()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dgmed_n.cpp189 Word16 max; in gmed_n() local
201 max = -32767; in gmed_n()
204 if (*(tmp2 + j) >= max) in gmed_n()
206 max = *(tmp2 + j); in gmed_n()
/frameworks/base/core/java/android/preference/
DSeekBarPreference.java110 public void setMax(int max) { in setMax() argument
111 if (max != mMax) { in setMax()
112 mMax = max; in setMax()
194 myState.max = mMax; in onSaveInstanceState()
210 mMax = myState.max; in onRestoreInstanceState()
222 int max; field in SeekBarPreference.SavedState
229 max = source.readInt(); in SavedState()
238 dest.writeInt(max); in writeToParcel()

12345678910>>...34