Searched refs:top (Results 301 - 325 of 726) sorted by relevance

<<11121314151617181920>>

/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale);
325 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) {
354 // rectangle containing visible range. The left-top coordinate returned is
374 int top = (int) Math.floor(cY - height / (2f * scale));
376 int bottom = (int) Math.ceil(top + height / scale);
381 top = Math.max(0, size * (top / size));
385 out.set(left, top, right, bottom);
442 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) {
653 source.top /
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp71 jfieldID top; member in struct:android::__anon947
305 dirtyRect.top = env->GetIntField(dirtyRectObj, gRectClassInfo.top);
341 nativeCanvas->clipRect(dirtyRect.left, dirtyRect.top,
347 env->SetIntField(dirtyRectObj, gRectClassInfo.top, dirtyRect.top);
590 gRectClassInfo.top = GetFieldIDOrDie(env, clazz, "top", "I");
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleDrawable.java629 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
631 mHotspotBounds.set(left, top, right, bottom);
790 final int top = bounds.top;
791 mMaskCanvas.translate(-left, -top);
797 mMaskCanvas.translate(left, top);
858 mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);
H A DDrawableContainer.java109 result = (r.left | r.top | r.bottom | r.right) != 0;
297 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
299 mHotspotBounds = new Rect(left, top, right, bottom);
301 mHotspotBounds.set(left, top, right, bottom);
305 mCurrDrawable.setHotspotBounds(left, top, right, bottom);
542 d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top,
1035 if (t.top > r.top) r.top = t.top;
[all...]
H A DDrawable.java115 * drawables on top of each other.
145 * this method, the custom drawable class must be a public top-level
155 * method may be used for both public top-level classes and public
200 public void setBounds(int left, int top, int right, int bottom) { argument
207 if (oldBounds.left != left || oldBounds.top != top ||
213 mBounds.set(left, top, right, bottom);
223 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
668 * @param top position in pixels of the top boun
673 setHotspotBounds(int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DRecentTasks.java384 TaskRecord top = task;
386 while (top.mNextAffiliate != null && topIndex > 0) {
387 top = top.mNextAffiliate;
393 boolean sane = top.mAffiliatedTaskId == task.mAffiliatedTaskId;
395 TaskRecord prev = top;
400 if (cur == top) {
468 // to the top.
498 // Another quick case: check if the top-most recent task is the same.
500 if (DEBUG_RECENTS) Slog.d(TAG_RECENTS, "addRecent: already at top
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DFloatingActionButton.java198 d + mShadowPadding.top + mShadowPadding.bottom);
472 rect.top += mShadowPadding.top;
725 // If we're on the top edge, shift it up
726 offsetTB = -padding.top;
783 public void setShadowPadding(int left, int top, int right, int bottom) { argument
784 mShadowPadding.set(left, top, right, bottom);
785 setPadding(left + mImagePadding, top + mImagePadding,
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentTest.java211 recyclerView.setPadding(padding.left, padding.top,
220 tmp.offset(padding.left, padding.top);
230 assertThat(recyclerView.getHeight(), is(height + padding.top + padding.bottom));
322 return mRawChildrenBox.top >= mRvPadding.top
439 + ",t:" + (postInfo.top + mOffsetY)
491 int expectedH = mRawChildrenBox.height() + mRvPadding.top + mRvPadding.bottom;
H A DBaseRecyclerViewInstrumentationTest.java611 int top = 0;
632 layoutDecorated(view, getWidth() - getDecoratedMeasuredWidth(view), top,
633 getWidth(), top + getDecoratedMeasuredHeight(view));
635 layoutDecorated(view, 0, top, getDecoratedMeasuredWidth(view)
636 , top + getDecoratedMeasuredHeight(view));
639 top += view.getMeasuredHeight();
/frameworks/base/core/java/android/widget/
H A DAbsListView.java199 * the views from there. The top is specified by mSpecificTop.
204 * Layout to sync as a result of a data change. Restore mSyncPosition to have its top
303 * Indicates whether the list selector should be drawn on top of the children or behind
334 * The selection's top padding
359 * The top scroll indicator
381 * The offset to the top of the mMotionPosition view when the down motion event was received
386 * The desired offset to the top of the mMotionPosition view after a scroll
432 * The offset in pixels form the top of the AdapterView to the top
439 * the top edg
2176 setFrame(int left, int top, int right, int bottom) argument
2682 internalSetPadding(int left, int top, int right, int bottom) argument
[all...]
H A DAbsSeekBar.java619 final int top, bottom;
622 top = oldBounds.top;
625 top = offset;
636 background.setHotspotBounds(left + offsetX, top + offsetY,
641 thumb.setBounds(left, top, right, bottom);
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java221 public void setBounds(int left, int top, int right, int bottom) { argument
223 mDrawTop = top + (bottom-top - mHeight) / 2;
457 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned
477 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned
540 float top = (inHeight - outHeight) * verticalAlignment;
541 float bottom = top + outHeight;
542 cropRectF = new RectF(left, top, right, bottom);
587 roundedTrueCrop.top, roundedTrueCrop.width(),
625 cropRect.top
[all...]
H A DMediaRouteButton.java228 // Show along the top; follow action buttons
378 final int top = getPaddingTop();
384 final int drawTop = top + (bottom - top - drawHeight) / 2;
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java336 * @param t the parent's top border
361 final int top = (parentHeight - handleHeight) / 2;
364 tab.layout(0, top, handleWidth, bottom);
365 text.layout(0 - parentWidth, top, 0, bottom);
370 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom);
371 text.layout(parentWidth, top, parentWidth + parentWidth, bottom);
380 final int top = (int) (THRESHOLD * parentHeight) + handleHeight / 2 - targetHeight;
385 target.layout(targetLeft, top, targetRight, top + targetHeight);
660 int top
[all...]
/frameworks/base/libs/hwui/
H A DGlopBuilder.cpp55 quadVertex[0] = {0, 0, uvs.left, uvs.top};
56 quadVertex[1] = {1, 0, uvs.right, uvs.top};
515 mOutGlop->transform.modelView.loadTranslate(destination.left, destination.top, 0.0f);
528 float top = destination.top; local
537 top = (int) floorf(top + translateY + 0.5f) - translateY;
541 mOutGlop->transform.modelView.loadTranslate(left, top, 0.0f);
571 offsetY = (int) floorf(offsetY + translateY + source.top + 0.5f) - translateY - source.top;
[all...]
H A DFrameBuilder.cpp122 mCanvasState.clipRect(clipRect.left, clipRect.top, clipRect.right, clipRect.bottom,
152 // Additional nodes will be drawn on top with no particular clipping semantics.
163 content.translate(backdrop.left, backdrop.top);
167 // Note: in the future, if content doesn't snap to backdrop's left/top, this may need to
168 // also fill left/top. Currently, both 2up and freeform position content at the top/left of
172 deferRenderNode(0, 0, Rect(content.right, backdrop.top,
186 float dy = contentDrawBounds.top - backdrop.top;
264 mCanvasState.clipRect(clipRect.left, clipRect.top, clipRec
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
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...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowSurfaceController.java129 void setPositionAndLayer(float left, float top, int layerStack, int layer) { argument
133 mSurfaceY = top;
137 "POS (setPositionAndLayer) @ (" + left + "," + top + ")", null);
138 mSurfaceControl.setPosition(left, top);
242 void setPositionInTransaction(float left, float top, boolean recoveringMemory) { argument
243 final boolean surfaceMoved = mSurfaceX != left || mSurfaceY != top;
246 mSurfaceY = top;
250 "POS (setPositionInTransaction) @ (" + left + "," + top + ")", null);
252 mSurfaceControl.setPosition(left, top);
255 + " pos=(" + left + "," + top
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java308 centerY = Math.min(Math.max(mTranslateRect.top + heightBuffer,
636 matrix.postTranslate(-mCropRect.left, -mCropRect.top);
722 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
723 super.onLayout(changed, left, top, right, bottom);
942 float maxY = mTranslateRect.top * relativeDistance;
1013 float maxTop = mAllowCrop ? mCropRect.top: 0.0f;
1015 float t = mTranslateRect.top;
1022 Math.min(maxBottom - mTranslateRect.top, ty));
1076 float maxTop = mAllowCrop ? mCropRect.top : 0.0f;
1078 float t = mTranslateRect.top;
[all...]
/frameworks/rs/
H A DrsFont.cpp146 // 0, 0 is top left, so bottom is a positive number
156 if (bounds->top > nPenY - height) {
157 bounds->top = nPenY - height;
564 nextLine += mCacheLines.top()->mMaxHeight;
566 nextLine += mCacheLines.top()->mMaxHeight;
568 nextLine += mCacheLines.top()->mMaxHeight;
570 nextLine += mCacheLines.top()->mMaxHeight;
572 nextLine += mCacheLines.top()->mMaxHeight;
574 nextLine += mCacheLines.top()->mMaxHeight;
786 bounds->top
[all...]
/frameworks/base/core/java/android/text/
H A DStaticLayout.java579 // must be a multiple of 4 (and > 0) (store top, bottom, ascent, and descent per range)
730 // the order of storage here (top, bottom, ascent, descent) has to match the code below
732 fmCache[fmCacheCount * 4 + 0] = fm.top;
790 fm.top = fmCache[fmCacheIndex * 4 + 0];
796 if (fm.top < fmTop) {
797 fmTop = fm.top;
828 fmTop = fm.top;
859 fm.top, fm.bottom,
871 int above, int below, int top, int bottom, int v,
902 fm.top
870 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, int flags, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java296 final int top = child.getTop() - lp.topMargin - mDividerHeight;
297 drawHorizontalDivider(canvas, top);
356 void drawHorizontalDivider(Canvas canvas, int top) { argument
357 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top,
358 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight);
1415 * @param top
1419 void layoutVertical(int left, int top, int right, int bottom) { argument
1440 childTop = getPaddingTop() + bottom - top - mTotalLength;
1445 childTop = getPaddingTop() + (bottom - top - mTotalLength) / 2;
1510 * @param top
1514 layoutHorizontal(int left, int top, int right, int bottom) argument
1638 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java174 * The raw amount of the overScroll on the top, which is not rubber-banded.
206 * Was the scroller scrolled to the top when the down motion was observed?
415 canvas.drawRect(0, mCurrentBounds.top, getWidth(), mCurrentBounds.bottom, mBackgroundPaint);
502 // we layout all our children centered on the top
907 float top = childTop + slidingChild.getClipTopAmount();
910 float dist = Math.min(Math.abs(top - localTouchY), Math.abs(bottom - localTouchY));
936 float top = childTop + slidingChild.getClipTopAmount();
944 if (touchY >= top && touchY <= bottom && touchX >= left && touchX <= right) {
1061 * @return the scroll necessary to make the bottom edge of {@param v} align with the top of
1351 // We overScroll on the top
1585 getCurrentOverScrollAmount(boolean top) argument
1589 getCurrentOverScrolledPixels(boolean top) argument
1911 setBackgroundTop(int top) argument
[all...]
/frameworks/base/core/java/android/view/
H A DView.java328 * expressed as a pair of <em>left</em> and <em>top</em> coordinates, and
337 * top, or Y, coordinate of the rectangle representing the view. These methods
378 * is expressed in pixels for the left, top, right and bottom parts of the view.
399 * pass is implemented in {@link #measure(int, int)} and is a top-down traversal
403 * {@link #layout(int,int,int,int)} and is also top-down. During
610 * used in XML, the specified theme is applied on top of the inflation
2560 * Scroll indicator direction for the top edge of the view.
2860 * if the user swipes from the top of the screen.
2862 * system gestures, such as swiping from the top of the screen. These transient system bars
3334 * The distance in pixels from the top edg
11610 onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) argument
12408 setTop(int top) argument
13988 postInvalidate(int left, int top, int right, int bottom) argument
14032 postInvalidateDelayed(long delayMilliseconds, int left, int top, int right, int bottom) argument
14083 postInvalidateOnAnimation(int left, int top, int right, int bottom) argument
17472 setOpticalFrame(int left, int top, int right, int bottom) argument
17550 onLayout(boolean changed, int left, int top, int right, int bottom) argument
17566 setFrame(int left, int top, int right, int bottom) argument
17632 setLeftTopRightBottom(int left, int top, int right, int bottom) argument
18619 setPadding(int left, int top, int right, int bottom) argument
18637 internalSetPadding(int left, int top, int right, int bottom) argument
18712 setPaddingRelative(int start, int top, int end, int bottom) argument
22642 int top; field in class:View.AttachInfo.InvalidateInfo
[all...]
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java66 * applications that would like to sit on top of it. This service object
671 mLayout.surfaceInsets.top += mOutsets.top;
692 h += padding.top + padding.bottom + mOutsets.top + mOutsets.bottom;
694 mOverscanInsets.top += padding.top;
698 mContentInsets.top += padding.top;
702 mStableInsets.top
[all...]

Completed in 1744 milliseconds

<<11121314151617181920>>