/frameworks/av/media/libeffects/loudness/dsp/core/ |
H A D | dynamic_range_compression.cpp | 84 const float rect = std::max(overshoot, 0.0f); local 86 const float cv = rect * slope_; 113 const float rect = std::max(overshoot, 0.0f); local 115 const float cv = rect * slope_;
|
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 4744 OMX_CONFIG_RECTTYPE rect; local 4745 InitOMXParams(&rect); 4746 rect.nPortIndex = portIndex; 4753 &rect, sizeof(rect)) != OK) { 4754 rect.nLeft = 0; 4755 rect.nTop = 0; 4756 rect.nWidth = videoDef->nFrameWidth; 4757 rect.nHeight = videoDef->nFrameHeight; 4760 if (rect [all...] |
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 353 int stride, const android_native_rect_t& rect) ; 567 int h, int stride, const android_native_rect_t& rect) { 576 bool inside = rect.left <= x && x < rect.right && 577 rect.top <= y && y < rect.bottom; 580 bool inside = rect.left <= 2*x && 2*x < rect.right && 581 rect.top <= 2*y && 2*y < rect 566 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument [all...] |
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 42 void YUVCanvas::FillYUVRectangle(const Rect& rect, argument 44 for (int32_t y = rect.top; y < rect.bottom; ++y) { 45 for (int32_t x = rect.left; x < rect.right; ++x) {
|
/frameworks/av/media/ndk/ |
H A D | NdkImage.cpp | 549 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) { argument 551 if (image == nullptr || rect == nullptr) { 552 ALOGE("%s: bad argument. image %p rect %p", 553 __FUNCTION__, image, rect); 567 rect->left = 0; 568 rect->top = 0; 569 rect->right = width; 570 rect->bottom = height;
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 623 // Get a crop rect that will fit this 1060 private final void validateRect(Rect rect) { argument 1061 if (rect != null && rect.isEmpty()) {
|
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 308 * Translate the screen rect to the application frame. 310 public void translateRectInScreenToAppWinFrame(Rect rect) { argument 311 rect.scale(applicationInvertedScale); 365 public void translateRectInAppWindowToScreen(Rect rect) { argument 366 rect.scale(applicationScale); 372 public void translateRectInScreenToAppWindow(Rect rect) { argument 373 rect.scale(applicationInvertedScale);
|
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 1728 * is 800x480. The rect passed from the driver is (-1000, -1000, 0, 0). 1729 * The corresponding viewfinder rect should be (0, 0, 400, 240). It is 1757 public Rect rect; field in class:Camera.Face 1785 * the same space as the ones for {@link #rect}. This is an optional 1794 * in the same space as the ones for {@link #rect}.This is an optional 1803 * the same space as the ones for {@link #rect}. This is an optional 2015 * @param rect the bounds of the area. 2018 public Area(Rect rect, int weight) { argument 2019 this.rect = rect; 2053 public Rect rect; field in class:Camera.Area [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 126 public final Rect rect; field in class:ParameterUtils.WeightedRectangle 134 public WeightedRectangle(Rect rect, int weight) { argument 135 this.rect = checkNotNull(rect, "rect must not be null"); 150 rect, 153 int x = clipLower(rect.left, /*lo*/0, rect, "left"); 154 int y = clipLower(rect.top, /*lo*/0, rect, "to 208 clipLower(int value, int lo, Rect rect, String name) argument 212 clip(int value, int lo, int hi, Rect rect, String name) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MeteringRectangle.java | 128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0 134 public MeteringRectangle(Rect rect, int meteringWeight) { argument 135 checkNotNull(rect, "rect must not be null"); 137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); 138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative"); 139 mWidth = checkArgumentNonnegative(rect.width(), "rect [all...] |
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 58 * @param size a non-{@code null} rect 62 * @throws NullPointerException if {@code rect} was {@code null} 64 public static Rect createRect(RectF rect) { argument 65 checkNotNull(rect, "rect must not be null"); 68 rect.roundOut(r); 74 * Map the rectangle in {@code rect} with the transform in {@code transform} into 81 * @param rect a non-{@code null} rectangle 86 public static Rect mapRect(Matrix transform, Rect rect) { argument 88 checkNotNull(rect, "rec 105 createSize(Rect rect) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | AppTransitionAnimationSpec.java | 19 public final Rect rect; field in class:AppTransitionAnimationSpec 21 public AppTransitionAnimationSpec(int taskId, Bitmap bitmap, Rect rect) { argument 24 this.rect = rect; 30 rect = in.readParcelable(null); 42 dest.writeParcelable(rect, 0 /* flags */); 59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", rect: " + rect + "}";
|
H A D | FocusFinder.java | 122 // fill in interesting rect from focused 128 // make up a rect at top left or bottom right of root 275 * direction from a source rect? This is the core routine that determines 318 * exclusively in the beam of the source rect. 369 * Includes an edge case for an empty rect (which is used in some cases when 483 * @param source The source rect. 484 * @param dest The destination rect. 734 private void getRect(View view, Rect rect) { argument 735 view.getDrawingRect(rect); 736 mRoot.offsetDescendantRectToMyCoords(view, rect); [all...] |
H A D | RenderNode.java | 266 public boolean setClipBounds(@Nullable Rect rect) { argument 267 if (rect == null) { 270 return nSetClipBounds(mNativeRenderNode, rect.left, rect.top, rect.right, rect.bottom);
|
H A D | View.java | 5946 * @param outRect rect to populate with hotspot bounds 6706 Rect rect = structure.getTempRect(); 6707 info.getBoundsInParent(rect); 6708 structure.setDimens(rect.left, rect.top, 0, 0, rect.width(), rect.height()); 13490 * Mark the area defined by the rect (l,t,r,b) as needing to be drawn. The 13491 * coordinates of the dirty rect are relative to the view. If the view is 13632 * dirty rect 13685 transformRect(final Rect rect) argument [all...] |
H A D | ViewGroup.java | 5307 // in case the dirty rect extends outside the bounds of this container 5347 * do; all we want to do here is schedule a traversal with the appropriate dirty rect. 5391 * Quick invalidation method that simply transforms the dirty rect into the parent's 5422 * @param rect A rectangle defined in descendant's coordinate space. 5424 public final void offsetDescendantRectToMyCoords(View descendant, Rect rect) { argument 5425 offsetRectBetweenParentAndChild(descendant, rect, true, false); 5432 * @param rect A rectangle defined in descendant's coordinate space. 5434 public final void offsetRectIntoDescendantCoords(View descendant, Rect rect) { argument 5435 offsetRectBetweenParentAndChild(descendant, rect, false, false); 5439 * Helper method that offsets a rect eithe 5442 offsetRectBetweenParentAndChild(View descendant, Rect rect, boolean offsetFromChildToParent, boolean clipToBounds) argument [all...] |
H A D | Window.java | 613 * @param rect The area where caption content is positioned, relative to the top view. 615 void onRestrictedCaptionAreaChanged(Rect rect); argument
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebView.java | 2613 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument 2614 return mProvider.getViewDelegate().requestChildRectangleOnScreen(child, rect, immediate);
|
H A D | WebViewProvider.java | 377 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1345 * If rect is off screen, scroll just enough to get it (or at least the 1348 * @param rect The rectangle. 1352 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument 1353 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect); 1370 * @param rect The rect. 1373 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument 1382 // leave room for left fading edge as long as rect isn't at very left 1383 if (rect.left > 0) { 1387 // leave room for right fading edge as long as rect is [all...] |
H A D | ListView.java | 577 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument 579 int rectTopWithinChild = rect.top; 581 // offset so rect is in coordinates of the this view 582 rect.offset(child.getLeft(), child.getTop()); 583 rect.offset(-child.getScrollX(), -child.getScrollY()); 591 // leave room for top fading edge as long as rect isn't at very top 601 // leave room for bottom fading edge as long as rect isn't at very bottom 603 || (rect.bottom < (bottomOfBottomChild - fadingEdge))) { 610 if (rect.bottom > listUnfadedBottom && rect [all...] |
H A D | ScrollView.java | 1370 * If rect is off screen, scroll just enough to get it (or at least the 1373 * @param rect The rectangle. 1377 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument 1378 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect); 1395 * @param rect The rect. 1398 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument 1407 // leave room for top fading edge as long as rect isn't at very top 1408 if (rect.top > 0) { 1412 // leave room for bottom fading edge as long as rect is [all...] |
H A D | SearchView.java | 849 private void getChildBoundsWithinSearchView(View view, Rect rect) { argument 854 rect.set(left , top, left + view.getWidth(), top + view.getHeight()); 1815 * view. This rect is used for initial hit testing. 1821 * view. This rect is used for event coordinate mapping. 1826 * mTargetBounds inflated to include some slop. This rect is to track whether the motion events
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | FloatingToolbar.java | 163 public FloatingToolbar setContentRect(Rect rect) { argument 164 mContentRect.set(Preconditions.checkNotNull(rect)); 637 // There is enough space at the top of the content rect for the overflow. 644 // There is enough space at the top of the content rect for the main panel 651 // There is enough space at the bottom of the content rect for the overflow. 658 // There is enough space at the bottom of the content rect for the main panel
|
H A D | NotificationExpandButton.java | 55 private void extendRectToMinTouchSize(Rect rect) { argument 57 rect.left = rect.centerX() - touchTargetSize / 2; 58 rect.right = rect.left + touchTargetSize; 59 rect.top = rect.centerY() - touchTargetSize / 2; 60 rect.bottom = rect.top + touchTargetSize;
|