/frameworks/av/libvideoeditor/lvpp/ |
H A D | PreviewRenderer.cpp | 108 Rect bounds(mWidth, mHeight); 113 bounds, &dst));
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 152 Rect bounds(mCropWidth, mCropHeight); 156 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst));
|
/frameworks/av/services/audioflinger/ |
H A D | FastMixer.cpp | 76 uint32_t bounds = 0; local 168 bounds = 0; 518 // advance the FIFO queue bounds 519 size_t i = bounds & (FastMixerDumpState::kSamplingN - 1); 520 bounds = (bounds & 0xFFFF0000) | ((bounds + 1) & 0xFFFF); 522 bounds += 0x10000; 523 } else if (!(bounds & (FastMixerDumpState::kSamplingN - 1))) { 569 dumpState->mBounds = bounds; [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 235 final RectF bounds = new RectF(); 236 path.computeBounds(bounds, true); 238 final float sx = (width - 2 * inset) / bounds.width(); 239 final float sy = (height - 2 * inset) / bounds.height(); 243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, 244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
|
H A D | GestureOverlayView.java | 289 final RectF bounds = new RectF(); 290 path.computeBounds(bounds, true); 294 mPath.addPath(path, -bounds.left + (getWidth() - bounds.width()) / 2.0f, 295 -bounds.top + (getHeight() - bounds.height()) / 2.0f);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 689 final Rect bounds = keyBackground.getBounds(); 690 if (key.width != bounds.right || 691 key.height != bounds.bottom) {
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 464 * Return the start position of the line, given the left and right bounds 468 * @param left the left bounds (0, or leading margin if ltr para) 469 * @param right the right bounds (width, minus leading margin if rtl para) 607 * If bounds is not null, return the top, left, right, bottom extents 610 * @param bounds Optional. If not null, it returns the extent of the line 613 public int getLineBounds(int line, Rect bounds) { argument 614 if (bounds != null) { 615 bounds.left = 0; // ??? 616 bounds.top = getLineTop(line); 617 bounds [all...] |
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityInteractionController.java | 595 Rect bounds = mTempRect; 597 info.getBoundsInParent(bounds); 598 bounds.scale(applicationScale); 599 info.setBoundsInParent(bounds); 601 info.getBoundsInScreen(bounds); 602 bounds.scale(applicationScale); 603 info.setBoundsInScreen(bounds);
|
H A D | GLES20Canvas.java | 510 public boolean getClipBounds(Rect bounds) { argument 511 return nGetClipBounds(mRenderer, bounds); 514 private static native boolean nGetClipBounds(int renderer, Rect bounds); argument 607 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument 608 if (bounds != null) { 609 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 646 public int saveLayerAlpha(RectF bounds, in argument [all...] |
H A D | TouchDelegate.java | 26 * actual view bounds. The view whose touch area is changed is called the delegate view. This 28 * instance that specifies the bounds that should be mapped to the delegate and the delegate 86 * @param bounds Bounds in local coordinates of the containing view that should be mapped to 90 public TouchDelegate(Rect bounds, View delegateView) { argument 91 mBounds = bounds; 94 mSlopBounds = new Rect(bounds); 100 * Will forward touch events to the delegate view if the event is within the bounds 115 Rect bounds = mBounds; 117 if (bounds.contains(x, y)) {
|
H A D | View.java | 431 * its current bounds. 460 * <li>If in the course of processing the event, the view's bounds may need 1594 * lie outside of this view's bounds. 2827 * visible edges of this view its bounds. 4065 * Add a listener that will be called when the bounds of the view change due to 4068 * @param listener The listener that will be called when layout bounds change. 4083 * @param listener The listener for layout bounds change. 4967 Rect bounds = mAttachInfo.mTmpInvalRect; 4969 getDrawingRect(bounds); 4970 info.setBoundsInParent(bounds); [all...] |
H A D | ViewRootImpl.java | 886 // Intersect with the bounds of the window to skip 2331 Rect bounds = mView.mAttachInfo.mTmpInvalRect; 2333 mAccessibilityFocusedHost.getBoundsOnScreen(bounds); 2338 mAccessibilityFocusedVirtualView.getBoundsInScreen(bounds); 2340 bounds.offset(-mAttachInfo.mWindowLeft, -mAttachInfo.mWindowTop); 2341 bounds.intersect(0, 0, mAttachInfo.mViewRootImpl.mWidth, mAttachInfo.mViewRootImpl.mHeight); 2342 drawable.setBounds(bounds); 2514 // to clear the focus and invalidate the virtual view bounds.
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityInteractionClient.java | 607 * Applies compatibility scale to the info bounds if it is not equal to one. 609 * @param info The info whose bounds to scale. 616 Rect bounds = mTempBounds; 617 info.getBoundsInParent(bounds); 618 bounds.scale(scale); 619 info.setBoundsInParent(bounds); 621 info.getBoundsInScreen(bounds); 622 bounds.scale(scale); 623 info.setBoundsInScreen(bounds);
|
H A D | AccessibilityNodeInfo.java | 779 * Gets the node bounds in parent coordinates. 781 * @param outBounds The output node bounds. 789 * Sets the node bounds in parent coordinates. 796 * @param bounds The node bounds. 800 public void setBoundsInParent(Rect bounds) { argument 802 mBoundsInParent.set(bounds.left, bounds.top, bounds.right, bounds 827 setBoundsInScreen(Rect bounds) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewClassic.java | 1149 * This how far content can be pulled beyond its normal bounds by the user. 1155 * This is how far flinged content can move beyond the end of its normal bounds. 2475 // Check the index bounds so we don't crash in native code while 4279 * Draw the background when beyond bounds 4614 private void drawHandle(Point point, int handleId, Rect bounds, argument 4636 bounds.set(x - offset, y, x - offset + width, y + height); 4637 drawable.setBounds(bounds); 5229 // The line from first point in text bounds to bottom is AP 5246 * Assuming arbitrary shape of a quadralateral forming text bounds, this 6194 * @param min The minimum coordinate (x or y) of the edit content bounds [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 159 * Indicates the view is being flung outside of normal content bounds 737 * itself to modify the bounds of the selection shown for that item. 741 * Called to allow the list item to adjust the bounds shown for 744 * @param bounds On call, this contains the bounds the list has 745 * selected for the item (that is the bounds of the entire view). The 748 public void adjustListItemSelectionBounds(Rect bounds); argument
|
H A D | ExpandableListView.java | 151 * indicator bounds 292 // the left & right bounds 390 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument 403 divider.setBounds(bounds); 412 super.drawDivider(canvas, bounds, flatListPosition); 1031 * Sets the drawing bounds for the child indicator. For either, you can 1033 * indicator's bounds. 1036 * @param left The left position (relative to the left bounds of this View) 1038 * @param right The right position (relative to the left bounds of this 1062 * Sets the drawing bounds fo [all...] |
H A D | GridLayout.java | 198 * the bounds of each view are extended outwards, according 343 * value of each the upper bounds defined in {@link LayoutParams#rowSpec}. 376 * value of each the upper bounds defined in {@link LayoutParams#columnSpec}. 1252 Bounds bounds = getAlignment(spec.alignment, horizontal).getBounds(); 1253 assoc.put(spec, bounds); 1300 Bounds[] bounds = getGroupBounds().values; 1301 for (int i = 0; i < bounds.length; i++) { 1302 int size = bounds[i].size(min);
|
H A D | ListView.java | 3098 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument 3102 canvas.clipRect(bounds); 3104 final int span = bounds.bottom - bounds.top; 3106 bounds.top = bounds.bottom - height; 3109 drawable.setBounds(bounds); 3115 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument 3119 canvas.clipRect(bounds); 3121 final int span = bounds 3304 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument [all...] |
H A D | ScrollBarDrawable.java | 142 protected void onBoundsChange(Rect bounds) { argument 143 super.onBoundsChange(bounds); 147 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 156 track.setBounds(bounds); 162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 167 thumbRect.set(bounds.left, bounds.top + offset, 168 bounds.right, bounds.top + offset + length); 170 thumbRect.set(bounds [all...] |
H A D | TabWidget.java | 342 final Rect bounds = mBounds; 343 bounds.left = selectedChild.getLeft(); 344 bounds.right = selectedChild.getRight(); 346 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), 347 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight); 348 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(), 349 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
H A D | TextView.java | 1942 * want a Drawable there. The Drawables' bounds will be set to 1943 * their intrinsic bounds. 1967 * want a Drawable there. The Drawables' bounds will be set to 1968 * their intrinsic bounds. 2112 * want a Drawable there. The Drawables' bounds will be set to 2113 * their intrinsic bounds. 2140 * want a Drawable there. The Drawables' bounds will be set to 2141 * their intrinsic bounds. 4449 Rect bounds = mEditor.mCursorDrawable[i].getBounds(); 4450 invalidate(bounds 5115 getLineBounds(int line, Rect bounds) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 114 static int saveLayer(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, argument 118 if (bounds != NULL) { 119 GraphicsJNI::jrectf_to_rect(env, bounds, &storage); 128 SkRect bounds; local 129 bounds.set(SkFloatToScalar(l), SkFloatToScalar(t), SkFloatToScalar(r), 131 return canvas->saveLayer(&bounds, paint, (SkCanvas::SaveFlags)flags); 135 jobject bounds, int alpha, int flags) { 138 if (bounds != NULL) { 139 GraphicsJNI::jrectf_to_rect(env, bounds, &storage); 149 SkRect bounds; local 134 saveLayerAlpha(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, int alpha, int flags) argument 937 getClipBounds(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds) argument [all...] |
H A D | HarfbuzzSkia.cpp | 150 SkRect bounds; local 151 paint->getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 153 metrics->x = SkScalarToHBFixed(bounds.fLeft); 154 metrics->y = SkScalarToHBFixed(bounds.fTop); 155 metrics->width = SkScalarToHBFixed(bounds.width()); 156 metrics->height = SkScalarToHBFixed(bounds.height());
|
H A D | NinePatch.cpp | 30 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, 68 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, argument 86 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 87 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom)); 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 93 canvas->translate(bounds.fLeft, bounds.fTop); 96 bounds 122 SkRect bounds; local 138 SkRect bounds; local 151 SkRect bounds; local [all...] |