/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/camera/ |
CameraTestFragment.java | 23 import android.graphics.Rect; 81 Rect rect = mRvcCamera.getCameraCrop(); 82 if(rect != null) { 83 mTvRvcCrop.setText(rect.toString()); 97 Rect rect = mRvcCamera.getCameraPosition(); 98 if(rect != null) { 99 mTvRvcPos.setText(String.valueOf(rect)); 128 Rect rect = new Rect(160, 240, 560, 480) [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
TexturePacker.java | 166 for (Rect rect : page.outputRects) {
167 BufferedImage image = rect.getImage(imageProcessor);
170 int rectX = page.x + rect.x, rectY = page.y + page.height - rect.y - rect.height;
174 if (rect.rotated) {
209 copy(image, 0, 0, iw, 1, canvas, rectX, rectY - i, rect.rotated);
210 copy(image, 0, ih - 1, iw, 1, canvas, rectX, rectY + ih - 1 + i, rect.rotated);
213 copy(image, 0, 0, 1, ih, canvas, rectX - i, rectY, rect.rotated); [all...] |
/external/mesa3d/src/gallium/drivers/nv50/ |
nv50_transfer.c | 10 struct nv50_m2mf_rect rect[2]; member in struct:nv50_transfer 16 nv50_m2mf_rect_setup(struct nv50_m2mf_rect *rect, 24 rect->bo = mt->base.bo; 25 rect->domain = mt->base.domain; 26 rect->base = mt->level[l].offset; 27 rect->pitch = mt->level[l].pitch; 29 rect->width = w << mt->ms_x; 30 rect->height = h << mt->ms_y; 31 rect->x = x << mt->ms_x; 32 rect->y = y << mt->ms_y [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowRect.java | 3 import android.graphics.Rect; 10 @Implements(Rect.class) 12 @RealObject Rect realRect; 21 public void __constructor__(Rect otherRect) { 29 public void set(Rect rect) { 30 set(rect.left, rect.top, rect.right, rect.bottom) [all...] |
/external/opencv3/samples/cpp/ |
mask_tmpl.cpp | 58 Rect rect; local 62 rect = Rect(minLoc, tmpl.size()); 64 rect = Rect(maxLoc, tmpl.size()); 66 rectangle(img, rect, Scalar(0, 255, 0), 2);
|
grabcut.cpp | 74 Rect rect; member in class:GCApplication 129 rectangle( res, Point( rect.x, rect.y ), Point(rect.x + rect.width, rect.y + rect.height ), GREEN, 2); 138 rect.x = max(0, rect.x) [all...] |
/external/skia/src/animator/ |
SkBoundable.cpp | 25 void SkBoundable::getBounds(SkRect* rect) { 26 SkASSERT(rect); 28 INHERITED::getBounds(rect); 31 rect->fLeft = SkIntToScalar(fBounds.fLeft); 32 rect->fTop = SkIntToScalar(fBounds.fTop); 33 rect->fRight = SkIntToScalar(fBounds.fRight); 34 rect->fBottom = SkIntToScalar(fBounds.fBottom);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
OvalShape.java | 36 canvas.drawOval(rect(), paint); method 41 final RectF rect = rect(); local 42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
|
/frameworks/support/compat/jellybean-mr1/android/support/v4/view/ |
GravityCompatJellybeanMr1.java | 20 import android.graphics.Rect; 29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect, 34 public static void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, 35 Rect outRect, int layoutDirection) { 39 public static void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) {
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
ZoomedCropRegion.java | 19 import android.graphics.Rect; 27 public class ZoomedCropRegion implements Supplier<Rect> { 28 private final Rect mSensorArrayArea; 31 public ZoomedCropRegion(Rect sensorArrayArea, Supplier<Float> zoom) { 37 public Rect get() { 39 Rect sensor = mSensorArrayArea; 44 return new Rect(xCenter - xDelta, yCenter - yDelta, xCenter + xDelta, yCenter + yDelta);
|
/packages/services/Car/car-lib/src/android/car/hardware/camera/ |
ICarCamera.aidl | 20 import android.graphics.Rect; 28 Rect getCameraCrop(in int cameraType) = 2; 30 void setCameraCrop(in int cameraType, in Rect rect) = 3; 32 Rect getCameraPosition(in int cameraType) = 4; 34 void setCameraPosition(in int cameraType, in Rect rect) = 5;
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/ |
drag.js | 45 var rect = __GestureCommon_GetBoundingVisibleRect(this.options_.element_); 47 rect.left + (rect.width * this.options_.left_start_ratio_); 49 rect.top + (rect.height * this.options_.top_start_ratio_); 51 rect.left + (rect.width * this.options_.left_end_ratio_); 53 rect.top + (rect.height * this.options_.top_end_ratio_);
|
/external/opencv3/modules/core/misc/java/src/java/ |
core+MatOfRect.java | 34 public MatOfRect(Rect...a) { 44 public void fromArray(Rect...a) { 51 Rect r = a[i]; 61 public Rect[] toArray() { 63 Rect[] a = new Rect[num]; 69 a[i] = new Rect(buff[i*_channels], buff[i*_channels+1], buff[i*_channels+2], buff[i*_channels+3]); 72 public void fromList(List<Rect> lr) { 73 Rect ap[] = lr.toArray(new Rect[0]) [all...] |
/external/skia/src/gpu/batches/ |
GrNonAAFillRectBatch.h | 21 const SkRect& rect, 27 const SkRect& rect, 33 const SkRect& rect,
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryableRect.java | 18 import android.graphics.Rect; 29 * Marshal {@link Rect} to/from {@link #TYPE_INT32} 31 public class MarshalQueryableRect implements MarshalQueryable<Rect> { 34 private class MarshalerRect extends Marshaler<Rect> { 35 protected MarshalerRect(TypeReference<Rect> typeReference, 41 public void marshal(Rect value, ByteBuffer buffer) { 49 public Rect unmarshal(ByteBuffer buffer) { 58 return new Rect(left, top, right, bottom); 68 public Marshaler<Rect> createMarshaler(TypeReference<Rect> managedType, int nativeType) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
RequestRectangleVisible.java | 23 import android.graphics.Rect; 43 final Rect rect = new Rect(); local 61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 62 childToMakeVisible.requestRectangleOnScreen(rect, true); 69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); 70 topBlob.requestRectangleOnScreen(rect, true); 77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 78 childToMakeVisible.requestRectangleOnScreen(rect, true) [all...] |
/frameworks/base/libs/hwui/ |
ClipArea.h | 20 #include "Rect.h" 30 Rect transformAndCalculateBounds(const Rect& r, const Matrix4& transform); 35 TransformedRectangle(const Rect& bounds, const Matrix4& transform); 42 const Rect& getBounds() const { 46 Rect transformedBounds() const { 47 Rect transformedBounds(transformAndCalculateBounds(mBounds, mTransform)); 62 Rect mBounds; 75 void set(const Rect& bounds, const Matrix4& transform); 76 bool intersectWith(const Rect& bounds, const Matrix4& transform) 109 Rect rect; member in struct:android::uirenderer::ClipBase [all...] |
/libcore/dom/src/test/resources/ |
staff2.dtd | 10 <!ELEMENT svg (rect, script, employee+)> 14 <!ELEMENT rect EMPTY> 15 <!ATTLIST rect
|
/packages/apps/Camera2/src/com/android/camera/util/ |
DebugBoundsRenderer.java | 21 import android.graphics.Rect; 32 public static void drawBounds(Canvas canvas, Paint paint, float size, Rect rect) { 33 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); 40 public static void drawBounds(Canvas canvas, Paint paint, float size, RectF rect) { 41 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom) [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_clear.c | 45 SVGA3dRect rect = { 0, 0, 0, 0 }; local 66 rect.w = fb->cbufs[0]->width; 67 rect.h = fb->cbufs[0]->height; 78 rect.w = MAX2(rect.w, fb->zsbuf->width); 79 rect.h = MAX2(rect.h, fb->zsbuf->height); 82 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) { 84 ret = SVGA3D_SetViewport(svga->swc, &rect); [all...] |
/frameworks/support/core-ui/tests/java/android/support/v4/widget/ |
ExploreByTouchHelperTest.java | 19 import android.graphics.Rect; 64 final Rect hostBounds = new Rect(); 68 final Rect nodeBoundsInParent = new Rect(); 72 final Rect hostBoundsOnScreen = getBoundsOnScreen(mHost); 73 final Rect nodeBoundsInScreen = new Rect(); 88 final Rect scrolledNodeBoundsInParent = new Rect(); [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
GridLayoutManagerNoOpUpdateTest.java | 22 import android.graphics.Rect; 68 Map<Long, Rect> before = takeSnapshot(); 75 Map<Long, Rect> after = takeSnapshot(); 79 private void assertSnapshotsEqual(Map<Long, Rect> before, Map<Long, Rect> after) { 80 for (Map.Entry<Long, Rect> entry : before.entrySet()) { 81 Rect newPosition = after.get(entry.getKey()); 88 private Map<Long, Rect> takeSnapshot() { 89 Rect rvBounds = new Rect(); 112 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin, local [all...] |
/external/libvterm/src/ |
vterm.c | 231 void vterm_scroll_rect(VTermRect rect, 235 int (*eraserect)(VTermRect rect, int selective, void *user), 241 if(abs(downward) >= rect.end_row - rect.start_row || 242 abs(rightward) >= rect.end_col - rect.start_col) { 244 (*eraserect)(rect, 0, user); 249 /* rect: [XXX................] 253 dest.start_col = rect.start_col; 254 dest.end_col = rect.end_col - rightward [all...] |
/packages/services/Car/service/jni/ |
com_android_car_CarCameraService.cpp | 143 * Signature: (J)Landroid/graphics/Rect; 153 android_native_rect_t rect; local 154 device->get_camera_crop(device, &rect); 157 jclass cls = env->FindClass("android/graphics/Rect"); 161 retObj = env->NewObject(cls, midInit, rect.left, rect.top, rect.right, rect.bottom); 170 * Signature: (JLandroid/graphics/Rect;)V 177 android_native_rect_t rect; local 207 android_native_rect_t rect; local 232 android_native_rect_t rect; local [all...] |
/prebuilts/go/darwin-x86/src/image/ |
ycbcr_test.go | 14 Rect(0, 0, 16, 16), 15 Rect(1, 0, 16, 16), 16 Rect(0, 1, 16, 16), 17 Rect(1, 1, 16, 16), 18 Rect(1, 1, 15, 16), 19 Rect(1, 1, 16, 15), 20 Rect(1, 1, 15, 15), 21 Rect(2, 3, 14, 15), 22 Rect(7, 0, 7, 16), 23 Rect(0, 8, 16, 8) [all...] |