/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | BoundsRule.java | 113 * @param rect Represents the current bounds. 116 public void calculateBounds(Rect rect, Rect result) { argument 118 result.left = rect.left; 120 result.left = doCalculate(rect.left, left, rect.width()); 124 result.right = rect.right; 126 result.right = doCalculate(rect.left, right, rect.width()); 130 result.top = rect.top; 132 result.top = doCalculate(rect [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | GridLayoutManager.java | 2793 public boolean requestChildRectangleOnScreen(RecyclerView parent, View view, Rect rect, argument 2795 if (DEBUG) Log.v(getTag(), "requestChildRectangleOnScreen " + view + " " + rect);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SearchView.java | 848 private void getChildBoundsWithinSearchView(View view, Rect rect) { argument 853 rect.set(left, top, left + view.getWidth(), top + view.getHeight()); 1730 * view. This rect is used for initial hit testing. 1736 * view. This rect is used for event coordinate mapping. 1741 * mTargetBounds inflated to include some slop. This rect is to track whether the motion events
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 2555 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument 2556 return mLayout.requestChildRectangleOnScreen(this, child, rect, immediate); 4637 * @param outBounds A rect that will receive the bounds of the element including its 9006 * @param outBounds A rect that will receive the bounds of the element including its 9196 * Returns the scroll amount that brings the given rect in child's coordinate system within 9200 * @param rect The rectangle in the child's coordinates the child 9205 * given rect into RV's padded area. 9208 Rect rect, boolean immediate) { 9214 final int childLeft = child.getLeft() + rect.left - child.getScrollX(); 9215 final int childTop = child.getTop() + rect 9207 getChildRectangleOnScreenScrollAmount(RecyclerView parent, View child, Rect rect, boolean immediate) argument 9259 requestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, boolean immediate) argument 9278 requestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, boolean immediate, boolean focusedChildVisible) argument [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | NestedScrollView.java | 1519 * If rect is off screen, scroll just enough to get it (or at least the 1522 * @param rect The rectangle. 1526 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument 1527 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect); 1544 * @param rect The rect. 1547 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument 1556 // leave room for top fading edge as long as rect isn't at very top 1557 if (rect.top > 0) { 1561 // leave room for bottom fading edge as long as rect is [all...] |
/frameworks/support/design/base/android/support/design/widget/ |
H A D | FloatingActionButtonImpl.java | 315 Rect rect = mTmpRect; 316 getPadding(rect); 317 onPaddingUpdated(rect); 318 mShadowViewDelegate.setShadowPadding(rect.left, rect.top, rect.right, rect.bottom); 321 void getPadding(Rect rect) { argument 322 mShadowDrawable.getPadding(rect);
|
/frameworks/support/design/lollipop/android/support/design/widget/ |
H A D | FloatingActionButtonLollipop.java | 200 void getPadding(Rect rect) { argument 208 rect.set(hPadding, vPadding, hPadding, vPadding); 210 rect.set(0, 0, 0, 0);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 153 Rect rect = sRectPool.acquire(); 154 if (rect == null) { 155 rect = new Rect(); 157 return rect; 160 private static void releaseTempRect(@NonNull Rect rect) { argument 161 rect.setEmpty(); 162 sRectPool.release(rect); 679 * Retrieve the transformed bounding rect of an arbitrary descendant view. 683 * @param out rect to set to the bounds of the descendant view 894 * Mark the last known child position rect fo 2649 getInsetDodgeRect(@onNull CoordinatorLayout parent, @NonNull V child, @NonNull Rect rect) argument [all...] |
H A D | FloatingActionButton.java | 480 * Return in {@code rect} the bounds of the actual floating action button content in view-local 483 * @return true if this view actually has been laid out and has a content rect, else false. 485 public boolean getContentRect(@NonNull Rect rect) { argument 487 rect.set(0, 0, getWidth(), getHeight()); 488 rect.left += mShadowPadding.left; 489 rect.top += mShadowPadding.top; 490 rect.right -= mShadowPadding.right; 491 rect.bottom -= mShadowPadding.bottom; 662 // First, let's get the visible rect of the dependency 663 final Rect rect 717 getInsetDodgeRect(@onNull CoordinatorLayout parent, @NonNull FloatingActionButton child, @NonNull Rect rect) argument [all...] |
H A D | ViewGroupUtils.java | 34 * will be the bounding rect of the real transformed rect. 36 * @param descendant view defining the original coordinate system of rect 37 * @param rect (in/out) the rect to offset from descendant to this view's coordinate system 39 static void offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) { argument 55 rectF.set(rect); 57 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f), 62 * Retrieve the transformed bounding rect of an arbitrary descendant view. 66 * @param out rect t [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | CoordinatorLayoutTest.java | 439 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) { 440 // Any non-empty rect is fine here. 441 rect.set(0, 0, 10, 10); 737 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) { argument 738 rect.set(child.getLeft(), child.getTop(), child.getRight(), child.getBottom());
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | MonthView.java | 512 * @param startX The left boundary of the day number rect 513 * @param stopX The right boundary of the day number rect 514 * @param startY The top boundary of the day number rect 515 * @param stopY The bottom boundary of the day number rect 772 * @param rect The rectangle in which to store the bounds 774 protected void getItemBounds(int day, Rect rect) { argument 785 rect.set(x, y, (x + cellWidth), (y + cellHeight));
|
/frameworks/native/libs/gui/ |
H A D | Surface.cpp | 692 for (auto rect : mDirtyRegion) { 693 int left = rect.left; 694 int right = rect.right; 695 int top = height - rect.bottom; // Flip from OpenGL convention 696 int bottom = height - rect.top; // Flip from OpenGL convention 988 android_native_rect_t const* rect = va_arg(args, android_native_rect_t*); local 989 return setCrop(reinterpret_cast<Rect const*>(rect)); 1288 int Surface::setCrop(Rect const* rect) argument 1293 if (rect == NULL || rect [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | 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; 54 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
|
H A D | SurfaceTextureClient_test.cpp | 502 android_native_rect_t rect = {-2, -13, 40, 18}; local 503 native_window_set_crop(mANW.get(), &rect);
|
/frameworks/native/libs/hwc2on1adapter/ |
H A D | HWC2On1Adapter.cpp | 1376 static std::string rectString(hwc_rect_t rect) { argument 1378 output << "[" << rect.left << ", " << rect.top << ", "; 1379 output << rect.right << ", " << rect.bottom << "]";
|
/frameworks/native/libs/nativewindow/ |
H A D | AHardwareBuffer.cpp | 112 int32_t fence, const ARect* rect, void** outVirtualAddress) { 125 if (!rect) { 128 bounds.set(Rect(rect->left, rect->top, rect->right, rect->bottom)); 111 AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int32_t fence, const ARect* rect, void** outVirtualAddress) argument
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 229 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument 231 if (rect.left < 0 || rect.right > width || 232 rect.top < 0 || rect.bottom > height) { 234 rect.left, rect.top, rect.right, rect.bottom, 238 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd 249 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument 276 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument 282 lockAsync(uint64_t inProducerUsage, uint64_t inConsumerUsage, const Rect& rect, void** vaddr, int fenceFd) argument 305 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument [all...] |
H A D | GraphicBufferMapper.cpp | 73 static inline Gralloc2::IMapper::Rect asGralloc2Rect(const Rect& rect) { argument 75 outRect.left = rect.left; 76 outRect.top = rect.top; 77 outRect.width = rect.width(); 78 outRect.height = rect.height();
|
H A D | Region.cpp | 278 Rect rect(l,t,r,b); 280 mStorage.insertAt(rect, where, 1); 434 virtual void operator()(const Rect& rect); 463 void Region::rasterizer::operator()(const Rect& rect) argument 466 // rect.left, rect.top, rect.right, rect.bottom); 468 if (cur->top != rect.top) { 470 } else if (cur->right == rect [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 297 Rectangle rect = parseRect(rectDesc); local 300 rectangle.push_back(rect); 368 Rectangle rect; local 381 rect.format = format->format; 384 rect.displayFrame = hwcTestParseHwcRect(in, error); 393 rect.sourceDim = HwcTestDim(rect.displayFrame.right 394 - rect.displayFrame.left, 395 rect.displayFrame.bottom 396 - rect [all...] |
H A D | hwcTestLib.cpp | 184 hwc_rect rect; local 186 rect.left = rect.top = 0; 188 rect.right = this->_w; 189 rect.bottom = this->_h; 191 return rect; 195 string hwcTestRect2str(const struct hwc_rect& rect) argument 200 out << rect.left << ", "; 201 out << rect.top << ", "; 202 out << rect 212 struct hwc_rect rect; local [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceInterceptor.cpp | 183 void SurfaceInterceptor::setProtoRectLocked(Rectangle* protoRect, const Rect& rect) { argument 184 protoRect->set_left(rect.left); 185 protoRect->set_top(rect.top); 186 protoRect->set_right(rect.right); 187 protoRect->set_bottom(rect.bottom); 241 for (const auto& rect : transRegion) { 243 setProtoRectLocked(protoRect, rect); 277 const Rect& rect) 282 setProtoRectLocked(protoRect, rect); 286 const Rect& rect) 276 addCropLocked(Transaction* transaction, int32_t layerId, const Rect& rect) argument 285 addFinalCropLocked(Transaction* transaction, int32_t layerId, const Rect& rect) argument [all...] |
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestLayers.cpp | 275 const auto rect = aboveOpaqueLayers.begin(); local 276 if (rect->left != 0 || rect->top != 0 || rect->right != mDisplayArea.width 277 || rect->bottom != mDisplayArea.height)
|
H A D | Hwc2TestProperties.cpp | 550 const hwc_rect_t& rect = curr.rects[i]; local 551 dmp << "\t\trect: left " << rect.left << ", top " << rect.top 552 << ", right " << rect.right << ", bottom " << rect.bottom << "\n"; 672 const hwc_rect_t& rect = curr.rects[i]; local 673 dmp << "\t\trect: left " << rect.left << ", top " << rect.top 674 << ", right " << rect.right << ", bottom " << rect [all...] |