Searched refs:min (Results 201 - 225 of 474) sorted by relevance

1234567891011>>

/frameworks/base/tests/RemoteDisplayProvider/src/com/android/media/remotedisplay/test/
H A DRemoteDisplayProviderService.java264 display.setVolume(Math.max(0, Math.min(display.getVolumeMax(), volume)));
275 display.setVolume(Math.max(0, Math.min(display.getVolumeMax(),
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java122 x = Math.min(x, w);
123 y = Math.min(y, h);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java95 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth());
96 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight());
/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);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarContainer.java254 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST);
274 Math.min(topMarginForTabs + getMeasuredHeightWithMargins(mTabContainer),
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_inter_prediction.c924 i32 max,min,med; local
928 max = min = med = a;
933 else if (b < min)
935 min = b;
941 else if (c < min)
943 med = min;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java288 fromLevel = Math.max(0, Math.min(fromLevel, mLevelCount - 2));
289 endLevel = Math.min(fromLevel + 2, mLevelCount);
382 right = Math.min(mImageWidth, right);
383 bottom = Math.min(mImageHeight, bottom);
705 setSize(Math.min(mTileSize, rightEdge), Math.min(mTileSize, bottomEdge));
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DScreenMagnifier.java506 final float scale = Math.min(Math.max(mMagnificationController.getScale(),
549 final float normalizedNewScale = Math.min(Math.max(newScale, MIN_SCALE), MAX_SCALE);
1035 mCurrentMagnificationSpec.offsetX = Math.min(Math.max(nonNormOffsetX,
1038 mCurrentMagnificationSpec.offsetY = Math.min(Math.max(nonNormOffsetY,
1076 mCurrentMagnificationSpec.offsetX = Math.min(Math.max(nonNormOffsetX,
1080 mCurrentMagnificationSpec.offsetY = Math.min(Math.max(nonNormOffsetY,
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java149 // now put the result in the rect. We take the min/max of Xs and min/max of Ys
150 dst.left = Math.min(Math.min(corners[0], corners[2]), Math.min(corners[4], corners[6]));
153 dst.top = Math.min(Math.min(corners[1], corners[3]), Math.min(corners[5], corners[7]));
/frameworks/minikin/libs/minikin/
H A DLayout.cpp243 int x1 = std::min(width, x + bmw);
245 int y1 = std::min(height, y + bmh);
263 mLeft = std::min(mLeft, r.mLeft);
264 mTop = std::min(mTop, r.mTop);
564 int32_t endRun = std::min(startRun + lengthRun, int32_t(start + count));
596 size_t wordcount = std::min(start + count, wordend) - iter;
/frameworks/base/core/java/android/widget/
H A DFastScroller.java657 final int width = Math.min(adjMaxWidth, view.getMeasuredWidth());
1153 final float min = trackImage.getTop();
1155 final float offset = min;
1156 final float range = max - min;
1189 final float min = trackImage.getTop();
1191 final float offset = min;
1192 final float range = max - min;
H A DAbsSeekBar.java411 final int trackHeight = Math.min(mMaxHeight, h - mPaddingTop - mPaddingBottom);
547 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
548 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight()));
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java404 movedBy = Math.min(overhang, allowOverhang);
519 final int colEnd = lp.column + Math.min(mColCount, lp.span);
672 final int offset = top + Math.min(mRestoreOffset, 0);
774 final int span = Math.min(mColCount, lp.span);
852 rec.span = Math.min(mColCount, lp.span);
904 final int span = Math.min(mColCount, lp.span);
1018 final int span = Math.min(mColCount, lp.span);
/frameworks/support/v4/java/android/support/v4/widget/
H A DSlidingPaneLayout.java384 final int clampedChildRight = Math.min((isLayoutRtl ? startBound :
386 final int clampedChildBottom = Math.min(bottomBound, child.getBottom());
545 layoutHeight = Math.min(childHeight, maxLayoutHeight);
687 final int range = Math.min(nextXStart,
1004 mTmpRect.right = Math.min(mTmpRect.right, mSlideableView.getLeft());
1369 newLeft = Math.max(Math.min(left, startBound), endBound);
1373 newLeft = Math.min(Math.max(left, startBound), endBound);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DPagedView.java65 // the min drag distance for a fling to register, to prevent random page shifts
203 // We use the min scale to determine how much to expand the actually PagedView measured
461 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
597 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
901 range[1] = Math.min(rightScreen + 1, getChildCount() - 1);
1299 screenCenter = Math.min(mScrollX + halfScreenSize, screenCenter);
1313 scrollProgress = Math.min(scrollProgress, getMaxScrollProgress());
1633 int nextPage = Math.min(getChildCount() - 1, mCurrentPage + 1);
1809 return Math.min(index, getChildCount() - 1);
1864 whichPage = Math.max(0, Math.min(whichPag
[all...]
H A DSlidingChallengeLayout.java415 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / childHeight);
427 duration = Math.min(duration, MAX_SETTLE_DURATION);
693 final float pos = Math.min(y - mGestureStartY,
806 size = Math.min(maxSize, childDimen);
1145 Math.min(bottom, getMaxChallengeBottom()));
H A DPasswordTextView.java258 startDelay = Math.min(startDelay, RESET_MAX_DELAY);
260 maxDelay = Math.min(maxDelay, RESET_MAX_DELAY) + DISAPPEAR_DURATION;
563 long duration = (long) (DISAPPEAR_DURATION * Math.min(currentDotSizeFactor, 1.0f));
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dbit_cnt.c403 t00 = min(t0,16);
404 t01 = min(t1,16);
483 maxVal = min(maxVal, CODE_BOOK_ESC_LAV);
823 t00 = min(t0,16);
824 t01 = min(t1,16);
H A Dtns.c161 tC->tnsStopBand = min(pC->sfbCnt, tC->tnsMaxSfb);
181 tC->lpcStopBand = min(tC->lpcStopBand, pC->sfbActive);
227 tC->tnsStopBand = min(pC->sfbCnt, tC->tnsMaxSfb);
248 tC->lpcStopBand = min(tC->lpcStopBand, pC->sfbActive);
446 (min(tC.tnsStopLine,lowPassLine) - tC.tnsStartLine),
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollAlgorithm.java371 currentYPosition = Math.min(scrollOffset, bottomStackStart);
462 childViewState.yTranslation = Math.min(childViewState.yTranslation,
504 newHeight = (int) Math.max(Math.min(transitioningPositionStart + offset -
623 childViewState.height = (int) Math.max(Math.min(bottomPeekStart, maxHeight),
686 stackIndex = Math.min(stackIndex, max);
/frameworks/base/core/java/com/android/internal/widget/
H A DWaveView.java154 width = Math.min(widthSpecSize, getSuggestedMinimumWidth());
162 height = Math.min(heightSpecSize, getSuggestedMinimumWidth());
443 mWaveTimerDelay = Math.min(WAVE_DURATION, mWaveTimerDelay + DELAY_INCREMENT);
/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/native/opengl/libagl/
H A Ddxt.cpp293 int w = min(width - base_x, 4);
399 int w = min(width - base_x, 4);
556 int w = min(width - base_x, 4);
/frameworks/rs/driver/runtime/
H A Drs_cl.c1267 extern double __attribute__((overloadable)) min(double v1, double v2) { function
1271 extern double2 __attribute__((overloadable)) min(double2 v1, double2 v2) { function
1278 extern double3 __attribute__((overloadable)) min(double3 v1, double3 v2) { function
1286 extern double4 __attribute__((overloadable)) min(double4 v1, double4 v2) { function
1295 extern long __attribute__((overloadable)) min(long v1, long v2) { function
1298 extern long2 __attribute__((overloadable)) min(long2 v1, long2 v2) { function
1304 extern long3 __attribute__((overloadable)) min(long3 v1, long3 v2) { function
1311 extern long4 __attribute__((overloadable)) min(long4 v1, long4 v2) { function
1320 extern ulong __attribute__((overloadable)) min(ulong v1, ulong v2) { function
1323 extern ulong2 __attribute__((overloadable)) min(ulong function
1329 extern ulong3 __attribute__((overloadable)) min(ulong3 v1, ulong3 v2) { function
1336 extern ulong4 __attribute__((overloadable)) min(ulong4 v1, ulong4 v2) { function
[all...]

Completed in 697 milliseconds

1234567891011>>