Searched refs:left (Results 26 - 50 of 384) sorted by relevance

1234567891011>>

/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/
H A DUtils.java115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
116 cropRect.right = inWidth - cropRect.left;
118 cropRect.right -= cropRect.left;
119 cropRect.left = 0;
122 cropRect.left = 0;
/packages/apps/Gallery/src/com/android/camera/
H A DHighlightView.java92 path.addCircle(mDrawRect.left + (width / 2),
115 int x = mDrawRect.left
124 int left = mDrawRect.left + 1;
138 int xMiddle = mDrawRect.left
139 + ((mDrawRect.right - mDrawRect.left) / 2);
143 mResizeDrawableWidth.setBounds(left - widthWidth,
145 left + widthWidth,
215 boolean horizCheck = (x >= r.left - hysteresis)
219 if ((Math.abs(r.left
[all...]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
H A DCallTypeIconsView.java168 int left = 0;
174 final int right = left + drawable.getIntrinsicWidth();
175 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight());
177 left = right + resources.iconMargin;
183 left = addDrawable(canvas, resources.videoCall, left) + resources.iconMargin;
187 left = addDrawable(canvas, resources.hdCall, left) + resources.iconMargin;
191 left = addDrawable(canvas, resources.wifiCall, left)
195 addDrawable(Canvas canvas, Drawable drawable, int left) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterCropRepresentation.java69 || mCrop.left != crop.mCrop.left
97 crop.left *= bitmapWidth;
108 crop.left /= bitmapWidth;
155 writer.name(BOUNDS[0]).value(mCrop.left);
168 mCrop.left = (float) reader.nextDouble();
/packages/apps/Launcher2/src/com/android/launcher2/
H A DButtonDropTarget.java134 final int left;
139 left = right - width;
141 left = to.left + getPaddingLeft();
142 right = left + width;
148 to.set(left, top, right, bottom);
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactSectionIndexer.java67 int left = 0;
72 if (position <= mSectionStartingPositions.get(left)) {
73 return left;
78 while (left <= right) {
79 final int mid = (left + right) / 2;
87 left = mid + 1;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPercentageBarChart.java75 final int left = getPaddingLeft();
80 final int width = right - left;
96 if (lastX < left) {
97 canvas.drawRect(left, top, nextX, bottom, e.paint);
106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint);
108 float lastX = left;
/packages/apps/TV/src/com/android/tv/menu/
H A DPlaybackProgressBar.java156 int left = (int) (width * start / mMax);
158 if (!isEqualRect(oldBounds, left, 0, right, height)) {
159 drawable.setBounds(left, 0, right, height);
165 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/tinyplanet/
H A DTinyPlanetPreview.java103 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
104 super.onLayout(changed, left, top, right, bottom);
106 int width = right - left;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBaseRecyclerView.java88 int left = getLeft() - mScrollbar.getLeft();
90 ev.offsetLocation(left, top);
94 ev.offsetLocation(-left, -top);
/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
40 final int left = -view.getLeft();
43 // Since the view is centered align, the spacing on left and right are same.
45 final int right = view.getWidth() - left;
48 outline.setRect(left - offset, top - offset, right + offset, bottom);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DFastScrollThumbDrawable.java58 mPath.addRoundRect(bounds.left, bounds.top, bounds.left + diameter, bounds.top + diameter,
62 sMatrix.setRotate(-45, bounds.left + r, bounds.top + r);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DTransformingTouchDelegate.java51 public void setBounds(int left, int top, int right, int bottom) { argument
52 mBounds.set(left, top, right, bottom);
103 event.offsetLocation(-mBounds.left, -mBounds.top);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DPreviewStatusListener.java49 public void onPreviewLayoutChanged(View v, int left, int top, int right, argument
/packages/apps/Car/Dialer/src/com/android/car/dialer/
H A DCallTypeIconsView.java106 int left = 0;
109 final int right = left + drawable.getIntrinsicWidth();
110 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight());
112 left = right + mResources.iconMargin;
/packages/apps/DevCamera/src/com/android/devcamera/
H A DNormalizedFace.java52 bounds.left = (float) (face.getBounds().left - offX) / dX;
69 float oldLeft = bounds.left;
70 bounds.left = 1f - bounds.right;
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DRenderOverlay.java40 void layout(int left, int top, int right, int bottom); argument
126 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
128 super.onLayout(changed, left, top, right, bottom);
133 renderer.layout(left, top, right, bottom);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLView.java192 return mBounds.right - mBounds.left;
271 int xoffset = component.mBounds.left - mScrollX;
298 int left = rect.left;
301 event.offsetLocation(-left, -top);
303 event.offsetLocation(left, top);
306 event.offsetLocation(left, top);
348 public void layout(int left, int top, int right, int bottom) { argument
349 boolean sizeChanged = setBounds(left, top, right, bottom);
355 onLayout(sizeChanged, left, to
358 setBounds(int left, int top, int right, int bottom) argument
399 onLayout( boolean changeSize, int left, int top, int right, int bottom) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DCircleRevealOutlineProvider.java48 mOutline.left = (int) (mCenterX - mOutlineRadius);
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetImageView.java100 mDstRectF.left = (myWidth - scaledWidth) / 2;
113 int left = Utilities.boundToRange(
119 mBadge.setBounds(left, top, bounds.width() + left, bounds.height() + top);
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationFastScroller.java98 // Whether to render the scrollbar on the right side (otherwise it'll be on the left).
423 public void onLayoutChange(View v, int left, int top, int right, int bottom, argument
430 mContainer.set(left, top + mRv.getPaddingTop(), right, bottom);
441 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left;
443 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth);
445 mTrackImageView.layout(left, top, right, bottom);
453 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left;
455 int right = mPosRight ? mContainer.right : (mContainer.left
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DSummaryPreference.java76 public void setRatios(float left, float middle, float right) { argument
77 mLeftRatio = left;
83 public void setColors(int left, int middle, int right) { argument
84 mLeft = left;
/packages/apps/TV/src/com/android/tv/guide/
H A DGuideUtils.java93 if (focusableRect.left <= focusRangeLeft && focusRangeRight <= focusableRect.right) {
96 } else if (focusRangeLeft <= focusableRect.left
105 int overlappedWidth = (focusRangeLeft <= focusableRect.left) ?
106 focusRangeRight - focusableRect.left
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DComparableTester.java77 private void assertLess(int left, int right, Collection<T> leftGroup, argument
82 String leftName = "Item[" + left + "," + (leftSub++) + "]";
92 private void assertMore(int left, int right, Collection<T> leftGroup, argument
97 String leftName = "Item[" + left + "," + (leftSub++) + "]";
H A DComparatorTester.java91 private void assertLess(int left, int right, Collection<T> leftGroup, argument
97 String leftName = "Item[" + left + "," + (leftSub++) + "]";
105 private void assertMore(int left, int right, Collection<T> leftGroup, argument
111 String leftName = "Item[" + left + "," + (leftSub++) + "]";

Completed in 605 milliseconds

1234567891011>>