/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 1219 int max = Math.max(start, end); 1239 mEST.getText().setSpan(mComposingTextMask, min, max, 1327 int max = Math.max(start, end); 1337 int tempmax = max; 1340 tempmax = findLineEnd(mEST.getText(), max); 1380 int max = Math.max(start, end); 1381 Object[] spansAfter = txt.getSpans(max, ma [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarView.java | 987 availableWidth = Math.max(0, availableWidth - homeOffsetWidth); 988 leftOfCenter = Math.max(0, availableWidth - homeOffsetWidth); 993 rightOfCenter = Math.max(0, rightOfCenter - mMenuView.getMeasuredWidth()); 1000 rightOfCenter = Math.max(0, 1009 availableWidth = Math.max(0, availableWidth - itemPaddingSize); 1010 leftOfCenter = Math.max(0, leftOfCenter - itemPaddingSize); 1015 availableWidth = Math.max(0, availableWidth - listNavWidth); 1016 leftOfCenter = Math.max(0, leftOfCenter - listNavWidth); 1022 availableWidth = Math.max(0, availableWidth - itemPaddingSize); 1023 leftOfCenter = Math.max( [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActionBarView.java | 878 availableWidth = Math.max(0, availableWidth - homeWidth); 879 leftOfCenter = Math.max(0, availableWidth - homeWidth); 885 rightOfCenter = Math.max(0, rightOfCenter - mMenuView.getMeasuredWidth()); 892 rightOfCenter = Math.max(0, 904 availableWidth = Math.max(0, availableWidth - itemPaddingSize); 905 leftOfCenter = Math.max(0, leftOfCenter - itemPaddingSize); 910 availableWidth = Math.max(0, availableWidth - listNavWidth); 911 leftOfCenter = Math.max(0, leftOfCenter - listNavWidth); 917 availableWidth = Math.max(0, availableWidth - itemPaddingSize); 918 leftOfCenter = Math.max( [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridView.java | 324 startPos = Math.max(0, startPos - mNumColumns + 1); 399 mFirstPosition = Math.max(0, pos + 1); 425 lastPosition = Math.max(lastPosition, mSelectedPosition); 448 rowStart = Math.max(0, rowEnd - numColumns + 1); 544 motionRowStart = Math.max(0, motionRowEnd - numColumns + 1); 701 rowStart = Math.max(0, rowEnd - numColumns + 1); 876 rowStart = Math.max(0, rowEnd - numColumns + 1); 880 oldRowStart = Math.max(0, oldRowStart - numColumns + 1); 1681 nextPage = Math.max(0, mSelectedPosition - getChildCount()); 1747 startOfRowPos = Math.max( [all...] |
H A D | TabWidget.java | 198 final int newWidth = Math.max(0, childWidth - delta); 203 mImposedTabsHeight = Math.max(mImposedTabsHeight, child.getMeasuredHeight()); 349 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
H A D | Scroller.java | 344 mCurrX = Math.max(mCurrX, mMinX); 349 mCurrY = Math.max(mCurrY, mMinY); 478 mFinalX = Math.max(mFinalX, mMinX); 483 mFinalY = Math.max(mFinalY, mMinY);
|
H A D | ProgressBar.java | 129 * android.R.styleable#ProgressBar_max android:max} attribute. Other attributes available are listed 400 * <li>max = 100</li> 799 * <p>Set the range of the progress bar to 0...<tt>max</tt>.</p> 801 * @param max the upper range of this progress bar 808 public synchronized void setMax(int max) { argument 809 if (max < 0) { 810 max = 0; 812 if (max != mMax) { 813 mMax = max; 816 if (mProgress > max) { [all...] |
H A D | RelativeLayout.java | 481 width = Math.max(width, myWidth - params.mLeft); 483 width = Math.max(width, myWidth - params.mLeft - params.leftMargin); 487 width = Math.max(width, params.mRight); 489 width = Math.max(width, params.mRight + params.rightMargin); 496 height = Math.max(height, params.mBottom); 498 height = Math.max(height, params.mBottom + params.bottomMargin); 508 right = Math.max(right, params.mRight + params.rightMargin); 509 bottom = Math.max(bottom, params.mBottom + params.bottomMargin); 527 right = Math.max(right, params.mRight + params.rightMargin); 528 bottom = Math.max(botto [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 183 // first reset the clip to max and then intersect the current (empty) 795 // now put the result in the rect. We take the min/max of Xs and min/max of Ys 797 dst.right = Math.max(Math.max(corners[0], corners[2]), Math.max(corners[4], corners[6])); 800 dst.bottom = Math.max(Math.max(corners[1], corners[3]), Math.max(corners[5], corners[7]));
|
/frameworks/base/location/java/android/location/ |
H A D | Address.java | 111 // We've eliminated a line, recompute the max index 114 mMaxAddressLineIndex = Math.max(mMaxAddressLineIndex, i); 117 mMaxAddressLineIndex = Math.max(mMaxAddressLineIndex, index); 493 Math.max(a.mMaxAddressLineIndex, index);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | CropView.java | 167 mMinScale = Math.max(w / imageWidth, h / imageHeight); 168 mRenderer.scale = Math.max(mMinScale, mRenderer.scale); 183 mRenderer.scale = Math.max(mMinScale, mRenderer.scale);
|
/frameworks/base/services/java/com/android/server/display/ |
H A D | OverlayDisplayWindow.java | 235 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); 242 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); 243 y = Math.max(0, Math.min(y, mDefaultDisplayInfo.logicalHeight - height));
|
/frameworks/base/core/java/android/text/ |
H A D | AlteredCharSequence.java | 108 start = Math.max(mStart, start);
|
/frameworks/base/core/java/android/text/method/ |
H A D | NumberKeyListener.java | 105 selEnd = Math.max(a, b);
|
H A D | WordIterator.java | 59 mOffsetShift = Math.max(0, start - WINDOW_WIDTH);
|
/frameworks/base/core/java/android/view/ |
H A D | InputDevice.java | 653 float min, float max, float flat, float fuzz, float resolution) { 654 mMotionRanges.add(new MotionRange(axis, source, min, max, flat, fuzz, resolution)); 705 private MotionRange(int axis, int source, float min, float max, float flat, float fuzz, argument 710 mMax = max; 879 description.append(" max=").append(range.mMax); 652 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
|
/frameworks/base/core/jni/ |
H A D | android_view_InputDevice.cpp | 70 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution);
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | ELFSegment.h | 77 { return std::max(m_Align, m_MaxSectionAlign); } 132 uint64_t m_MaxSectionAlign; // max alignment of the sections in this segment
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
H A D | stochastic_linear_ranker.cpp | 37 const double loss = std::max(0.0, (1 - positive_score + negative_score));
|
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/platform/ |
H A D | JankTestBase.java | 82 /* Array to save max accumulated frame number in each test iteration */ 288 * Process the raw data, calculate jankiness, frame rate and max accumulated frames number 330 // get max accumulated frames 344 "max accumulated frames: %d\n", 377 print(maxDeltaVsyncArray, "max delta vsync array"); 386 "max number of jankiness: %d\n" + 388 "average of max accumulated frames: %f\n", 399 // return the max value in an integer array 402 int max = intArray[index]; 404 if (max < intArra [all...] |
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | GlowPadView.java | 315 return (int) (Math.max(mOuterRing.getWidth(), 2 * mOuterRadius) + mMaxTargetWidth); 322 return (int) (Math.max(mOuterRing.getHeight(), 2 * mOuterRadius) + mMaxTargetHeight); 329 return (int) (mRingScaleFactor * Math.max(mOuterRing.getWidth(), 2 * mOuterRadius) 337 return (int) (mRingScaleFactor * Math.max(mOuterRing.getHeight(), 2 * mOuterRadius) 595 maxWidth = Math.max(maxWidth, target.getWidth()); 596 maxHeight = Math.max(maxHeight, target.getHeight()); 997 mOuterRadius = Math.max(mOuterRing.getWidth(), mOuterRing.getHeight())/2.0f; 1103 return mRingScaleFactor * Math.max(mOuterRing.getWidth(), 2 * mOuterRadius); 1107 return mRingScaleFactor * Math.max(mOuterRing.getHeight(), 2 * mOuterRadius); 1121 + Math.max(widt [all...] |
H A D | TargetDrawable.java | 128 maxWidth = Math.max(maxWidth, childDrawable.getIntrinsicWidth()); 129 maxHeight = Math.max(maxHeight, childDrawable.getIntrinsicHeight());
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaRecorderClient.cpp | 222 status_t MediaRecorderClient::getMaxAmplitude(int* max) argument 230 return mRecorder->getMaxAmplitude(max);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.h | 231 // max/minCount means to do no bounds check in that direction. In case of 315 int max; member in struct:android::camera2::Parameters::Range 318 int32_t fpsFromRange(int32_t min, int32_t max) const; 339 // Get max size (from the size array) that matches the given aspect ratio.
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | BassBoostTest.java | 163 public BassBoostParam(BassBoost bassboost, int min, int max, SeekBar seekBar, TextView textView) { argument 164 super (min, max, seekBar, textView, "o/oo");
|