Searched refs:top (Results 1 - 25 of 63) sorted by relevance

123

/development/ndk/platforms/android-14/include/android/
H A Drect.h32 int32_t top; member in struct:ARect
/development/ndk/platforms/android-16/include/android/
H A Drect.h32 int32_t top; member in struct:ARect
/development/ndk/platforms/android-9/include/android/
H A Drect.h32 int32_t top; member in struct:ARect
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DCube.java22 public Cube(GLWorld world, float left, float bottom, float back, float right, float top, float front) { argument
26 GLVertex leftTopBack = addVertex(left, top, back);
27 GLVertex rightTopBack = addVertex(right, top, back);
30 GLVertex leftTopFront = addVertex(left, top, front);
31 GLVertex rightTopFront = addVertex(right, top, front);
44 // top
/development/perftests/panorama/feature_mos/src/mosaic/
H A DMosaicTypes.h37 left = right = top = bottom = 0.0;
47 return bottom - top;
53 int left, right, top, bottom; member in class:MosaicRect
59 double lft, rgt, top, bot; member in class:BlendRect
H A DGeometry.h37 if (y > brect.top) brect.top = y;
45 if (rrect.top > brect.top) brect.top = rrect.top;
H A DBlend.cpp134 global_rect.rgt = global_rect.top = -2e30; // max values
146 // Corners of the top-most and bottom-most frames respectively in the
181 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower
208 fullRect.top = (int) floor(global_rect.bot); // min-y
210 fullRect.bottom = (int) ceil(global_rect.top);// max-y
212 Mheight = (unsigned short) (fullRect.bottom - fullRect.top + 1);
221 yTopMost = max(0, max(yTopCorners[0], yTopCorners[1]) - fullRect.top + 1);
222 yBottomMost = min(Mheight - 1, min(yBottomCorners[0], yBottomCorners[1]) - fullRect.top - 1);
266 cropping_rect.top = yTopMost;
286 mosaicHeight = cropping_rect.bottom - cropping_rect.top
[all...]
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DRecyclerViewActivity.java118 int top = oldTop;
124 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) {
128 bottom = top + getDecoratedMeasuredHeight(v);
129 layoutDecorated(v, left, top, right, bottom);
167 final int top = bottom - getDecoratedMeasuredHeight(v);
168 layoutDecorated(v, left, top, right, bottom);
184 final int top = getDecoratedBottom(getChildAt(getChildCount() - 1));
187 final int bottom = top + getDecoratedMeasuredHeight(v);
188 layoutDecorated(v, left, top, righ
[all...]
H A DAnimatedRecyclerView.java216 int top = oldTop;
217 int bottom = top;
222 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) {
228 bottom = top + v.getMeasuredHeight();
229 v.layout(left, top, right, bottom);
304 final int bottom = topView.getTop(); // TODO decorated top?
305 final int top = bottom - v.getMeasuredHeight();
306 v.layout(left, top, right, bottom);
321 final int top
[all...]
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/decorator/
H A DDividerItemDecoration.java75 final int top = child.getBottom() + params.bottomMargin +
77 final int bottom = top + mDivider.getIntrinsicHeight();
78 mDivider.setBounds(left, top, right, bottom);
84 final int top = parent.getPaddingTop();
95 mDivider.setBounds(left, top, right, bottom);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
H A DFixedGridLayout.java93 int top = y + ((cellHeight-h)/2);
95 child.layout(left, top, left+w, top+h);
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DFocus3.java34 mTopButton = (Button) findViewById(R.id.top);
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/
H A DDragFrameLayout.java72 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {
73 super.onViewPositionChanged(changedView, left, top, dx, dy);
82 public int clampViewPositionVertical(View child, int top, int dy) {
83 return top;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
H A DMatrixStack.java42 public void glFrustumf(float left, float right, float bottom, float top, argument
44 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far);
47 public void glFrustumx(int left, int right, int bottom, int top, int near, argument
50 fixedToFloat(bottom), fixedToFloat(top),
102 public void glOrthof(float left, float right, float bottom, float top, argument
104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far);
107 public void glOrthox(int left, int right, int bottom, int top, int near, argument
110 fixedToFloat(bottom), fixedToFloat(top),
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
H A DBackgroundContainer.java51 public void showBackground(int top, int bottom) { argument
53 mOpenAreaTop = top;
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
H A DBackgroundContainer.java52 public void showBackground(int top, int bottom) { argument
54 mOpenAreaTop = top;
H A DListViewRemovalAnimation.java204 int top = child.getTop();
206 if (startTop != top) {
207 int delta = startTop - top;
226 startTop = top + (i > 0 ? childHeight : -childHeight);
227 int delta = startTop - top;
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
H A DFixedGridLayout.java104 int top = y + ((cellHeight-h)/2);
106 child.layout(left, top, left+w, top+h);
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
H A DAnimatedNotificationDisplayActivity.java120 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
127 int minSize = Math.max(right - left, bottom - top) + mZoomLength;
135 imageView.layout(left, top, left + imageWidth, top + imageHeight);
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
H A DExpandingListView.java87 * Calculates the top and bottom bound changes of the selected item. These values are
93 * always try to expand downwards (leaving top bound untouched), and similarly,
94 * collapse upwards (leaving top bound untouched). If the change in bounds
96 * moved to the top of the screen so as not to hide any additional content that
103 private int[] getTopAndBottomTranslations(int top, int bottom, int yDelta, argument
108 int height = bottom - top;
111 boolean isOverTop = top < 0;
112 boolean isBelowBottom = (top + height + yDelta) > getHeight();
114 yTranslateTop = top;
117 int deltaBelow = top
[all...]
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
H A DDeviceListFragment.java127 TextView top = (TextView) v.findViewById(R.id.device_name);
129 if (top != null) {
130 top.setText(device.deviceName);
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
H A DCurvedMotion.java70 int top = mButton.getTop();
72 int deltaY = top - oldTop;
93 * Toggles button location on click between top-left and bottom-right
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
H A DInsertionListView.java50 * ListItemObject, it is added to the top of the ListView and the new row is animated
51 * in. If the ListView content is at the top (the scroll offset is 0), the animation of
150 * in the top row of the ListView. */
196 int top = child.getTop();
201 int startTop = startRect.top;
202 int delta = startTop - top;
211 int startTop = top + (i > 0 ? childHeight : -childHeight);
212 int delta = startTop - top;
226 * the drawables that meet this criteria, they can be redrawn on top
234 int childHeight = startBounds.bottom - startBounds.top
[all...]
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
H A DDynamicListView.java147 * size. The hover cell's BitmapDrawable is drawn on top of the bitmap every
154 int top = v.getTop();
161 mHoverCellOriginalBounds = new Rect(left, top, left + w, top + h);
198 * item is either at the top or bottom of the list, mAboveItemId or mBelowItemId
267 mHoverCellOriginalBounds.top + deltaY + mTotalOffset);
315 int deltaYTotal = mHoverCellOriginalBounds.top + mTotalOffset + deltaY;
459 interpolate(startValue.top, endValue.top, fraction),
487 int hoverViewTop = r.top;
[all...]
/development/tools/axl/
H A Dchewperf.py71 top = max(buckets.keys())
72 for x in range(top):

Completed in 339 milliseconds

123