/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 19 import android.graphics.Rect; 42 new Rect(0, 30, 10, 40), // src (left, top, right, bottom) in testBelowNotCandidateForDirectionUp() 43 new Rect(0, 50, 10, 60)); // dest (left, top, right, bottom) in testBelowNotCandidateForDirectionUp() 48 final Rect src = new Rect(0, 30, 10, 40); in testAboveShareEdgeEdgeOkForDirectionUp() 50 final Rect dest = new Rect(src); in testAboveShareEdgeEdgeOkForDirectionUp() 62 new Rect(0, 0, 50, 50), in testCompletelyContainedNotCandidate() 63 new Rect(0, 1, 50, 49)); in testCompletelyContainedNotCandidate() 71 new Rect(0, 0, 50, 50), in testContinaedWithCommonBottomNotCandidate() 72 new Rect(0, 1, 50, 50)); in testContinaedWithCommonBottomNotCandidate() 80 new Rect(0, 0, 50, 50), in testOverlappingIsCandidateWhenBothEdgesAreInDirection() [all …]
|
/frameworks/native/include/ui/ |
D | Rect.h | 28 class Rect : public ARect, public LightFlattenablePod<Rect> 36 inline Rect() { in Rect() function 38 inline Rect(int32_t w, int32_t h) { in Rect() function 41 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) { in Rect() function 44 inline Rect(const Point& lt, const Point& rb) { in Rect() function 64 inline void set(const Rect& rhs) { in set() 78 inline Rect getBounds() const { in getBounds() 79 return Rect(right-left, bottom-top); in getBounds() 110 inline bool operator == (const Rect& rhs) const { 115 inline bool operator != (const Rect& rhs) const { [all …]
|
D | Region.h | 40 explicit Region(const Rect& rhs); 48 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds() 49 inline Rect bounds() const { return getBounds(); } in bounds() 55 void set(const Rect& r); 58 Region& orSelf(const Rect& rhs); 59 Region& xorSelf(const Rect& rhs); 60 Region& andSelf(const Rect& rhs); 61 Region& subtractSelf(const Rect& rhs); 70 const Region merge(const Rect& rhs) const; 71 const Region mergeExclusive(const Rect& rhs) const; [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 30 void Rect::makeInvalid() { in makeInvalid() 37 bool Rect::operator < (const Rect& rhs) const in operator <() 57 Rect& Rect::offsetTo(int32_t x, int32_t y) in offsetTo() 66 Rect& Rect::offsetBy(int32_t x, int32_t y) in offsetBy() 75 const Rect Rect::operator + (const Point& rhs) const in operator +() 77 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); in operator +() 81 const Rect Rect::operator - (const Point& rhs) const in operator -() 83 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y); in operator -() 87 bool Rect::intersect(const Rect& with, Rect* result) const in intersect() 96 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const { in transform() [all …]
|
D | Region.cpp | 44 op_nand = region_operator<Rect>::op_nand, 45 op_and = region_operator<Rect>::op_and, 46 op_or = region_operator<Rect>::op_or, 47 op_xor = region_operator<Rect>::op_xor 53 mStorage.add(Rect(0,0)); in Region() 64 Region::Region(const Rect& rhs) { in Region() 85 const Rect bounds(getBounds()); in makeBoundsSelf() 95 mStorage.add(Rect(0,0)); in clear() 98 void Region::set(const Rect& r) in set() 107 mStorage.add(Rect(w,h)); in set() [all …]
|
/frameworks/base/core/java/android/view/ |
D | FocusFinderHelper.java | 19 import android.graphics.Rect; 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() 48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() 52 public static int majorAxisDistance(int direction, Rect source, Rect dest) { in majorAxisDistance() 56 public static int majorAxisDistanceToFarEdge(int direction, Rect source, Rect dest) { in majorAxisDistanceToFarEdge()
|
D | FocusFinder.java | 19 import android.graphics.Rect; 46 final Rect mFocusedRect = new Rect(); 47 final Rect mOtherRect = new Rect(); 48 final Rect mBestCandidateRect = new Rect(); 76 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() 81 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() 113 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, in findNextFocus() 171 View focused, Rect focusedRect, int direction) { in findNextFocusInRelativeDirection() 190 private void setFocusBottomRight(ViewGroup root, Rect focusedRect) { in setFocusBottomRight() 196 private void setFocusTopLeft(ViewGroup root, Rect focusedRect) { in setFocusTopLeft() [all …]
|
D | IWindowSession.aidl | 22 import android.graphics.Rect; 38 in int viewVisibility, out Rect outContentInsets, in add() 41 in int viewVisibility, in int layerStackId, out Rect outContentInsets, in addToDisplay() 44 in int viewVisibility, out Rect outContentInsets); in addWithoutInputChannel() 46 in int viewVisibility, in int layerStackId, out Rect outContentInsets); in addToDisplayWithoutInputChannel() 87 int flags, out Rect outFrame, in relayout() 88 out Rect outContentInsets, out Rect outVisibleInsets, in relayout() 119 void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() 120 in Rect visibleInsets, in Region touchableRegion); in setInsets() 126 void getDisplayFrame(IWindow window, out Rect outDisplayFrame); in getDisplayFrame() [all …]
|
D | TouchDelegate.java | 19 import android.graphics.Rect; 46 private Rect mBounds; 52 private Rect mSlopBounds; 90 public TouchDelegate(Rect bounds, View delegateView) { in TouchDelegate() 94 mSlopBounds = new Rect(bounds); in TouchDelegate() 115 Rect bounds = mBounds; in onTouchEvent() 126 Rect slopBounds = mSlopBounds; in onTouchEvent()
|
D | WindowManagerPolicy.java | 22 import android.graphics.Rect; 157 public void computeFrameLw(Rect parentFrame, Rect displayFrame, in computeFrameLw() 158 Rect contentFrame, Rect visibleFrame); in computeFrameLw() 166 public Rect getFrameLw(); in getFrameLw() 183 public Rect getDisplayFrameLw(); in getDisplayFrameLw() 195 public Rect getContentFrameLw(); in getContentFrameLw() 207 public Rect getVisibleFrameLw(); in getVisibleFrameLw() 224 public Rect getGivenContentInsetsLw(); in getGivenContentInsetsLw() 234 public Rect getGivenVisibleInsetsLw(); in getGivenVisibleInsetsLw() 804 public int getSystemDecorRectLw(Rect systemRect); in getSystemDecorRectLw() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 31 class Rect { 44 inline Rect(): in Rect() function 51 inline Rect(float left, float top, float right, float bottom): in Rect() function 58 inline Rect(float width, float height): in Rect() function 65 friend int operator==(const Rect& a, const Rect& b) { 69 friend int operator!=(const Rect& a, const Rect& b) { 94 inline void set(const Rect& r) { in set() 110 bool intersects(const Rect& r) const { in intersects() 115 Rect tmp(l, t, r, b); in intersect() 124 bool intersect(const Rect& r) { in intersect() [all …]
|
D | Snapshot.h | 94 bool clipTransformed(const Rect& r, SkRegion::Op op = SkRegion::kIntersect_Op); 105 const Rect& getLocalClip(); 167 Rect viewport; 195 Rect* clipRect; 234 Rect mClipRectRoot; 235 Rect mLocalClip;
|
D | FontRenderer.h | 55 bool renderText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, 56 uint32_t len, int numGlyphs, int x, int y, Rect* bounds); 58 bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, 59 uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds); 61 bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, 62 uint32_t len, int numGlyphs, SkPath* path, float hOffset, float vOffset, Rect* bounds); 122 void initRender(const Rect* clip, Rect* bounds); 169 const Rect* mClip; 170 Rect* mBounds;
|
/frameworks/base/media/java/android/media/videoeditor/ |
D | EffectKenBurns.java | 20 import android.graphics.Rect; 30 private Rect mStartRect; 31 private Rect mEndRect; 52 public EffectKenBurns(MediaItem mediaItem, String effectId, Rect startRect, in EffectKenBurns() 53 Rect endRect, long startTimeMs, long durationMs) { in EffectKenBurns() 73 public Rect getStartRect() { in getStartRect() 83 public Rect getEndRect() { in getEndRect() 95 void getKenBurnsSettings(Rect start, Rect end) { in getKenBurnsSettings()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Rect.java | 33 public final class Rect implements Parcelable { class 45 public Rect() {} in Rect() method in Rect 57 public Rect(int left, int top, int right, int bottom) { in Rect() method in Rect 71 public Rect(Rect r) { in Rect() method in Rect 87 Rect r = (Rect) o; in equals() 154 public static Rect unflattenFromString(String str) { in unflattenFromString() 159 return new Rect(Integer.parseInt(matcher.group(1)), in unflattenFromString() 260 public void set(Rect src) { in set() 355 public boolean contains(Rect r) { in contains() 402 public boolean intersect(Rect r) { in intersect() [all …]
|
D | Region.java | 62 public Region(Rect r) { in Region() 88 public boolean set(Rect r) { in set() 127 public Rect getBounds() { in getBounds() 128 Rect r = new Rect(); in getBounds() 137 public boolean getBounds(Rect r) { in getBounds() 173 public boolean quickContains(Rect r) { in quickContains() 191 public boolean quickReject(Rect r) { in quickReject() 242 public final boolean union(Rect r) { in union() 250 public boolean op(Rect r, Op op) { in op() 276 public boolean op(Rect rect, Region region, Op op) { in op() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 29 import android.graphics.Rect; 58 private Rect mPadding; 78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() 87 Rect padding, String srcName) { in NinePatchDrawable() 99 Rect padding, Rect layoutInsets, String srcName) { in NinePatchDrawable() 111 this(new NinePatchState(patch, new Rect()), null); in NinePatchDrawable() 119 this(new NinePatchState(patch, new Rect()), res); in NinePatchDrawable() 205 Rect dest = mPadding; in computeBitmapSize() 206 Rect src = mNinePatchState.mPadding; in computeBitmapSize() 208 mPadding = dest = new Rect(src); in computeBitmapSize() [all …]
|
D | Drawable.java | 33 import android.graphics.Rect; 117 private static final Rect ZERO_BOUNDS_RECT = new Rect(); 122 private Rect mBounds = ZERO_BOUNDS_RECT; // lazily becomes a new Rect() 141 Rect oldBounds = mBounds; in setBounds() 144 oldBounds = mBounds = new Rect(); in setBounds() 158 public void setBounds(Rect bounds) { in setBounds() 170 public final void copyBounds(Rect bounds) { in copyBounds() 182 public final Rect copyBounds() { in copyBounds() 183 return new Rect(mBounds); in copyBounds() 201 public final Rect getBounds() { in getBounds() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeWindowSession.java | 21 import android.graphics.Rect; 40 public int add(IWindow arg0, int seq, LayoutParams arg1, int arg2, Rect arg3, in add() 49 Rect arg3, InputChannel outInputchannel) in addToDisplay() 57 Rect arg3) in addWithoutInputChannel() 65 int displayId, Rect arg3) in addToDisplayWithoutInputChannel() 89 int arg4_5, Rect arg5, Rect arg6, Rect arg7, Configuration arg7b, in relayout() 106 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { in getDisplayFrame() 126 public void setInsets(IWindow window, int touchable, Rect contentInsets, in setInsets() 127 Rect visibleInsets, Region touchableRegion) { in setInsets() 199 public void onRectangleOnScreenRequested(IBinder window, Rect rectangle, boolean immediate) { in onRectangleOnScreenRequested()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | MipmapDrawableTest.java | 21 import android.graphics.Rect; 113 mMipmapDrawable.setBounds(new Rect(0, 0, 0, mMipmapDrawable.getBounds().height() + 1)); in testSetBoundsOneItem() 123 mMipmapDrawable.setBounds(new Rect(0, 0, 0, mMipmapDrawable.getBounds().height() + 1)); in testSetBoundsOneItem() 127 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight() - 1)); in testSetBoundsOneItem() 130 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight())); in testSetBoundsOneItem() 133 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight() + 1)); in testSetBoundsOneItem() 147 mMipmapDrawable.setBounds(new Rect(0, 0, 0, small.getIntrinsicHeight() - 1)); in testSetBounds() 150 mMipmapDrawable.setBounds(new Rect(0, 0, 0, small.getIntrinsicHeight())); in testSetBounds() 153 mMipmapDrawable.setBounds(new Rect(0, 0, 0, small.getIntrinsicHeight() + 1)); in testSetBounds() 156 mMipmapDrawable.setBounds(new Rect(0, 0, 0, medium.getIntrinsicHeight() - 1)); in testSetBounds() [all …]
|
/frameworks/base/services/java/com/android/server/wm/ |
D | WindowState.java | 33 import android.graphics.Rect; 131 final Rect mVisibleInsets = new Rect(); 132 final Rect mLastVisibleInsets = new Rect(); 140 final Rect mContentInsets = new Rect(); 141 final Rect mLastContentInsets = new Rect(); 154 final Rect mGivenContentInsets = new Rect(); 160 final Rect mGivenVisibleInsets = new Rect(); 179 final Rect mSystemDecorRect = new Rect(); 180 final Rect mLastSystemDecorRect = new Rect(); 190 final Rect mFrame = new Rect(); [all …]
|
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
D | AccessibilityNodeInfoHelper.java | 19 import android.graphics.Rect; 36 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node) { in getVisibleBoundsInScreen() 41 Rect nodeRect = new Rect(); in getVisibleBoundsInScreen() 44 Rect displayRect = new Rect(); in getVisibleBoundsInScreen()
|
D | UiObject.java | 19 import android.graphics.Rect; 198 Rect rect = getVisibleBounds(); in swipeUp() 222 Rect rect = getVisibleBounds(); in swipeDown() 246 Rect rect = getVisibleBounds(); in swipeLeft() 269 Rect rect = getVisibleBounds(); in swipeRight() 282 private Rect getVisibleBounds(AccessibilityNodeInfo node) { in getVisibleBounds() 288 Rect nodeRect = AccessibilityNodeInfoHelper.getVisibleBoundsInScreen(node); in getVisibleBounds() 298 Rect parentRect = AccessibilityNodeInfoHelper in getVisibleBounds() 339 Rect rect = getVisibleBounds(node); in click() 380 Rect rect = getVisibleBounds(node); in clickAndWaitForNewWindow() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.h | 104 void setProjection(int orientation, const Rect& viewport, const Rect& frame); 108 const Rect& getViewport() const { return mViewport; } in getViewport() 109 const Rect& getFrame() const { return mFrame; } in getFrame() 123 Rect getBounds() const { in getBounds() 124 return Rect(mDisplayWidth, mDisplayHeight); in getBounds() 126 inline Rect bounds() const { return getBounds(); } in bounds() 203 Rect mViewport; 204 Rect mFrame;
|
/frameworks/base/services/java/com/android/server/display/ |
D | DisplayViewport.java | 19 import android.graphics.Rect; 40 public final Rect logicalFrame = new Rect(); 45 public final Rect physicalFrame = new Rect();
|