Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/frameworks/native/services/surfaceflinger/
Dclz.h28 static inline T min(T a, T b) { in min() function
32 static inline T min(T a, T b, T c) { in min() function
33 return min(a, min(b, c)); in min()
36 static inline T min(T a, T b, T c, T d) { in min() function
37 return min(a, b, min(c, d)); in min()
/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()
158 else if (*input_ptr < min) in FindMaxMin()
160 min = *input_ptr; in FindMaxMin()
170 *min_ptr = min; 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/base/core/java/android/widget/
DEdgeEffect.java144 mMaxEffectHeight = (int) (Math.min( in EdgeEffect()
220 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
222 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull()
224 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull()
237 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull()
302 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb()
305 HELD_EDGE_SCALE_Y, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1.f)); in onAbsorb()
311 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f), 1.75f); in onAbsorb()
314 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb()
331 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw()
[all …]
DGridLayout.java47 import static java.lang.Math.min;
619 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount()); in getDefaultMargin()
640 int index = leading ? spec.span.min : spec.span.max; in getMargin()
663 Arrays.fill(a, Math.min(start, length), Math.min(end, length), value); in procrusteanFill()
677 int min = minorWasDefined ? min(minorRange.min, count) : 0; in clip() local
678 return min(size, count - min); in clip()
699 major = majorRange.min; in validateLayoutParams()
707 minor = minorRange.min; in validateLayoutParams()
780 if (span.min != UNDEFINED && span.min < 0) { in checkLayoutParams()
969 int cellSize = locations[span.max] - locations[span.min]; in measureChildrenWithMargins()
[all …]
DOverScroller.java528 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); in timePassed()
719 boolean springback(int start, int min, int max) { in springback() argument
728 if (start < min) { in springback()
729 startSpringback(start, min, 0); in springback()
751 void fling(int start, int velocity, int min, int max, int over) { in fling() argument
759 if (start > max || start < min) { in fling()
760 startAfterEdge(start, min, max, velocity); in fling()
776 if (mFinal < min) { in fling()
777 adjustDuration(mStart, mFinal, min); in fling()
778 mFinal = min; in fling()
[all …]
/frameworks/ex/variablespeed/jni/
Dsola_time_scaler.cc122 overlap_duration_ = min(overlap_duration_, window_duration_ / 2.0); in GenerateParameters()
216 num_frames = min(input_limit(), num_frames); in InjectSamples()
232 num_frames = min(available(), num_frames); in RetrieveSamples()
258 min(input_buffer_->available(kInputReader), max_frames_to_merge_); in Process()
276 int merge_offset = min(output_merge_cnt, half_overlap_frames_); in Process()
315 crossfade_count = min(crossfade_count, input_count); in Process()
350 min(output_advance, output_buffer_->available(kOutputAnalysis)); in Process()
357 min(input_count, input_window_offset_)); in Process()
/frameworks/base/libs/hwui/
DGammaFontRenderer.cpp99 int min = -1; in flush() local
107 min = i; in flush()
112 if (count <= 1 || min < 0) return; in flush()
114 delete mRenderers[min]; in flush()
115 mRenderers[min] = NULL; in flush()
DTexture.h71 void setFilterMinMag(GLenum min, GLenum mag, bool bindTexture = false, bool force = false,
74 if (firstFilter || force || min != minFilter || mag != magFilter) {
77 minFilter = min;
84 glTexParameteri(renderTarget, GL_TEXTURE_MIN_FILTER, min);
DRect.h174 static inline float min(float a, float b) { return (a < b) ? a : b; } in min() function
180 tmp.right = min(right, tmp.right); in intersectWith()
181 tmp.bottom = min(bottom, tmp.bottom); in intersectWith()
188 tmp.right = min(right, r); in intersectWith()
189 tmp.bottom = min(bottom, b); in intersectWith()
/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/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java47 import static java.lang.Math.min;
599 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount()); in getDefaultMarginValue()
620 int index = leading ? spec.span.min : spec.span.max; in getMargin()
643 Arrays.fill(a, Math.min(start, length), Math.min(end, length), value); in procrusteanFill()
657 int min = minorWasDefined ? min(minorRange.min, count) : 0; in clip() local
658 return min(size, count - min); in clip()
679 major = majorRange.min; in validateLayoutParams()
687 minor = minorRange.min; in validateLayoutParams()
913 int cellSize = locations[span.max] - locations[span.min]; in measureChildrenWithMargins()
1023 int x1 = hLocations[colSpan.min]; in onLayout()
[all …]
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java322 private static final long clip(long value, long min, long max) { in clip() argument
323 if (value < min) { in clip()
324 return min; in clip()
334 private static float clip(float value, float min, float max) { in clip() argument
335 return value > max ? max : (value < min ? min : value); in clip()
/frameworks/av/media/libstagefright/codecs/aacdec/
Dps_hybrid_synthesis.cpp119 #ifndef min
120 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
168 hybridRes = (HYBRID_RES)(min(hHybrid->pResolution[band], 6) - 2); in ps_hybrid_synthesis()
Dsbr_crc_check.h64 #ifndef min
65 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
Dps_decode_bs_utils.cpp249 Int32 min, in limitMinMax() argument
254 if (i > min) in limitMinMax()
260 return min; in limitMinMax()
/frameworks/base/core/java/android/text/
DSelection.java126 int min = Math.min(start, end); in moveUp() local
129 setSelection(text, min); in moveUp()
131 if (min == 0 && max == text.length()) { in moveUp()
167 int min = Math.min(start, end); in moveDown() local
172 if (min == 0 && max == text.length()) { in moveDown()
454 return Math.min(off1, off2); in chooseHorizontal()
/frameworks/base/media/libdrm/mobile1/include/parser/
Dparser_rel.h43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\ argument
45 time = hour * 10000 + min * 100 + sec;\
103 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, int32_t …
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DQuad.java73 float x0 = Collections.min(xs); in boundingBox()
74 float y0 = Collections.min(ys); in boundingBox()
82 return Collections.max(xs) - Collections.min(xs); in getBoundingWidth()
87 return Collections.max(ys) - Collections.min(ys); in getBoundingHeight()
/frameworks/base/media/libdrm/mobile1/src/parser/
Dparser_rel.c52 int32_t hour, int32_t min, int32_t sec) in drm_checkDate() argument
57 min >= 0 && min <= 59 && sec >= 0 && sec <= 59) in drm_checkDate()
66 int32_t year, mon, day, hour, min, sec; in drm_getStartEndTime() local
121 min = atoi((char *)pHead); in drm_getStartEndTime()
128 if (0 != drm_checkDate(year, mon, day, hour, min, sec)) in drm_getStartEndTime()
131 YMD_HMS_2_INT(year, mon, day, dateTime->date, hour, min, sec, in drm_getStartEndTime()
238 int32_t year, mon, day, hour, min, sec; in drm_getRightValue() local
390 min = atoi((char *)pHead); in drm_getRightValue()
406 || min < 0 || sec < 0) in drm_getRightValue()
409 min, sec, pConstraint->Interval.time); in drm_getRightValue()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dset_sign.cpp252 Word16 val, min; in set_sign() local
280 min = 0x7fff; in set_sign()
285 if (dn2[j] < min) in set_sign()
287 min = dn2[j]; in set_sign()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
DarmVCM4P10_DeblockingLuma_unsafe_s.s75 min RN 2 label
191 UQSUB8 min, p_1, tC0
194 USUB8 t4, P1a, min
195 SEL P1a, P1a, min
200 UQSUB8 min, q_1, tC0
203 USUB8 t0, Q1a, min
204 SEL Q1a, Q1a, min
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/src/
DarmCOMM.c303 OMX_INT min, in armClip() argument
313 else if (src < min) in armClip()
315 src = min; in armClip()
339 OMX_F32 min, in armClip_F32() argument
349 else if (src < min) in armClip_F32()
351 src = min; in armClip_F32()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/src/
DarmCOMM.c303 OMX_INT min, in armClip() argument
313 else if (src < min) in armClip()
315 src = min; in armClip()
339 OMX_F32 min, in armClip_F32() argument
349 else if (src < min) in armClip_F32()
351 src = min; in armClip_F32()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/src/
DarmCOMM.c303 OMX_INT min, in armClip() argument
313 else if (src < min) in armClip()
315 src = min; in armClip()
339 OMX_F32 min, in armClip_F32() argument
349 else if (src < min) in armClip_F32()
351 src = min; in armClip_F32()

12345678910>>...13