Searched defs:top (Results 126 - 150 of 244) sorted by relevance

12345678910

/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java430 private void ortho(float left, float right, float bottom, float top, float znear, float zfar) { argument
436 mProjMatrix[5] = 2f / (top - bottom);
444 mProjMatrix[13] = -(top + bottom) / (top - bottom);
/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/libs/ui/
H A DRegion.cpp97 int lastTop = current->top;
103 } while (current->top == lastTop && current >= begin);
107 int top = -1; local
112 if (current->top != (current + 1)->top) {
114 if ((spanDirection == direction_RTL && current->bottom != (current + 1)->top) ||
115 (spanDirection == direction_LTR && current->top != (current + 1)->bottom)) {
123 top = current->top;
136 dst.add(Rect(prev->right, top, righ
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DRenderEngine.cpp206 position[i*6 + 0].y = height - r->top;
212 position[i*6 + 3].y = height - r->top;
216 position[i*6 + 5].y = height - r->top;
232 uint32_t left, uint32_t bottom, uint32_t right, uint32_t top) {
233 glScissor(left, bottom, right, top);
231 setScissor( uint32_t left, uint32_t bottom, uint32_t right, uint32_t top) argument
/frameworks/rs/
H A DrsFont.h54 int32_t top; member in struct:android::renderscript::Font::Rect
60 top = t;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseCardView.java405 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
427 // retract currBottom to overlap the info views on top of main
473 onSizeChanged(0, 0, right - left, bottom - top);
727 // and out. It's meant to be used when the info views are overlaid on top of
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActivityChooserView.java453 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
454 mActivityChooserContent.layout(0, 0, right - left, bottom - top);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java39 * several top level options as action buttons while spilling remaining options over as
435 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
437 super.onLayout(changed, left, top, right, bottom);
442 final int midVertical = (bottom - top) / 2;
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp1022 int32_t left, top, right, bottom, width, height; local
1023 if (mOutputFormat->findRect("crop", &left, &top, &right, &bottom)) {
1024 mCrypto->notifyResolution(right - left + 1, bottom - top + 1);
2057 int32_t left, top, right, bottom; local
2058 if (info->mFormat->findRect("crop", &left, &top, &right, &bottom)) {
2059 info->mData->meta()->setRect("crop-rect", left, top, right, bottom);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h99 int left, top, right, bottom; member in struct:android::camera2::Parameters::Area
102 Area(int left, int top, int right, int bottom, int weight): argument
103 left(left), top(top), right(right), bottom(bottom),
106 return (left == 0) && (top == 0) && (right == 0) && (bottom == 0);
275 float top; member in struct:android::camera2::Parameters::CropRegion
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h639 int left, int top, int right, int bottom)
644 crop.top = top;
638 __set_crop(struct preview_stream_ops *w, int left, int top, int right, int bottom) argument
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java179 public void setBounds(int left, int top, int right, int bottom) { argument
181 mDrawTop = top + (bottom-top - mHeight) / 2;
398 * 0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-aligned
448 float top = (inHeight - outHeight) * verticalAlignment;
449 float bottom = top + outHeight;
450 cropRectF = new RectF(left, top, right, bottom);
496 roundedTrueCrop.top, roundedTrueCrop.width(),
534 cropRect.top = 0;
543 cropRect.top
[all...]
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java82 * Requests that the content being animated be forced on top of all other
1001 * @param top
1009 public void getInvalidateRegion(int left, int top, int right, int bottom, argument
1015 invalidate.set(left, top, right, bottom);
1034 * @param top
1040 public void initializeInvalidateRegion(int left, int top, int right, int bottom) { argument
1042 region.set(left, top, right, bottom);
/frameworks/base/core/java/android/widget/
H A DAdapterView.java69 * The offset in pixels from the top of the AdapterView to the top
541 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1149 // Either we hit the top, or we are trying to move down
H A DAdapterViewAnimator.java763 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DGridView.java287 * @param nextTop The location where the top of the item associated with pos
383 * Fills the list from pos up to the top of the list view.
397 end = mListPadding.top;
423 * Fills the list from top to bottom, starting with mFirstPosition
425 * @param nextTop The location where the top of the first item should be
496 final int top = getChildAt(0).getTop();
497 final int offset = childrenTop - top;
544 * @param top the top of the view at that position
548 private View fillSpecific(int position, int top) { argument
[all...]
H A DLinearLayout.java352 final int top = child.getTop() - lp.topMargin - mDividerHeight;
353 drawHorizontalDivider(canvas, top);
412 void drawHorizontalDivider(Canvas canvas, int top) { argument
413 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top,
414 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight);
1480 * @param top
1484 void layoutVertical(int left, int top, int right, int bottom) { argument
1505 childTop = mPaddingTop + bottom - top - mTotalLength;
1510 childTop = mPaddingTop + (bottom - top - mTotalLength) / 2;
1574 * @param top
1578 layoutHorizontal(int left, int top, int right, int bottom) argument
1702 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
H A DSwitch.java878 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
879 super.onLayout(changed, left, top, right, bottom);
966 if (thumbInsets.top > padding.top) {
967 trackTop += thumbInsets.top - padding.top;
1011 final int switchInnerTop = switchTop + padding.top;
1054 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2;
1055 canvas.translate(left, top);
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java288 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument
296 if (top && lp.topMargin != insets.top) {
298 lp.topMargin = insets.top;
319 // The top and bottom action bars are always within the content area.
403 // If tabs are not embedded, increase space on top to account for them.
408 // This is the space needed on top of the window for all of the action bar
431 mContentInsets.top += topInset;
434 mInnerInsets.top += topInset;
469 protected void onLayout(boolean changed, int left, int top, in argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp155 static void arcTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, argument
159 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
169 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) {
172 obj->addRect(left, top, right, bottom, dir);
176 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) {
179 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
189 static void addArc(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, argument
191 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom);
196 static void addRoundRectXY(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, argument
198 SkRect rect = SkRect::MakeLTRB(left, top, righ
168 addRect(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
175 addOval(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
204 addRoundRect8(JNIEnv* env, jobject, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloatArray array, jint dirHandle) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_RenderNode.cpp121 jobject clazz, jlong renderNodePtr, jint left, jint top, jint right, jint bottom) {
122 android::uirenderer::Rect clipBounds(left, top, right, bottom);
142 jobject clazz, jlong renderNodePtr, jint left, jint top,
145 renderNode->mutateStagingProperties().mutableOutline().setRoundRect(left, top, right, bottom,
277 jobject clazz, jlong renderNodePtr, int top) {
278 return SET_AND_DIRTY(setTop, top, RenderNode::Y);
292 jobject clazz, jlong renderNodePtr, int left, int top,
295 if (renderNode->mutateStagingProperties().setLeftTopRightBottom(left, top, right, bottom)) {
120 android_view_RenderNode_setClipBounds(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint left, jint top, jint right, jint bottom) argument
141 android_view_RenderNode_setOutlineRoundRect(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) argument
276 android_view_RenderNode_setTop(JNIEnv* env, jobject clazz, jlong renderNodePtr, int top) argument
291 android_view_RenderNode_setLeftTopRightBottom(JNIEnv* env, jobject clazz, jlong renderNodePtr, int left, int top, int right, int bottom) argument
H A Dandroid_view_SurfaceControl.cpp72 jfieldID top; member in struct:android::__anon874
128 int top = env->GetIntField(sourceCropObj, gRectClassInfo.top); local
131 Rect sourceCrop(left, top, right, bottom);
199 int top = env->GetIntField(sourceCropObj, gRectClassInfo.top); local
202 Rect sourceCrop(left, top, right, bottom);
673 gRectClassInfo.top = env->GetFieldID(rectClazz, "top", "I");
/frameworks/base/graphics/java/android/graphics/
H A DPath.java438 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo);
453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false);
468 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument
471 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo);
499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
507 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION);
518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
525 * @param top The top of a rectangle to add to the path
530 public void addRect(float left, float top, floa argument
550 addOval(float left, float top, float right, float bottom, Direction dir) argument
585 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
610 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument
640 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument
804 native_arcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument
808 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument
810 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument
813 native_addArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
816 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
819 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java108 * drawables on top of each other.
152 public void setBounds(int left, int top, int right, int bottom) { argument
159 if (oldBounds.left != left || oldBounds.top != top ||
165 mBounds.set(left, top, right, bottom);
175 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
541 * @param top
545 public void setHotspotBounds(int left, int top, int right, int bottom) {} argument

Completed in 739 milliseconds

12345678910