Searched refs:top (Results 76 - 100 of 391) sorted by relevance

1234567891011>>

/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
H A DHeaderElevationController.java32 // The top, left and right edges are all extended out to match parent's edge, so that
37 // Set the left and top to be at the parents edge. Since the coordinates are
41 final int top = -view.getTop();
48 outline.setRect(left - offset, top - offset, right + offset, bottom);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DRotateLayout.java49 boolean change, int left, int top, int right, int bottom) {
51 int height = bottom - top;
48 onLayout( boolean change, int left, int top, int right, int bottom) argument
H A DIndicatorControlWheelContainer.java101 boolean changed, int left, int top, int right, int bottom) {
107 mCenterY = (bottom - top) / 2;
113 mIndicatorControlWheel.layout(0, 0, right - left, bottom - top);
100 onLayout( boolean changed, int left, int top, int right, int bottom) argument
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DTouchTargetEnforcer.java106 result.top -= deltaHeightHalf;
112 int deltaHeightRemaining = minTargetPx - (result.bottom - result.top);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationOverlayItem.java64 * Returns true if this overlay view is meant to be positioned right on top of the overlay
120 public void setTop(int top) { argument
121 mTop = top;
/packages/apps/Camera2/src/com/android/camera/ui/
H A DZoomView.java86 // Set the translation of the matrix so that after rotation, the top left
88 rotationMatrix.postTranslate(-fullResRect.left, -fullResRect.top);
182 public void onLayoutChange(View v, int left, int top, int right, int bottom,
185 int h = bottom - top;
248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2;
250 if (newRect.top > 0) {
251 dy = -newRect.top;
/packages/apps/Settings/src/com/android/settings/applications/
H A DLinearColorBar.java120 mRect.top = off;
211 final int midTopY = mRect.top;
214 mColorPath.moveTo(indicatorLeft, mRect.top);
221 indicatorRight, mRect.top);
227 indicatorLeft+lineOffset, mRect.top);
231 indicatorRight-lineOffset, mRect.top);
/packages/apps/TV/src/com/android/tv/menu/
H A DMenuLayoutManager.java126 public void layout(int left, int top, int right, int bottom) { argument
144 List<Rect> layouts = getViewLayouts(left, top, right, bottom);
149 currentView.layout(rect.left, rect.top, rect.right, rect.bottom);
188 + ", left=" + view.getLeft() + ", top=" + view.getTop()
193 + ", left=" + title.getLeft() + ", top=" + title.getTop()
198 + ", left=" + contents.getLeft() + ", top=" + contents.getTop()
224 * @param top The top coordinate of the menu view.
228 private List<Rect> getViewLayouts(int left, int top, int right, int bottom) { argument
229 return getViewLayouts(left, top, righ
250 getViewLayouts(int left, int top, int right, int bottom, List<Integer> rowsToAdd, List<Integer> rowsToRemove) argument
[all...]
H A DPlaybackProgressBar.java165 private boolean isEqualRect(Rect rect, int left, int top, int right, int bottom) { argument
166 return rect.left == left && rect.top == top && rect.right == right && rect.bottom == bottom;
/packages/apps/Camera2/src/com/android/camera/one/v2/
H A DAutoFocusHelper.java142 int yCenterSensor = (int)(cropRegion.top + nsc.y * cropRegion.height());
151 meteringRegion.top = CameraUtil.clamp(meteringRegion.top, cropRegion.top, cropRegion.bottom);
153 meteringRegion.bottom = CameraUtil.clamp(meteringRegion.bottom, cropRegion.top, cropRegion.bottom);
163 * (0, 0) top left and (1, 1) bottom right. Rotation has no effect.
179 * (0, 0) top left and (1, 1) bottom right. Rotation has no effect.
195 * (0, 0) top left and (1, 1) bottom right. Rotation has no effect.
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DTaskImageContainer.java202 return new Rect(box.top, box.left, box.bottom, box.right);
233 * is assumed to have its top-left corner at (0,0).
249 if (crop.top > crop.bottom || crop.left > crop.right || crop.width() <= 0
255 safeCrop.top = Math.max(safeCrop.top, 0);
257 safeCrop.bottom = Math.max(Math.min(safeCrop.bottom, height), safeCrop.top);
/packages/apps/Dialer/java/com/android/dialershared/bubble/
H A DChangeOnScreenBounds.java114 final int startTop = startBounds.top;
115 final int endTop = endBounds.top;
124 // Animate the top left and bottom right corners along a path
139 private int top; field in class:ChangeOnScreenBounds.ViewBounds
152 top = Math.round(topLeft.y);
170 view.setTop(top);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUtilities.java144 final int top = (textureHeight-height) / 2;
154 canvas.drawRect(left, top, left+width, top+height, debugPaint);
158 icon.setBounds(left, top, left+width, top+height);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsBackgroundDrawable.java75 int top = bounds.top + (int) (mYPercent * bounds.height());
80 top -= (height / 2);
82 mImage.setBounds(left, top, left + width, top + height);
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
H A DPopupTransitionAnimation.java235 final int prevTop = mDestRect.top;
241 mDestRect.top = prevTop;
258 canvas.clipRect(getLeft(), mActionBarRect.bottom - mPopupRect.top, getRight(),
267 canvas.translate(mCurrentRect.left, mCurrentRect.top - mPopupRect.top);
/packages/apps/Settings/src/com/android/settings/datausage/
H A DChartDataUsagePreference.java63 int top = getTop();
65 chart.configureGraph(toInt(mEnd - mStart), top);
72 bindNetworkPolicy(chart, mPolicy, top);
124 private void bindNetworkPolicy(UsageView chart, NetworkPolicy policy, int top) { argument
139 float weight = policy.warningBytes / RESOLUTION / (float) top;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterTinyPlanet.java121 int top = getInt(xmp, CROPPED_AREA_TOP);
143 int bottom = top + croppedAreaHeight;
144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageRedEye.java65 mCurrentRect.top = ey - mTouchPadding;
119 canvas.drawLine(fullRect.centerX(), fullRect.top,
130 canvas.drawLine(drawRect.centerX(), drawRect.top,
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAnimatorUtils.java70 * Sets the alpha of the top layer's drawable (of the background) only, if the background is a
195 new Property<View, Integer>(Integer.class, "top") {
202 public void set(View view, Integer top) {
203 view.setTop(top);
253 final int startTop = from.getTop() - fromInsets.top + targetInsets.top;
259 final int endTop = to.getTop() - toInsets.top + targetInsets.top;
/packages/apps/Gallery/src/com/android/camera/
H A DImageViewTouchBase.java77 protected void onLayout(boolean changed, int left, int top, argument
79 super.onLayout(changed, left, top, right, bottom);
81 mThisHeight = bottom - top;
207 deltaY = (viewHeight - height) / 2 - rect.top;
208 } else if (rect.top > 0) {
209 deltaY = -rect.top;
/packages/services/Car/evs/app/
H A DRenderTopView.cpp182 // Set up our top down projection matrix from car space (world units, Xfwd, Yright, Zup)
184 const float top = mConfig.getDisplayTopLocation(); local
189 const float near = 10.0f; // arbitrary top of view volume
193 // naturally aligned in the top down view.
194 // TODO: Not sure if flipping top/bottom here is "correct" or a double reverse...
195 // orthoMatrix = android::mat4::ortho(left, right, bottom, top, near, far);
196 orthoMatrix = android::mat4::ortho(left, right, top, bottom, near, far);
223 // Responsible for drawing the car's self image in the top down view.
243 GLfloat vertsCarPos[] = { ltCS, tpCS, 0.0f, // left top in car space
244 rtCS, tpCS, 0.0f, // right top
298 const float top = mConfig.getDisplayTopLocation(); local
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DProportionalLayout.java122 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
128 child.layout(0, 0, right-left, bottom-top);
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DPieItem.java165 public void setBounds(int left, int top, int right, int bottom) { argument
166 mDrawable.setBounds(left, top, right, bottom);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DEdgeView.java54 boolean changeSize, int left, int top, int right, int bottom) {
58 int h = bottom - top;
60 if ((i & 1) == 0) { // top or bottom
53 onLayout( boolean changeSize, int left, int top, int right, int bottom) argument
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInsettableFrameLayout.java33 lp.topMargin += (newInsets.top - oldInsets.top);

Completed in 1062 milliseconds

1234567891011>>