HomeSort by relevance Sort by last modified time
    Searched full:rect (Results 276 - 300 of 4154) sorted by null

<<11121314151617181920>>

  /external/skia/src/gpu/
GrRenderTarget.cpp 41 void GrRenderTarget::flagAsNeedingResolve(const SkIRect* rect) {
43 if (rect) {
44 fResolveRect.join(*rect);
54 void GrRenderTarget::overrideResolveRect(const SkIRect rect) {
55 fResolveRect = rect;
  /frameworks/base/core/java/com/android/internal/view/
FloatingActionMode.java 20 import android.graphics.Rect;
46 private final Rect mContentRect;
47 private final Rect mContentRectOnScreen;
48 private final Rect mPreviousContentRectOnScreen;
52 private final Rect mViewRectOnScreen;
53 private final Rect mPreviousViewRectOnScreen;
54 private final Rect mScreenRect;
91 mContentRect = new Rect();
92 mContentRectOnScreen = new Rect();
93 mPreviousContentRectOnScreen = new Rect();
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
AssetsAtlasActivity.java 24 import android.graphics.Rect;
56 final Rect src = new Rect(0, 0, mBitmap.getWidth() / 2, mBitmap.getHeight() / 2);
57 final Rect dst = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight());
  /frameworks/support/design/honeycomb/android/support/design/widget/
ViewGroupUtilsHoneycomb.java 20 import android.graphics.Rect;
30 public static void offsetDescendantRect(ViewGroup group, View child, Rect rect) {
46 rectF.set(rect);
48 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f),
  /prebuilts/go/darwin-x86/src/image/
ycbcr.go 59 Rect Rectangle
67 return p.Rect
75 if !(Point{x, y}.In(p.Rect)) {
90 return (y-p.Rect.Min.Y)*p.YStride + (x - p.Rect.Min.X)
98 return (y-p.Rect.Min.Y)*p.CStride + (x/2 - p.Rect.Min.X/2)
100 return (y/2-p.Rect.Min.Y/2)*p.CStride + (x/2 - p.Rect.Min.X/2)
102 return (y/2-p.Rect.Min.Y/2)*p.CStride + (x - p.Rect.Min.X
    [all...]
  /prebuilts/go/linux-x86/src/image/
ycbcr.go 59 Rect Rectangle
67 return p.Rect
75 if !(Point{x, y}.In(p.Rect)) {
90 return (y-p.Rect.Min.Y)*p.YStride + (x - p.Rect.Min.X)
98 return (y-p.Rect.Min.Y)*p.CStride + (x/2 - p.Rect.Min.X/2)
100 return (y/2-p.Rect.Min.Y/2)*p.CStride + (x/2 - p.Rect.Min.X/2)
102 return (y/2-p.Rect.Min.Y/2)*p.CStride + (x - p.Rect.Min.X
    [all...]
  /external/skia/src/gpu/batches/
GrNonAAFillRectBatch.cpp 48 coords and just duplicate the positions when the caller hasn't provided a local coord rect,
49 but we haven't seen a use case which frequently switches between local rect and no local
50 rect draws.
63 // the local rect on the cpu (in case the localMatrix also has perspective).
64 // Otherwise, if we have a local rect, then we apply the localMatrix directly to the localRect
85 const SkRect& rect,
89 positions->setRectFan(rect.fLeft, rect.fTop,
90 rect.fRight, rect.fBottom, vertexStride)
326 SkRect rect = GrTest::TestRect(random); local
    [all...]
  /external/skia/tests/
RRectInPathTest.cpp 193 const SkRect& rect,
197 rr.setNinePatch(rect, l, t, r, b);
206 rr2.setRectRadii(rect, radii);
218 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
221 rr1.setRect(rect);
226 rr1_2.setRectRadii(rect, rr1_2_radii);
229 rr1_3.setNinePatch(rect, 0, 0, 0, 0);
235 rr2.setOval(rect);
241 rr2_2.setRectRadii(rect, rr2_2_radii);
244 rr2_3.setNinePatch(rect, halfPoint.fX, halfPoint.fY, halfPoint.fX, halfPoint.fY)
286 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
311 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
321 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
337 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
    [all...]
RegionTest.cpp 13 static void Union(SkRegion* rgn, const SkIRect& rect) {
14 rgn->op(rect, SkRegion::kUnion_Op);
17 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect))
18 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
19 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
64 // These test SkRegion::contains(Rect) and SkRegion::contains(Region)
144 SkIRect r = iter.rect();
253 SkIRect rect[N]; local
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
uxtheme.h 52 const RECT *prcExclude;
56 THEMEAPI_(HPAINTBUFFER) BeginBufferedPaint(HDC hdcTarget,const RECT *prcTarget,BP_BUFFERFORMAT dwFormat,BP_PAINTPARAMS *pPaintParams,HDC *phdc);
58 THEMEAPI_(HRESULT) GetBufferedPaintTargetRect(HPAINTBUFFER hBufferedPaint,RECT *prc);
62 THEMEAPI_(HRESULT) BufferedPaintClear(HPAINTBUFFER hBufferedPaint,const RECT *prc);
63 THEMEAPI_(HRESULT) BufferedPaintSetAlpha(HPAINTBUFFER hBufferedPaint,const RECT *prc,BYTE alpha);
80 THEMEAPI_(HANIMATIONBUFFER) BeginBufferedAnimation(HWND hwnd,HDC hdcTarget,const RECT *rcTarget,BP_BUFFERFORMAT dwFormat,BP_PAINTPARAMS *pPaintParams,BP_ANIMATIONPARAMS *pAnimationParams,HDC *phdcFrom,HDC *phdcTo);
121 THEMEAPI DrawThemeBackground(HTHEME hTheme,HDC hdc,int iPartId,int iStateId,const RECT *pRect,const RECT *pClipRect);
125 THEMEAPI DrawThemeText(HTHEME hTheme,HDC hdc,int iPartId,int iStateId,LPCWSTR pszText,int iCharCount,DWORD dwTextFlags,DWORD dwTextFlags2,const RECT *pRect);
169 THEMEAPI GetThemeBackgroundContentRect(HTHEME hTheme,HDC hdc,int iPartId,int iStateId,const RECT *pBoundingRect,RECT *pContentRect)
    [all...]
  /external/opencv3/modules/objdetect/include/opencv2/objdetect/
detection_based_tracker.hpp 79 virtual void detect(const cv::Mat& image, std::vector<cv::Rect>& objects) = 0;
135 typedef std::pair<cv::Rect, int> Object;
136 virtual void getObjects(std::vector<cv::Rect>& result) const;
149 cv::Rect location;
151 ExtObject(int _id, cv::Rect _location, ObjectStatus _status)
159 virtual int addObject(const cv::Rect& location); //returns id of the new object
184 typedef std::vector<cv::Rect> PositionsVector;
192 TrackedObject(const cv::Rect& rect):numDetectedFrames(1), numFramesNotDetected(0)
194 lastPositions.push_back(rect);
    [all...]
  /external/skia/gm/
blurrect.cpp 23 SkRect rect; local
26 rect = r;
27 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2);
28 path.addRect(rect);
29 rect = r;
30 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
32 path.addRect(rect);
39 SkRect rect; local
42 rect = r;
43 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2)
    [all...]
  /external/skia/include/gpu/
GrClip.h 17 * masks. 'A GrClip is either wide open, just an IRect, just a Rect, or a full clipstack.
31 GrClip(const SkIRect& rect) : fClipType(kIRect_ClipType) {
33 fClip.fIRect = rect;
36 GrClip(const SkRect& rect) : fClipType(kIRect_ClipType) {
38 fClip.fIRect.fLeft = SkScalarRoundToInt(rect.fLeft);
39 fClip.fIRect.fTop = SkScalarRoundToInt(rect.fTop);
40 fClip.fIRect.fRight = SkScalarRoundToInt(rect.fRight);
41 fClip.fIRect.fBottom = SkScalarRoundToInt(rect.fBottom);
138 bool isWideOpen(const SkRect& rect) const {
141 (kIRect_ClipType == fClipType && this->irect().contains(rect));
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DefaultMeasureSpecTest.java 24 import android.graphics.Rect;
48 private final Rect mPadding;
72 20, new Rect(0, 0, 0, 0)},
74 0, new Rect(0, 0, 0, 0)},
76 100, new Rect(0, 0, 0, 0)},
78 10, 0, new Rect(0, 0, 0, 0)},
80 0, 100, new Rect(0, 0, 0, 0)},
82 20, new Rect(39, 50, 34, 23)},
84 50, new Rect(3, 35, 3, 15)},
86 100, new Rect(3, 350, 3, 15)}
    [all...]
TestResizingRelayoutWithAutoMeasure.java 27 import android.graphics.Rect;
96 Map<Integer, Rect> startPositions = capturePositions(recyclerView);
107 Map<Integer, Rect> endPositions = capturePositions(recyclerView);
113 private void assertStartItemPositions(Map<Integer, Rect> startPositions,
114 Map<Integer, Rect> endPositions) {
115 for (Map.Entry<Integer, Rect> entry : startPositions.entrySet()) {
116 Rect rect = endPositions.get(entry.getKey()); local
117 assertThat("view for position " + entry.getKey() + " at" + entry.getValue(), rect,
119 assertThat("rect for position " + entry.getKey(), entry.getValue(), is(rect))
    [all...]
  /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/
ImageProcessor.java 20 import com.badlogic.gdx.tools.texturepacker.TexturePacker.Rect;
47 private final HashMap<String, Rect> crcs = new HashMap();
48 private final Array<Rect> rects = new Array();
87 Rect rect = addImage(image, name); local
88 if (rect != null && settings.limitMemory) rect.unloadImage(file);
93 public Rect addImage (BufferedImage image, String name) {
94 Rect rect = processImage(image, name) local
143 Rect rect = null; local
    [all...]
  /external/drm_hwcomposer/
separate_rects.cpp 59 std::ostream &operator<<(std::ostream &os, const Rect<TNum> &rect) {
60 return os << rect.bounds[0] << ", " << rect.bounds[1] << ", "
61 << rect.bounds[2] << ", " << rect.bounds[3];
74 void separate_rects(const std::vector<Rect<TNum>> &in,
97 // A started rect is a rectangle whose left, top, bottom edge, and set of
110 const Rect<TNum> &rect = in[i] local
132 const Rect<TNum> &rect = in[h_evt.rect_id]; local
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ViewOverlayTest.java 20 import android.graphics.Rect;
78 final List<Pair<Rect, Integer>> colorRectangles = new ArrayList<>();
79 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED));
99 final List<Pair<Rect, Integer>> colorRectangles = new ArrayList<>();
100 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED));
116 final List<Pair<Rect, Integer>> colorRectangles = new ArrayList<>();
117 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED));
148 final List<Pair<Rect, Integer>> colorRectangles = new ArrayList<>();
149 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED));
150 colorRectangles.add(new Pair<>(new Rect(60, 30, 90, 50), Color.GREEN))
    [all...]
  /external/webrtc/webrtc/modules/desktop_capture/win/
screen_capturer_win_magnifier.cc 117 DesktopRect rect = GetScreenRect(current_screen_id_, current_device_key_); local
118 CreateCurrentFrameIfNecessary(rect.size());
121 succeeded = CaptureImage(rect);
196 bool ScreenCapturerWinMagnifier::CaptureImage(const DesktopRect& rect) {
199 // Set the magnifier control to cover the captured rect. The content of the
203 rect.left(), rect.top(),
204 rect.width(), rect.height(),
208 << ". Rect = {" << rect.left() << ", " << rect.top(
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
ScissorStack.java 91 private static void fix (Rectangle rect) {
92 rect.x = Math.round(rect.x);
93 rect.y = Math.round(rect.y);
94 rect.width = Math.round(rect.width);
95 rect.height = Math.round(rect.height);
96 if (rect.width < 0) {
    [all...]
  /external/pdfium/xfa/src/fwl/src/lightwidget/
widget.cpp 53 FWL_ERR CFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
56 return m_pIface->GetWidgetRect(rect, bAutoSize);
58 FWL_ERR CFWL_Widget::GetGlobalRect(CFX_RectF& rect) {
61 return m_pIface->GetGlobalRect(rect);
63 FWL_ERR CFWL_Widget::SetWidgetRect(const CFX_RectF& rect) {
66 return m_pIface->SetWidgetRect(rect);
68 FWL_ERR CFWL_Widget::GetClientRect(CFX_RectF& rect) {
71 return m_pIface->GetClientRect(rect);
209 CFX_RectF rect;
211 rect = *pRect;
295 CFX_RectF rect; local
    [all...]
  /cts/apps/CameraITS/tests/scene2/
test_faces.py 67 for rect in face_rectangles:
68 assert(rect['top'] < rect['bottom'])
69 assert(rect['left'] < rect['right'])
70 assert(0 <= rect['top'] <= ah)
71 assert(0 <= rect['bottom'] <= ah)
72 assert(0 <= rect['left'] <= aw)
73 assert(0 <= rect['right'] <= aw)
  /external/pdfium/fpdfsdk/src/fpdfxfa/
fpdfxfa_page.cpp 130 CFX_RectF rect; local
131 m_pXFAPageView->GetPageViewRect(rect);
132 return rect.width;
162 CFX_RectF rect; local
163 m_pXFAPageView->GetPageViewRect(rect);
164 return rect.height;
241 CFX_Rect rect; local
242 rect.Set(xPos, yPos, xSize, ySize);
243 m_pXFAPageView->GetDisplayMatrix(matrix, rect, iRotate);
  /frameworks/base/libs/hwui/
GlopBuilder.h 53 GlopBuilder& setMeshTexturedUvQuad(const UvMapper* uvMapper, const Rect uvs);
83 GlopBuilder& setModelViewMapUnitToRect(const Rect destination);
84 GlopBuilder& setModelViewMapUnitToRectSnap(const Rect destination);
85 GlopBuilder& setModelViewMapUnitToRectOptionalSnap(bool snap, const Rect& destination) {
92 GlopBuilder& setModelViewOffsetRect(float offsetX, float offsetY, const Rect source);
93 GlopBuilder& setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect source);
95 float offsetX, float offsetY, const Rect& source) {
103 // pass empty rect since not needed for damage / snap
104 return setModelViewOffsetRect(0, 0, Rect());
  /frameworks/native/libs/gui/tests/
FillBuffer.cpp 55 const android_native_rect_t& rect) {
64 bool inside = rect.left <= x && x < rect.right &&
65 rect.top <= y && y < rect.bottom;
68 bool inside = rect.left <= 2*x && 2*x < rect.right &&
69 rect.top <= 2*y && 2*y < rect.bottom;

Completed in 1435 milliseconds

<<11121314151617181920>>