Searched refs:top (Results 126 - 150 of 559) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/widget/
H A DFastScroller.java151 /** The number of headers at the top of the view. */
486 mPreviewImage.setPadding(padding.left, padding.top, padding.right, padding.bottom);
571 bounds.top -= mPreviewImage.getPaddingTop();
588 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom);
604 margins.top = mPreviewImage.getPaddingTop();
636 marginTop = margins.top;
669 final int top = marginTop;
670 final int bottom = top + view.getMeasuredHeight();
671 out.set(left, top, right, bottom);
684 marginTop = margins.top;
[all...]
H A DCheckedTextView.java321 protected void internalSetPadding(int left, int top, int right, int bottom) { argument
322 super.internalSetPadding(left, top, right, bottom);
385 final int top = y;
386 final int bottom = top + height;
396 checkMarkDrawable.setBounds(mScrollX + left, top, mScrollX + right, bottom);
401 background.setHotspotBounds(mScrollX + left, top, mScrollX + right, bottom);
H A DScrollView.java55 * array of top-level items that the user can scroll through.
886 * @param topFocus look for a candidate is the one at the top of the bounds
889 * @param top the top offset of the bounds in which a focusable must be
896 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument
902 * A fully contained focusable is one where its top is below the bound's
903 * top, and its bottom is above the bound's bottom. A partially
916 if (top < viewBottom && viewTop < bottom) {
922 final boolean viewIsFullyContained = (top < viewTop) &&
981 mTempRect.top
1043 scrollAndFocus(int direction, int top, int bottom) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java200 int top = getPaddingTop() + 2;
204 canvas.drawRect(x-irqW, top, x, bottom, mIrqPaint);
208 canvas.drawRect(x-systemW, top, x, bottom, mSystemPaint);
212 canvas.drawRect(x-userW, top, x, bottom, mUserPaint);
232 top += mFH;
239 canvas.drawRect(x-systemW, top, x, bottom, mSystemPaint);
243 canvas.drawRect(x-userW, top, x, bottom, mUserPaint);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDayPickerView.java59 public static int LIST_TOP_OFFSET = -1; // so that the top line will be
166 * the time is at the top of the view. If the new time is already in view
191 int top = 0;
198 top = child.getTop();
200 Log.d(TAG, "child at " + (i - 1) + " has top " + top);
202 } while (top < 0);
268 * Sets the month displayed at the top of this view based on time. Override
325 final int top = child.getTop();
328 if (scroll && top < LIST_TOP_OFFSE
[all...]
/frameworks/base/libs/hwui/
H A DMatrix.cpp375 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...]
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java192 return top(widget, buffer);
210 return top(widget, buffer);
228 return top(widget, buffer);
317 * Performs a top movement action.
318 * Moves the cursor or scrolls to the top of the buffer.
324 protected boolean top(TextView widget, Spannable buffer) { method in class:BaseMovementMethod
376 * Moves the cursor or scrolls to the start of the line or to the top of the
390 * Moves the cursor or scrolls to the start of the line or to the top of the
510 final int top = widget.getScrollY();
511 int topLine = layout.getLineForVertical(top);
[all...]
H A DScrollingMovementMethod.java59 protected boolean top(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
80 return top(widget, buffer);
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp441 layer->sourceCrop.top = testRandMod(gBuf->getHeight());
444 layer->sourceCrop.bottom = layer->sourceCrop.top
445 + testRandMod(gBuf->getHeight() - layer->sourceCrop.top) + 1;
447 layer->displayFrame.top = testRandMod(height);
450 layer->displayFrame.bottom = layer->displayFrame.top
451 + testRandMod(height - layer->displayFrame.top) + 1;
464 - layer->sourceCrop.top;
466 && ((layer->displayFrame.top + sourceHeight) <= height)) {
469 layer->displayFrame.bottom = layer->displayFrame.top
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java151 final int top = (textureHeight-height) / 2;
159 canvas.drawRect(left, top, left+width, top+height, debugPaint);
163 icon.setBounds(left, top, left+width, top+height);
H A DPhoneWindowManager.java476 * belonging to another app on top of this the keyguard shows. If there is a fullscreen
1490 public void setDisplayOverscan(Display display, int left, int top, int right, int bottom) { argument
1493 mOverscanTop = top;
1882 // some panels (e.g. search) need to show on top of the navigation bar
1973 // There is a separate status bar at the top of the display. We don't count that as part
2059 // focus, so we want to get the IME window up on top of us right away.
3234 pf.top = df.top = of.top = vf.top
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java81 /** A window in a new activity is being opened on top of an existing one in the same task. */
83 /** The window in the top-most activity is being closed to reveal the
86 /** A window in a new task is being opened on top of an existing one
89 /** A window in the top-most activity is being closed to reveal the
92 /** A window in an existing task is being displayed on top of an existing one
97 /** A window in a new activity that doesn't have a wallpaper is being opened on top of one that
103 /** A window in a new activity is being opened on top of an existing one, and both are on top
106 /** The window in the top-most activity is being closed to reveal the previous activity, and
107 * both are on top o
[all...]
H A DWindowStateAnimator.java814 float top = w.mFrame.top + w.mYOffset;
818 height += attrs.surfaceInsets.top + attrs.surfaceInsets.bottom;
820 top -= attrs.surfaceInsets.top;
826 + " x=" + left + " y=" + top
849 && attrs.surfaceInsets.top == 0
893 + ", set left=" + w.mFrame.left + " top=" + w.mFrame.top
900 + w.mFrame.left + "," + w.mFrame.top
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java103 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/cardview/eclair-mr1/android/support/v7/widget/
H A DCardViewEclairMr1.java47 canvas.translate(bounds.left + cornerRadius, bounds.top + cornerRadius);
59 //draw top and bottom pieces
60 canvas.drawRect(bounds.left + cornerRadius - 1f, bounds.top,
61 bounds.right - cornerRadius + 1f, bounds.top + cornerRadius,
68 canvas.drawRect(bounds.left, bounds.top + Math.max(0, cornerRadius - 1f),
96 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top,
/frameworks/base/core/java/android/text/
H A DLayout.java227 // The baseline is the top of the following line minus the current line's descent.
454 dtop = sTempRect.top;
458 final int top = Math.max(dtop, 0);
461 if (top >= bottom) return TextUtils.packRangeInLong(0, -1);
462 return TextUtils.packRangeInLong(getLineForVertical(top), getLineForVertical(bottom));
609 * If bounds is not null, return the top, left, right, bottom extents
618 bounds.top = getLineTop(line);
626 * Return the vertical position of the top of the specified line
670 * top line of the Layout.
1309 int top
1379 addSelection(int line, int start, int end, int top, int bottom, Path dest) argument
[all...]
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);
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...]
H A DStaticLayout.java288 int fmTop = fm.top;
387 int above, below, top, bottom;
394 top = okTop;
401 top = fitTop;
414 top = fmTop;
424 above, below, top, bottom,
461 fitTop = fm.top;
497 fm.top, fm.bottom,
509 int above, int below, int top, int bottom, int v,
540 fm.top
508 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, boolean hasTabOrEmoji, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DScaleFrameLayout.java62 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
83 parentBottom = (int)(pivotY + (bottom - top - pivotY) / mLayoutScaleY + 0.5f)
87 parentBottom = bottom - top - getPaddingBottom();
/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/jni/
H A Dandroid_view_GraphicBuffer.cpp72 jfieldID top; member in struct:android::__anon852
172 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
206 clipRect.set(rect.left, rect.top, rect.right, rect.bottom);
212 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom));
317 GET_FIELD_ID(gRectClassInfo.top, clazz, "top", "I");
/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.java422 if (fm.bottom - fm.top < size) {
423 fm.top = fm.bottom - size;
439 sProportion = (r.top) / p.ascent();
442 int need = (int) Math.ceil(-fm.top * sProportion);
449 fm.top = fm.bottom - size;
457 fm.top = fm.ascent = -need;
458 fm.bottom = fm.descent = fm.top + size;
464 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/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);

Completed in 970 milliseconds

1234567891011>>