Home
last modified time | relevance | path

Searched refs:mRect (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java51 private final Rect mRect = new Rect(); field in PendingAppWidgetHostView
219 mRect.set(0, 0, size, size); in updateDrawableBounds()
220 mRect.offsetTo((getWidth() - mRect.width()) / 2, (getHeight() - mRect.height()) / 2); in updateDrawableBounds()
221 mCenterDrawable.setBounds(mRect); in updateDrawableBounds()
262 mRect.set(0, 0, actualIconSize, actualIconSize); in updateDrawableBounds()
263 mRect.offset((getWidth() - actualIconSize) / 2, iconTop); in updateDrawableBounds()
264 mCenterDrawable.setBounds(mRect); in updateDrawableBounds()
266 mRect.left = paddingLeft + minPadding; in updateDrawableBounds()
267 mRect.right = mRect.left + (int) (SETUP_ICON_SIZE_FACTOR * actualIconSize); in updateDrawableBounds()
268 mRect.top = paddingTop + minPadding; in updateDrawableBounds()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DRedEyeCandidate.java22 RectF mRect = new RectF(); field in RedEyeCandidate
26 mRect.set(candidate.mRect); in RedEyeCandidate()
31 mRect.set(rect); in RedEyeCandidate()
36 if (candidate.mRect.equals(mRect) in equals()
44 return mRect.intersect(rect); in intersect()
48 return mRect; in getRect()
DFilterRedEyeRepresentation.java60 rect.union(r.mRect); in addRect()
DImageFilterRedEye.java67 RectF r = new RectF(((RedEyeCandidate) (mParameters.getCandidate(i))).mRect); in apply()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DFaceView.java44 private RectF mRect = new RectF(); field in FaceView
133 mRect.set(mFaces[i].rect); in onDraw()
134 if (LOGV) Util.dumpRect(mRect, "Original rect"); in onDraw()
135 mMatrix.mapRect(mRect); in onDraw()
136 if (LOGV) Util.dumpRect(mRect, "Transformed rect"); in onDraw()
138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top), in onDraw()
139 Math.round(mRect.right), Math.round(mRect.bottom)); in onDraw()
/packages/apps/Camera2/src/com/android/camera/ui/
DFaceView.java49 private RectF mRect = new RectF(); field in FaceView
177 mRect.set(mFaces[i].rect); in onDraw()
179 CameraUtil.dumpRect(mRect, "Original rect"); in onDraw()
181 mMatrix.mapRect(mRect); in onDraw()
183 CameraUtil.dumpRect(mRect, "Transformed rect"); in onDraw()
186 mRect.offset(mPreviewArea.left, mPreviewArea.top); in onDraw()
187 canvas.drawRect(mRect, mPaint); in onDraw()
DBottomBar.java88 private RectF mRect = new RectF(); field in BottomBar
189 mRect.set(0, 0, getWidth(), getHeight()); in onFinishInflate()
190 if (!mRect.contains(event.getX(), event.getY())) { in onFinishInflate()
209 mRect.set(0, 0, getWidth(), getHeight()); in onFinishInflate()
210 if (!mRect.contains(event.getX(), event.getY())) { in onFinishInflate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorHueView.java59 RectF mRect = new RectF(); field in ColorHueView
172 mRect.left = mBorder; in onDraw()
173 mRect.right = mWidth - mBorder; in onDraw()
174 mRect.top = 0; in onDraw()
175 mRect.bottom = mHeight; in onDraw()
176 canvas.drawRect(mRect,mCheckPaint); in onDraw()
177 canvas.drawBitmap(mBitmap, null, mRect, mPaint); in onDraw()
DColorSVRectView.java54 RectF mRect = new RectF(); field in ColorSVRectView
122 mRect.set(r); in onDraw()
123 mRect.top += mBorder; in onDraw()
124 mRect.bottom -= mBorder; in onDraw()
125 mRect.left += mBorder; in onDraw()
126 mRect.right -= mBorder; in onDraw()
127 canvas.drawBitmap(mBitmap, null, mRect, mPaint1); in onDraw()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBuiltInWallpaperAsset.java170 private Rect mRect; field in BuiltInWallpaperAsset.DecodeBitmapRegionAsyncTask
174 mRect = rect; in DecodeBitmapRegionAsyncTask()
182 float horizontalCenter = BitmapUtils.calculateHorizontalAlignment(dimensions, mRect); in doInBackground()
183 float verticalCenter = BitmapUtils.calculateVerticalAlignment(dimensions, mRect); in doInBackground()
186 mRect.width(), in doInBackground()
187 mRect.height(), in doInBackground()
/packages/apps/Settings/src/com/android/settings/widget/
DScrollToParentEditText.java32 private Rect mRect = new Rect(); field in ScrollToParentEditText
44 ((View) parent).getDrawingRect(mRect); in requestRectangleOnScreen()
45 return ((View) parent).requestRectangleOnScreen(mRect, immediate); in requestRectangleOnScreen()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DScrollToParentEditText.java32 private Rect mRect = new Rect(); field in ScrollToParentEditText
44 ((View) parent).getDrawingRect(mRect); in requestRectangleOnScreen()
45 return ((View) parent).requestRectangleOnScreen(mRect, immediate); in requestRectangleOnScreen()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAutoResizeListView.java30 private final Rect mRect = new Rect(); field in AutoResizeListView
43 getWindowVisibleDisplayFrame(mRect); in onMeasure()
47 final int desiredHeight = mRect.bottom - mCoords[1]; in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DTopRoundedCornerView.java34 private final RectF mRect = new RectF(); field in TopRoundedCornerView
78 mRect.set(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onMeasure()
80 mClipPath.addRoundRect(mRect, mRadii, Path.Direction.CW); in onMeasure()
/packages/apps/Gallery/src/com/android/camera/
DActionMenuButton.java39 private final RectF mRect = new RectF(); field in ActionMenuButton
76 final RectF rect = mRect; in draw()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java330 private final Rect mRect = new Rect(); field in DayView
1977 Rect r = mRect; in drawAfterScroll()
2170 Rect r = mRect; in doDraw()
2646 Rect r = mRect; in drawMoreAlldayEvents()
2778 Rect r = mRect; in drawEventRect()
3689 Rect region = mRect; in findSelectedEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java294 private final Rect mRect = new Rect(); field in ComposeActivity
2377 getWindow().getDecorView().getWindowVisibleDisplayFrame(mRect); in onFocusChange()
2378 final int deltaY = coords[1] - getSupportActionBar().getHeight() - mRect.top; in onFocusChange()