/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 377 // Look for top tick 463 // find top and bottom extent of nine patch content on center column 480 // diagonally from the top left corner towards the center 507 png_bytepp rows, int left, int top, int right, int bottom) 509 png_bytep color = rows[top] + left*4; 511 if (left > right || top > bottom) { 515 while (top <= bottom) { 517 png_bytep p = rows[top]+i*4; 527 top++; 557 int left, right, top, botto local 506 get_color( png_bytepp rows, int left, int top, int right, int bottom) argument 589 int top; local [all...] |
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 55 EGLint left, EGLint top, EGLint width, EGLint height); 254 : left(0), top(0), right(w), bottom(h) { } 256 : left(l), top(t), right(r), bottom(b) { } 259 top = max(top, r.top); 265 return (left>=right || top>=bottom); 269 what, left, top, right-left, bottom-top); 273 int32_t top; member in struct:android::egl_window_surface_v2_t::Rect 294 const int32_t top = max(lhs.top, rhs.top); local 2154 eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height) argument [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | TimeFormatter.java | 301 int top = bot - (len % DAYSPERWEEK); 302 if (top < -3) { 303 top += DAYSPERWEEK; 305 top += len; 306 if (yday >= top) {
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardWidgetFrame.java | 343 public void setMaxChallengeTop(int top) { argument 344 boolean dirty = mMaxChallengeTop != top; 345 mMaxChallengeTop = top; 346 mSmallWidgetHeight = top - getPaddingTop(); 347 mSmallFrameHeight = top + getPaddingBottom();
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskStack.java | 85 EventLog.writeEvent(EventLogTags.WM_STACK_CREATED, stackId, mBounds.left, mBounds.top, 98 final boolean underStatusBar = mBounds.top == 0; 170 * @param toTop Whether to add it to the top or bottom. 366 int top = mTasks.size(); 367 for (int taskNdx = 0; taskNdx < top; ++taskNdx) { 372 --top;
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 206 position[i*6 + 0].y = height - r->top; 212 position[i*6 + 3].y = height - r->top; 216 position[i*6 + 5].y = height - r->top; 232 uint32_t left, uint32_t bottom, uint32_t right, uint32_t top) { 233 glScissor(left, bottom, right, top); 231 setScissor( uint32_t left, uint32_t bottom, uint32_t right, uint32_t top) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | TextView.java | 1782 * Returns the top padding of the view, plus space for the top 1864 * Returns the extended top padding of the view, including both the 1865 * top Drawable if any and any extra space to keep more than maxLines 1881 int top = getCompoundPaddingTop(); 1883 int viewht = getHeight() - top - bottom; 1887 return top; 1892 return top; 1894 return top + viewht - layoutht; 1896 return top 2001 setCompoundDrawables(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2142 setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom) argument 2164 setCompoundDrawablesWithIntrinsicBounds(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2196 setCompoundDrawablesRelative(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 2333 setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end, int bottom) argument 2356 setCompoundDrawablesRelativeWithIntrinsicBounds(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 2449 setPadding(int left, int top, int right, int bottom) argument 2463 setPaddingRelative(int start, int top, int end, int bottom) argument 6877 onLayout(boolean changed, int left, int top, int right, int bottom) argument [all...] |
H A D | AbsSeekBar.java | 460 final int top, bottom; 463 top = oldBounds.top; 466 top = offset; 478 background.setHotspotBounds(left + offsetX, top + offsetY, 483 thumb.setBounds(left, top, right, bottom);
|
H A D | FrameLayout.java | 51 * <p>Child views are drawn in a stack, with the most recently added child on top. 190 mForegroundPaddingTop = padding.top; 259 * Supply a Drawable that is to be rendered on top of all of the child 264 * @param d The Drawable to be drawn on top of the children. 293 mForegroundPaddingTop = padding.top; 308 * foreground drawable, if non-null, is always drawn on top of the children. 513 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 514 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 517 void layoutChildren(int left, int top, int right, int bottom, argument 525 final int parentBottom = bottom - top [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/services/core/java/com/android/server/am/ |
H A D | ActivityStackSupervisor.java | 192 /** If this is the same as mFocusedStack then the activity on the top of the focused stack has 388 // top of all visible stacks. 1679 // the top running activity. 1690 // current top activity as the caller. 1893 // sure we have correctly resumed the top activity. 1922 ActivityRecord top = 1924 if (top != null) { 1925 if (top.frontOfTask) { 1927 // intents for the top activity, so make sure 1930 top [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SearchPanelCircleView.java | 307 float translationY = (rect.top + rect.bottom) / 2.0f - mLogo.getHeight() / 2.0f; 330 int left, top; 334 top = (int) ((getHeight() - circleSize) / 2); 337 top = (int) (getHeight() - circleSize / 2 - mBaseMargin - offset); 339 rect.set(left, top, (int) (left + circleSize), (int) (top + circleSize)); 479 float circleCenterY = mStaticRect.top * (1.0f - yInterpolation)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | RecentsView.java | 46 * This view is the the top level layout that contains TaskStacks (which are laid out according 266 // Always bring the search bar to the top 282 mConfig.getSearchBarBounds(width, height, mConfig.systemInsets.top, searchBarSpaceBounds); 289 mConfig.getTaskStackBounds(width, height, mConfig.systemInsets.top, 299 // Set the insets to be the top/left inset + search bounds 312 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 317 mConfig.systemInsets.top, searchBarSpaceBounds); 318 mSearchBar.layout(searchBarSpaceBounds.left, searchBarSpaceBounds.top, 328 child.layout(left, top, left + child.getMeasuredWidth(), 329 top [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewCompat.java | 270 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom); argument 296 public void setPaddingRelative(View view, int start, int top, int end, int bottom); argument 389 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) { argument 390 view.invalidate(left, top, right, bottom); 499 public void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 500 view.setPadding(start, top, end, bottom); 1018 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) { argument 1019 ViewCompatJB.postInvalidateOnAnimation(view, left, top, right, bottom); 1120 public void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 1121 ViewCompatJellybeanMr1.setPaddingRelative(view, start, top, en 1450 postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) argument 1902 setPaddingRelative(View view, int start, int top, int end, int bottom) argument [all...] |
/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); 658 int top [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
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, bottom, right); 296 mHotspotBounds.set(left, top, bottom, right); 300 mCurrDrawable.setHotspotBounds(left, top, right, bottom); 514 d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, 930 if (t.top > r.top) r.top = t.top; [all...] |
H A D | GradientDrawable.java | 158 /** draw the gradient from the top to the bottom */ 160 /** draw the gradient from the top-right to the bottom-left */ 164 /** draw the gradient from the bottom-right to the top-left */ 166 /** draw the gradient from the bottom to the top */ 168 /** draw the gradient from the bottom-left to the top-right */ 172 /** draw the gradient from the top-left to the bottom-right */ 201 * top-left, top-right, bottom-right, bottom-left. This property 533 fill+stroke. Otherwise we can just draw the stroke (if any) on top 555 canvas.saveLayer(mRect.left - rad, mRect.top [all...] |
H A D | Drawable.java | 108 * drawables on top of each other. 152 public void setBounds(int left, int top, int right, int bottom) { argument 159 if (oldBounds.left != left || oldBounds.top != top || 165 mBounds.set(left, top, right, bottom); 175 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 541 * @param top 545 public void setHotspotBounds(int left, int top, int right, int bottom) {} argument
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 558 * @param top Top position in pixels, relative to the overlay view. 565 public void layoutSurface(final int left, final int top, final int right, argument 567 if (left > right || top > bottom) { 574 if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" 577 mSessionCallback.onLayoutSurface(left, top, right, bottom); 976 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); 1003 frame.right - frame.left, frame.bottom - frame.top, 1004 frame.left, frame.top, type, flag, PixelFormat.TRANSPARENT); 1023 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); 1030 mWindowParams.y = 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/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; 565 nextLine += mCacheLines.top()->mMaxHeight; 567 nextLine += mCacheLines.top()->mMaxHeight; 569 nextLine += mCacheLines.top()->mMaxHeight; 571 nextLine += mCacheLines.top()->mMaxHeight; 573 nextLine += mCacheLines.top()->mMaxHeight; 575 nextLine += mCacheLines.top()->mMaxHeight; 790 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/app/ |
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/android/text/ |
H A D | BoringLayout.java | 186 spacing = metrics.bottom - metrics.top; 194 mDesc = spacing + metrics.top; 215 mTopPadding = metrics.top - metrics.ascent;
|