/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 800 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; 826 // Adjust left and right padding to ensure there's enough room for the 828 int paddingLeft = padding.left; 832 paddingLeft = Math.max(paddingLeft, inset.left); 887 mTempRect.left + mTempRect.right + mTouchSlop; 1082 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1083 super.onLayout(changed, left, top, right, bottom); 1096 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 1159 thumbInitialLeft += padding.left; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 862 * (excluding fading edges) pretending that this View's left is located at 863 * the parameter left. 866 * @param leftFocus look for a candidate is the one at the left of the bounds 869 * @param left the left offset of the bounds in which a focusable must be 876 final int left, View preferredFocusable) { 883 final int leftWithoutFadingEdge = left + fadingEdgeLength; 884 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; 901 * @param leftFocus look for a candidate is the one at the left of the bounds 904 * @param left th 875 findFocusableViewInMyBounds(final boolean leftFocus, final int left, View preferredFocusable) argument 911 findFocusableViewInBounds(boolean leftFocus, int left, int right) argument 1057 scrollAndFocus(int direction, int left, int right) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 396 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 399 data[kScaleX] = 2.0f / (right - left); 402 data[kTranslateX] = -(right + left) / (right - left); 452 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]); 457 if (r.left > r.right) { 458 float x = r.left; 459 r.left = r.right; 473 r.left, r.top, 476 r.left, [all...] |
H A D | CanvasState.h | 123 bool quickRejectConservative(float left, float top, float right, float bottom) const; 125 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op); 141 * Returns true if drawing in the rectangle (left, top, right, bottom) 145 bool calculateQuickRejectForScissor(float left, float top, float right, float bottom,
|
/frameworks/base/core/java/android/view/ |
H A D | NotificationHeaderView.java | 177 int left = getPaddingStart(); 187 left += params.getMarginStart(); 188 int right = left + child.getMeasuredWidth(); 191 int layoutLeft = left; 207 left = right + params.getMarginEnd(); 337 r.left = 0; 352 r.left = (int) (view.getLeft() - size / 2.0f); 354 r.left = (int) ((view.getLeft() + view.getRight()) / 2.0f - size / 2.0f); 358 r.right = (int) (r.left + size);
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 441 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); 443 layer->sourceCrop.right = layer->sourceCrop.left 444 + testRandMod(gBuf->getWidth() - layer->sourceCrop.left) + 1; 447 layer->displayFrame.left = testRandMod(width); 449 layer->displayFrame.right = layer->displayFrame.left 450 + testRandMod(width - layer->displayFrame.left) + 1; 463 - layer->sourceCrop.left; 466 if (((layer->displayFrame.left + sourceWidth) <= width) 468 layer->displayFrame.right = layer->displayFrame.left
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistOrbView.java | 228 float translationX = (mCircleRect.left + mCircleRect.right) / 2.0f - mLogo.getWidth() / 2.0f; 245 int left, top; 247 left = (int) (getWidth() - circleSize) / 2; 249 rect.set(left, top, (int) (left + circleSize), (int) (top + circleSize));
|
/frameworks/base/services/core/java/com/android/server/policy/ |
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);
|
H A D | PhoneWindowManager.java | 1902 public void setDisplayOverscan(Display display, int left, int top, int right, int bottom) { argument 1904 mOverscanLeft = left; 2833 && frame.left + insets >= mNavigationBar.getFrameLw().left)); 2836 || frame.left + insets >= win.getDisplayFrameLw().right); 3836 outOutsets.left += outset; 3896 int leftInset = mTmpRect.left - taskBounds.left; 3980 pf.left = df.left [all...] |
/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/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Region.java | 68 path.moveTo(mPointsXY[i] - bounds.left + mCutOffsetX,
71 path.lineTo(mPointsXY[i] - bounds.left + mCutOffsetX,
117 path.moveTo(mPointsXY[i] - mRoiBounds.left + cutOffsetX,
120 path.lineTo(mPointsXY[i] - mRoiBounds.left + cutOffsetX,
182 c.drawBitmap(mUndoBitmap, roi.left, roi.top, null);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 104 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 233 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); 270 void setBounds(int left, int top, int right, int bottom) { argument 271 mBounds.left = left;
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 50 canvas.translate(bounds.left + roundedCornerRadius, 64 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top, 68 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, 73 canvas.drawRect(bounds.left, bounds.top + cornerRadius, 102 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top,
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseWrapContentWithAspectRatioTest.java | 82 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 83 super.onLayout(changed, left, top, right, bottom); 84 mBehavior.onLayout(changed, left, top, right, bottom); 169 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 171 layouts.add(new Pair<>(right - left, bottom - 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/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSIconView.java | 120 protected final void layout(View child, int left, int top) { argument 121 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | DividerHandleView.java | 137 int left = getWidth() / 2 - mCurrentWidth / 2; 140 canvas.drawRoundRect(left, top, left + mCurrentWidth, top + mCurrentHeight,
|
/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/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 175 jfloat left, jfloat top, jfloat right, jfloat bottom) { 176 bool result = get_canvas(canvasHandle)->quickRejectRect(left, top, right, bottom); 263 static void drawRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 266 get_canvas(canvasHandle)->drawRect(left, top, right, bottom, *paint); 276 static void drawRoundRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 279 get_canvas(canvasHandle)->drawRoundRect(left, top, right, bottom, rx, ry, *paint); 288 static void drawOval(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 291 get_canvas(canvasHandle)->drawOval(left, top, right, bottom, *paint); 294 static void drawArc(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 298 get_canvas(canvasHandle)->drawArc(left, to 174 quickRejectRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, jfloat right, jfloat bottom) argument 339 drawNinePatch(JNIEnv* env, jobject, jlong canvasHandle, jlong bitmapHandle, jlong chunkHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintHandle, jint dstDensity, jint srcDensity) argument 372 drawBitmap(JNIEnv* env, jobject jcanvas, jlong canvasHandle, jobject jbitmap, jfloat left, jfloat top, jlong paintHandle, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument [all...] |
/frameworks/base/media/java/android/media/tv/ |
H A D | ITvInputClient.aidl | 42 void onLayoutSurface(int left, int top, int right, int bottom, int seq);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppTransition.java | 526 * @param startPos Offset from left/top edge of outer rectangle to 527 * left/top edge of inner rectangle. 606 computePivot(mTmpRect.left, scaleW), 675 private void putDefaultNextAppTransitionCoordinates(int left, int top, int width, int height, argument 678 bitmap, new Rect(left, top, left + width, top + height)); 746 int clipStartX = centerX - halfWidth - appFrame.left; 759 if (appFrame.left > centerX - halfWidth) { 760 translationX = (centerX - halfWidth) - appFrame.left; 919 fromX = mTmpRect.left; [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 193 if (rect.left < 0 || rect.right > width || 196 rect.left, rect.top, rect.right, rect.bottom, 214 if (rect.left < 0 || rect.right > width || 217 rect.left, rect.top, rect.right, rect.bottom, 241 if (rect.left < 0 || rect.right > width || 244 rect.left, rect.top, rect.right, rect.bottom, 264 if (rect.left < 0 || rect.right > width || 267 rect.left, rect.top, rect.right, rect.bottom,
|
/frameworks/support/percent/src/android/support/percent/ |
H A D | PercentFrameLayout.java | 112 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 113 super.onLayout(changed, left, top, right, bottom);
|