/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 | 110 * Preview image resource IDs for left- and right-aligned layouts. See 195 /** Whether decorations should be laid out from right to left. */ 582 bounds.left -= mPreviewImage.getPaddingLeft(); 600 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom); 601 view.setPivotX(mLayoutFromRight ? bounds.right - bounds.left : 0); 615 margins.left = mPreviewImage.getPaddingLeft(); 647 marginLeft = margins.left; 670 // Align to the left or right. 672 final int left; 676 left [all...] |
H A D | Switch.java | 825 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; 851 // Adjust left and right padding to ensure there's enough room for the 853 int paddingLeft = padding.left; 857 paddingLeft = Math.max(paddingLeft, inset.left); 911 mTempRect.left + mTempRect.right + mTouchSlop; 1086 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1087 super.onLayout(changed, left, top, right, bottom); 1100 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 1163 thumbInitialLeft += padding.left; [all...] |
H A D | HorizontalScrollView.java | 850 * (excluding fading edges) pretending that this View's left is located at 851 * the parameter left. 854 * @param leftFocus look for a candidate is the one at the left of the bounds 857 * @param left the left offset of the bounds in which a focusable must be 864 final int left, View preferredFocusable) { 871 final int leftWithoutFadingEdge = left + fadingEdgeLength; 872 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; 889 * @param leftFocus look for a candidate is the one at the left of the bounds 892 * @param left th 863 findFocusableViewInMyBounds(final boolean leftFocus, final int left, View preferredFocusable) argument 899 findFocusableViewInBounds(boolean leftFocus, int left, int right) argument 1045 scrollAndFocus(int direction, int left, int right) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 540 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; 566 // Adjust left and right padding to ensure there's enough room for the 568 int paddingLeft = padding.left; 572 paddingLeft = Math.max(paddingLeft, inset.left); 627 mTempRect.left + mTempRect.right + mTouchSlop; 800 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 801 super.onLayout(changed, left, top, right, bottom); 814 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 877 thumbInitialLeft += padding.left; [all...] |
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 402 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 405 data[kScaleX] = 2.0f / (right - left); 408 data[kTranslateX] = -(right + left) / (right - left); 450 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]); 455 if (r.left > r.right) { 456 float x = r.left; 457 r.left = r.right; 471 r.left, r.top, 474 r.left, [all...] |
H A D | CanvasState.h | 118 bool quickRejectConservative(float left, float top, float right, float bottom) const; 120 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op); 136 * Returns true if drawing in the rectangle (left, top, right, bottom) 140 bool calculateQuickRejectForScissor(float left, float top, float right, float bottom,
|
H A D | Snapshot.h | 127 bool clip(float left, float top, float right, float bottom, 151 void setClip(float left, float top, float right, float bottom); 176 void resetClip(float left, float top, float right, float bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 307 mFrame.left + Math.round(width * 0.25f), 313 mButtonFrame.left += mSubpixelSmoothingLeft; 318 mFrame.left += mSubpixelSmoothingLeft; 337 mShapePath.moveTo(mButtonFrame.left, mButtonFrame.top); 342 mShapePath.lineTo(mFrame.left, mFrame.bottom); 343 mShapePath.lineTo(mFrame.left, mFrame.top); 344 mShapePath.lineTo(mButtonFrame.left, mFrame.top); 345 mShapePath.lineTo(mButtonFrame.left, mButtonFrame.top); 349 final float bl = mFrame.left + mFrame.width() / 4.5f; 353 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/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistOrbView.java | 234 float translationX = (mCircleRect.left + mCircleRect.right) / 2.0f - mLogo.getWidth() / 2.0f; 251 int left, top; 253 left = (int) (getWidth() - circleSize) / 2; 255 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);
|
/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 | 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 | 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/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/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewHeader.java | 234 boolean left = display.left == taskRect.left; 236 if (top && bottom && left) { 240 } else if (top && left && right) { 242 } else if (bottom && left && right) { 246 } else if (top && left) { 250 } else if (bottom && left) {
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 191 if (rect.left < 0 || rect.right > width || 194 rect.left, rect.top, rect.right, rect.bottom, 212 if (rect.left < 0 || rect.right > width || 215 rect.left, rect.top, rect.right, rect.bottom, 239 if (rect.left < 0 || rect.right > width || 242 rect.left, rect.top, rect.right, rect.bottom, 262 if (rect.left < 0 || rect.right > width || 265 rect.left, rect.top, rect.right, rect.bottom,
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | NetworkImageView.java | 197 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 198 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 815 float left = w.mFrame.left + w.mXOffset; 819 width += attrs.surfaceInsets.left + attrs.surfaceInsets.right; 821 left -= attrs.surfaceInsets.left; 828 + " x=" + left + " y=" + top 852 && attrs.surfaceInsets.left == 0 898 + ", set left=" + w.mFrame.left + " top=" + w.mFrame.top 905 + w.mFrame.left [all...] |