Searched defs:top (Results 51 - 75 of 343) sorted by last modified time

1234567891011>>

/frameworks/support/core-ui/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java101 // Default offset in dips from the top of the view to where the progress spinner should stop
232 * near the top of the refreshing content. This position is a consistent
243 * @param start The offset in pixels from the top of this view at which the
245 * @param end The offset in pixels from the top of this view at which the
259 * @return The offset in pixels from the top of this view at which the progress spinner should
267 * @return The offset in pixels from the top of this view at which the progress spinner should
275 * The refresh indicator resting position is always positioned near the top
283 * @param end The offset in pixels from the top of this view at which the
594 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DViewDragHelper.java74 * Edge flag indicating that the top edge should be affected.
166 * @param top New Y coordinate of the top edge of the view
170 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} argument
314 * @param top Attempted motion along the Y axis
315 * @param dy Proposed change in position for top
316 * @return The new clamped position for top
318 public int clampViewPositionVertical(View child, int top, int dy) { argument
527 * Animate the view <code>child</code> to the given (left, top) position.
537 * @param finalTop Final top positio
1412 dragTo(int left, int top, int dx, int dy) argument
[all...]
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
H A DTestUtils.java97 * Checks whether the specified rectangle matches the specified left / top / right /
101 int left, int top, int right, int bottom) {
103 Assert.assertEquals(failMessagePrefix + " top", rectangle.top, top);
100 assertRectangleBounds(String failMessagePrefix, @NonNull Rect rectangle, int left, int top, int right, int bottom) argument
/frameworks/support/design/base/android/support/design/widget/
H A DShadowViewDelegate.java23 void setShadowPadding(int left, int top, int right, int bottom); argument
/frameworks/support/design/src/android/support/design/internal/
H A DBaselineLayout.java84 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DBottomNavigationMenuView.java161 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
164 final int height = bottom - top;
H A DForegroundLinearLayout.java142 * Supply a Drawable that is to be rendered on top of all of the child
147 * @param drawable The Drawable to be drawn on top of the children.
179 * foreground drawable, if non-null, is always drawn on top of the children.
189 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
190 super.onLayout(changed, left, top, right, bottom);
/frameworks/support/design/src/android/support/design/widget/
H A DBaseTransientBottomBar.java211 void onLayoutChange(View view, int left, int top, int right, int bottom); argument
481 public void onLayoutChange(View view, int left, int top, int right, int bottom) {
H A DBottomSheetBehavior.java297 // it is not the top most view of its parent. This is not necessary when the touch event is
324 // The ViewDragHelper tries to capture only the top-most View. We have to explicitly tell it
389 int top;
392 top = mMinOffset;
395 top = mParentHeight;
400 top = mMinOffset;
403 top = mMaxOffset;
407 top = mMaxOffset;
410 if (mViewDragHelper.smoothSlideViewTo(child, child.getLeft(), top)) {
621 int top;
723 dispatchOnSlide(int top) argument
[all...]
H A DCollapsingTextHelper.java158 void setExpandedBounds(int left, int top, int right, int bottom) {
159 if (!rectEquals(mExpandedBounds, left, top, right, bottom)) {
160 mExpandedBounds.set(left, top, right, bottom);
166 void setCollapsedBounds(int left, int top, int right, int bottom) {
167 if (!rectEquals(mCollapsedBounds, left, top, right, bottom)) {
168 mCollapsedBounds.set(left, top, right, bottom);
408 mCollapsedDrawY = mCollapsedBounds.top - mTextPaint.ascent();
440 mExpandedDrawY = mExpandedBounds.top - mTextPaint.ascent();
471 mCurrentBounds.top = lerp(mExpandedDrawY, mCollapsedDrawY,
720 private static boolean rectEquals(Rect r, int left, int top, in argument
[all...]
H A DCollapsingToolbarLayout.java415 // If we have a top inset and we're set to wrap_content height we need to make sure
416 // we add the top inset to our height, therefore we re-measure
424 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
425 super.onLayout(changed, left, top, right, bottom);
461 mTmpRect.top + maxOffset + mToolbar.getTitleMarginTop(),
470 mTmpRect.top + mExpandedMarginTop,
472 bottom - top - mExpandedMarginBottom);
707 * <p>This scrim is only shown when we have been given a top system inset.</p>
779 * <p>This scrim is only shown when we have been given a top system inset.</p>
947 * @param top th
957 setExpandedTitleMargin(int start, int top, int end, int bottom) argument
[all...]
H A DFloatingActionButton.java202 d + mShadowPadding.top + mShadowPadding.bottom);
489 rect.top += mShadowPadding.top;
723 child.getTop() + shadowPadding.top,
754 // If we're on the top edge, shift it up
755 offsetTB = -padding.top;
816 public void setShadowPadding(int left, int top, int right, int bottom) { argument
817 mShadowPadding.set(left, top, right, bottom);
818 setPadding(left + mImagePadding, top + mImagePadding,
H A DTextInputLayout.java409 // Create/update the LayoutParams so that we can add enough top margin
541 // Now update the EditText top margin
570 // Text size might have changed so update the top margin
1365 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1366 super.onLayout(changed, left, top, right, bottom);
1376 l, rect.top + mEditText.getCompoundPaddingTop(),
1382 r, bottom - top - getPaddingBottom());
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtilsActions.java293 final @Nullable Drawable top, final @Nullable Drawable end,
311 TextViewCompat.setCompoundDrawablesRelative(textView, start, top, end, bottom);
292 setCompoundDrawablesRelative(final @Nullable Drawable start, final @Nullable Drawable top, final @Nullable Drawable end, final @Nullable Drawable bottom) argument
H A DViewStructureImpl.java107 public void setDimens(int left, int top, int scrollX, int scrollY, int width, int height) { argument
/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DTypefaceEmojiSpan.java54 final int top, final int y, final int bottom, @NonNull final Paint paint) {
56 canvas.drawRect(x, top , x + getWidth(), bottom, getDebugPaint());
52 draw(@onNull final Canvas canvas, final CharSequence text, @IntRange(from = 0) final int start, @IntRange(from = 0) final int end, final float x, final int top, final int y, final int bottom, @NonNull final Paint paint) argument
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java78 // Adds an item at the top-left quarter of the custom view.
150 * @param top Top coordinate as a fraction of the parent height, range
159 public CustomItem addItem(String description, float left, float top, float right, argument
163 item.mBounds = new RectF(left, top, right, bottom);
196 parent.mBounds.top + bounds.top * parent.mBounds.height(),
198 parent.mBounds.top + bounds.bottom * parent.mBounds.height());
275 out.top = (int) (in.top * height);
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCommon.java77 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
79 DrawableCompat.setHotspotBounds(mDelegateDrawable, left, top, right, bottom);
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java166 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
167 super.onLayout(changed, left, top, right, bottom);
H A DPercentRelativeLayout.java165 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
166 super.onLayout(changed, left, top, right, bottom);
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java78 // Adds an item at the top-left quarter of the custom view.
150 * @param top Top coordinate as a fraction of the parent height, range
159 public CustomItem addItem(String description, float left, float top, float right, argument
163 item.mBounds = new RectF(left, top, right, bottom);
196 parent.mBounds.top + bounds.top * parent.mBounds.height(),
198 parent.mBounds.top + bounds.bottom * parent.mBounds.height());
275 out.top = (int) (in.top * height);
/frameworks/rs/driver/
H A DrsdRuntimeStubs.cpp1094 int *top, int *bottom) {
1096 rsrMeasureText(rsc, text, left, right, top, bottom);
1100 int *top, int *bottom) {
1102 rsrMeasureTextAlloc(rsc, (Allocation *)a.p, left, right, top, bottom);
1093 rsgMeasureText(const char *text, int *left, int *right, int *top, int *bottom) argument
1099 rsgMeasureText(::rs_allocation a, int *left, int *right, int *top, int *bottom) argument
/frameworks/rs/driver/runtime/
H A Drs_matrix.c321 rsExtractFrustumPlanes(const rs_matrix4x4* viewProj, float4* left, float4* right, float4* top, argument
334 top->x = viewProj->m[3] - viewProj->m[1];
335 top->y = viewProj->m[7] - viewProj->m[5];
336 top->z = viewProj->m[11] - viewProj->m[9];
337 top->w = viewProj->m[15] - viewProj->m[13];
358 len = length(top->xyz);
359 *top /= len;
369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, argument
379 distToCenter = dot(top->xyz, sphere->xyz) + top
[all...]
/frameworks/rs/
H A DrsFont.h54 int32_t top; member in struct:android::renderscript::Font::Rect
60 top = t;
H A DrsMatrix4x4.cpp276 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...]

Completed in 2044 milliseconds

1234567891011>>