Searched defs:max (Results 76 - 100 of 136) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/
H A DAssetAtlasService.java559 private static int readInt(BufferedReader reader, int min, int max) throws IOException { argument
560 return Math.max(min, Math.min(max, Integer.parseInt(reader.readLine())));
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DDelegateMethodAdapter.java441 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { argument
443 mOrgWriter.visitTableSwitchInsn(min, max, dflt, labels);
H A DStubMethodAdapter.java356 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { argument
358 mParentVisitor.visitTableSwitchInsn(min, max, dflt, labels);
H A DAsmAnalyzer.java753 public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) { argument
H A DDependencyFinder.java626 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { argument
/frameworks/native/services/sensorservice/
H A Dvec.h45 template <typename T> inline T max(T a, T b) { return a>b ? a : b; } function in namespace:android::helpers
52 const size_t maxSize = max(SIZE, S);
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java76 * @param maxtime the max possible time of the last occurrence. null means no limit
165 * max -- if a value in a is negative, add that negative value
166 * to max and compare that instead; this is how we deal with
169 private static boolean listContains(int[] a, int N, int v, int max) argument
178 max += w; // w is negative
179 if (max == v) {
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipHelper.java123 private MaxForwardsHeader createMaxForwardsHeader(int max) argument
125 return mHeaderFactory.createMaxForwardsHeader(max);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp658 || !strcmp(attrs[i], "max")
686 AString min, max; local
687 if (msg->findString("min", &min) && msg->findString("max", &max)) {
689 min.append(max);
691 return limitError(name, "has 'min' and 'max' as well as 'range' or "
695 } else if (msg->contains("min") || msg->contains("max")) {
696 return limitError(name, "has only 'min' or 'max' attribute");
697 } else if (msg->findString("value", &max)) {
698 min = max;
744 AString max, value, ranges; local
[all...]
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp330 int max; local
331 if (aacPresParams->nMaxOutputChannels >= 8) { max = 8; }
332 else if (aacPresParams->nMaxOutputChannels >= 6) { max = 6; }
333 else if (aacPresParams->nMaxOutputChannels >= 2) { max = 2; }
336 max = aacPresParams->nMaxOutputChannels;
338 ALOGV("set nMaxOutputChannels=%d", max);
339 aacDecoder_SetParam(mAACDecoder, AAC_PCM_MAX_OUTPUT_CHANNELS, max);
/frameworks/av/services/audioflinger/
H A DAudioResamplerDyn.cpp208 template<typename T> T max(T a, T b) {return a > b ? a : b;} function in namespace:android
223 fcr = max(0.5*tbwCheat - tbw/2, tbw/2);
225 fcr = max(0.5*tbwCheat*outSampleRate/inSampleRate - tbw/2, tbw/2);
/frameworks/base/core/java/android/hardware/
H A DSensor.java755 * @return The max delay for this sensor in microseconds.
802 void setRange(float max, float res) { argument
803 mMaxRange = max;
/frameworks/base/core/java/android/widget/
H A DAbsSeekBar.java325 * By default, this will be a value that is derived from the max progress.
335 public synchronized void setMax(int max) { argument
336 super.setMax(max);
341 setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));
409 // The max height does not incorporate padding, whereas the height
436 final int max = getMax();
437 return max > 0 ? getProgress() / (float) max : 0;
547 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
548 dh = Math.max(mMinHeigh
[all...]
H A DOverScroller.java236 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration);
715 boolean springback(int start, int min, int max) { argument
726 } else if (start > max) {
727 startSpringback(start, max, 0);
747 void fling(int start, int velocity, int min, int max, int over) { argument
755 if (start > max || start < min) {
756 startAfterEdge(start, min, max, velocity);
777 if (mFinal > max) {
778 adjustDuration(mStart, mFinal, max);
779 mFinal = max;
818 startAfterEdge(int start, int min, int max, int velocity) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraSettings.java176 * @param max The max FPS.
178 public void setPreviewFpsRange(int min, int max) { argument
179 if (min > max) {
180 int temp = max;
181 max = min;
184 mPreviewFpsRangeMax = max;
197 * @return The max of the preview FPS range.
/frameworks/native/libs/ui/
H A DRegion.cpp456 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } function in class:android::Region::rasterizer
482 bounds.right = max(span.top().right, bounds.right);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c39 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
619 if (currentRate >= max(initialRate, finalRate)) {
620 currentRate = max(initialRate, finalRate);
H A Dplaybq.cpp39 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
619 if (currentRate >= max(initialRate, finalRate)) {
620 currentRate = max(initialRate, finalRate);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A DvoAMRWBEnc.c205 Word16 tmp, gain1, gain2, exp, Q_new, mu, shift, max; local
280 /* get max of new preemphased samples (L_FRAME+L_FILT) */
446 max = 0;
450 if(tmp > max)
452 max = tmp;
456 if(max > tmp)
458 tmp = max; /* tmp = max(wsp_max, old_wsp_max) */
460 st->old_wsp_max = max;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4enc_api.cpp191 Int max = 0, max_width = 0, max_height = 0, pitch, offset; local
503 /* set max frame rate */
520 /* set max bit rate */
608 if ((temp_w*temp_h) > max)
610 max = temp_w * temp_h;
2965 Int idx, temp_w, temp_h, max = 0, max_width, max_height; local
2995 if ((temp_w*temp_h) > max)
2997 max = temp_w * temp_h;
3012 else /* if the max is not set, set it to the specified profile/level */
3022 else /* if the max i
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h183 // a max long side of 1920 pixels
186 // Initial max preview/recording size bound
247 // max/minCount means to do no bounds check in that direction. In case of
343 int max; member in struct:android::camera2::Parameters::Range
346 int32_t fpsFromRange(int32_t min, int32_t max) const;
368 // Get max size (from the size array) that matches the given aspect ratio.
/frameworks/base/core/java/android/view/
H A DInputDevice.java689 float min, float max, float flat, float fuzz, float resolution) {
690 mMotionRanges.add(new MotionRange(axis, source, min, max, flat, fuzz, resolution));
741 private MotionRange(int axis, int source, float min, float max, float flat, float fuzz, argument
746 mMax = max;
915 description.append(" max=").append(range.mMax);
688 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java651 private static int constrain(int value, int min, int max) { argument
652 if (value > max) {
653 return max;
661 private static float constrain(float value, float min, float max) { argument
662 if (value > max) {
663 return max;
/frameworks/base/media/java/android/media/session/
H A DMediaController.java298 * @param value The value to set it to, between 0 and the reported max.
815 public PlaybackInfo(int type, AudioAttributes attrs, int control, int max, int current) { argument
819 mMaxVolume = max;
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMRelocator.cpp306 int32_t max = (1 << (bits - 1)) - 1; local
308 if (signed_val > max || signed_val < min) {

Completed in 1125 milliseconds

123456