Searched refs:top (Results 176 - 200 of 391) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java355 // draw the rect from bottom-left to top-right
402 textureRect(target.left, target.top, target.width(), target.height());
429 source.top /= texHeight;
441 target.bottom = target.top + target.height() *
442 (yBound - source.top) / source.height();
519 fillRect(target.left, target.top, target.width(), target.height(), toColor);
541 textureRect(target.left, target.top, target.width(), target.height());
702 setTextureCoords(source.left, source.top, source.right, source.bottom);
705 private void setTextureCoords(float left, float top, argument
709 mTextureMatrixValues[5] = bottom - top;
[all...]
H A DGLES20Canvas.java594 int top = 0;
599 top = 1;
603 outRect.set(left, top, right, bottom);
637 mTempTextureMatrix[13] = source.top;
651 source.top /= texHeight;
662 target.bottom = target.top + target.height() * (yBound - source.top) / source.height();
678 draw(params, GLES20.GL_TRIANGLE_STRIP, COUNT_FILL_VERTEX, target.left, target.top,
780 fillRect(target.left, target.top, target.width(), target.height(), toColor);
1000 bounds.top
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFolder.java651 // These represent the visual top and left of drag view if a dragRect was provided.
653 // top, as the dragRect is in that case taken to be the entire dragView.
656 int top = y - yOffset;
660 res[1] = top + dragView.getDragRegion().height() / 2;
805 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2);
824 int top = Math.min(Math.max(bounds.top, centeredTop),
825 bounds.top + bounds.height() - height);
831 top = bounds.top
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java339 // Only add the top view as a child for accessibility when it is open
442 int top = vY - y;
443 r.set(left, top, left + v.getMeasuredWidth(), top + v.getMeasuredHeight());
456 setBackground(insets.top == 0 ? null
570 final int fromY = r.top;
634 final int fromY = r.top;
664 * @param from The initial location of the view. Only the left and top parameters are used.
665 * @param to The final location of the view. Only the left and top parameters are used. This
688 final float dist = (float) Math.hypot(to.left - from.left, to.top
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
H A DPopupContainerWithArrow.java367 int top = mIsAboveIcon ? getPaddingTop() : startPoint.y;
370 mEndRect.set(0, top, getMeasuredWidth(), top + itemsTotalHeight);
503 int y = mTempRect.top + icon.getPaddingTop() - height;
504 mIsAboveIcon = y > dragLayer.getTop() + insets.top;
506 y = mTempRect.top + icon.getPaddingTop() + iconHeight;
515 y -= insets.top;
886 int top = mIsAboveIcon ? getPaddingTop() : startPoint.y;
890 mEndRect.set(0, top, getMeasuredWidth(), top
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java338 final int top = child.getTop() - lp.topMargin - mDividerHeight;
339 drawHorizontalDivider(canvas, top);
398 void drawHorizontalDivider(Canvas canvas, int top) { argument
399 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top,
400 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight);
1106 * @param top
1110 void layoutVertical(int left, int top, int right, int bottom) { argument
1131 childTop = mPaddingTop + bottom - top - mTotalLength;
1136 childTop = mPaddingTop + (bottom - top - mTotalLength) / 2;
1211 * @param top
1215 layoutHorizontal(int left, int top, int right, int bottom) argument
1339 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DPhotoUI.java101 public void onPreviewLayoutChanged(View v, int left, int top, int right, argument
104 int height = bottom - top;
229 params.setMargins((int) previewArea.left, (int) previewArea.top, 0, 0);
H A DFocusOverlayManager.java551 int top = CameraUtil.clamp(y - size / 2, mPreviewRect.top,
554 RectF rectF = new RectF(left, top, left + size, top + size);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
H A DBandController_GridModelTest.java309 int top = y;
318 top,
320 top + height - 1)));
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCommonControllerOverlay.java246 // | Action Bar | insets.top
266 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
270 int pt = insets.top;
273 int h = bottom - top;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DEdgeEffect.java52 * The edge effect may then be drawn on top of the view's content using the
427 public void setBounds(int left, int top, int right, int bottom) { argument
428 mBounds.set(left, top, right, bottom);
439 draw(canvas, b.left, b.top, b.width(), b.height());
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
H A DInputStreamProvider.java144 cropBounds.top /= scaleDownSampleSize;
160 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight();
163 // Adjust the top and bottom values.
168 roundedTrueCrop.top, roundedTrueCrop.width(),
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoCarousel.java278 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
279 mHeight = bottom - top;
291 super.onLayout(changed, left, top, right, bottom);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DCircleBitmapDrawable.java55 int height = bounds.bottom - bounds.top;
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
H A DPagedListView.java326 // At the last click of 6 click limit, we show one more warning item at the top of menu.
343 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
344 // if a late item is added to the top of the layout after the layout is stabilized, causing
345 // the former top item to be pushed to the 2nd page, the focus will still be on the former
346 // top item. Since our car layout manager tries to scroll the viewport so that the focused
361 super.onLayout(changed, left, top, right, bottom);
498 * {@link #INVALID_RESOURCE_ID}, the the top container of each
502 * then the top container view of each child will be used.
535 int top = bottom - mDividerHeight;
540 c.drawRect(left, top, righ
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/
H A DMoreContactUtils.java177 * Returns the {@link android.graphics.Rect} with left, top, right, and bottom coordinates that
188 rect.top = pos[1];
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DOldSpeedDialFragment.java335 final int top = child.getTop();
348 if (startTop != top) {
349 deltaY = startTop - top;
362 + top
/packages/apps/Gallery/src/com/android/camera/
H A DImageGallery.java815 int top = (w - height) / 2 + yPos;
816 mDstRect.set(left, top, left + width, top + height);
842 int top = (h - height) / 2 + yPos;
843 mSrcRect.set(left, top, left + width, top + height);
864 int top = h - height - 5 + yPos;
865 mSrcRect.set(left, top, left + width, top + height);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherRootView.java56 insets = new Rect(0, insets.top, 0, insets.bottom);
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DPreviewImageView.java68 lp.y = mTempRect.top;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DIconNormalizer.java163 mMatrix.postTranslate(mBounds.left, mBounds.top);
200 mBounds.left, mBounds.top,
335 mBounds.top = topY;
339 outBounds.set(((float) mBounds.left) / width, ((float) mBounds.top),
H A DLauncherIcons.java193 * Adds the {@param badge} on top of {@param srcTgt} using the badge dimensions.
271 final int top = (textureHeight-height) / 2;
276 Math.min(left, top));
280 icon.setBounds(left, top, left+width, top+height);
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutDragPreviewProvider.java75 canvas.translate(bounds.left, bounds.top);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DGridOccupancy.java87 markCells(r.left, r.top, r.width(), r.height(), value);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DOrientedBitmapDrawable.java92 mDstRect.set((int) rotatedRect.left, (int) rotatedRect.top, (int) rotatedRect.right,

Completed in 1282 milliseconds

1234567891011>>