/frameworks/base/core/java/android/widget/ |
H A D | TextView.java | 1896 * Returns the top padding of the view, plus space for the top 1978 * Returns the extended top padding of the view, including both the 1979 * top Drawable if any and any extra space to keep more than maxLines 1995 int top = getCompoundPaddingTop(); 1997 int viewht = getHeight() - top - bottom; 2001 return top; 2006 return top; 2008 return top + viewht - layoutht; 2010 return top 2115 setCompoundDrawables(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2255 setCompoundDrawablesWithIntrinsicBounds(@rawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom) argument 2279 setCompoundDrawablesWithIntrinsicBounds(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2312 setCompoundDrawablesRelative(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 2459 setCompoundDrawablesRelativeWithIntrinsicBounds(@rawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument 2483 setCompoundDrawablesRelativeWithIntrinsicBounds(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 2687 setPadding(int left, int top, int right, int bottom) argument 2701 setPaddingRelative(int start, int top, int end, int bottom) argument 7175 onLayout(boolean changed, int left, int top, int right, int bottom) argument [all...] |
H A D | AbsListView.java | 198 * the views from there. The top is specified by mSpecificTop. 203 * Layout to sync as a result of a data change. Restore mSyncPosition to have its top 302 * Indicates whether the list selector should be drawn on top of the children or behind 333 * The selection's top padding 358 * The top scroll indicator 380 * The offset to the top of the mMotionPosition view when the down motion event was received 385 * The desired offset to the top of the mMotionPosition view after a scroll 431 * The offset in pixels form the top of the AdapterView to the top 438 * the top edg 2163 setFrame(int left, int top, int right, int bottom) argument [all...] |
H A D | AbsSeekBar.java | 466 final int top, bottom; 469 top = oldBounds.top; 472 top = offset; 483 background.setHotspotBounds(left + offsetX, top + offsetY, 488 thumb.setBounds(left, top, right, bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 487 private void drawWallpaperWithCanvas(SurfaceHolder sh, int w, int h, int left, int top) { argument 492 Log.d(TAG, "Redrawing: left=" + left + ", top=" + top); 496 final float bottom = top + mBackground.getHeight() * mScale; 499 c.clipRect(left, top, right, bottom, 505 RectF dest = new RectF(left, top, right, bottom); 515 private boolean drawWallpaperWithOpenGL(SurfaceHolder sh, int w, int h, int left, int top) { argument 519 final float bottom = top + mBackground.getHeight() * mScale; 525 final FloatBuffer triangleVertices = createMesh(left, top, right, bottom); 572 private FloatBuffer createMesh(int left, int top, floa argument [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 279 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 D | android_view_Surface.cpp | 71 jfieldID top; member in struct:android::__anon915 300 dirtyRect.top = env->GetIntField(dirtyRectObj, gRectClassInfo.top); 337 nativeCanvas->clipRect(dirtyRect.left, dirtyRect.top, 343 env->SetIntField(dirtyRectObj, gRectClassInfo.top, dirtyRect.top); 563 gRectClassInfo.top = GetFieldIDOrDie(env, clazz, "top", "I");
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleDrawable.java | 636 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 638 mHotspotBounds.set(left, top, right, bottom); 797 final int top = bounds.top; 798 mMaskCanvas.translate(-left, -top); 804 mMaskCanvas.translate(left, top); 865 mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);
|
H A D | GradientDrawable.java | 160 /** draw the gradient from the top to the bottom */ 162 /** draw the gradient from the top-right to the bottom-left */ 166 /** draw the gradient from the bottom-right to the top-left */ 168 /** draw the gradient from the bottom to the top */ 170 /** draw the gradient from the bottom-left to the top-right */ 174 /** draw the gradient from the top-left to the bottom-right */ 203 * top-left, top-right, bottom-right, bottom-left. This property 537 fill+stroke. Otherwise we can just draw the stroke (if any) on top 559 canvas.saveLayer(mRect.left - rad, mRect.top [all...] |
H A D | DrawableContainer.java | 104 result = (r.left | r.top | r.bottom | r.right) != 0; 292 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 294 mHotspotBounds = new Rect(left, top, right, bottom); 296 mHotspotBounds.set(left, top, right, bottom); 300 mCurrDrawable.setHotspotBounds(left, top, right, bottom); 520 d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, 949 if (t.top > r.top) r.top = t.top; [all...] |
H A D | Drawable.java | 110 * drawables on top of each other. 154 public void setBounds(int left, int top, int right, int bottom) { argument 161 if (oldBounds.left != left || oldBounds.top != top || 167 mBounds.set(left, top, right, bottom); 177 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 616 * @param top position in pixels of the top bound 621 public void setHotspotBounds(int left, int top, int right, int bottom) {} argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | RecentTasks.java | 206 TaskRecord top = task; 208 while (top.mNextAffiliate != null && topIndex > 0) { 209 top = top.mNextAffiliate; 215 boolean sane = top.mAffiliatedTaskId == task.mAffiliatedTaskId; 217 TaskRecord prev = top; 222 if (cur == top) { 290 // to the top. 318 // Another quick case: check if the top-most recent task is the same. 320 if (DEBUG_RECENTS) Slog.d(TAG_RECENTS, "addRecent: already at top [all...] |
H A D | ActivityStackSupervisor.java | 233 /** If this is the same as mFocusedStack then the activity on the top of the focused stack has 303 /** The chain of tasks in lockTask mode. The current frontmost task is at the top, and tasks 453 // The home stack should either be at the top or bottom of the stack list. 480 /** Returns true if the focus activity was adjusted to the home stack top activity. */ 489 final ActivityRecord top = getHomeActivity(); 490 if (top == null) { 493 mService.setFocusedActivityLocked(top, reason); 1910 // the top running activity. 1921 // current top activity as the caller. 2132 // sure we have correctly resumed the top activit [all...] |
/frameworks/rs/api/ |
H A D | rs_matrix.spec | 55 arg: float4* top, "Top plane." 74 top->x = viewProj->m[3] - viewProj->m[1]; 75 top->y = viewProj->m[7] - viewProj->m[5]; 76 top->z = viewProj->m[11] - viewProj->m[9]; 77 top->w = viewProj->m[15] - viewProj->m[13]; 98 len = length(top->xyz); 99 *top /= len; 115 arg: float4* top, "Top plane." 131 distToCenter = dot(top->xyz, sphere->xyz) + top [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppTransition.java | 89 /** A window in a new activity is being opened on top of an existing one in the same task. */ 91 /** The window in the top-most activity is being closed to reveal the 94 /** A window in a new task is being opened on top of an existing one 97 /** A window in the top-most activity is being closed to reveal the 100 /** A window in an existing task is being displayed on top of an existing one 105 /** A window in a new activity that doesn't have a wallpaper is being opened on top of one that 111 /** A window in a new activity is being opened on top of an existing one, and both are on top 114 /** The window in the top-most activity is being closed to reveal the previous activity, and 115 * both are on top o [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 183 public void setBounds(int left, int top, int right, int bottom) { argument 185 mDrawTop = top + (bottom-top - mHeight) / 2; 411 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned 461 float top = (inHeight - outHeight) * verticalAlignment; 462 float bottom = top + outHeight; 463 cropRectF = new RectF(left, top, right, bottom); 509 roundedTrueCrop.top, roundedTrueCrop.width(), 547 cropRect.top = 0; 556 cropRect.top [all...] |
H A D | MediaRouteButton.java | 227 // Show along the top; follow action buttons 377 final int top = getPaddingTop(); 383 final int drawTop = top + (bottom - top - drawHeight) / 2;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SlidingTab.java | 336 * @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 D | GlopBuilder.cpp | 55 quadVertex[0] = {0, 0, uvs.left, uvs.top}; 56 quadVertex[1] = {1, 0, uvs.right, uvs.top}; 482 mOutGlop->transform.modelView.loadTranslate(destination.left, destination.top, 0.0f); 493 float top = destination.top; local 502 top = (int) floorf(top + translateY + 0.5f) - translateY; 506 mOutGlop->transform.modelView.loadTranslate(left, top, 0.0f); 532 offsetY = (int) floorf(offsetY + translateY + source.top + 0.5f) - translateY - source.top; [all...] |
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 655 * is relative to the overlay view that sits on top of this surface. 658 * @param top Top position in pixels, relative to the overlay view. 663 public void layoutSurface(final int left, final int top, final int right, argument 665 if (left > right || top > bottom) { 672 if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" 675 mSessionCallback.onLayoutSurface(left, top, right, bottom); 1181 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); 1211 frame.right - frame.left, frame.bottom - frame.top, 1212 frame.left, frame.top, type, flags, PixelFormat.TRANSPARENT); 1231 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 594 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/native/libs/gui/ |
H A D | Surface.cpp | 350 // convention that the rest of the system uses (top-left corner) by 351 // subtracting all top/bottom coordinates from the buffer height. 373 int top = height - rect.bottom; // Flip from OpenGL convention local 374 int bottom = height - rect.top; // Flip from OpenGL convention 378 Rect flippedRect{top, width - right, bottom, width - left}; 385 width - left, height - top}; 392 height - top, right}; 397 Rect flippedRect{left, top, right, bottom}; 790 realRect.left, realRect.top, realRect.right, realRect.bottom); 923 // We intentionally flip top an [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 306 centerY = Math.min(Math.max(mTranslateRect.top + heightBuffer, 401 float maxY = mTranslateRect.top * relativeDistance; 665 matrix.postTranslate(-mCropRect.left, -mCropRect.top); 751 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 752 super.onLayout(changed, left, top, right, bottom); 995 float maxTop = mAllowCrop ? mCropRect.top: 0.0f; 997 float t = mTranslateRect.top; 1005 Math.min(maxBottom - mTranslateRect.top, ty)); 1059 float maxTop = mAllowCrop ? mCropRect.top : 0.0f; 1061 float t = mTranslateRect.top; [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 146 // 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/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 298 final int top = child.getTop() - lp.topMargin - mDividerHeight; 299 drawHorizontalDivider(canvas, top); 358 void drawHorizontalDivider(Canvas canvas, int top) { argument 359 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top, 360 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight); 1417 * @param top 1421 void layoutVertical(int left, int top, int right, int bottom) { argument 1442 childTop = getPaddingTop() + bottom - top - mTotalLength; 1447 childTop = getPaddingTop() + (bottom - top - mTotalLength) / 2; 1512 * @param top 1516 layoutHorizontal(int left, int top, int right, int bottom) argument 1640 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | View.java | 326 * expressed as a pair of <em>left</em> and <em>top</em> coordinates, and 335 * top, or Y, coordinate of the rectangle representing the view. These methods 376 * is expressed in pixels for the left, top, right and bottom parts of the view. 397 * pass is implemented in {@link #measure(int, int)} and is a top-down traversal 401 * {@link #layout(int,int,int,int)} and is also top-down. During 2489 * Scroll indicator direction for the top edge of the view. 2739 * if the user swipes from the top of the screen. 2741 * system gestures, such as swiping from the top of the screen. These transient system bars 3191 * The distance in pixels from the top edge of this view's parent 3192 * to the top edg 10797 onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) argument 11556 setTop(int top) argument 13120 postInvalidate(int left, int top, int right, int bottom) argument 13164 postInvalidateDelayed(long delayMilliseconds, int left, int top, int right, int bottom) argument 13215 postInvalidateOnAnimation(int left, int top, int right, int bottom) argument 16589 setOpticalFrame(int left, int top, int right, int bottom) argument 16667 onLayout(boolean changed, int left, int top, int right, int bottom) argument 16683 setFrame(int left, int top, int right, int bottom) argument 16749 setLeftTopRightBottom(int left, int top, int right, int bottom) argument 17706 setPadding(int left, int top, int right, int bottom) argument 17724 internalSetPadding(int left, int top, int right, int bottom) argument 17799 setPaddingRelative(int start, int top, int end, int bottom) argument 21516 int top; field in class:View.AttachInfo.InvalidateInfo [all...] |