Searched defs:top (Results 201 - 225 of 343) sorted by relevance

1234567891011>>

/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java726 * @param top The top of the rectangle used for the region.
731 public Builder setRegion(int left, int top, int right, int bottom) { argument
737 if (!mRegion.intersect(left, top, right, bottom)) {
806 region.top = (int) Math.floor(region.top * scale);
894 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp349 CameraHardwareInterface::setCrop(int32_t left, int32_t top, int32_t right, int32_t bottom) { argument
357 mPreviewCrop.top = top;
986 int left, int top, int right, int bottom)
991 hw->mPreviewCrop.top = top;
985 sSetCrop(struct preview_stream_ops *w, int left, int top, int right, int bottom) argument
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java228 public void setBounds(int left, int top, int right, int bottom) { argument
230 mDrawTop = top + (bottom-top - mHeight) / 2;
474 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned
494 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned
557 float top = (inHeight - outHeight) * verticalAlignment;
558 float bottom = top + outHeight;
559 cropRectF = new RectF(left, top, right, bottom);
604 roundedTrueCrop.top, roundedTrueCrop.width(),
642 cropRect.top
[all...]
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java57 public final void drawArc(float left, float top, float right, float bottom, float startAngle, argument
59 nDrawArc(mNativeCanvasWrapper, left, top, right, bottom, startAngle, sweepAngle,
66 drawArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, useCenter,
76 public final void drawBitmap(@NonNull Bitmap bitmap, float left, float top, argument
79 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top,
100 int left, top, right, bottom;
102 left = top = 0;
108 top = src.top;
112 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, righ
238 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument
357 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument
379 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument
536 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument
571 nDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument
575 nDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument
583 nDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument
587 nDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument
[all...]
H A DSurfaceView.java55 * normally appear on top of it. This can be used to place overlays such as
56 * buttons on top of the Surface, though note however that it can have an
62 * properties are used to draw a sibling view on top of the SurfaceView, the
342 protected boolean setFrame(int left, int top, int right, int bottom) { argument
343 boolean result = super.setFrame(left, top, right, bottom);
400 * Control whether the surface view's surface is placed on top of another
402 * This is typically used to place overlays on top of an underlying media
416 * Control whether the surface view's surface is placed on top of its
421 * SurfaceView is in will be visible on top of its surface.
509 + " top
796 updateSurfacePosition_renderWorker(long frameNumber, int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java86 * Requests that the content being animated be forced on top of all other
1014 * @param top
1022 public void getInvalidateRegion(int left, int top, int right, int bottom, argument
1028 invalidate.set(left, top, right, bottom);
1047 * @param top
1053 public void initializeInvalidateRegion(int left, int top, int right, int bottom) { argument
1055 region.set(left, top, right, bottom);
/frameworks/base/core/java/android/widget/
H A DActionMenuPresenter.java314 if (menuItemLayoutInfoPre.top != menuItemLayoutInfoPost.top) {
316 menuItemLayoutInfoPre.top - menuItemLayoutInfoPost.top, 0);
1031 int top; field in class:ActionMenuPresenter.MenuItemLayoutInfo
1035 top = view.getTop();
1040 top += view.getTranslationY();
H A DAdapterView.java74 * The offset in pixels from the top of the AdapterView to the top
557 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1186 // Either we hit the top, or we are trying to move down
H A DAdapterViewAnimator.java760 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DGridView.java292 * @param nextTop The location where the top of the item associated with pos
388 * Fills the list from pos up to the top of the list view.
402 end = mListPadding.top;
428 * Fills the list from top to bottom, starting with mFirstPosition
430 * @param nextTop The location where the top of the first item should be
501 final int top = getChildAt(0).getTop();
502 final int offset = childrenTop - top;
549 * @param top the top of the view at that position
553 private View fillSpecific(int position, int top) { argument
[all...]
H A DLinearLayout.java349 * to left and right end of dividers. For a horizontal layout, the padding is applied to top and
410 final int top = child.getTop() - lp.topMargin - mDividerHeight;
411 drawHorizontalDivider(canvas, top);
483 void drawHorizontalDivider(Canvas canvas, int top) { argument
484 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top,
485 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight);
1558 * @param top
1562 void layoutVertical(int left, int top, int right, int bottom) { argument
1583 childTop = mPaddingTop + bottom - top - mTotalLength;
1588 childTop = mPaddingTop + (bottom - top
1667 layoutHorizontal(int left, int top, int right, int bottom) argument
1790 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
H A DSimpleMonthView.java387 // day to the left, top, right, or bottom). Focus forward and back jumps out of the
880 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
887 final int h = bottom - top;
996 // Compute top edge.
1000 final int top = getPaddingTop() + headerHeight + row * rowHeight;
1002 outBounds.set(left, top, left + colWidth, top + rowHeight);
H A DSwitch.java1091 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1092 super.onLayout(changed, left, top, right, bottom);
1179 if (thumbInsets.top > padding.top) {
1180 trackTop += thumbInsets.top - padding.top;
1224 final int switchInnerTop = switchTop + padding.top;
1267 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2;
1268 canvas.translate(left, top);
H A DVideoView.java130 /** Subtitle rendering widget overlaid on top of the video. */
896 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
897 super.onLayout(changed, left, top, right, bottom);
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java288 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument
296 if (top && lp.topMargin != insets.top) {
298 lp.topMargin = insets.top;
319 // The top and bottom action bars are always within the content area.
407 // If tabs are not embedded, increase space on top to account for them.
412 // This is the space needed on top of the window for all of the action bar
435 mContentInsets.top += topInset;
438 mInnerInsets.top += topInset;
473 protected void onLayout(boolean changed, int left, int top, in argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp121 static void arcTo(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument
125 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
135 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) {
138 obj->addRect(left, top, right, bottom, dir);
142 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) {
145 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
156 static void addArc(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument
158 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
163 static void addRoundRectXY(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument
165 SkRect rect = SkRect::MakeLTRB(left, top, righ
134 addRect(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
141 addOval(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
171 addRoundRect8(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloatArray array, jint dirHandle) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_RenderNode.cpp121 jint left, jint top, jint right, jint bottom) {
122 android::uirenderer::Rect clipBounds(left, top, right, bottom);
141 jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) {
143 renderNode->mutateStagingProperties().mutableOutline().setRoundRect(left, top, right, bottom,
256 static jboolean android_view_RenderNode_setTop(jlong renderNodePtr, int top) { argument
257 return SET_AND_DIRTY(setTop, top, RenderNode::Y);
269 int left, int top, int right, int bottom) {
271 if (renderNode->mutateStagingProperties().setLeftTopRightBottom(left, top, right, bottom)) {
470 (jint) bounds.left, (jint) bounds.top,
502 void doUpdatePositionAsync(jlong frameNumber, jint left, jint top, argument
120 android_view_RenderNode_setClipBounds(jlong renderNodePtr, jint left, jint top, jint right, jint bottom) argument
140 android_view_RenderNode_setOutlineRoundRect(jlong renderNodePtr, jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) argument
268 android_view_RenderNode_setLeftTopRightBottom(jlong renderNodePtr, int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java83 public void drawArc(float left, float top, float right, float bottom, float startAngle, argument
86 nDrawArc(mNativeCanvasWrapper, left, top, right, bottom, startAngle, sweepAngle,
93 drawArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, useCenter,
101 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { argument
104 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top,
124 int left, top, right, bottom;
126 left = top = 0;
132 top = src.top;
136 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, righ
256 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument
338 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument
358 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument
556 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument
582 nDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument
585 nDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument
591 nDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument
594 nDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument
[all...]
H A DPath.java458 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo);
473 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false);
488 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument
491 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo);
519 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
527 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION);
538 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
545 * @param top The top of a rectangle to add to the path
550 public void addRect(float left, float top, floa argument
570 addOval(float left, float top, float right, float bottom, Direction dir) argument
605 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
630 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument
660 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument
837 nArcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument
840 nAddRect(long nPath, float left, float top, float right, float bottom, int dir) argument
842 nAddOval(long nPath, float left, float top, float right, float bottom, int dir) argument
845 nAddArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
847 nAddRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
849 nAddRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAdaptiveIconDrawable.java70 * getBounds().top - getBounds().getHeight() * #getExtraInsetFraction(),
264 * {@link #getExtraInsetFraction()} * getBounds().height on top/bottom sides.
275 * {@link #getExtraInsetFraction()} * getBounds().height on top/bottom sides.
341 // mMask bound [left, top, right, bottom]
342 mMaskMatrix.postTranslate(b.left, b.top);
372 canvas.drawBitmap(mMaskBitmap, bounds.left, bounds.top, mPaint);
615 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
620 dr.setHotspotBounds(left, top, right, bottom);
625 mHotspotBounds = new Rect(left, top, right, bottom);
627 mHotspotBounds.set(left, top, righ
[all...]
H A DDrawable.java118 * drawables on top of each other.
148 * this method, the custom drawable class must be a public top-level
158 * method may be used for both public top-level classes and public
218 public void setBounds(int left, int top, int right, int bottom) { argument
225 if (oldBounds.left != left || oldBounds.top != top ||
231 mBounds.set(left, top, right, bottom);
241 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
692 * @param top position in pixels of the top boun
697 setHotspotBounds(int left, int top, int right, int bottom) argument
[all...]
H A DRippleDrawable.java635 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
637 mHotspotBounds.set(left, top, right, bottom);
796 final int top = bounds.top;
797 mMaskCanvas.translate(-left, -top);
803 mMaskCanvas.translate(left, top);
864 mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);
/frameworks/base/libs/hwui/
H A DRecordingCanvas.cpp118 int RecordingCanvas::saveLayer(float left, float top, float right, float bottom, argument
130 Rect unmappedBounds(left, top, right, bottom);
174 snapshot.transform->loadTranslate(-unmappedBounds.left, -unmappedBounds.top, 0.0f);
177 clip.translate(-unmappedBounds.left, -unmappedBounds.top);
178 snapshot.resetClip(clip.left, clip.top, clip.right, clip.bottom);
230 bool RecordingCanvas::quickRejectRect(float left, float top, float right, float bottom) const { argument
231 return mState.quickRejectConservative(left, top, right, bottom);
237 bool RecordingCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { argument
238 return mState.clipRect(left, top, right, bottom, op);
292 void RecordingCanvas::drawRect(float left, float top, floa argument
309 float top = FLT_MAX; local
363 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument
378 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument
421 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument
431 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument
468 drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) argument
[all...]
H A DSkiaCanvasProxy.cpp117 void SkiaCanvasProxy::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, argument
127 left, top,
129 top + bitmap.dimensions().height(),
132 mCanvas->drawBitmap(*hwuiBitmap, left, top, paint);
151 void SkiaCanvasProxy::onDrawImage(const SkImage* image, SkScalar left, SkScalar top, argument
155 onDrawBitmap(skiaBitmap, left, top, paint);
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp552 CREATE_BRIDGE5(setContentDrawBounds, CanvasContext* context, int left, int top, argument
554 args->context->setContentDrawBounds(args->left, args->top, args->right, args->bottom);
558 void RenderProxy::setContentDrawBounds(int left, int top, int right, int bottom) { argument
562 args->top = top;
623 int RenderProxy::copySurfaceInto(sp<Surface>& surface, int left, int top, argument
629 args->srcRect.set(left, top, right, bottom);

Completed in 2629 milliseconds

1234567891011>>