/frameworks/base/libs/hwui/ |
H A D | Layer.cpp | 182 void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { argument 185 const Rect r(left, top, right, bottom); 247 if (dirtyRect.isEmpty() || (dirtyRect.left <= 0 && dirtyRect.top <= 0 && 259 renderer->setupFrameState(dirtyRect.left, dirtyRect.top, 284 renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, 303 renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom,
|
H A D | Matrix.cpp | 375 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 378 data[kScaleX] = 2.0f / (right - left); 381 data[kTranslateX] = -(right + left) / (right - left); 423 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]); 428 if (r.left > r.right) { 429 float x = r.left; 430 r.left = r.right; 444 r.left, r.top, 447 r.left, [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | NinePatch_Delegate.java | 179 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, 188 loc.left, loc.top, loc.right, loc.bottom, 201 final int left, final int top, final int right, final int bottom, 220 (float)left, (float)top, (float)right, (float)bottom, 243 left, top, right - left, bottom - top, destDensity, srcDensity); 200 draw(long canvas_instance, final int left, final int top, final int right, final int bottom, long bitmap_instance, long chunk, long paint_instance_or_null, final int destDensity, final int srcDensity) argument
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 82 bounds.left, bounds.top, bounds.width(), bounds.height(), 100 bounds.left, bounds.top, bounds.width(), bounds.height(), 126 bounds.left, bounds.top, bounds.width(), bounds.height(), 132 bounds.left, bounds.top, bounds.width(), bounds.height(), 149 bounds.left, bounds.top, bounds.width(), bounds.height(), 155 bounds.left, bounds.top, bounds.width(), bounds.height(),
|
H A D | GraphicBuffer.cpp | 174 if (rect.left < 0 || rect.right > this->width || 177 rect.left, rect.top, rect.right, rect.bottom, 195 if (rect.left < 0 || rect.right > this->width || 198 rect.left, rect.top, rect.right, rect.bottom, 221 if (rect.left < 0 || rect.right > this->width || 224 rect.left, rect.top, rect.right, rect.bottom, 241 if (rect.left < 0 || rect.right > this->width || 244 rect.left, rect.top, rect.right, rect.bottom,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | RationalTest.java | 439 private static <T extends Comparable<? super T>> void assertLessThan(T left, T right) { argument 440 assertTrue("Expected (LR) left " + left + " to be less than right " + right, 441 left.compareTo(right) < 0); 442 assertTrue("Expected (RL) left " + left + " to be less than right " + right, 443 right.compareTo(left) > 0); 446 private static <T extends Comparable<? super T>> void assertGreaterThan(T left, T right) { argument 447 assertTrue("Expected (LR) left " + left 453 assertCompareEquals(T left, T right) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 121 jlong rendererPtr, jint left, jint top, jint right, jint bottom, 124 return renderer->prepareDirty(left, top, right, bottom, opaque); 208 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, 212 return renderer->saveLayer(left, top, right, bottom, paint, saveFlags); 220 return renderer->saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, 225 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, 228 return renderer->saveLayerAlpha(left, top, right, bottom, alpha, saveFlags); 235 return renderer->saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, 244 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom) { 246 const bool result = renderer->quickRejectConservative(left, to 120 android_view_GLES20Canvas_prepareDirty(JNIEnv* env, jobject clazz, jlong rendererPtr, jint left, jint top, jint right, jint bottom, jboolean opaque) argument 207 android_view_GLES20Canvas_saveLayer(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr, jint saveFlags) argument 224 android_view_GLES20Canvas_saveLayerAlpha(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jint alpha, jint saveFlags) argument 243 android_view_GLES20Canvas_quickReject(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom) argument 250 android_view_GLES20Canvas_clipRectF(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jint op) argument 259 android_view_GLES20Canvas_clipRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jint left, jint top, jint right, jint bottom, jint op) argument 349 android_view_GLES20Canvas_drawBitmap(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jfloat left, jfloat top, jlong paintPtr) argument 390 android_view_GLES20Canvas_drawBitmapData(JNIEnv* env, jobject clazz, jlong rendererPtr, jintArray colors, jint offset, jint stride, jfloat left, jfloat top, jint width, jint height, jboolean hasAlpha, jlong paintPtr) argument 437 android_view_GLES20Canvas_drawPatch(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jlong patchPtr, float left, float top, float right, float bottom, jlong paintPtr) argument 455 android_view_GLES20Canvas_drawRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr) argument 463 android_view_GLES20Canvas_drawRoundRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat rx, jfloat ry, jlong paintPtr) argument 502 android_view_GLES20Canvas_drawOval(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr) argument 510 android_view_GLES20Canvas_drawArc(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat startAngle, jfloat sweepAngle, jboolean useCenter, jlong paintPtr) argument [all...] |
H A D | android_view_GraphicBuffer.cpp | 71 jfieldID left; member in struct:android::__anon852 171 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 206 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); 212 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); 316 GET_FIELD_ID(gRectClassInfo.left, clazz, "left", "I");
|
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 254 // is also the destination, e.g. left.loadMultiply(left, right); 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 278 m[0] = 2.f / (right - left); 281 m[12]= -(right + left) / (right - left); 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 288 m[0] = 2.f * near / (right - left); 290 m[8] = (right + left) / (right - left); 301 float left = bottom * aspect; local [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | FastScroller.java | 104 * Preview image resource IDs for left- and right-aligned layouts. See 184 /** Whether decorations should be laid out from right to left. */ 486 mPreviewImage.setPadding(padding.left, padding.top, padding.right, padding.bottom); 570 bounds.left -= mPreviewImage.getPaddingLeft(); 588 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom); 589 view.setPivotX(mLayoutFromRight ? bounds.right - bounds.left : 0); 603 margins.left = mPreviewImage.getPaddingLeft(); 635 marginLeft = margins.left; 656 // Align to the left or right. 658 final int left; [all...] |
H A D | Switch.java | 618 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; 644 // Adjust left and right padding to ensure there's enough room for the 646 int paddingLeft = padding.left; 650 paddingLeft = Math.max(paddingLeft, inset.left); 703 mTempRect.left + mTempRect.right + mTouchSlop; 878 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 879 super.onLayout(changed, left, top, right, bottom); 892 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 955 thumbInitialLeft += padding.left; [all...] |
H A D | HorizontalScrollView.java | 837 * (excluding fading edges) pretending that this View's left is located at 838 * the parameter left. 841 * @param leftFocus look for a candidate is the one at the left of the bounds 844 * @param left the left offset of the bounds in which a focusable must be 851 final int left, View preferredFocusable) { 858 final int leftWithoutFadingEdge = left + fadingEdgeLength; 859 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; 876 * @param leftFocus look for a candidate is the one at the left of the bounds 879 * @param left th 850 findFocusableViewInMyBounds(final boolean leftFocus, final int left, View preferredFocusable) argument 886 findFocusableViewInBounds(boolean leftFocus, int left, int right) argument 1032 scrollAndFocus(int direction, int left, int right) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 322 mFrame.left + Math.round(width * 0.25f), 328 mButtonFrame.left += mSubpixelSmoothingLeft; 333 mFrame.left += mSubpixelSmoothingLeft; 352 mShapePath.moveTo(mButtonFrame.left, mButtonFrame.top); 357 mShapePath.lineTo(mFrame.left, mFrame.bottom); 358 mShapePath.lineTo(mFrame.left, mFrame.top); 359 mShapePath.lineTo(mButtonFrame.left, mFrame.top); 360 mShapePath.lineTo(mButtonFrame.left, mButtonFrame.top); 364 final float bl = mFrame.left + mFrame.width() / 4.5f; 368 if (mBoltFrame.left ! [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 440 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); 442 layer->sourceCrop.right = layer->sourceCrop.left 443 + testRandMod(gBuf->getWidth() - layer->sourceCrop.left) + 1; 446 layer->displayFrame.left = testRandMod(width); 448 layer->displayFrame.right = layer->displayFrame.left 449 + testRandMod(width - layer->displayFrame.left) + 1; 462 - layer->sourceCrop.left; 465 if (((layer->displayFrame.left + sourceWidth) <= width) 467 layer->displayFrame.right = layer->displayFrame.left
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | IconUtilities.java | 150 final int left = (textureWidth-width) / 2; 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); 163 icon.setBounds(left, top, left+width, top+height);
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | TestWallpaper.java | 208 c.drawRect(0+mMainInsets.left, 0+mMainInsets.top, 212 c.drawRect(0 + mStableInsets.left, 0 + mStableInsets.top, 220 int x = mStableInsets.left + mPadding; 237 c.drawText("Stable Insets: (" + mStableInsets.left + ", " + mStableInsets.top 241 c.drawText("System Insets: (" + mMainInsets.left + ", " + mMainInsets.top
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 103 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 232 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 269 void setBounds(int left, int top, int right, int bottom) { argument 270 mBounds.left = left;
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 47 canvas.translate(bounds.left + cornerRadius, bounds.top + cornerRadius); 60 canvas.drawRect(bounds.left + cornerRadius - 1f, bounds.top, 63 canvas.drawRect(bounds.left + cornerRadius - 1f, 68 canvas.drawRect(bounds.left, bounds.top + Math.max(0, cornerRadius - 1f), 96 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top,
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | DayOfMonthCursorTest.java | 52 // move left, still same row 53 assertFalse(mc.left()); 59 assertFalse(mc.left()); 65 assertTrue(mc.left());
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ScaleFrameLayout.java | 62 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 72 parentRight = (int)(pivotX + (right - left - pivotX) / mLayoutScaleX + 0.5f) 76 parentRight = right - left - getPaddingRight();
|
/frameworks/native/libs/gui/tests/ |
H A D | GLTest.cpp | 220 if (abs(r1.left - r2.left) > tolerance) { 221 msg += String8::format("left(%d isn't %d)", r1.left, r2.left); 243 r1.left, r1.top, r1.right, r1.bottom, 244 r2.left, r2.top, r2.right, r2.bottom);
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 38 * left, top = {@code (0, 0)} and right, bottom = {@code (width, height)} 49 return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight()); 54 * each corner (left, top, right, bottom) rounded towards the nearest integer bounding box. 56 * <p>In particular (left, top) is floored, and (right, bottom) is ceiled.</p> 75 * a new rectangle, with each corner (left, top, right, bottom) rounded towards the nearest 173 destination.left = source.left;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 60 static jboolean Region_setRect(JNIEnv* env, jobject, jlong dstHandle, jint left, jint top, jint right, jint bottom) { argument 62 bool result = dst->setRect(left, top, right, bottom); 91 static jboolean Region_op0(JNIEnv* env, jobject, jlong dstHandle, jint left, jint top, jint right, jint bottom, jint op) { argument 95 ir.set(left, top, right, bottom); 139 static jboolean Region_quickContains(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) { argument 140 bool result = GetSkRegion(env, region)->quickContains(left, top, right, bottom); 144 static jboolean Region_quickRejectIIII(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) { argument 146 ir.set(left, top, right, bottom);
|
/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | NetworkImageView.java | 196 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 197 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 813 float left = w.mFrame.left + w.mXOffset; 817 width += attrs.surfaceInsets.left + attrs.surfaceInsets.right; 819 left -= attrs.surfaceInsets.left; 826 + " x=" + left + " y=" + top 848 && attrs.surfaceInsets.left == 0 893 + ", set left=" + w.mFrame.left + " top=" + w.mFrame.top 900 + w.mFrame.left [all...] |