Home
last modified time | relevance | path

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

12345678

/frameworks/base/media/libstagefright/codecs/aacdec/
Dunpack_idx.cpp335 Int *max) in unpack_idx() argument
359 if (temp_spec > *max) in unpack_idx()
361 *max = temp_spec; in unpack_idx()
374 if (temp_spec > *max) in unpack_idx()
376 *max = temp_spec; in unpack_idx()
395 if (temp_spec > *max) in unpack_idx()
397 *max = temp_spec; in unpack_idx()
410 if (codeword_indx > *max) in unpack_idx()
412 *max = codeword_indx; in unpack_idx()
425 Int *max) in unpack_idx_sgn() argument
[all …]
Dimdct_fxp.cpp273 Int32 max) in imdct_fxp() argument
298 if (max != 0) in imdct_fxp()
336 shift1 = pv_normalize(max) - 1; /* -1 to leave room for addition */ in imdct_fxp()
338 max = 0; in imdct_fxp()
363 max |= (temp1 >> 31) ^ temp1; in imdct_fxp()
364 max |= (temp2 >> 31) ^ temp2; in imdct_fxp()
386 max |= (temp1 >> 31) ^ temp1; in imdct_fxp()
387 max |= (temp2 >> 31) ^ temp2; in imdct_fxp()
414 max |= (temp1 >> 31) ^ temp1; in imdct_fxp()
415 max |= (temp2 >> 31) ^ temp2; in imdct_fxp()
[all …]
Dtns_decode_coef.cpp314 Int32 max; in tns_decode_coef() local
389 max = tempInt32; in tns_decode_coef()
402 max |= tempInt32; in tns_decode_coef()
412 if (max >= 0x40000000L) in tns_decode_coef()
414 max >>= 1; in tns_decode_coef()
445 while (max > 32767) in tns_decode_coef()
447 max >>= 1; in tns_decode_coef()
456 if (max != 0) in tns_decode_coef()
458 while (max < 16384) in tns_decode_coef()
460 max <<= 1; in tns_decode_coef()
Dq_normalize.cpp297 Int32 max = 0; in q_normalize() local
336 max |= (tmp1 >> 31) ^ tmp1; in q_normalize()
337 max |= (tmp2 >> 31) ^ tmp2; in q_normalize()
341 max |= (tmp1 >> 31) ^ tmp1; in q_normalize()
342 max |= (tmp2 >> 31) ^ tmp2; in q_normalize()
361 max |= (tmp1 >> 31) ^ tmp1; in q_normalize()
362 max |= (tmp2 >> 31) ^ tmp2; in q_normalize()
369 max |= (tmp1 >> 31) ^ tmp1; in q_normalize()
370 max |= (tmp2 >> 31) ^ tmp2; in q_normalize()
380 abs_max_per_window[win] = max; in q_normalize()
Dcalc_auto_corr.cpp149 int64_t max = 0; in calc_auto_corr_LC() local
184 max |= temp_r01r ^(temp_r01r >> 63); in calc_auto_corr_LC()
185 max |= temp_r02r ^(temp_r02r >> 63); in calc_auto_corr_LC()
186 max |= temp_r11r; in calc_auto_corr_LC()
187 max |= temp_r12r ^(temp_r12r >> 63); in calc_auto_corr_LC()
188 max |= temp_r22r; in calc_auto_corr_LC()
190 if (max) in calc_auto_corr_LC()
192 temp1 = (UInt32)(max >> 32); in calc_auto_corr_LC()
205 temp3 = pv_normalize(((UInt32)max) >> 1) - 2; in calc_auto_corr_LC()
276 int64_t max = 0; in calc_auto_corr() local
[all …]
Dfft_rx4_short.cpp225 Int32 max; in fft_rx4_short() local
231 max = *peak_value; in fft_rx4_short()
234 if (max > 0x008000) in fft_rx4_short()
236 exp = 8 - pv_normalize(max); /* use 24 bits */ in fft_rx4_short()
394 max = 0; in fft_rx4_short()
421 max |= (temp1 >> 31) ^ temp1; in fft_rx4_short()
444 max |= (temp1 >> 31) ^ temp1; in fft_rx4_short()
445 max |= (temp2 >> 31) ^ temp2; in fft_rx4_short()
450 max |= (r1 >> 31) ^ r1; in fft_rx4_short()
451 max |= (s2 >> 31) ^ s2; in fft_rx4_short()
[all …]
Dpulse_nc.cpp228 Int *max) in pulse_nc() argument
279 if (temp > *max) in pulse_nc()
281 *max = temp; in pulse_nc()
288 if (-temp > *max) in pulse_nc()
290 *max = -temp; in pulse_nc()
Dfft_rx4_long.cpp221 Int32 max; in fft_rx4_long() local
351 max = 0; in fft_rx4_long()
379 max |= (temp1 >> 31) ^ temp1; in fft_rx4_long()
403 max |= (temp1 >> 31) ^ temp1; in fft_rx4_long()
405 max |= (temp2 >> 31) ^ temp2; in fft_rx4_long()
408 max |= (r1 >> 31) ^ r1; in fft_rx4_long()
410 max |= (s2 >> 31) ^ s2; in fft_rx4_long()
412 max |= (s3 >> 31) ^ s3; in fft_rx4_long()
418 max |= (temp1 >> 31) ^ temp1; in fft_rx4_long()
419 max |= (temp2 >> 31) ^ temp2; in fft_rx4_long()
[all …]
Dhuffspec_fxp.cpp327 Int max = 0; in huffspec_fxp() local
344 Int *max); in huffspec_fxp()
495 &max); /* unpack idx -> coefs */ in huffspec_fxp()
565 &max); /* add pulse data */ in huffspec_fxp()
588 if ((max < 0) || (max > 8192)) /* (8192>>ORDER) == 1024 is the inverseQuantTable size */ in huffspec_fxp()
595 temp = inverseQuantTable[(max >> ORDER) + 1]; in huffspec_fxp()
606 temp *= max; in huffspec_fxp()
654 max); in huffspec_fxp()
Dlong_term_synthesis.cpp601 UInt32 max; in long_term_synthesis() local
677 max = 0; in long_term_synthesis()
700 max |= tmpInt32 ^(tmpInt32 >> 31); in long_term_synthesis()
708 if (max != 0) in long_term_synthesis()
713 while (max < 0x40000000L) in long_term_synthesis()
715 max <<= 1; in long_term_synthesis()
948 max = 0; in long_term_synthesis()
971 max |= tmpInt32 ^(tmpInt32 >> 31); in long_term_synthesis()
974 if (max != 0) in long_term_synthesis()
981 while (max < 0x40000000L) in long_term_synthesis()
[all …]
Dlong_term_prediction.cpp395 Int32 max = 0; in long_term_prediction() local
496 max |= (test >> 31) ^ test; in long_term_prediction()
528 max |= (test >> 31) ^ test; in long_term_prediction()
559 max |= (test >> 31) ^ test; in long_term_prediction()
633 shift = 16 - pv_normalize(max); in long_term_prediction()
Dunpack_idx.h92 Int *max);
98 Int *max);
104 Int *max);
/frameworks/base/core/java/android/os/
DFileUtils.java176 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() argument
180 if (max > 0 || (size > 0 && max == 0)) { // "head" mode: read the first N bytes in readTextFile()
181 if (size > 0 && (max == 0 || size < max)) max = (int) size; in readTextFile()
182 byte[] data = new byte[max + 1]; in readTextFile()
185 if (length <= max) return new String(data, 0, length); in readTextFile()
186 if (ellipsis == null) return new String(data, 0, max); in readTextFile()
187 return new String(data, 0, max) + ellipsis; in readTextFile()
188 } else if (max < 0) { // "tail" mode: keep the last N in readTextFile()
195 if (data == null) data = new byte[-max]; in readTextFile()
/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/base/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/base/core/java/android/widget/
DOverScroller.java181 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration()
581 void fling(int start, int velocity, int min, int max) { in fling() argument
598 if (mStart > max) { in fling()
600 mFinal = max; in fling()
615 if (mFinal > max) { in fling()
616 mFinal = max; in fling()
617 mDuration = computeDuration(mStart, max, mVelocity, mDeceleration); in fling()
644 boolean springback(int start, int min, int max) { in springback() argument
655 } else if (start > max) { in springback()
656 startSpringback(start, max, true); in springback()
[all …]
DLinearLayout.java303 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum()
369 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
396 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
400 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
434 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
442 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical()
445 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical()
472 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical()
483 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical()
539 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical()
[all …]
DAbsSeekBar.java141 public synchronized void setMax(int max) {
142 super.setMax(max);
147 setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));
195 int max = getMax();
196 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
271 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
272 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight()));
273 dh = Math.max(thumbHeight, dh);
334 final int max = getMax();
335 progress += scale * max;
DEdgeGlow.java144 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
145 mEdgeScaleY = mEdgeScaleYStart = Math.max( in onPull()
161 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull()
202 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity)); in onAbsorb()
218 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb()
220 mEdgeScaleYFinish = Math.max( in onAbsorb()
229 mGlowAlphaFinish = Math.max( in onAbsorb()
252 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw()
259 mEdge.setAlpha((int) (Math.max(0, Math.min(mEdgeAlpha, 1)) * 255)); in draw()
/frameworks/base/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/base/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/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

12345678