Searched defs:max (Results 101 - 125 of 204) sorted by relevance

123456789

/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
H A DListBuilder.java584 public RangeBuilder setMax(int max) { argument
585 mImpl.setMax(max);
680 public InputRangeBuilder setMax(int max) { argument
681 mImpl.setMax(max);
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/impl/
H A DListBuilderV1Impl.java182 public void setMax(int max) { argument
183 mMax = max;
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.cpp35 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
578 if (currentRate >= max(initialRate, finalRate)) {
579 currentRate = max(initialRate, finalRate);
/frameworks/av/media/extractors/mpeg2/
H A DMPEG2TSExtractor.cpp290 int64_t max = *durations.begin(); local
295 if (max < duration) {
296 max = duration;
299 if (max - min < 500 * 1000) {
389 off64_t offset = max(zero, size - kMaxDurationReadSize);
401 offset = max(zero, size - (kMaxDurationReadSize << retry));
404 if (bytesRead >= kMaxDurationReadSize << max(0, retry - 1)) {
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerDyn.cpp236 template<typename T> T max(T a, T b) {return a > b ? a : b;} function in namespace:android
250 fcr = max(0.5 * tbwCheat - halfbw, halfbw);
252 fcr = max(0.5 * tbwCheat * outSampleRate / inSampleRate - halfbw, halfbw);
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp260 status_t getMaxAmplitude(int* max) argument
266 *max = reply.readInt32();
478 int max = 0; local
479 status_t ret = getMaxAmplitude(&max);
480 reply->writeInt32(max);
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp447 int max; local
448 if (aacPresParams->nMaxOutputChannels >= 8) { max = 8; }
449 else if (aacPresParams->nMaxOutputChannels >= 6) { max = 6; }
450 else if (aacPresParams->nMaxOutputChannels >= 2) { max = 2; }
453 max = aacPresParams->nMaxOutputChannels;
455 ALOGV("set nMaxOutputChannels=%d", max);
456 aacDecoder_SetParam(mAACDecoder, AAC_PCM_MAX_OUTPUT_CHANNELS, max);
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DLoadtestActivity.java565 private int sanitizeInt(int val, int min, int max) { argument
566 if (val > max) {
567 val = max;
/frameworks/base/core/java/android/widget/
H A DAbsSeekBar.java490 setKeyProgressIncrement(Math.max(1, Math.round((float) range / 20)));
495 public synchronized void setMax(int max) { argument
496 super.setMax(max);
502 setKeyProgressIncrement(Math.max(1, Math.round((float) range / 20)));
584 // The max height does not incorporate padding, whereas the height
614 int max = getMax();
615 int range = max - min;
751 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
752 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight()));
753 dh = Math.max(thumbHeigh
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java346 float max, min; field in class:OctopusDrawable.Arm
349 float max, float min) {
360 this.max = max;
384 TaperedPathStroke.drawPath(canvas, p, max, min, pt);
348 Arm(float x, float y, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3, float max, float min) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DGarbageMonitor.java183 if (info.currentPss > info.max) info.max = info.currentPss;
184 if (info.currentUss > info.max) info.max = info.currentUss;
422 public long max = 1; field in class:GarbageMonitor.ProcessMemInfo
/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/minikin/libs/minikin/
H A DFontCollection.cpp38 static inline T max(T a, T b) { function in namespace:minikin
72 mMaxChar = max(mMaxChar, coverage.length());
/frameworks/native/libs/ui/
H A DRegion.cpp440 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } function in class:android::Region::rasterizer
506 bounds.right = max(span.top().right, bounds.right);
/frameworks/native/services/inputflinger/host/
H A DInputDriver.cpp68 int32_t max; member in struct:input_int_usage
166 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
170 .usage = usage, .min = min, .max = max, .resolution = resolution});
335 input_usage_t usage, int32_t min, int32_t max, float resolution) {
337 driver->inputReportDefinitionDeclareUsageInt(report, id, usage, min, max, resolution);
165 inputReportDefinitionDeclareUsageInt(input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument
333 input_report_definition_declare_usage_int(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp424 uint8_t max = 255; local
433 max = 255 / 2;
440 setColor(x, y, mFormat, stride, img, max, min, min, 255);
444 setColor(x, y, mFormat, stride, img, min, max, min, 255);
448 setColor(x, y, mFormat, stride, img, min, min, max, 255);
585 float max = 255, min = 0; local
630 max = 255 / 2;
640 rCur = max;
642 gCur = max;
644 bCur = max;
[all...]
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DSeekbarListItem.java136 * Sets max value of seekbar.
138 public void setMax(int max) { argument
139 mMax = max;
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
H A DDynamicAnimation.java282 // Use the max value of float to indicate an unset state.
307 // Min and max values that defines the range of the animation values.
408 * Sets the max value of the animation. Animations will not animate beyond their max value.
409 * Whether or not animation will come to an end when max value is reached is dependent on the
412 * @param max maximum value of the property to be animated
413 * @return the Animation whose max value is being set
415 public T setMaxValue(float max) { argument
416 // This max value should be checked and handled in the subclass animations, instead of
417 // assuming the end of the animations when the max/mi
[all...]
/frameworks/support/media/api21/android/support/v4/media/session/
H A DMediaControllerCompatApi21.java277 public void onAudioInfoChanged(int type, int stream, int control, int max, int current); argument
/frameworks/av/drm/libmediadrm/
H A DIDrm.cpp394 DrmPlugin::HdcpLevel *max) const {
397 if (connected == NULL || max == NULL) {
409 *max = static_cast<DrmPlugin::HdcpLevel>(reply.readInt32());
413 virtual status_t getNumberOfSessions(uint32_t *open, uint32_t *max) const {
416 if (open == NULL || max == NULL) {
428 *max = reply.readInt32();
952 DrmPlugin::HdcpLevel max = DrmPlugin::kHdcpLevelUnknown; local
953 status_t result = getHdcpLevels(&connected, &max);
955 reply->writeInt32(max);
963 uint32_t open = 0, max local
[all...]
/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.cpp198 Int max = 0, max_width = 0, max_height = 0, pitch, offset; local
510 /* set max frame rate */
527 /* set max bit rate */
615 if ((temp_w*temp_h) > max)
617 max = temp_w * temp_h;
2994 Int idx, temp_w, temp_h, max = 0, max_width, max_height; local
3024 if ((temp_w*temp_h) > max)
3026 max = temp_w * temp_h;
3041 else /* if the max is not set, set it to the specified profile/level */
3051 else /* if the max i
[all...]
/frameworks/av/media/libstagefright/codecs/xaacdec/
H A DSoftXAAC.cpp477 int max; local
479 max = 8;
481 max = 6;
483 max = 2;
486 max = aacPresParams->nMaxOutputChannels;
872 ALOGE(" No of channels are more than max channels\n");
/frameworks/base/core/java/android/hardware/
H A DSensor.java1028 * @return The max delay for this sensor in microseconds.
1109 void setRange(float max, float res) { argument
1110 mMaxRange = max;
/frameworks/base/core/java/android/os/
H A DFileUtils.java508 * @param max length (positive for head, negative of tail, 0 for no limit)
513 public static String readTextFile(File file, int max, String ellipsis) throws IOException { argument
521 if (max > 0 || (size > 0 && max == 0)) { // "head" mode: read the first N bytes
522 if (size > 0 && (max == 0 || size < max)) max = (int) size;
523 byte[] data = new byte[max + 1];
526 if (length <= max) return new String(data, 0, length);
527 if (ellipsis == null) return new String(data, 0, max);
[all...]

Completed in 193 milliseconds

123456789