Searched defs:rect (Results 1 - 25 of 34) sorted by last modified time

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DWindowLocationUtil.java95 public static void getLocationsInWindow(View view, RectF rect) { argument
96 sTmpFloat4[0] = rect.left;
97 sTmpFloat4[1] = rect.top;
98 sTmpFloat4[2] = rect.right;
99 sTmpFloat4[3] = rect.bottom;
101 rect.left = sTmpFloat4[0];
102 rect.top = sTmpFloat4[1];
103 rect.right = sTmpFloat4[2];
104 rect.bottom = sTmpFloat4[3];
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DFrameLayoutWithShadows.java133 private final Rect rect = new Rect(); field in class:FrameLayoutWithShadows
247 rect.set(drawable.getBounds());
248 rectf.set(rect);
258 rect.left = (int) (rectf.left + 0.5f);
259 rect.top = (int) (rectf.top + 0.5f);
260 rect.right = (int) (rectf.right + 0.5f);
261 rect.bottom = (int) (rectf.bottom + 0.5f);
265 rect.left = view.getPaddingLeft() - shadow.getPaddingLeft();
266 rect.top = view.getPaddingTop() - shadow.getPaddingTop();
267 rect
[all...]
/packages/apps/Terminal/jni/
H A Dcom_android_terminal_Terminal.cpp159 static int term_damage(VTermRect rect, void *user) { argument
166 return env->CallIntMethod(term->getCallbacks(), damageMethod, rect.start_row, rect.end_row,
167 rect.start_col, rect.end_col);
/packages/apps/TV/src/com/android/tv/menu/
H A DPlaybackProgressBar.java165 private boolean isEqualRect(Rect rect, int left, int top, int right, int bottom) { argument
166 return rect.left == left && rect.top == top && rect.right == right && rect.bottom == bottom;
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
H A DFocusOverlayManager.java314 ((Area) mFocusArea.get(0)).rect);
328 ((Area) mMeteringArea.get(0)).rect);
492 int x, int y, int previewWidth, int previewHeight, Rect rect) {
500 rectFToRect(rectF, rect);
583 public static void rectFToRect(RectF rectF, Rect rect) { argument
584 rect.left = Math.round(rectF.left);
585 rect.top = Math.round(rectF.top);
586 rect.right = Math.round(rectF.right);
587 rect.bottom = Math.round(rectF.bottom);
491 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.cpp163 // Compute clipping for this frame's rect
165 // Clip global rect using this frame's rect
375 int width, int height, YUVinfo &imgMos, MosaicRect &rect,
382 m_pMosaicYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
383 m_pMosaicUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
384 m_pMosaicVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect
374 DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation) argument
800 ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx) argument
870 ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DFocusManager.java271 mFocusArea.get(0).rect);
273 mMeteringArea.get(0).rect);
448 int x, int y, int previewWidth, int previewHeight, Rect rect) {
456 Util.rectFToRect(rectF, rect);
447 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
H A DUtil.java564 public static void dumpRect(RectF rect, String msg) { argument
565 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
566 + "," + rect.right + "," + rect.bottom + ")");
569 public static void rectFToRect(RectF rectF, Rect rect) { argument
570 rect.left = Math.round(rectF.left);
571 rect.top = Math.round(rectF.top);
572 rect.right = Math.round(rectF.right);
573 rect
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DAppWidgetResizeFrame.java320 public static Rect getWidgetSizeRanges(Context context, int spanX, int spanY, Rect rect) { argument
330 if (rect == null) {
331 rect = new Rect();
342 rect.set(portWidth, landHeight, landWidth, portHeight);
343 return rect;
372 * Returns the rect of this view when the frame is snapped around the widget, with the bounds
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAppWidgetResizeFrame.java347 static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { argument
348 if (rect == null) {
349 rect = new Rect();
370 rect.set(portWidth, landHeight, landWidth, portHeight);
371 return rect;
/packages/apps/Gallery2/jni/filters/
H A DredEyeMath.c36 int ih __unused, short *rect) {
37 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3];
57 short *rect) {
58 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[
35 findPossible(unsigned char *src, unsigned char *mask, int iw, int ih __unused, short *rect) argument
56 findReds(unsigned char *src, unsigned char *mask, int iw, int ih __unused, short *rect) argument
73 dialateMaskIfRed(unsigned char *src, int iw, int ih __unused, unsigned char *mask, unsigned char *out, short *rect) argument
112 filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short *rect) argument
[all...]
H A Dredeye.c25 short* rect = (*env)->GetShortArrayElements(env, vrect,0); local
27 filterRedEye(rgb,rgb,width,height,rect);
29 (*env)->ReleaseShortArrayElements(env, vrect, rect, 0);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFace.java30 public Face(String name, String personId, String rect) { argument
33 Utils.assertTrue(mName != null && mPersonId != null && rect != null);
34 StringTokenizer tokenizer = new StringTokenizer(rect);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterGradRepresentation.java188 public int addBand(Rect rect) { argument
189 mBands.add(0, mCurrentBand = new Band(rect.centerX(), rect.centerY()));
193 double addDelta = ADD_MIN_DIST * Math.max(rect.width(), rect.height());
228 if (mCurrentBand.yPos1 > rect.bottom) {
229 mCurrentBand.yPos1 = (int) (rect.top + addDelta);
231 if (mCurrentBand.xPos1 > rect.right) {
232 mCurrentBand.xPos1 = (int) (rect.left + addDelta);
H A DFilterRedEyeRepresentation.java50 public void addRect(RectF rect, RectF bounds) { argument
54 if (r.intersect(rect)) {
60 rect.union(r.mRect);
64 addCandidate(new RedEyeCandidate(rect, bounds));
H A DRedEyeCandidate.java30 public RedEyeCandidate(RectF rect, RectF bounds) { argument
31 mRect.set(rect);
43 public boolean intersect(RectF rect) { argument
44 return mRect.intersect(rect);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DEclipseControl.java231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry);
236 paintOvallines(canvas, rect, paint, cx, cy, rx, ry);
240 paintOvallines(canvas, rect, paint, cx, cy, rx, ry);
244 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) {
245 canvas.drawOval(rect, paint);
254 rect.left = cx - dx;
255 rect.top = cy - dy;
256 rect.right = cx + dx;
257 rect.bottom = cy + dy;
258 canvas.drawArc(rect,
243 paintOvallines( Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPaper.java68 public float[] getTransform(Rect rect, float scrollX) { argument
71 float screenX = rect.centerX() - scrollX;
84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0);
86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0);
H A DPhotoFallbackEffect.java68 public void addEntry(Path path, Rect rect, RawTexture texture) { argument
69 mList.add(new Entry(path, rect, texture));
H A DPhotoView.java1643 public void setOpenAnimationRect(Rect rect) { argument
1644 mPositionController.setOpenAnimationRect(rect);
1830 Rect rect = new Rect(getPhotoRect(i));
1831 if (!Rect.intersects(fullRect, rect)) continue;
1832 rect.offset(location.left, location.top);
1853 effect.addEntry(item.getPath(), rect, texture);
H A DSlotView.java111 Rect rect = mLayout.getSlotRect(index, mTempRect);
113 ? (rect.left + rect.right - getWidth()) / 2
114 : (rect.top + rect.bottom - getHeight()) / 2;
119 Rect rect = mLayout.getSlotRect(index, mTempRect);
123 int slotBegin = WIDE ? rect.left : rect.top;
124 int slotEnd = WIDE ? rect.right : rect
435 getSlotRect(int index, Rect rect) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
H A DBandController.java608 * @param rect Rectangle including all covered items.
610 private void updateSelection(Rect rect) { argument
612 Collections.binarySearch(mColumnBounds, new Limits(rect.left, rect.left));
617 && mColumnBounds.get(i).lowerLimit <= rect.right; i++) {
621 int rowStart = Collections.binarySearch(mRowBounds, new Limits(rect.top, rect.top));
629 && mRowBounds.get(i).lowerLimit <= rect.bottom; i++) {
918 Rect rect = new Rect();
919 rect
1031 showBand(Rect rect) argument
1142 showBand(Rect rect) argument
[all...]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
H A DBandControllerTest.java179 public void showBand(Rect rect) { argument
H A DBandController_GridModelTest.java234 // Construct a rect from the two selection points.
239 // inclusive. Expand the rect by 1 pixel in all directions to account for this.
255 if (Rect.intersects(selectionArea, item.rect)) {
399 return items.get(adapterPosition).rect;
413 public void showBand(Rect rect) { argument
454 public Rect rect; field in class:BandController_GridModelTest.TestEnvironment.Item
458 rect = r;
462 return name + ": " + rect;
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DFocusOverlayManager.java234 focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, mFocusArea.get(0).rect);
255 mMeteringArea.get(0).rect);
422 Rect rect) {
432 rectFToRect(rectF, rect);
476 private void rectFToRect(RectF rectF, Rect rect) { argument
477 rect.left = Math.round(rectF.left);
478 rect.top = Math.round(rectF.top);
479 rect.right = Math.round(rectF.right);
480 rect.bottom = Math.round(rectF.bottom);
414 calculateTapArea( int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument

Completed in 407 milliseconds

12