Searched refs:top (Results 176 - 200 of 726) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/text/
H A DTextLine.java189 * @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/libs/hwui/
H A DCanvasState.h123 bool quickRejectConservative(float left, float top, float right, float bottom) const;
125 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
141 * Returns true if drawing in the rectangle (left, top, right, bottom)
145 bool calculateQuickRejectForScissor(float left, float top, float right, float bottom,
/frameworks/base/native/android/
H A Dchoreographer.cpp135 if (mCallbacks.top().dueTime <= now) {
153 while (!mCallbacks.empty() && mCallbacks.top().dueTime < now) {
154 callbacks.push_back(mCallbacks.top());
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DTileLayout.java123 final int top = getRowTop(row);
131 record.tileView.layout(left, top, right, top + record.tileView.getMeasuredHeight());
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerHandleView.java138 int top = getHeight() / 2 - mCurrentHeight / 2;
140 canvas.drawRoundRect(left, top, left + mCurrentWidth, top + mCurrentHeight,
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
H A DDividerItemDecoration.java111 final int top = (int) ViewCompat.getY(view) + view.getHeight();
112 mDivider.setBounds(0, top, width, top + dividerHeight);
/frameworks/support/design/src/android/support/design/internal/
H A DScrimInsetsFrameLayout.java92 mTempRect.set(0, 0, width, mInsets.top);
102 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom);
107 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom);
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingTextHelper.java153 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/base/core/java/android/database/sqlite/
H A DSQLiteSession.java409 final Transaction top = mTransactionStack;
410 boolean successful = (top.mMarkedSuccessful || yielding) && !top.mChildFailed;
413 final SQLiteTransactionListener listener = top.mListener;
427 mTransactionStack = top.mParent;
428 recycleTransaction(top);
/frameworks/base/core/java/android/widget/
H A DCheckedTextView.java336 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 DScrollView.java58 * array of top-level items that the user can scroll through.
913 * @param topFocus look for a candidate is the one at the top of the bounds
916 * @param top the top offset of the bounds in which a focusable must be
923 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument
929 * A fully contained focusable is one where its top is below the bound's
930 * top, and its bottom is above the bound's bottom. A partially
943 if (top < viewBottom && viewTop < bottom) {
949 final boolean viewIsFullyContained = (top < viewTop) &&
1008 mTempRect.top
1070 scrollAndFocus(int direction, int top, int bottom) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDividerSnapAlgorithm.java32 * here are to be interpreted as the left/top edge of the divider rectangle.
42 * 3 snap targets: left/top has 16:9 ratio (for videos), 1:1, and right/bottom has 16:9 ratio
124 int statusBarSize = mInsets.top;
138 * @param position the top/left position of the divider
212 return mInsets.top;
269 maybeAddTarget(topPosition, topPosition - mInsets.top);
276 int start = isHorizontalDivision ? mInsets.top : mInsets.left;
287 int start = isHorizontalDivision ? mInsets.top : mInsets.left;
291 int startOther = isHorizontalDivision ? mInsets.left : mInsets.top;
372 /** If the divider reaches this value, the left/top tas
[all...]
/frameworks/native/libs/gui/tests/
H A DGLTest.cpp223 if (abs(r1.top - r2.top) > tolerance) {
227 msg += String8::format("top(%d isn't %d)", r1.top, r2.top);
243 r1.left, r1.top, r1.right, r1.bottom,
244 r2.left, r2.top, r2.right, r2.bottom);
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java426 if (fm.bottom - fm.top < size) {
427 fm.top = fm.bottom - size;
443 sProportion = (r.top) / p.ascent();
446 int need = (int) Math.ceil(-fm.top * sProportion);
453 fm.top = fm.bottom - size;
461 fm.top = fm.ascent = -need;
462 fm.bottom = fm.descent = fm.top + size;
468 fm.top = fm.ascent = -size;
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java38 * left, top = {@code (0, 0)} and right, bottom = {@code (width, height)}
49 return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight());
54 * each corner (left, top, right, bottom) rounded towards the nearest integer bounding box.
56 * <p>In particular (left, top) is floored, and (right, bottom) is ceiled.</p>
75 * a new rectangle, with each corner (left, top, right, bottom) rounded towards the nearest
176 destination.top = source.top;
/frameworks/base/core/java/android/text/method/
H A DScrollingMovementMethod.java59 protected boolean top(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
80 return top(widget, buffer);
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp60 static jboolean Region_setRect(JNIEnv* env, jobject, jlong dstHandle, jint left, jint top, jint right, jint bottom) { argument
62 bool result = dst->setRect(left, top, right, bottom);
91 static jboolean Region_op0(JNIEnv* env, jobject, jlong dstHandle, jint left, jint top, jint right, jint bottom, jint op) { argument
95 ir.set(left, top, right, bottom);
139 static jboolean Region_quickContains(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) { argument
140 bool result = GetSkRegion(env, region)->quickContains(left, top, right, bottom);
144 static jboolean Region_quickRejectIIII(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) { argument
146 ir.set(left, top, right, bottom);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp175 jfloat left, jfloat top, jfloat right, jfloat bottom) {
176 bool result = get_canvas(canvasHandle)->quickRejectRect(left, top, right, bottom);
263 static void drawRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
266 get_canvas(canvasHandle)->drawRect(left, top, right, bottom, *paint);
276 static void drawRoundRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
279 get_canvas(canvasHandle)->drawRoundRect(left, top, right, bottom, rx, ry, *paint);
288 static void drawOval(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
291 get_canvas(canvasHandle)->drawOval(left, top, right, bottom, *paint);
294 static void drawArc(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
298 get_canvas(canvasHandle)->drawArc(left, top, righ
174 quickRejectRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, jfloat right, jfloat bottom) argument
339 drawNinePatch(JNIEnv* env, jobject, jlong canvasHandle, jlong bitmapHandle, jlong chunkHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintHandle, jint dstDensity, jint srcDensity) argument
372 drawBitmap(JNIEnv* env, jobject jcanvas, jlong canvasHandle, jobject jbitmap, jfloat left, jfloat top, jlong paintHandle, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument
[all...]
/frameworks/base/media/java/android/media/tv/
H A DITvInputClient.aidl42 void onLayoutSurface(int left, int top, int right, int bottom, int seq);
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskPositioner.java369 if (startY < mTmpRect.top) {
397 int top = mWindowOriginalBounds.top;
404 top = Math.min(top + deltaY, bottom - mMinVisibleHeight);
410 bottom = Math.max(top + mMinVisibleHeight, bottom + deltaY);
412 mWindowDragBounds.set(left, top, right, bottom);
434 y = Math.min(Math.max(y, mTmpRect.top), mTmpRect.bottom);
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp194 rect.top < 0 || rect.bottom > height) {
196 rect.left, rect.top, rect.right, rect.bottom,
215 rect.top < 0 || rect.bottom > height) {
217 rect.left, rect.top, rect.right, rect.bottom,
242 rect.top < 0 || rect.bottom > height) {
244 rect.left, rect.top, rect.right, rect.bottom,
265 rect.top < 0 || rect.bottom > height) {
267 rect.left, rect.top, rect.right, rect.bottom,
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
H A DStickyHeaderRecyclerView.java32 * to be drawn when the sticky element hits the top of the view.
38 * the system decorations at the top of the screen.
95 // The view to draw when sticking to the top
102 // RecyclerView does not translate the canvas, so we can simply draw at the top
105 canvas.translate(0, mStickyRect.top);
122 0, /* top */
133 ev.offsetLocation(-mStickyRect.left, -mStickyRect.top);
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java112 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
113 super.onLayout(changed, left, top, right, bottom);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DNonOverlappingLinearLayoutWithForeground.java108 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
109 super.onLayout(changed, left, top, right, bottom);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DDrawableWrapperLollipop.java48 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
49 mDrawable.setHotspotBounds(left, top, right, bottom);

Completed in 2638 milliseconds

1234567891011>>