/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/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 153 void setExpandedBounds(int left, int top, int right, int bottom) { 154 if (!rectEquals(mExpandedBounds, left, top, right, bottom)) { 155 mExpandedBounds.set(left, top, right, bottom); 161 void setCollapsedBounds(int left, int top, int right, int bottom) { 162 if (!rectEquals(mCollapsedBounds, left, top, right, bottom)) { 163 mCollapsedBounds.set(left, top, right, bottom); 370 mCollapsedDrawY = mCollapsedBounds.top - mTextPaint.ascent(); 402 mExpandedDrawY = mExpandedBounds.top - mTextPaint.ascent(); 433 mCurrentBounds.top = lerp(mExpandedDrawY, mCollapsedDrawY, 662 private static boolean rectEquals(Rect r, int left, int top, in argument [all...] |
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | VectorDrawableCommon.java | 96 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 98 DrawableCompat.setHotspotBounds(mDelegateDrawable, left, top, right, bottom);
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
H A D | DrawableCompat.java | 47 void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom); argument 84 public void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) { argument 218 public void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) { argument 219 DrawableCompatLollipop.setHotspotBounds(drawable, left, top, right, bottom); 369 public static void setHotspotBounds(@NonNull Drawable drawable, int left, int top, argument 371 IMPL.setHotspotBounds(drawable, left, top, right, bottom);
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 37 * android:layout_gravity to TOP or BOTTOM to pin it to the top or bottom 155 public void setPadding(int left, int top, int right, int bottom) { argument 159 super.setPadding(left, top, right, bottom); 267 final int top = bottom - mIndicatorHeight; 270 canvas.drawRect(left, top, right, bottom, mTabPaint); 285 int top = bottom - mIndicatorHeight; 287 r.set(left, top, right, bottom); 294 r.union(left, top, right, bottom);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 104 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 233 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 270 void setBounds(int left, int top, int right, int bottom) { argument 272 mBounds.top = top;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListViewCompat.java | 90 mSelectionTopPadding = padding.top; 223 selectorRect.top -= mSelectionTopPadding; 395 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 397 super.setHotspotBounds(left, top, right, bottom);
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardView.java | 45 * sides and <code>maxCardElevation * 1.5 + (1 - cos45) * cornerRadius</code> on top and bottom. 125 public void setPadding(int left, int top, int right, int bottom) { argument 129 public void setPaddingRelative(int start, int top, int end, int bottom) { argument 173 * @param top The top padding in pixels 182 public void setContentPadding(int left, int top, int right, int bottom) { argument 183 mContentPadding.set(left, top, right, bottom); 242 mContentPadding.top = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingTop, 319 * Returns the inner padding after the Card's top edge 321 * @return the inner padding after the Card's top edg [all...] |
/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); 232 h += drawRun(c, segstart, j, runIsRtl, x+h, top, y, bottom, 350 * @param top the top of the line 358 int limit, boolean runIsRtl, float x, int top, int y, int bottom, 363 handleRun(start, limit, limit, runIsRtl, c, x + w, top, 357 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument 695 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, int offset) argument 786 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 851 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/ |
H A D | DisplayListCanvas.java | 243 public void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, argument 246 nDrawRoundRect(mNativeCanvasWrapper, left.getNativeContainer(), top.getNativeContainer(),
|
H A D | ViewStructure.java | 42 * @param top The view's top position, in pixels relative to its parent's top edge. 50 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, argument
|
/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 | 336 * @param top y coordinate of the top edge of the character in local coordinates. 345 public Builder addCharacterBounds(final int index, final float left, final float top, argument 353 mCharacterBoundsArrayBuilder.append(index, left, top, right, bottom, flags); 494 * Returns the vertical top position of the insertion marker, in the local coordinates that
|
/frameworks/base/core/java/android/widget/ |
H A D | CheckedTextView.java | 336 protected void internalSetPadding(int left, int top, int right, int bottom) { argument 337 super.internalSetPadding(left, top, right, bottom); 400 final int top = y; 401 final int bottom = top + height; 411 checkMarkDrawable.setBounds(mScrollX + left, top, mScrollX + right, bottom); 416 background.setHotspotBounds(mScrollX + left, top, mScrollX + right, bottom);
|
H A D | DayPickerView.java | 213 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 225 final int height = bottom - top;
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | BackdropFrameRenderer.java | 331 final int top = mLastYOffset + newBounds.top; 335 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height); 343 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight); 349 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); 354 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets); 362 private void drawColorViews(int left, int top, int width, int height, argument 368 mSystemBarBackgroundNode.setLeftTopRightBottom(left, top, left + width, top [all...] |
/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/java/com/android/internal/widget/ |
H A D | DecorCaptionView.java | 60 * caption will be the second. This way the caption will always be drawn on top of the content when 67 * down action is performed on top close or maximize buttons; the reason for that is we want these 299 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 321 // This assumes that the caption bar is at the top.
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfEditor.cpp | 49 jfieldID top; member in struct:android::__anon848 211 // is the top-left. So, translate the PDF coordinates to ours. 275 float top; local 280 ? FPDFPage_GetMediaBox(page, &left, &top, &right, &bottom) 281 : FPDFPage_GetCropBox(page, &left, &top, &right, &bottom); 290 env->SetIntField(outBox, gRectClassInfo.top, (int) top); 323 const int top = env->GetIntField(box, gRectClassInfo.top); local 328 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::__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/ |
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 412 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument 420 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 206 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { argument 207 mSnapshot->clip(Rect(left, top, right, bottom), op); 232 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); 262 bool CanvasState::calculateQuickRejectForScissor(float left, float top, argument 266 if (mSnapshot->isIgnored() || bottom <= top || right <= left) { 270 Rect r(left, top, right, bottom); 292 bool CanvasState::quickRejectConservative(float left, float top, argument 294 if (mSnapshot->isIgnored() || bottom <= top || right <= left) { 298 Rect r(left, top, right, bottom);
|
H A D | ClipArea.cpp | 37 handlePoint(transformedBounds, transform, r.left, r.top); 38 handlePoint(transformedBounds, transform, r.right, r.top); 155 rectPath.addRect(bounds.left, bounds.top, bounds.right, bounds.bottom); 211 void ClipArea::setClip(float left, float top, float right, float bottom) { argument 214 mClipRect.set(left, top, right, bottom);
|
H A D | GlopBuilder.cpp | 55 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 D | LayerRenderer.cpp | 47 float left, float top, float right, float bottom, bool opaque) { 55 Rect dirty(left, top, right, bottom); 56 if (dirty.isEmpty() || (dirty.left <= 0 && dirty.top <= 0 && 62 android::Rect r(dirty.left, dirty.top, dirty.right, dirty.bottom); 68 dirty.left, dirty.top, dirty.right, dirty.bottom, opaque); 71 void LayerRenderer::clear(float left, float top, float right, float bottom, bool opaque) { argument 79 OpenGLRenderer::clear(left, top, right, bottom, opaque); 172 const float v1 = (height - r->top) * texY; 176 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 177 TextureVertex::set(mesh++, r->right, r->top, u 46 prepareDirty(int viewportWidth, int viewportHeight, float left, float top, float right, float bottom, bool opaque) argument [all...] |