/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskImageContainer.java | 19 import android.graphics.Rect; 76 public final Rect cropApplied; 79 int aFormat, Rect crop) { in TaskImage() 196 protected Rect rotateBoundingBox(Rect box, OrientationManager.DeviceOrientation orientation) { in rotateBoundingBox() 199 return new Rect(box); in rotateBoundingBox() 202 return new Rect(box.top, box.left, box.bottom, box.right); in rotateBoundingBox() 225 public Rect guaranteedSafeCrop(ImageProxy image, @Nullable Rect crop) { in guaranteedSafeCrop() 244 public Rect guaranteedSafeCrop(int width, int height, @Nullable Rect crop) { in guaranteedSafeCrop() 246 return new Rect(0, 0, width, height); in guaranteedSafeCrop() 248 Rect safeCrop = new Rect(crop); in guaranteedSafeCrop() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartView.java | 21 import android.graphics.Rect; 49 private Rect mContent = new Rect(); 106 final Rect parentRect = new Rect(); in onLayout() 107 final Rect childRect = new Rect(); in onLayout() 129 final Rect parentRect = new Rect(mContent); in layoutSweep() 130 final Rect childRect = new Rect(); in layoutSweep() 136 protected void layoutSweep(ChartSweepView sweep, Rect parentRect, Rect childRect) { in layoutSweep() 137 final Rect sweepMargins = sweep.getMargins(); in layoutSweep()
|
D | ChartSweepView.java | 26 import android.graphics.Rect; 52 private Rect mSweepPadding = new Rect(); 55 private Rect mContentOffset = new Rect(); 59 private Rect mMargins = new Rect(); 169 public Rect getMargins() { in getMargins() 486 final Rect parentContent = getParentContentRect(); in onTouchEvent() 487 final Rect clampRect = computeClampRect(parentContent); in onTouchEvent() 546 final Rect parentContent = getParentContentRect(); 560 private Rect getParentContentRect() { 562 return new Rect(parent.getPaddingLeft(), parent.getPaddingTop(), [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartView.java | 21 import android.graphics.Rect; 49 private Rect mContent = new Rect(); 106 final Rect parentRect = new Rect(); in onLayout() 107 final Rect childRect = new Rect(); in onLayout() 129 final Rect parentRect = new Rect(mContent); in layoutSweep() 130 final Rect childRect = new Rect(); in layoutSweep() 136 protected void layoutSweep(ChartSweepView sweep, Rect parentRect, Rect childRect) { in layoutSweep() 137 final Rect sweepMargins = sweep.getMargins(); in layoutSweep()
|
D | ChartSweepView.java | 26 import android.graphics.Rect; 52 private Rect mSweepPadding = new Rect(); 55 private Rect mContentOffset = new Rect(); 59 private Rect mMargins = new Rect(); 169 public Rect getMargins() { in getMargins() 486 final Rect parentContent = getParentContentRect(); in onTouchEvent() 487 final Rect clampRect = computeClampRect(parentContent); in onTouchEvent() 546 final Rect parentContent = getParentContentRect(); 560 private Rect getParentContentRect() { 562 return new Rect(parent.getPaddingLeft(), parent.getPaddingTop(), [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | ClipAnimationHelper.java | 28 import android.graphics.Rect; 61 private final Rect mSourceStackBounds = new Rect(); 63 private final Rect mSourceInsets = new Rect(); 77 public final Rect mHomeStackBounds = new Rect(); 83 private final Rect mTmpRect = new Rect(); 120 public void updateSource(Rect homeStackBounds, RemoteAnimationTargetCompat target) { in updateSource() 125 public void updateHomeBounds(Rect homeStackBounds) { in updateHomeBounds() 129 public void updateTargetRect(Rect targetRect) { in updateTargetRect() 190 Rect crop = mTmpRect; in applyTransform() 289 Rect fallback = dl.getInsets(); in fromTaskThumbnailView() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | RenderingRequest.java | 21 import android.graphics.Rect; 36 private Rect mBounds = null; 37 private Rect mDestination = null; 38 private Rect mIconBounds = null; 56 RenderingRequestCaller caller, Rect bounds, Rect destination) { in post() 110 request.setIconBounds(new Rect(0, 0, w, h)); in postIconRequest() 166 public Rect getBounds() { in getBounds() 170 public void setBounds(Rect bounds) { in setBounds() 182 public Rect getDestination() { in getDestination() 186 public void setDestination(Rect destination) { in setDestination() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
D | FocusIndicatorHelper.java | 29 import android.graphics.Rect; 73 private static final RectEvaluator RECT_EVALUATOR = new RectEvaluator(new Rect()); 74 private static final Rect sTempRect1 = new Rect(); 75 private static final Rect sTempRect2 = new Rect(); 81 private final Rect mDirtyRect = new Rect(); 125 Rect newRect = getDrawRect(); in invalidateDirty() 133 Rect newRect = getDrawRect(); in draw() 142 private Rect getDrawRect() { in getDrawRect() 212 public abstract void viewToRect(View v, Rect outRect); in viewToRect() 250 public void viewToRect(View v, Rect outRect) { in viewToRect()
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
D | PopupTransitionAnimation.java | 23 import android.graphics.Rect; 46 private final Rect mStartRect; 49 private Rect mCurrentRect; 52 private final Rect mDestRect; 55 private final Rect mPopupRect; 58 private final Rect mActionBarRect; 61 private final TypeEvaluator<Rect> mRectEvaluator; 75 public PopupTransitionAnimation(final Rect startRect, final View viewToAnimate) { in PopupTransitionAnimation() 78 mCurrentRect = new Rect(mStartRect); in PopupTransitionAnimation() 79 mDestRect = new Rect(); in PopupTransitionAnimation() [all …]
|
D | RectEvaluatorCompat.java | 20 import android.graphics.Rect; 28 public class RectEvaluatorCompat implements TypeEvaluator<Rect> { 29 public static TypeEvaluator<Rect> create() { in create() 38 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { in evaluate() 43 return new Rect(left, top, right, bottom); in evaluate()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | CropRectRotator.java | 19 import android.graphics.Rect; 34 public static Rect rotateCropRectForExifOrientation(Point dimensions, Rect srcRect, in rotateCropRectForExifOrientation() 39 return new Rect(srcRect); in rotateCropRectForExifOrientation() 41 return new Rect(srcRect.top, dimensions.x - srcRect.right, srcRect.bottom, in rotateCropRectForExifOrientation() 44 return new Rect(dimensions.x - srcRect.right, dimensions.y - srcRect.bottom, in rotateCropRectForExifOrientation() 47 … return new Rect(dimensions.y - srcRect.bottom, srcRect.left, dimensions.y - srcRect.top, in rotateCropRectForExifOrientation() 51 return new Rect(srcRect); in rotateCropRectForExifOrientation()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MediaPickerMessagePartData.java | 19 import android.graphics.Rect; 23 private final Rect mStartRect; 25 public MediaPickerMessagePartData(final Rect startRect, final String contentType, in MediaPickerMessagePartData() 30 public MediaPickerMessagePartData(final Rect startRect, final String messageText, in MediaPickerMessagePartData() 36 public MediaPickerMessagePartData(final Rect startRect, final String contentType, in MediaPickerMessagePartData() 43 public MediaPickerMessagePartData(final Rect startRect, final String messageText, in MediaPickerMessagePartData() 54 public Rect getStartRect() { in getStartRect() 61 public void setStartRect(final Rect startRect) { in setStartRect()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InsettableFrameLayout.java | 5 import android.graphics.Rect; 15 protected Rect mInsets = new Rect(); 17 public Rect getInsets() { in getInsets() 25 public void setFrameLayoutChildInsets(View child, Rect newInsets, Rect oldInsets) { in setFrameLayoutChildInsets() 40 public void setInsets(Rect insets) { in setInsets() 94 setFrameLayoutChildInsets(child, mInsets, new Rect()); in onViewAdded() 97 public static void dispatchInsets(ViewGroup parent, Rect insets) { in dispatchInsets()
|
D | LauncherRootView.java | 13 import android.graphics.Rect; 25 private final Rect mTempRect = new Rect(); 32 private final Rect mConsumedInsets = new Rect(); 35 private static final List<Rect> SYSTEM_GESTURE_EXCLUSION_RECT = 36 Collections.singletonList(new Rect()); 63 private void handleSystemWindowInsets(Rect insets) { in handleSystemWindowInsets() 120 public void setInsets(Rect insets) { in setInsets()
|
D | CellLayout.java | 36 import android.graphics.Rect; 129 @Thunk final Rect[] mDragOutlines = new Rect[4]; 175 private final Rect mOccupiedRect = new Rect(); 180 private final Rect mTempRect = new Rect(); 238 mDragOutlines[i] = new Rect(-1, -1, -1, -1); in CellLayout() 739 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() 962 Rect dragRegion = dragObject.dragView.getDragRegion(); in visualizeDropLocation() 970 Rect r = mDragOutlines[mDragOutlineCurrent]; in visualizeDropLocation() 1064 private final Stack<Rect> mTempRectStack = new Stack<>(); 1068 mTempRectStack.push(new Rect()); in lazyInitTempRectStack() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | AutoFocusHelper.java | 20 import android.graphics.Rect; 128 float fraction, final Rect cropRegion, int sensorOrientation) { in regionsForNormalizedCoord() 144 Rect meteringRegion = new Rect(xCenterSensor - halfSideLength, in regionsForNormalizedCoord() 169 float ny, final Rect cropRegion, int sensorOrientation) { in afRegionsForNormalizedCoord() 185 float ny, final Rect cropRegion, int sensorOrientation) { in aeRegionsForNormalizedCoord() 201 float ny, final Rect cropRegion, int sensorOrientation) { in gcamAERegionsForNormalizedCoord() 211 public static Rect cropRegionForZoom(CameraCharacteristics characteristics, float zoom) { in cropRegionForZoom() 212 Rect sensor = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in cropRegionForZoom() 217 return new Rect(xCenter - xDelta, yCenter - yDelta, xCenter + xDelta, yCenter + yDelta); in cropRegionForZoom()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | IconShape.java | 33 import android.graphics.Rect; 104 Rect startRect, Rect endRect, float endRadius, boolean isReversed); in createRevealAnimator() 118 Rect startRect, Rect endRect, float endRadius, boolean isReversed) { in createRevealAnimator() 128 protected abstract float getStartRadius(Rect startRect); in getStartRadius() 147 Rect startRect, Rect endRect, float endRadius, Path outPath); 151 Rect startRect, Rect endRect, float endRadius, boolean isReversed) { 198 protected float getStartRadius(Rect startRect) { 237 protected float getStartRadius(Rect startRect) { 272 protected AnimatorUpdateListener newUpdateListener(Rect startRect, Rect endRect, 334 protected AnimatorUpdateListener newUpdateListener(Rect startRect, Rect endRect,
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
D | ZoomedCropRegion.java | 19 import android.graphics.Rect; 27 public class ZoomedCropRegion implements Supplier<Rect> { 28 private final Rect mSensorArrayArea; 31 public ZoomedCropRegion(Rect sensorArrayArea, Supplier<Float> zoom) { in ZoomedCropRegion() 37 public Rect get() { in get() 39 Rect sensor = mSensorArrayArea; in get() 44 return new Rect(xCenter - xDelta, yCenter - yDelta, xCenter + xDelta, yCenter + yDelta); in get()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 11 import android.graphics.Rect; 68 int nextId = setupWorkspaceWithHoles(1, 1, new Rect(2, 2, 3, 3)); in testFindSpaceForItem_prefers_second() 71 setupWorkspaceWithHoles(nextId, 2, new Rect(2, 0, 5, 2), new Rect(0, 2, 2, 5)); in testFindSpaceForItem_prefers_second() 90 setupWorkspaceWithHoles(1, 1, new Rect(2, 0, 5, 2), new Rect(0, 2, 2, 5)); in testFindSpaceForItem_adds_new_screen() 105 setupWorkspaceWithHoles(1, 1, new Rect(2, 2, 3, 3)); in testAddItem_existing_item_ignored() 120 setupWorkspaceWithHoles(1, 1, new Rect(2, 2, 3, 3)); in testAddItem_some_items_added() 136 private int setupWorkspaceWithHoles(int startId, int screenId, Rect... holes) throws Exception { in setupWorkspaceWithHoles() 139 for (Rect r : holes) { in setupWorkspaceWithHoles()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 25 import android.graphics.Rect; 87 Rect viewDrawingRect = new Rect(); in draw() 180 Rect r = computeLayout(); in getHit() 243 Rect r = computeLayout(); in handleMotion() 269 Rect invalRect = new Rect(mDrawRect); in moveBy() 349 public Rect getCropRect() { in getCropRect() 350 return new Rect((int) mCropRect.left, (int) mCropRect.top, in getCropRect() 355 private Rect computeLayout() { in computeLayout() 359 return new Rect(Math.round(r.left), Math.round(r.top), in computeLayout() 367 public void setup(Matrix m, Rect imageRect, RectF cropRect, boolean circle, in setup() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 19 import android.graphics.Rect; 89 private final Rect mTempRect = new Rect(); 111 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex() 119 Rect rect = mLayout.getSlotRect(index, mTempRect); in makeSlotVisible() 197 public Rect getSlotRect(int slotIndex) { in getSlotRect() 198 return mLayout.getSlotRect(slotIndex, new Rect()); in getSlotRect() 316 Rect rect = mLayout.getSlotRect(index, mTempRect); in renderItem() 344 abstract public void apply(GLCanvas canvas, int slotIndex, Rect target); in apply() 351 public void apply(GLCanvas canvas, int slotIndex, Rect target) { in apply() 365 public void apply(GLCanvas canvas, int slotIndex, Rect target) { in apply() [all …]
|
D | PhotoView.java | 23 import android.graphics.Rect; 212 private Rect mCameraRelativeFrame = new Rect(); 213 private Rect mCameraRect = new Rect(); 543 public void setCameraRelativeFrame(Rect frame) { in setCameraRelativeFrame() 583 void draw(GLCanvas canvas, Rect r); in draw() 643 public void draw(GLCanvas canvas, Rect r) { in draw() 675 private void drawTileView(GLCanvas canvas, Rect r) { in drawTileView() 804 public void draw(GLCanvas canvas, Rect r) { in draw() 914 private void drawPlaceHolder(GLCanvas canvas, Rect r) { in drawPlaceHolder() 1282 Rect r = mPositionController.getPosition(mTouchBoxIndex); [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | InputView.java | 20 import android.graphics.Rect; 32 private final Rect mInputViewRect = new Rect(); 70 final Rect rect = mInputViewRect; in onInterceptTouchEvent() 100 final Rect rect = mInputViewRect; in onTouchEvent() 121 protected final Rect mEventSendingRect = new Rect(); 122 protected final Rect mEventReceivingRect = new Rect();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureTrailsDrawingPreview.java | 26 import android.graphics.Rect; 44 private final Rect mOffscreenSrcRect = new Rect(); 45 private final Rect mDirtyRect = new Rect(); 46 private final Rect mGestureTrailBoundsRect = new Rect(); // per trail 95 final Rect dirtyRect) { in drawGestureTrails()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | TypefaceUtils.java | 20 import android.graphics.Rect; 35 private static final Rect sTextHeightBounds = new Rect(); 55 private static final Rect sTextWidthBounds = new Rect(); 100 private static final Rect sStringWidthBounds = new Rect();
|