/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 78 int inside = spanner.next(current.top, current.bottom); 85 current.top < current.bottom) { 169 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; 173 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; 182 inline int next(TYPE& top, TYPE& bottom) argument 186 int inside = SpannerBase::next(top, bottom, more_lhs, more_rhs); 203 const int top = rects->top; local 204 while (rects != end && rects->top == top) { [all...] |
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 279 m[5] = 2.f / (top - bottom); 282 m[13]= -(top + bottom) / (top - bottom); 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 289 m[5] = 2.f * near / (top - bottom); 291 m[9] = (top + bottom) / (top - bottom); 299 float top = near * tan((float) (fovy * M_PI / 360.0f)); local 300 float bottom = -top; [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 36 * android:layout_gravity to TOP or BOTTOM to pin it to the top or bottom 153 public void setPadding(int left, int top, int right, int bottom) { argument 157 super.setPadding(left, top, right, bottom); 265 final int top = bottom - mIndicatorHeight; 268 canvas.drawRect(left, top, right, bottom, mTabPaint); 283 int top = bottom - mIndicatorHeight; 285 r.set(left, top, right, bottom); 292 r.union(left, top, right, bottom);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 103 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 232 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 269 void setBounds(int left, int top, int right, int bottom) { argument 271 mBounds.top = top;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ListViewCompat.java | 83 mSelectionTopPadding = padding.top; 203 selectorRect.top -= mSelectionTopPadding; 363 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 365 super.setHotspotBounds(left, top, right, bottom);
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardView.java | 39 * <code>maxCardElevation * 1.5 + (1 - cos45) * cornerRadius</code> on top and bottom. 110 public void setPadding(int left, int top, int right, int bottom) { argument 114 public void setPaddingRelative(int start, int top, int end, int bottom) { argument 160 * @param top The top padding in pixels 169 public void setContentPadding(int left, int top, int right, int bottom) { argument 170 mContentPadding.set(left, top, right, bottom); 214 mContentPadding.top = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingTop, 256 * Returns the inner padding after the Card's top edge 258 * @return the inner padding after the Card's top edg 300 setShadowPadding(int left, int top, int right, int bottom) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AMessage.cpp | 263 int32_t left, int32_t top, int32_t right, int32_t bottom) { 268 item->u.rectValue.mTop = top; 311 int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) const { 318 *top = item->u.rectValue.mTop; 261 setRect( const char *name, int32_t left, int32_t top, int32_t right, int32_t bottom) argument 309 findRect( const char *name, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) const argument
|
/frameworks/base/core/java/android/text/ |
H A D | TextLine.java | 189 * @param top the top of the line 193 void draw(Canvas c, float x, int top, int y, int bottom) { argument 196 drawRun(c, 0, mLen, false, x, top, y, bottom, false); 200 drawRun(c, 0, mLen, true, x, top, y, bottom, false); 237 h += drawRun(c, segstart, j, runIsRtl, x+h, top, y, bottom, 380 * @param top the top of the line 388 int limit, boolean runIsRtl, float x, int top, int y, int bottom, 393 handleRun(start, limit, limit, runIsRtl, c, x + w, top, 387 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument 724 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument 817 handleReplacement(ReplacementSpan replacement, TextPaint wp, int start, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument 882 handleRun(int start, int measureLimit, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | AnimationSet.java | 337 public void initializeInvalidateRegion(int left, int top, int right, int bottom) { argument 339 region.set(left, top, right, bottom);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CursorAnchorInfo.java | 325 * @param top y coordinate of the top edge of the character in local coordinates. 334 public Builder addCharacterBounds(final int index, final float left, final float top, argument 342 mCharacterBoundsArrayBuilder.append(index, left, top, right, bottom, flags); 470 * Returns the vertical top position of the insertion marker, in the local coordinates that
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuItemView.java | 124 // Let the view's click listener have top priority (the More button relies on this) 241 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 242 super.onLayout(changed, left, top, right, bottom); 286 mPositionIconAvailable.set(0, 0, getWidth(), tmpRect.top);
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfEditor.cpp | 44 jfieldID top; member in struct:android::__anon788 202 // is the top-left. So, translate the PDF coordinates to ours. 266 float top; local 271 ? FPDFPage_GetMediaBox(page, &left, &top, &right, &bottom) 272 : FPDFPage_GetCropBox(page, &left, &top, &right, &bottom); 281 env->SetIntField(outBox, gRectClassInfo.top, (int) top); 314 const int top = env->GetIntField(box, gRectClassInfo.top); local 319 FPDFPage_SetMediaBox(page, left, top, righ [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 71 jfieldID top; member in struct:android::__anon871 209 dirtyRect.top = env->GetIntField(dirtyRectObj, gRectClassInfo.top); 255 env->SetIntField(dirtyRectObj, gRectClassInfo.top, dirtyRect.top); 474 gRectClassInfo.top = env->GetFieldID(clazz, "top", "I");
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 76 public Region(int left, int top, int right, int bottom) { argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 102 public boolean set(int left, int top, int right, int bottom) { argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); 182 return quickContains(r.left, r.top, r.right, r.bottom); 191 public native boolean quickContains(int left, int top, int right, argument 200 return quickReject(r.left, r.top, r.right, r.bottom); 208 public native boolean quickReject(int left, int top, in argument 267 op(int left, int top, int right, int bottom, Op op) argument 411 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument 419 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimatedVectorDrawable.java | 225 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 226 mAnimatedVectorState.mVectorDrawable.setHotspotBounds(left, top, right, bottom);
|
/frameworks/base/libs/hwui/ |
H A D | LayerRenderer.cpp | 47 status_t LayerRenderer::prepareDirty(float left, float top, float right, float bottom, argument 56 Rect dirty(left, top, right, bottom); 57 if (dirty.isEmpty() || (dirty.left <= 0 && dirty.top <= 0 && 63 android::Rect r(dirty.left, dirty.top, dirty.right, dirty.bottom); 68 return OpenGLRenderer::prepareDirty(dirty.left, dirty.top, dirty.right, dirty.bottom, opaque); 71 status_t LayerRenderer::clear(float left, float top, float right, float bottom, bool opaque) { argument 82 return OpenGLRenderer::clear(left, top, right, bottom, opaque); 173 const float v1 = (height - r->top) * texY; 177 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 178 TextureVertex::set(mesh++, r->right, r->top, u [all...] |
H A D | Matrix.cpp | 375 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 379 data[kScaleY] = 2.0f / (top - bottom); 382 data[kTranslateY] = -(top + bottom) / (top - bottom); 425 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]); 434 if (r.top > r.bottom) { 435 float y = r.top; 436 r.top = r.bottom; 444 r.left, r.top, 445 r.right, r.top, [all...] |
H A D | PathCache.cpp | 88 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 90 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 94 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 99 top = bounds.fTop; 125 float left, float top, float offset, uint32_t width, uint32_t height) { 132 canvas.translate(-left + offset, -top + offset); 136 static PathTexture* createTexture(float left, float top, float offset, argument 140 texture->top = top; 260 float left, top, offse local 87 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 93 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 124 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 340 float left, top, offset; local [all...] |
H A D | PathCache.h | 76 float top; member in struct:android::uirenderer::PathTexture 225 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 227 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 265 * @param top 270 float left, float right, float bottom, float top, 275 if (bottom == top) { 276 throw new IllegalArgumentException("bottom == top"); 283 final float r_height = 1.0f / (top - bottom); 289 final float ty = -(top + bottom) * r_height; 319 * @param top 324 float left, float right, float bottom, float top, 329 if (top == bottom) { 330 throw new IllegalArgumentException("top 269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument 323 frustumM(float[] m, int offset, float left, float right, float bottom, float top, float near, float far) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | DessertCaseView.java | 520 protected void onLayout (boolean changed, int left, int top, int right, int bottom) { argument 522 final float h = bottom-top; 526 final int cy = (int) (top + h * 0.5f);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileView.java | 265 int top = 0; 266 top += mTileSpacingPx; 267 top += mTilePaddingTopPx; 269 layout(mIcon, iconLeft, top); 274 top = mIcon.getBottom(); 275 top += mTilePaddingBelowIconPx; 277 layout(mDivider, 0, top); 278 top = mDivider.getBottom(); 280 layout(labelView(), 0, top); 291 private static void layout(View child, int left, int top) { argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsHorizontalScrollView.java | 255 public void drawFadedEdges(Canvas canvas, int left, int right, int top, int bottom) { argument 259 left, right, top, bottom, getScrollX(), getScrollY(),
|
H A D | RecentsVerticalScrollView.java | 264 public void drawFadedEdges(Canvas canvas, int left, int right, int top, int bottom) { argument 268 left, right, top + getFadeTop(offsetRequired), bottom, getScrollX(), getScrollY(),
|
/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...] |