Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
/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 …]
/frameworks/base/core/java/android/speech/srec/
DUlawEncoderInputStream.java50 byte[] ulawBuf, int ulawOffset, int length, int max) { in encode() argument
76 if (max <= 0) max = MAX_ULAW; in encode()
78 int coef = MAX_ULAW * (1 << SCALE_BITS) / max; in encode()
121 int max = 0; in maxAbsPcm() local
125 if (pcm > max) max = pcm; in maxAbsPcm()
127 return max; in maxAbsPcm()
135 public UlawEncoderInputStream(InputStream in, int max) { in UlawEncoderInputStream() argument
137 mMax = max; in UlawEncoderInputStream()
/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 register 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()
Dpost_proc.h35 #define UPDATE_PV_MAXPV_MIN(p,max,min) if ((p) > max) max=(p); else if ((p) < min) min = (p); argument
/frameworks/rs/driver/runtime/
Drs_core.c54 extern uint32_t __attribute__((overloadable)) max(uint32_t, uint32_t);
55 extern int32_t __attribute__((overloadable)) max(int32_t, int32_t);
81 uint32_t n = max(value, prev); in rsAtomicMax()
91 int32_t n = max(value, prev); in rsAtomicMax()
104 extern float __attribute__((overloadable)) rsRand(float min, float max);/* {
112 extern float __attribute__((overloadable)) rsRand(float max) { in rsRand() argument
113 return rsRand(0.f, max); in rsRand()
120 extern int __attribute__((overloadable)) rsRand(int max) { in rsRand() argument
121 return (int)rsRand((float)max); in rsRand()
124 extern int __attribute__((overloadable)) rsRand(int min, int max) { in rsRand() argument
[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()
Dset_sign.cpp502 Word16 max; in set_sign12k2() local
567 max = -1; in set_sign12k2()
572 if (cor > max) in set_sign12k2()
574 max = cor; in set_sign12k2()
580 if (max > max_of_all) in set_sign12k2()
582 max_of_all = max; in set_sign12k2()
/frameworks/base/core/java/android/os/
DFileUtils.java228 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() argument
236 if (max > 0 || (size > 0 && max == 0)) { // "head" mode: read the first N bytes in readTextFile()
237 if (size > 0 && (max == 0 || size < max)) max = (int) size; in readTextFile()
238 byte[] data = new byte[max + 1]; in readTextFile()
241 if (length <= max) return new String(data, 0, length); in readTextFile()
242 if (ellipsis == null) return new String(data, 0, max); in readTextFile()
243 return new String(data, 0, max) + ellipsis; in readTextFile()
244 } else if (max < 0) { // "tail" mode: keep the last N in readTextFile()
252 if (data == null) data = new byte[-max]; in readTextFile()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dgmed_n.cpp189 register 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/widget/
DAbsSeekBar.java190 public synchronized void setMax(int max) {
191 super.setMax(max);
196 setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));
256 int max = getMax();
257 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
345 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
346 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight()));
347 dh = Math.max(thumbHeight, dh);
448 final int max = getMax();
449 progress += scale * max;
[all …]
DLinearLayout.java582 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum()
678 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
705 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
709 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
743 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
752 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical()
755 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical()
787 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
798 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical()
859 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
[all …]
DEdgeEffect.java222 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
223 mEdgeScaleY = mEdgeScaleYStart = Math.max( in onPull()
239 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull()
288 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); in onAbsorb()
304 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb()
306 mEdgeScaleYFinish = Math.max( in onAbsorb()
315 mGlowAlphaFinish = Math.max( in onAbsorb()
333 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw()
349 mEdge.setAlpha((int) (Math.max(0, Math.min(mEdgeAlpha, 1)) * 255)); in draw()
/frameworks/base/core/java/android/preference/
DSeekBarPreference.java100 public void setMax(int max) { in setMax() argument
101 if (max != mMax) { in setMax()
102 mMax = max; in setMax()
184 myState.max = mMax; in onSaveInstanceState()
200 mMax = myState.max; in onRestoreInstanceState()
212 int max; field in SeekBarPreference.SavedState
219 max = source.readInt(); in SavedState()
228 dest.writeInt(max); in writeToParcel()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
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()
/frameworks/av/media/libeffects/loudness/dsp/core/
Ddynamic_range_compression.cpp79 const float max_abs_x = std::max(std::fabs(x), kMinLogAbsValue); in Compress()
84 const float rect = std::max(overshoot, 0.0f); in Compress()
107 const float max_abs_x = std::max(std::fabs(*x1), in Compress()
108 std::max(std::fabs(*x2), kMinLogAbsValue)); in Compress()
113 const float rect = std::max(overshoot, 0.0f); in Compress()
/frameworks/base/graphics/java/android/graphics/
DTableMaskFilter.java35 public static TableMaskFilter CreateClipTable(int min, int max) { in CreateClipTable() argument
36 return new TableMaskFilter(nativeNewClip(min, max)); in CreateClipTable()
44 private static native int nativeNewClip(int min, int max); in nativeNewClip() argument
/frameworks/base/core/tests/coretests/src/android/view/
DBigCacheTest.java58 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); in testDrawingCacheBelowMaximumSize() local
59 assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max); in testDrawingCacheBelowMaximumSize()
66 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
67 assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
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()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java216 int bufferSizeInBytes = Math.max(MIN_AUDIO_BUFFER_SIZE, minBufferSizeInBytes); in createStreamingAudioTrack()
341 private static final long clip(long value, long min, long max) { in clip() argument
346 if (value > max) { in clip()
347 return max; in clip()
353 private static float clip(float value, float min, float max) { in clip() argument
354 return value > max ? max : (value < min ? min : value); in clip()
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp75 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline in android_util_EventLog_writeEvent_String() local
76 if (len > max) len = max; in android_util_EventLog_writeEvent_String()
98 const size_t max = sizeof(buf) - 1; // leave room for final newline in android_util_EventLog_writeEvent_Array() local
105 if (pos + 1 + sizeof(jint) > max) break; in android_util_EventLog_writeEvent_Array()
108 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_util_EventLog_writeEvent_Array()
116 if (pos + 1 + sizeof(intVal) > max) break; in android_util_EventLog_writeEvent_Array()
122 if (pos + 1 + sizeof(longVal) > max) break; in android_util_EventLog_writeEvent_Array()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java51 int max = (mZones.length > 10) ? mZones.length : 10; in testSetTimeZonePermissions() local
52 assertTrue("No system-defined time zones - test invalid", max > 0); in testSetTimeZonePermissions()
54 for (int i = 0; i < max; i++) { in testSetTimeZonePermissions()

12345678910>>...17