/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 42 * 3 snap targets: left/top has 16:9 ratio (for videos), 1:1, and right/bottom has 16:9 ratio 125 int navBarSize = mIsHorizontalDivision ? mInsets.bottom : mInsets.right; 220 return mInsets.bottom; 262 int navBarSize = isHorizontalDivision ? mInsets.bottom : mInsets.right; 271 maybeAddTarget(bottomPosition, dividerMax - mInsets.bottom 278 ? mDisplayHeight - mInsets.bottom 289 ? mDisplayHeight - mInsets.bottom 294 : mDisplayHeight - mInsets.bottom; 375 /** If the divider reaches this value, the right/bottom task should be dismissed */ 378 /** Position of this snap target. The right/bottom edg [all...] |
/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 78 int inside = spanner.next(current.top, current.bottom); 85 current.top < current.bottom) { 170 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; 174 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; 182 inline int next(TYPE& top, TYPE& bottom) argument 186 int inside = SpannerBase::next(top, bottom, more_lhs, more_rhs); 210 aBottom = rects->bottom + reg.dy;
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | DayPickerView.java | 326 final int bottom = child.getBottom(); 329 if (bottom > midpoint) { 332 smoothScrollBy(bottom, GOTO_SCROLL_DURATION); 351 int bottom = 0; 352 while (bottom < height) { 357 bottom = child.getBottom(); 358 int displayedHeight = Math.min(bottom, height) - Math.max(0, child.getTop());
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | NestedScrollView.java | 975 final int bottom = maxOverScrollY + scrollRangeY; 987 if (newScrollY > bottom) { 988 newScrollY = bottom; 1020 * if topFocus is true, or at the bottom of the bounds if topFocus is 1024 * @param bottom the bottom offset of the bounds in which a focusable must 1029 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument 1036 * top, and its bottom is above the bound's bottom. A partially 1049 if (top < viewBottom && viewTop < bottom) { 1174 scrollAndFocus(int direction, int top, int bottom) argument [all...] |
H A D | SwipeProgressBar.java | 104 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 233 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 270 void setBounds(int left, int top, int right, int bottom) { argument 274 mBounds.bottom = bottom;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseWrapContentWithAspectRatioTest.java | 82 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 83 super.onLayout(changed, left, top, right, bottom); 84 mBehavior.onLayout(changed, left, top, right, bottom); 146 public MeasureBehavior withMargins(int left, int top, int right, int bottom) { argument 150 layoutParams.bottomMargin = bottom; 177 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 179 layouts.add(new Pair<>(right - left, bottom - top));
|
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 227 DrawBoundedOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 228 : DrawOp(paint), mLocalBounds(left, top, right, bottom) {} 242 mLocalBounds.bottom = std::max(mLocalBounds.bottom, points[i + 1]); 324 SaveLayerOp(float left, float top, float right, float bottom, int alpha, int flags) argument 325 : mArea(left, top, right, bottom) 332 SaveLayerOp(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument 333 : mArea(left, top, right, bottom) 347 deferStruct.mRenderer.saveLayerDeferred(mArea.left, mArea.top, mArea.right, mArea.bottom, 352 renderer.saveLayer(mArea.left, mArea.top, mArea.right, mArea.bottom, 537 ClipRectOp(float left, float top, float right, float bottom, SkRegion::Op op) argument 773 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, float left, float top, float right, float bottom, const SkPaint* paint) argument 934 DrawStrokableOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 961 DrawRectOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 1011 DrawRoundRectOp(float left, float top, float right, float bottom, float rx, float ry, const SkPaint* paint) argument 1042 DrawRoundRectPropsOp(float* left, float* top, float* right, float* bottom, float *rx, float *ry, const SkPaint* paint) argument 1137 DrawOvalOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 1154 DrawArcOp(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |
H A D | DisplayListCanvas.cpp | 130 int DisplayListCanvas::saveLayer(float left, float top, float right, float bottom, argument 136 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags)); 181 *outRect = SkRect::MakeLTRB(bounds.left, bounds.top, bounds.right, bounds.bottom); 185 bool DisplayListCanvas::quickRejectRect(float left, float top, float right, float bottom) const { 186 return mState.quickRejectConservative(left, top, right, bottom); 195 bool DisplayListCanvas::clipRect(float left, float top, float right, float bottom, argument 197 addStateOp(new (alloc()) ClipRectOp(left, top, right, bottom, op)); 198 return mState.clipRect(left, top, right, bottom, op); 345 void DisplayListCanvas::drawRect(float left, float top, float right, float bottom, argument 347 addDrawOp(new (alloc()) DrawRectOp(left, top, right, bottom, refPain 350 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 355 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 387 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 392 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument [all...] |
H A D | Matrix.cpp | 396 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 400 data[kScaleY] = 2.0f / (top - bottom); 403 data[kTranslateY] = -(top + bottom) / (top - bottom); 455 MUL_ADD_STORE(r.bottom, data[kScaleY], data[kTranslateY]); 463 if (r.top > r.bottom) { 465 r.top = r.bottom; 466 r.bottom = y; 475 r.right, r.bottom, 476 r.left, r.bottom [all...] |
H A D | CanvasState.h | 123 bool quickRejectConservative(float left, float top, float right, float bottom) const; 125 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op); 141 * Returns true if drawing in the rectangle (left, top, right, bottom) 145 bool calculateQuickRejectForScissor(float left, float top, float right, float bottom,
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | MagnificationController.java | 678 private void requestRectangleOnScreen(int left, int top, int right, int bottom) { argument 682 if (!magnifiedFrame.intersects(left, top, right, bottom)) { 707 if (bottom - top > magnifFrameInScreenCoords.height()) { 711 } else if (bottom > magnifFrameInScreenCoords.bottom) { 712 scrollY = bottom - magnifFrameInScreenCoords.bottom; 975 public void onRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument 980 args.argi4 = bottom; 984 private void handleOnRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | BaseMovementMethod.java | 201 return bottom(widget, buffer); 219 return bottom(widget, buffer); 237 return bottom(widget, buffer); 329 * Performs a bottom movement action. 330 * Moves the cursor or scrolls to the bottom of the buffer. 336 protected boolean bottom(TextView widget, Spannable buffer) { method in class:BaseMovementMethod 538 final int bottom = widget.getScrollY() + innerHeight; 539 int bottomLine = layout.getLineForVertical(bottom); 540 if (layout.getLineTop(bottomLine + 1) < bottom + 1) { 588 final int bottom [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | NumPadKey.java | 158 int bottom = top + digitHeight; 159 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom); 160 top = (int) (bottom - klondikeHeight * 0.35f); 161 bottom = top + klondikeHeight; 164 mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | DataUsageDetailView.java | 71 String bottom = null; 84 bottom = res.getString(R.string.quick_settings_cellular_detail_data_limit, 92 bottom = res.getString(R.string.quick_settings_cellular_detail_data_limit, 116 infoBottom.setVisibility(bottom != null ? View.VISIBLE : View.GONE); 117 infoBottom.setText(bottom);
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | TestWallpaper.java | 217 width-mMainInsets.right, height-mMainInsets.bottom, paint); 221 width - mStableInsets.right, height - mStableInsets.bottom, 229 int y = height - mStableInsets.bottom - mPadding - ascdesc; 246 + ") - (" + mStableInsets.right + ", " + mStableInsets.bottom + ")", 250 + ") - (" + mMainInsets.right + ", " + mMainInsets.bottom + ")",
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 86 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); 90 // bottom shadow. This needs an inset so that blank doesn't appear when the content is 95 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3); 98 drawCorner(canvas, cornerPaint, path, inset.right, inset.bottom, outerArcRadius, 0); 99 drawCorner(canvas, cornerPaint, path, inset.left, inset.bottom, outerArcRadius, 1); 173 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowState.java | 690 final int bottom = Math.max(0, Math.min(layoutFrame.bottom, displayFrame.bottom) - insetFrame.bottom); 691 frame.inset(left, top, right, bottom); 745 mContainingFrame.bottom = mContainingFrame.top + frozen.height(); 750 if (windowsAreFloating && mContainingFrame.bottom > cf.bottom) { 753 mContainingFrame.top -= mContainingFrame.bottom - cf.bottom; 1012 getNeedsMenuLw(WindowManagerPolicy.WindowState bottom) argument [all...] |
H A D | Task.java | 335 * @param alignBottom True if the task's bottom should be aligned to the adjusted 336 * bounds's bottom; false if the task's top should be aligned 347 int offsetY = adjustedBounds.bottom - mTmpRect2.bottom; 396 bounds.bottom = mTmpRect.top + mBounds.height(); 397 } else if (bounds.bottom < mTmpRect.bottom) { 398 bounds.top = mTmpRect.bottom - mBounds.height(); 399 bounds.bottom = mTmpRect.bottom; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ListView.java | 104 * or a footer at the bottom. 209 * Make sure views are touching the top or bottom edge, as appropriate for 234 // we are too high, slide all views down to align with bottom 236 delta = child.getBottom() - (getHeight() - mListPadding.bottom); 350 * Add a fixed view to appear at the bottom of the list. If addFooterView is 388 * Add a fixed view to appear at the bottom of the list. If addFooterView is 562 * @return Whether the list needs to show the bottom fading edge 569 final int listBottom = mScrollY + getHeight() - mListPadding.bottom; 601 // leave room for bottom fading edge as long as rect isn't at very bottom [all...] |
H A D | FastScroller.java | 586 bounds.bottom += mPreviewImage.getPaddingBottom(); 601 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom); 619 margins.bottom = mPreviewImage.getPaddingBottom(); 685 final int bottom = top + view.getMeasuredHeight(); 686 out.set(left, top, right, bottom); 716 final int bottom = top + preview.getMeasuredHeight(); 719 out.set(left, top, right, bottom); 733 container.bottom = list.getHeight(); 741 container.bottom -= list.getPaddingBottom(); 780 final int bottom; [all...] |
H A D | ScrollView.java | 914 * if topFocus is true, or at the bottom of the bounds if topFocus is 918 * @param bottom the bottom offset of the bounds in which a focusable must 923 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument 930 * top, and its bottom is above the bound's bottom. A partially 943 if (top < viewBottom && viewTop < bottom) { 950 (viewBottom < bottom); 1022 mTempRect.bottom = mTempRect.top + height; 1024 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); 1070 scrollAndFocus(int direction, int top, int bottom) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextLine.java | 191 * @param bottom the bottom of the line 193 void draw(Canvas c, float x, int top, int y, int bottom) { argument 196 drawRun(c, 0, mLen, false, x, top, y, bottom, false); 200 drawRun(c, 0, mLen, true, x, top, y, bottom, false); 232 h += drawRun(c, segstart, j, runIsRtl, x+h, top, y, bottom, 352 * @param bottom the bottom of the line 358 int limit, boolean runIsRtl, float x, int top, int y, int bottom, 364 y, bottom, nul 357 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument 695 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth, int offset) argument 786 handleReplacement(ReplacementSpan replacement, TextPaint wp, int start, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument 851 handleRun(int start, int measureLimit, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | PhoneWindowManager.java | 1930 public void setDisplayOverscan(Display display, int left, int top, int right, int bottom) { argument 1935 mOverscanBottom = bottom; 2333 // Height of the navigation bar when presented horizontally at bottom 2349 // Height of the navigation bar when presented horizontally at bottom 2378 // wallpaper is at the bottom, though the window manager may move it. 2530 // the navigation bar to the bottom. 2831 // This can be on either the bottom or the right or the left. 2898 || frame.bottom + insets >= win.getDisplayFrameLw().bottom); 3888 outOutsets.bottom [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 234 scaledBounds.bottom = bounds.top + Math.round(bounds.height() / scale); 244 final float cy = (bounds.top + bounds.bottom) / 2.0f; 272 return (padding.left | padding.top | padding.right | padding.bottom) != 0; 292 bounds.bottom - mOutlineInsets.bottom, 310 opticalInsets.left, opticalInsets.bottom); 678 final int bottom = Drawable.scaleFromDensity( 679 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); 680 mOpticalInsets = Insets.of(left, top, right, bottom); 696 mPadding.bottom [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
H A D | ScrimInsetsFrameLayout.java | 101 mTempRect.set(0, height - mInsets.bottom, width, height); 106 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom); 111 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom);
|