/frameworks/base/services/java/com/android/server/accessibility/ |
H A D | ScreenMagnifier.java | 517 final float scale = Math.min(Math.max(mMagnificationController.getScale(), 560 final float normalizedNewScale = Math.min(Math.max(newScale, MIN_SCALE), MAX_SCALE); 1046 mCurrentMagnificationSpec.offsetX = Math.min(Math.max(nonNormOffsetX, 1049 mCurrentMagnificationSpec.offsetY = Math.min(Math.max(nonNormOffsetY, 1087 mCurrentMagnificationSpec.offsetX = Math.min(Math.max(nonNormOffsetX, 1091 mCurrentMagnificationSpec.offsetY = Math.min(Math.max(nonNormOffsetY,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Matrix_Delegate.java | 149 // now put the result in the rect. We take the min/max of Xs and min/max of Ys 151 dst.right = Math.max(Math.max(corners[0], corners[2]), Math.max(corners[4], corners[6])); 154 dst.bottom = Math.max(Math.max(corners[1], corners[3]), Math.max(corners[5], corners[7]));
|
/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 569 float max = 0; 571 max = Math.max(max, l.getLineWidth(i)); 578 pop.setWidth(wid + (int) Math.ceil(max)); 1363 float max = Float.MIN_VALUE; 1366 max = Math.max(max, layout.getLineRight(line)); 1369 right = (int) (max [all...] |
H A D | AbsListView.java | 1320 return Math.max(super.getVerticalScrollbarWidth(), mFastScroller.getWidth()); 1979 return Math.max(firstPosition * 100 - (top * 100) / height + 2002 result = Math.max(mItemCount * 100, 0); 3843 int edgeY = Math.max(height, scrollY + mLastPositionDistanceGuess); 4236 delta = Math.max(-(getHeight() - mPaddingBottom - mPaddingTop - 1), delta); 4362 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); 4414 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); 4490 mTargetPos = Math.max(0, Math.min(getCount() - 1, position)); 4564 scrollBy = Math.max(0, boundBottom - paddedBottom); 4603 Math.max(mListPaddin [all...] |
H A D | SpellChecker.java | 510 final int max = mTextView.length(); 512 if (end > max) { 514 parseEnd = max; 554 start = Math.max( 643 spellCheckEnd = Math.max(spanEnd, spellCheckEnd);
|
H A D | Spinner.java | 64 // Only measure this many items to get a decent max width. 485 setMeasuredDimension(Math.min(Math.max(measuredWidth, 724 int start = Math.max(0, getSelectedItemPosition()); 727 start = Math.max(0, start - (MAX_ITEMS_MEASURED - count)); 741 width = Math.max(width, itemView.getMeasuredWidth()); 1088 setContentWidth(Math.max(
|
H A D | Switch.java | 491 final int maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()); 492 final int switchWidth = Math.max(mSwitchMinWidth, 579 float newPos = Math.max(0,
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | PagedView.java | 466 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1)); 598 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1)); 640 int maxSize = Math.max(dm.widthPixels, dm.heightPixels); 723 int spacing = Math.max(offset, widthSize - offset - 865 // profiler -- so just inline the max() here 906 range[0] = Math.max(0, leftScreen - 1); 1289 screenCenter = Math.max(halfScreenSize, screenCenter); 1303 scrollProgress = Math.max(scrollProgress, - getMaxScrollProgress()); 1317 // We want to reach the max over scroll effect when the user has 1606 int nextPage = Math.max( [all...] |
/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 787 private static int clamp(int value, int min, int max) { argument 791 if (value >= max) { 792 return max; 1020 mAmbientLux = Math.max(mRecentShortTermAverageLux, mRecentLongTermAverageLux); 1086 Math.min(1.0f, Math.max(-1.0f,
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureOverlayView.java | 145 mInvalidateExtraBorder = Math.max(1, ((int) mGestureStrokeWidth) - 1); 224 mInvalidateExtraBorder = Math.max(1, ((int) gestureStrokeWidth) - 1); 755 float interpolatedTime = Math.max(0.0f,
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuView.java | 190 maxCellsUsed = Math.max(maxCellsUsed, cellsUsed); 195 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight()); 456 final int spacerSize = Math.max(0, spacerCount > 0 ? widthRemaining / spacerCount : 0);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RotarySelector.java | 544 final int velocity = Math.max(mMinimumVelocity, rawVelocity); 545 mDimplesOfFling = Math.max( 565 mDimplesOfFling = Math.max(
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 311 int max = Byte.MAX_VALUE; 316 max = 126; 326 result[i] = (byte) (min + rng.nextInt(max - min + 1)); 673 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete 687 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete 701 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete 752 * @param timeoutMillis The max amount of time (in ms) to wait for the download(s) to complete
|
/frameworks/base/services/java/com/android/server/ |
H A D | AssetAtlasService.java | 556 private static int readInt(BufferedReader reader, int min, int max) throws IOException { argument 557 return Math.max(min, Math.min(max, Integer.parseInt(reader.readLine())));
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ActionMenuView.java | 193 maxCellsUsed = Math.max(maxCellsUsed, cellsUsed); 202 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight()); 474 final int spacerSize = Math.max(0, spacerCount > 0 ? widthRemaining / spacerCount : 0);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 38 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 518 if (currentRate >= max(initialRate, finalRate)) { 519 currentRate = max(initialRate, finalRate);
|
H A D | playbq.cpp | 38 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 518 if (currentRate >= max(initialRate, finalRate)) { 519 currentRate = max(initialRate, finalRate);
|
/frameworks/av/media/libmedia/ |
H A D | mediarecorder.cpp | 412 // of the only currently supported parameters, "max-duration" and 413 // "max-filesize" are _not_ fatal. 458 status_t MediaRecorder::getMaxAmplitude(int* max) argument 470 status_t ret = mMediaRecorder->getMaxAmplitude(max);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/ |
H A D | armCOMM.h | 197 OMX_INT max, 220 OMX_F32 max,
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/ |
H A D | armCOMM.h | 197 OMX_INT max, 220 OMX_F32 max,
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/api/ |
H A D | armCOMM.h | 197 OMX_INT max, 220 OMX_F32 max,
|
/frameworks/base/core/java/android/app/ |
H A D | MediaRouteButton.java | 337 final int minWidth = Math.max(mMinWidth, 339 final int minHeight = Math.max(mMinHeight,
|
/frameworks/base/core/java/android/text/method/ |
H A D | BaseMovementMethod.java | 470 scrollX = Math.max(scrollX - getCharacterWidth(widget) * amount, minScrollX); 518 topLine = Math.max(topLine - amount + 1, 0);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 852 if (!mFillEnabled) normalizedTime = Math.max(Math.min(normalizedTime, 1.0f), 0.0f); 863 if (mFillEnabled) normalizedTime = Math.max(Math.min(normalizedTime, 1.0f), 0.0f);
|
H A D | AnimationSet.java | 240 mLastEnd = Math.max(mLastEnd, a.getStartOffset() + a.getDuration()); 310 duration = Math.max(duration, animations.get(i).getDuration());
|