Searched refs:top (Results 151 - 175 of 726) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/wm/
H A DTask.java242 if (mPreScrollBounds.left != bounds.left || mPreScrollBounds.top != bounds.top) {
335 * bounds's bottom; false if the task's top should be aligned
336 * the adjusted bounds's top.
349 mTmpRect2.offsetTo(adjustedBounds.left, adjustedBounds.top);
377 win.mYOffset = mBounds.top;
393 if (bounds.top > mTmpRect.top) {
394 bounds.top = mTmpRect.top;
[all...]
H A DAppTransition.java101 /** A window in a new activity is being opened on top of an existing one in the same task. */
103 /** The window in the top-most activity is being closed to reveal the
106 /** A window in a new task is being opened on top of an existing one
109 /** A window in the top-most activity is being closed to reveal the
112 /** A window in an existing task is being displayed on top of an existing one
117 /** A window in a new activity that doesn't have a wallpaper is being opened on top of one that
123 /** A window in a new activity is being opened on top of an existing one, and both are on top
126 /** The window in the top-most activity is being closed to reveal the previous activity, and
127 * both are on top o
675 putDefaultNextAppTransitionCoordinates(int left, int top, int width, int height, Bitmap bitmap) argument
[all...]
H A DTaskStack.java59 * restrict IME adjustment so that a min portion of top stack remains visible.*/
454 movement = inOutBounds.top;
455 inOutBounds.top -= movement;
460 inOutBounds.top += movement;
519 * @param toTop Whether to add it to the top or bottom.
722 * @param dockOnTopOrLeft If the docked stack is on the top or left side of the screen.
760 outBounds.top = position + dockDividerWidth;
771 outBounds.bottom = dockedBounds.top - dockDividerWidth;
777 outBounds.top = dockedBounds.bottom + dockDividerWidth;
836 int top
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.cpp130 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 { argument
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);
236 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, argument
239 translate(left, top);
345 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument
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 DLayerRenderer.cpp47 float left, float top, float right, float bottom, bool opaque) {
55 Rect dirty(left, top, right, bottom);
56 if (dirty.isEmpty() || (dirty.left <= 0 && dirty.top <= 0 &&
62 android::Rect r(dirty.left, dirty.top, dirty.right, dirty.bottom);
68 dirty.left, dirty.top, dirty.right, dirty.bottom, opaque);
71 void LayerRenderer::clear(float left, float top, float right, float bottom, bool opaque) { argument
79 OpenGLRenderer::clear(left, top, right, bottom, opaque);
172 const float v1 = (height - r->top) * texY;
176 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
177 TextureVertex::set(mesh++, r->right, r->top, u
46 prepareDirty(int viewportWidth, int viewportHeight, float left, float top, float right, float bottom, bool opaque) argument
[all...]
H A DMatrix.cpp396 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);
454 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]);
463 if (r.top > r.bottom) {
464 float y = r.top;
465 r.top = r.bottom;
473 r.left, r.top,
474 r.right, r.top,
[all...]
/frameworks/base/core/java/android/widget/
H A DFastScroller.java162 /** The number of headers at the top of the view. */
584 bounds.top -= mPreviewImage.getPaddingTop();
601 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom);
617 margins.top = mPreviewImage.getPaddingTop();
649 marginTop = margins.top;
684 final int top = marginTop;
685 final int bottom = top + view.getMeasuredHeight();
686 out.set(left, top, right, bottom);
699 marginTop = margins.top;
712 // Align at the vertical center, 10% from the top
[all...]
H A DListView.java103 * A class that represents a fixed view in a list, for example a header at the top
209 * Make sure views are touching the top or bottom edge, as appropriate for
221 // align with the top
223 delta = child.getTop() - mListPadding.top;
256 * Add a fixed view to appear at the top of the list. If this method is
294 * Add a fixed view to appear at the top of the list. If addHeaderView is
554 * @return Whether the list needs to show the top fading edge
557 final int listTop = mScrollY + mListPadding.top;
579 int rectTopWithinChild = rect.top;
591 // leave room for top fadin
1123 setupForSetSelection(int position, int top) argument
1398 fillSpecific(int position, int top) argument
[all...]
H A DCompoundButton.java409 final int top;
412 top = getHeight() - drawableHeight;
415 top = (getHeight() - drawableHeight) / 2;
418 top = 0;
420 final int bottom = top + drawableHeight;
424 buttonDrawable.setBounds(left, top, right, bottom);
428 background.setHotspotBounds(left, top, right, bottom);
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java590 * belonging to another app on top of this the keyguard shows. If there is a fullscreen
1902 public void setDisplayOverscan(Display display, int left, int top, int right, int bottom) { argument
1905 mOverscanTop = top;
2391 // some panels (e.g. search) need to show on top of the navigation bar
2499 // There is a separate status bar at the top of the display. We don't count that as part
2614 // focus, so we want to get the IME window up on top of us right away.
2831 && frame.top + insets >= mNavigationBar.getFrameLw().top)
2837 final boolean offscreenPortrait = !landscape && (frame.top - insets <= 0
3834 outOutsets.top
[all...]
H A DIconUtilities.java151 final int top = (textureHeight-height) / 2;
159 canvas.drawRect(left, top, left+width, top+height, debugPaint);
163 icon.setBounds(left, top, left+width, top+height);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java311 // get the current top graphics2D object.
340 // get the current top graphics2D object.
368 // get the current top graphics2D object.
387 float left, float top,
396 return canvasDelegate.clipRect(left, top, right, bottom, regionOp);
460 bounds.top = rect.y;
494 float left, float top,
585 final float left, final float top, final float right, final float bottom, long paint) {
596 graphics.fillRect((int)left, (int)top,
597 (int)(right-left), (int)(bottom-top));
386 native_clipRect(long nCanvas, float left, float top, float right, float bottom, int regionOp) argument
493 native_quickReject(long nativeCanvas, float left, float top, float right, float bottom) argument
584 native_drawRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument
610 native_drawOval(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument
645 native_drawArc(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float startAngle, final float sweep, final boolean useCenter, long paint) argument
677 native_drawRoundRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float rx, final float ry, long paint) argument
814 native_drawBitmap(Canvas thisCanvas, long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument
1142 clipRect(float left, float top, float right, float bottom, int regionOp) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java200 int top = getPaddingTop() + 2;
204 canvas.drawRect(x-irqW, top, x, bottom, mIrqPaint);
208 canvas.drawRect(x-systemW, top, x, bottom, mSystemPaint);
212 canvas.drawRect(x-userW, top, x, bottom, mUserPaint);
232 top += mFH;
239 canvas.drawRect(x-systemW, top, x, bottom, mSystemPaint);
243 canvas.drawRect(x-userW, top, x, bottom, mUserPaint);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDayPickerView.java59 public static int LIST_TOP_OFFSET = -1; // so that the top line will be
166 * the time is at the top of the view. If the new time is already in view
191 int top = 0;
198 top = child.getTop();
200 Log.d(TAG, "child at " + (i - 1) + " has top " + top);
202 } while (top < 0);
268 * Sets the month displayed at the top of this view based on time. Override
325 final int top = child.getTop();
328 if (scroll && top < LIST_TOP_OFFSE
[all...]
/frameworks/support/design/base/android/support/design/widget/
H A DShadowDrawableWrapper.java226 canvas.translate(mContentBounds.left + shadowOffset, mContentBounds.top + shadowOffset);
266 canvas.translate(mContentBounds.right - shadowOffset, mContentBounds.top + shadowOffset);
300 float shadowRadius = -outerBounds.top;
313 mEdgeShadowPaint.setShader(new LinearGradient(0, innerBounds.top, 0, outerBounds.top,
321 // We could have different top-bottom offsets to avoid extra gap above but in that case
324 mContentBounds.set(bounds.left + mRawMaxShadowSize, bounds.top + verticalOffset,
327 getWrappedDrawable().setBounds((int) mContentBounds.left, (int) mContentBounds.top,
/frameworks/support/v4/java/android/support/v4/widget/
H A DNestedScrollView.java974 final int top = -maxOverScrollY;
990 } else if (newScrollY < top) {
991 newScrollY = top;
1019 * @param topFocus look for a candidate is the one at the top of the bounds
1022 * @param top the top offset of the bounds in which a focusable must be
1029 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument
1035 * A fully contained focusable is one where its top is below the bound's
1036 * top, and its bottom is above the bound's bottom. A partially
1049 if (top < viewBotto
1176 scrollAndFocus(int direction, int top, int bottom) argument
[all...]
H A DSwipeProgressBar.java104 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
272 mBounds.top = top;
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java192 return top(widget, buffer);
210 return top(widget, buffer);
228 return top(widget, buffer);
317 * Performs a top movement action.
318 * Moves the cursor or scrolls to the top of the buffer.
324 protected boolean top(TextView widget, Spannable buffer) { method in class:BaseMovementMethod
376 * Moves the cursor or scrolls to the start of the line or to the top of the
390 * Moves the cursor or scrolls to the start of the line or to the top of the
510 final int top = widget.getScrollY();
511 int topLine = layout.getLineForVertical(top);
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp442 layer->sourceCrop.top = testRandMod(gBuf->getHeight());
445 layer->sourceCrop.bottom = layer->sourceCrop.top
446 + testRandMod(gBuf->getHeight() - layer->sourceCrop.top) + 1;
448 layer->displayFrame.top = testRandMod(height);
451 layer->displayFrame.bottom = layer->displayFrame.top
452 + testRandMod(height - layer->displayFrame.top) + 1;
465 - layer->sourceCrop.top;
467 && ((layer->displayFrame.top + sourceHeight) <= height)) {
470 layer->displayFrame.bottom = layer->displayFrame.top
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistOrbView.java229 float translationY = (mCircleRect.top + mCircleRect.bottom) / 2.0f
245 int left, top;
248 top = (int) (getHeight() - circleSize / 2 - mBaseMargin - offset);
249 rect.set(left, top, (int) (left + circleSize), (int) (top + circleSize));
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java84 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0);
89 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1);
100 drawCorner(canvas, cornerPaint, path, inset.left, inset.top, outerArcRadius, 2);
101 drawCorner(canvas, cornerPaint, path, inset.right, inset.top, outerArcRadius, 3);
122 // Usually canvas has been translated to the top left corner of the view when this is
123 // called. So, setting a clip rect at 0,0 will clip the top left part of the shadow.
173 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DRegion.java69 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
72 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
118 mPointsXY[i + 1] - mRoiBounds.top + cutOffsetY);
121 mPointsXY[i + 1] - mRoiBounds.top + cutOffsetY);
182 c.drawBitmap(mUndoBitmap, roi.left, roi.top, null);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DCardViewEclairMr1.java51 bounds.top + roundedCornerRadius);
63 //draw top and bottom pieces
64 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top,
66 bounds.top + roundedCornerRadius, paint);
73 canvas.drawRect(bounds.left, bounds.top + cornerRadius,
102 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top,
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentWithAspectRatioTest.java82 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);
169 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
171 layouts.add(new Pair<>(right - left, bottom - top));
/frameworks/base/core/java/android/text/
H A DLayout.java269 // The baseline is the top of the following line minus the current line's descent.
499 dtop = sTempRect.top;
503 final int top = Math.max(dtop, 0);
506 if (top >= bottom) return TextUtils.packRangeInLong(0, -1);
507 return TextUtils.packRangeInLong(getLineForVertical(top), getLineForVertical(bottom));
654 * If bounds is not null, return the top, left, right, bottom extents
663 bounds.top = getLineTop(line);
671 * Return the vertical position of the top of the specified line
714 * top line of the Layout.
1429 int top
1499 addSelection(int line, int start, int end, int top, int bottom, Path dest) argument
[all...]

Completed in 954 milliseconds

1234567891011>>