/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/Launcher3/src/com/android/launcher3/ |
D | BaseContainerView.java | 21 import android.graphics.Rect; 36 private final Rect mInsets = new Rect(); 38 protected final Rect mContentPadding = new Rect(); 87 final public void setInsets(Rect insets) { in setInsets() 95 final public void setSearchBarBounds(Rect bounds) { in setSearchBarBounds() 110 Rect padding; in updateBackgroundAndPaddings() 111 padding = new Rect( in updateBackgroundAndPaddings() 125 private void onUpdateBackgroundAndPaddings(Rect padding) { in onUpdateBackgroundAndPaddings() 139 Rect bgPadding = new Rect(); in onUpdateBackgroundAndPaddings() 144 protected abstract void onUpdateBgPadding(Rect padding, Rect bgPadding); in onUpdateBgPadding()
|
D | BaseRecyclerViewFastScrollPopup.java | 24 import android.graphics.Rect; 39 private Rect mBgBounds = new Rect(); 41 private Rect mInvalidateRect = new Rect(); 42 private Rect mTmpRect = new Rect(); 46 private Rect mTextBounds = new Rect(); 80 public Rect updateFastScrollerBounds(int lastTouchY) { in updateFastScrollerBounds()
|
D | BorderCropDrawable.java | 21 import android.graphics.Rect; 27 private final Rect mBoundsShift; 28 private final Rect mPadding; 34 mBoundsShift = new Rect(); in BorderCropDrawable() 35 mPadding = new Rect(); in BorderCropDrawable() 57 protected void onBoundsChange(Rect bounds) { in onBoundsChange() 66 public boolean getPadding(Rect padding) { in getPadding()
|
D | InsettableFrameLayout.java | 5 import android.graphics.Rect; 14 protected Rect mInsets = new Rect(); 21 public void setFrameLayoutChildInsets(View child, Rect newInsets, Rect oldInsets) { in setFrameLayoutChildInsets() 36 public void setInsets(Rect insets) { in setInsets() 89 setFrameLayoutChildInsets(child, mInsets, new Rect()); in onChildViewAdded()
|
D | DeviceProfile.java | 26 import android.graphics.Rect; 69 public final Rect defaultWidgetPadding; 196 Rect workspacePadding = getWorkspacePadding(false /* isLayoutRtl */); in updateAvailableDimensions() 287 Rect searchBarBounds = getSearchBarBounds(Utilities.isRtl(res)); in getSearchBarDimensForWidgetOpts() 297 public Rect getSearchBarBounds(boolean isLayoutRtl) { in getSearchBarBounds() 298 Rect bounds = new Rect(); in getSearchBarBounds() 330 Rect getWorkspacePadding(boolean isLayoutRtl) { in getWorkspacePadding() 331 Rect searchBarBounds = getSearchBarBounds(isLayoutRtl); in getWorkspacePadding() 332 Rect padding = new Rect(); in getWorkspacePadding() 391 Rect getHotseatRect() { in getHotseatRect() [all …]
|
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
D | DisplayConfiguration.java | 20 import android.graphics.Rect; 31 private final Rect mPrimaryRegion; 34 private final Rect mSecondaryRegion; 50 mPrimaryRegion = in.readTypedObject(Rect.CREATOR); in DisplayConfiguration() 51 mSecondaryRegion = in.readTypedObject(Rect.CREATOR); in DisplayConfiguration() 54 public DisplayConfiguration(Rect primaryRegion) { in DisplayConfiguration() 58 public DisplayConfiguration(Rect primaryRegion, @Nullable Rect secondaryRegion) { in DisplayConfiguration() 65 public Rect getPrimaryRegion() { in getPrimaryRegion() 75 public Rect getSecondaryRegion() { in getSecondaryRegion()
|
/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() 135 final Rect parentRect = new Rect(mContent); in layoutSweep() 136 final Rect childRect = new Rect(); in layoutSweep() 142 protected void layoutSweep(ChartSweepView sweep, Rect parentRect, Rect childRect) { in layoutSweep() 143 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() 483 final Rect parentContent = getParentContentRect(); in onTouchEvent() 484 final Rect clampRect = computeClampRect(parentContent); in onTouchEvent() 543 final Rect parentContent = getParentContentRect(); 557 private Rect getParentContentRect() { 559 return new Rect(parent.getPaddingLeft(), parent.getPaddingTop(), [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/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/camera/ |
D | CameraTestFragment.java | 23 import android.graphics.Rect; 81 Rect rect = mRvcCamera.getCameraCrop(); in onCreateView() 97 Rect rect = mRvcCamera.getCameraPosition(); in onCreateView() 128 Rect rect = new Rect(160, 240, 560, 480); in onCreateView() 140 Rect rect = new Rect(0, 0, 720, 480); in onCreateView() 152 Rect rect = new Rect(300, 0, 800, 480); in onCreateView() 164 Rect rect = new Rect(500, 0, 800, 480); in onCreateView() 176 Rect rect = new Rect(300, 0, 500, 300); in onCreateView()
|
/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/services/Car/service/src/com/android/car/ |
D | CarCameraService.java | 22 import android.graphics.Rect; 124 public Rect getCameraCrop(int cameraType) { in getCameraCrop() 125 Rect rect; in getCameraCrop() 137 public void setCameraCrop(int cameraType, Rect rect) { in setCameraCrop() 148 public Rect getCameraPosition(int cameraType) { in getCameraPosition() 149 Rect rect; in getCameraPosition() 161 public void setCameraPosition(int cameraType, Rect rect) { in setCameraPosition() 218 private native Rect nativeGetCameraCrop(long device); in nativeGetCameraCrop() 219 private native void nativeSetCameraCrop(long device, Rect rect); in nativeSetCameraCrop() 220 private native Rect nativeGetCameraPosition(long device); in nativeGetCameraPosition() [all …]
|
/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/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/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();
|
/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/apps/TV/usbtuner/src/com/android/usbtuner/layout/ |
D | ScaledLayout.java | 21 import android.graphics.Rect; 38 private static final Comparator<Rect> mRectTopLeftSorter = new Comparator<Rect>() { 40 public int compare(Rect lhs, Rect rhs) { 49 private Rect[] mRectArray; 132 mRectArray = new Rect[count]; in onMeasure() 166 mRectArray[i] = new Rect((int) (scaleStartCol * width), (int) (scaleStartRow * height), in onMeasure() 199 Rect[] visibleRectArray = new Rect[count]; in onMeasure() 212 if (Rect.intersects(visibleRectArray[i], visibleRectArray[j])) { in onMeasure()
|
/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/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 | TileImageViewAdapter.java | 25 import android.graphics.Rect; 94 Rect wantRegion = new Rect(x, y, x + t, y + t); in getTile() 105 needClear = !new Rect(0, 0, mImageWidth, mImageHeight) in getTile() 143 Rect wantRegion = new Rect(x, y, x + t, y + t); in getTileWithoutReusingBitmap() 146 Rect overlapRegion; in getTileWithoutReusingBitmap() 151 overlapRegion = new Rect(0, 0, mImageWidth, mImageHeight); in getTileWithoutReusingBitmap()
|
/packages/services/Car/car-lib/src/android/car/hardware/camera/ |
D | ICarCamera.aidl | 20 import android.graphics.Rect; 28 Rect getCameraCrop(in int cameraType) = 2; in getCameraCrop() 30 void setCameraCrop(in int cameraType, in Rect rect) = 3; in setCameraCrop() 32 Rect getCameraPosition(in int cameraType) = 4; in getCameraPosition() 34 void setCameraPosition(in int cameraType, in Rect rect) = 5; in setCameraPosition()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 22 import android.graphics.Rect; 83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight); in drawIcon() 86 Rect srcRect = null; in drawIcon() 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); in drawIcon() 102 srcRect = new Rect(); in drawIcon()
|