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

1234567891011>>

/frameworks/base/libs/hwui/
H A DLayerRenderer.cpp47 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...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java49 * This is based on top of {@link Graphics2D} but can operate independently if none are available
263 * Creates a new {@link GcSnapshot} on top of another one, with a layer data to be restored
336 mLayerBounds.left, mLayerBounds.top,
362 * Restores the top {@link GcSnapshot}, and returns the next one.
526 public boolean clipRect(float left, float top, float right, float bottom, int regionOp) { argument
527 return clip(new Rectangle2D.Float(left, top, right - left, bottom - top), regionOp);
665 // them, starting with the top one (which is the current local layer).
719 mLayerBounds.left, mLayerBounds.top, mLayerBounds.right, mLayerBounds.bottom,
731 mLayerBounds.left, mLayerBounds.top, mLayerBound
[all...]
/frameworks/native/include/ui/
H A Dmat4.h134 static tmat44 ortho(T left, T right, T bottom, T top, T near, T far);
136 static tmat44 frustum(T left, T right, T bottom, T top, T near, T far);
232 tmat44<T> tmat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { argument
235 m[1][1] = 2 / (top - bottom);
238 m[3][1] = -(top + bottom) / (top - bottom);
244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { argument
247 T B = (top + bottom) / (top - bottom);
251 m[1][1] = (2 * near) / (top
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp359 layer->sourceCrop.top = 0;
363 layer->displayFrame.top = 0;
373 layer->sourceCrop.top = 0;
377 layer->displayFrame.top = refHeight;
379 layer->displayFrame.bottom = layer->displayFrame.top + equivHeight;
/frameworks/rs/
H A DrsRuntime.h104 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom);
106 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom);
108 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom);
203 float bottom, float top, float near, float far);
205 float bottom, float top, float near, float far);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLayerDrawable.java44 * order, so the element with the largest index will be drawn on top.
328 * @param top The top padding of the new layer.
332 ChildDrawable addLayer(Drawable layer, int[] themeAttrs, int id, int left, int top, int right, argument
340 childDrawable.mInsetT = top;
454 * @param t number of pixels to add to the top bound
536 return padding.left != 0 || padding.top != 0 || padding.right != 0 || padding.bottom != 0;
541 padding.top = 0;
552 padding.top += mPaddingT[i];
560 padding.top
605 setHotspotBounds(int left, int top, int right, int bottom) argument
[all...]
H A DInsetDrawable.java253 padding.top += mState.mInsetTop;
265 contentInsets.top + mState.mInsetTop,
276 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
277 mState.mDrawable.setHotspotBounds(left, top, right, bottom);
357 r.top += mState.mInsetTop;
361 mState.mDrawable.setBounds(r.left, r.top, r.right, r.bottom);
/frameworks/base/media/java/android/media/tv/
H A DTvView.java234 * Sets the Z order of a window owning the surface of this TvView on top of an application.
574 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
576 Log.d(TAG, "onLayout (left=" + left + ", top=" + top + ", right=" + right
583 mSurfaceView.layout(0, 0, right - left, bottom - top);
608 int top = location[1];
609 region.op(left, top, left + width, top + height, Region.Op.UNION);
1060 public void onLayoutSurface(Session session, int left, int top, int right, int bottom) { argument
1062 Log.d(TAG, "onLayoutSurface (left=" + left + ", top
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java423 int left = 0, right = 0, top = 0, bottom = 0;
427 top = bottom - maxSize;
429 top = layoutState.mOffset;
430 bottom = top + maxSize;
448 top = getPaddingTop() + mSizePerSpan * params.mSpanIndex;
449 bottom = top + mOrientationHelper.getDecoratedMeasurementInOther(view);
453 layoutDecorated(view, left + params.leftMargin, top + params.topMargin,
457 + (left + params.leftMargin) + ", t:" + (top + params.topMargin) + ", r:"
483 heightSpec = updateSpecWithExtra(heightSpec, lp.topMargin + mDecorInsets.top,
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp154 jfloat left, jfloat top, jfloat right, jfloat bottom) {
155 bool result = get_canvas(canvasHandle)->quickRejectRect(left, top, right, bottom);
242 static void drawRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
245 get_canvas(canvasHandle)->drawRect(left, top, right, bottom, *paint);
248 static void drawRoundRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
251 get_canvas(canvasHandle)->drawRoundRect(left, top, right, bottom, rx, ry, *paint);
260 static void drawOval(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
263 get_canvas(canvasHandle)->drawOval(left, top, right, bottom, *paint);
266 static void drawArc(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument
270 get_canvas(canvasHandle)->drawArc(left, top, righ
153 quickRejectRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, jfloat right, jfloat bottom) argument
311 drawBitmap(JNIEnv* env, jobject jcanvas, jlong canvasHandle, jlong bitmapHandle, jfloat left, jfloat top, jlong paintHandle, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument
469 SkScalar top = y + textSize * kStdUnderline_Offset - 0.5f * strokeWidth; local
474 SkScalar top = y + textSize * kStdStrikeThru_Offset - 0.5f * strokeWidth; local
[all...]
H A Dandroid_view_Surface.cpp71 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/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java47 * {@link android.widget.ListAdapter ListAdapter} will be arranged from top to bottom,
508 // Repair the top and bottom column boundaries from the views we still have
515 final int top = child.getTop() - mItemMargin;
521 final int colTop = top - rec.getMarginAbove(col - lp.column);
671 final int top = getPaddingTop();
672 final int offset = top + Math.min(mRestoreOffset, 0);
706 Log.d(TAG, "!!! No top item found for column " + i + " value " + mItemTops[i]);
878 * @param overhang the number of extra pixels to fill beyond the current top edge
879 * @return the max overhang beyond the beginning of the view of any added items at the top
956 final int top
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp398 float insetT = winCrop.top * yScale;
403 crop.top += insetT;
447 activeTransparentRegion.orSelf(Rect(0, 0, s.active.w, activeCrop.top));
450 activeTransparentRegion.orSelf(Rect(0, activeCrop.top,
452 activeTransparentRegion.orSelf(Rect(activeCrop.right, activeCrop.top,
718 float top = float(win.top) / float(s.active.h); local
725 texCoords[0] = vec2(left, 1.0f - top);
728 texCoords[3] = vec2(right, 1.0f - top);
795 position[0] = tr.transform(win.left, win.top);
[all...]
H A DDisplayDevice.cpp199 b.left, b.top, b.width(), b.height());
468 float src_y = viewport.top;
470 float dst_y = frame.top;
506 mViewport.left, mViewport.top, mViewport.right, mViewport.bottom,
507 mFrame.left, mFrame.top, mFrame.right, mFrame.bottom,
508 mScissor.left, mScissor.top, mScissor.right, mScissor.bottom,
/frameworks/base/core/java/android/widget/
H A DDayPickerView.java46 // so that the top line will be under the separator
195 * the time is at the top of the view. If the new time is already in view
219 int top = 0;
226 top = child.getTop();
227 } while (top < 0);
287 * Sets the month displayed at the top of this view based on time. Override
357 final int top = child.getTop();
360 if (scroll && top < LIST_TOP_OFFSET) {
362 smoothScrollBy(top, GOTO_SCROLL_DURATION);
516 // There's an off-by-one somewhere, so the top o
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintContentView.java272 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
273 mStaticContent.layout(left, top, right, mStaticContent.getMeasuredHeight());
402 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument
408 final float progress = ((float) top - getOpenedOptionsY())
446 public int clampViewPositionVertical(View child, int top, int dy) { argument
448 return Math.max(Math.min(top, getOpenedOptionsY()), getClosedOptionsY());
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewLayoutAlgorithm.java30 * The curve is defined such that at curve progress p = 0 is the end of the curve (the top of the
95 mTaskRect.set(left, mStackRect.top,
96 left + size, mStackRect.top + size);
154 // Center the top most task, since that will be focused first
230 // If the task top is outside of the bounds below the screen, then immediately reset it
236 // The check for the top is trickier, since we want to show the next task if it is at all
250 transformOut.translationY = curveProgressToScreenY(pBounded) - mStackVisibleRect.top -
268 /** Returns the scroll to such task top = 1f; */
344 if (p < 0 || p > 1) return mStackVisibleRect.top + (int) (p * mStackVisibleRect.height());
354 return mStackVisibleRect.top
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java304 double oldTop = (rectangle.top + 1000) / 2000.0;
309 int top = mCropRectangle.top + toIntConstrained(
313 int bottom = mCropRectangle.top + toIntConstrained(
315 transformed[index] = new MeteringRectangle(left, top, right - left, bottom - top,
573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java390 cropRect.top = Math.max(0, cropRect.top);
419 cropRect.bottom = cropRect.top + defaultWallpaperSize.y / cropScale;
424 Math.min(Math.min(rotatedInSize[1] - cropRect.bottom, cropRect.top),
426 cropRect.top -= expandHeight;
684 mCropBounds.top /= scaleDownSampleSize;
703 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight();
706 // Adjust the top value
707 int adjustment = roundedTrueCrop.top -
709 roundedTrueCrop.top
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DScreenMagnifier.java173 final int top = args.argi2;
176 handleOnRectangleOnScreenRequested(left, top, right, bottom);
242 public void onRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument
245 args.argi2 = top;
251 private void handleOnRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument
254 if (!magnifiedFrame.intersects(left, top, right, bottom)) {
275 if (bottom - top > magnifFrameInScreenCoords.height()) {
276 scrollY = top - magnifFrameInScreenCoords.top;
277 } else if (top < magnifFrameInScreenCoord
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowState.java344 /** When true this window is at the top of the screen and should be layed out to extend under
515 mContainingFrame.top = pf.top;
604 Math.max(mContentFrame.top, mFrame.top),
609 Math.max(mVisibleFrame.top, mFrame.top),
614 Math.max(mStableFrame.top, mFrame.top),
619 Math.max(mOverscanFrame.top
[all...]
/frameworks/av/include/media/stagefright/
H A DMetaData.h211 int32_t left, int32_t top,
222 int32_t *left, int32_t *top,
/frameworks/av/include/media/stagefright/foundation/
H A DAMessage.h60 int32_t left, int32_t top, int32_t right, int32_t bottom);
77 int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) const;
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp44 for (int32_t y = rect.top; y < rect.bottom; ++y) {
65 int32_t srcStartY = srcRect.top;
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java186 rect.top = Integer.parseInt(matcher.group(2));
192 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect.bottom);

Completed in 576 milliseconds

1234567891011>>