Searched refs:getWidth (Results 51 - 75 of 567) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/transition/
H A DCircularPropagation.java83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2)
89 double maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight());
H A DSlide.java75 return view.getTranslationX() - sceneRoot.getWidth();
85 x = view.getTranslationX() + sceneRoot.getWidth();
87 x = view.getTranslationX() - sceneRoot.getWidth();
103 return view.getTranslationX() + sceneRoot.getWidth();
113 x = view.getTranslationX() - sceneRoot.getWidth();
115 x = view.getTranslationX() + sceneRoot.getWidth();
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisible.java69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight());
85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight());
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPageContentView.java101 if (getWidth() > 0 && getHeight() > 0 && !mContentRequested
104 mProvider.getPageContent(new RenderSpec(getWidth(), getHeight(),
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimateableViewBounds.java48 mSourceView.getWidth() - mClipRect.right,
81 mSourceView.getWidth() - mClipRect.right,
/frameworks/base/rs/java/android/renderscript/
H A DRSTextureView.java155 mRS.setSurfaceTexture(mSurfaceTexture, getWidth(), getHeight());
180 mRS.setSurfaceTexture(mSurfaceTexture, getWidth(), getHeight());
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipRegionActivity.java82 mClipPath.addCircle(mClipPosition * getWidth(), getHeight() / 2.0f,
83 getWidth() / 4.0f, Path.Direction.CW);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DHorizontalHoverCardSwitcher.java44 int rightLimit = getParentViewGroup().getWidth() -
71 mTmpRect.set(0, 0, childView.getWidth(), childView.getHeight());
H A DHorizontalGridView.java273 if (mLayoutManager.getOpticalRight(view) > getWidth()
283 || mTempBitmapLow.getWidth() != mLowFadeShaderLength
293 || mTempBitmapHigh.getWidth() != mHighFadeShaderLength
297 && mTempBitmapLow.getWidth() == mHighFadeShaderLength
325 int highEdge = mFadingHighEdge ? getWidth() - getPaddingRight()
326 + mHighFadeShaderOffset + mHighFadeShaderLength : getWidth();
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java120 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) {
127 int width = getFormat().getWidth();
137 int width = getFormat().getWidth();
229 if (getFormat().getWidth() != bitmap.getWidth() ||
244 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(),
H A DNativeFrame.java172 } else if (getFormat().getWidth() != bitmap.getWidth() ||
190 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(),
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java117 int width = Math.round(bitmap.getWidth() * scale);
119 if (width == bitmap.getWidth()
140 int srcWidth = bitmap.getWidth();
149 int w = bitmap.getWidth();
158 int width = Math.round(scale * bitmap.getWidth());
180 int w = source.getWidth();
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DIconTest.java119 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight());
146 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight());
179 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight());
206 originalbits.getWidth() * originalbits.getHeight() * 2); // guess 50% compression
252 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight());
291 final int w = a.getWidth();
297 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) return false;
299 final int w = a.getWidth();
311 if (a.getWidth() !
[all...]
/frameworks/base/core/java/android/view/
H A DTextureView.java326 mSurface.setDefaultBufferSize(getWidth(), getHeight());
329 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight());
362 mSurface.setDefaultBufferSize(getWidth(), getHeight());
368 mListener.onSurfaceTextureAvailable(mSurface, getWidth(), getHeight());
385 mSurface.setDefaultBufferSize(getWidth(), getHeight());
439 mLayer.prepare(getWidth(), getHeight(), mOpaque);
519 return getBitmap(getWidth(), getHeight());
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
H A DCameraTooActivity.java94 if (option.getWidth() >= width && option.getHeight() >= height) {
115 return Long.signum((long) lhs.getWidth() * lhs.getHeight() -
116 (long) rhs.getWidth() * rhs.getHeight());
253 mCaptureBuffer = ImageReader.newInstance(largestSize.getWidth(),
262 mSurfaceView.getWidth() + 'x' + mSurfaceView.getHeight());
269 surfaceHolder.setFixedSize(optimalSize.getWidth(),
419 mCapture.getWidth() + 'x' + mCapture.getHeight());
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java84 outline.setOval(pad, pad, view.getWidth() - pad, view.getHeight() - pad);
107 final float r = c.getWidth() / 2f;
110 M.setBounds(0, 0, c.getWidth(), c.getHeight());
121 outline.setOval(0, 0, view.getWidth(), view.getHeight());
206 fg.setBounds(0, 0, im.getWidth(), im.getHeight());
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java191 final int rightEdge = getWidth() - mPaddingRight;
264 int childWidth = child.getWidth();
265 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ;
623 mEdgeGlowLeft.onPull((float) deltaX / getWidth(),
629 mEdgeGlowRight.onPull((float) deltaX / getWidth(),
780 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
792 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
842 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight));
872 final int rightWithoutFadingEdge = left + getWidth()
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) /
294 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale;
397 float centerX = getWidth() / 2;
403 float minX = getWidth() * marginFit + mTranslateRect.right * relativeDistance;
444 final float viewWidth = getWidth();
477 final float viewWidth = getWidth();
557 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() ||
722 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2;
735 canvas.drawRect(0, 0, getWidth(), getHeigh
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DGrainFilter.java157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2,
175 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
176 updateFrameSize(inputFormat.getWidth(), inputFormat.getHeight());
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DMediaStoreSaver.java123 float scaleX = width / source.getWidth();
129 source.getWidth(),
138 values.put(Images.Thumbnails.WIDTH, thumb.getWidth());
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
H A DVrView.java199 double dist_x = (mDownPointX - x) * mDownScreenWidth / getWidth();
200 double dist_y = (y - mDownPointY) * mDownScreenWidth / getWidth();
260 deltax = (float) ((mDownPointX - e.getX()) / getWidth());
261 deltay = (float) -((mDownPointY - e.getY()) / getWidth());
265 deltax = (float) ((mDownPointX - e.getX()) / getWidth());
266 deltay = (float) -((mDownPointY - e.getY()) / getWidth());
270 deltax = (float) ((mDownPointX - e.getX()) / getWidth());
271 deltay = (float) -((mDownPointY - e.getY()) / getWidth());
299 mState1.mTransform.look(looks[last_look], mState1.mCubeScreen, getWidth(), getHeight());
312 mState1.mTransform.look(ViewMatrix.DOWN_AT, mState1.mCubeScreen, getWidth(), getHeigh
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java197 return mLayoutManager.getWidth() - mLayoutManager.getPaddingRight();
202 return mLayoutManager.getWidth();
247 return mLayoutManager.getWidth() - mLayoutManager.getPaddingLeft()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
H A DItemTouchHelperTest.java93 basicSwipeTest(LEFT, LEFT | RIGHT, -getActivity().getWindow().getDecorView().getWidth());
97 basicSwipeTest(RIGHT, LEFT | RIGHT, getActivity().getWindow().getDecorView().getWidth());
101 basicSwipeTest(START, START | END, -getActivity().getWindow().getDecorView().getWidth());
105 basicSwipeTest(END, START | END, getActivity().getWindow().getDecorView().getWidth());
110 basicSwipeTest(START, START | END, getActivity().getWindow().getDecorView().getWidth());
115 basicSwipeTest(END, START | END, -getActivity().getWindow().getDecorView().getWidth());
262 final int viewWidth = v.getWidth();
301 final int viewWidth = v.getWidth();
336 final int viewWidth = v.getWidth();
382 final int viewWidth = v.getWidth();
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java83 final float width = getWidth();
126 float cropRight = cropLeft + getWidth() / scale;
144 updateMinScale(getWidth(), getHeight(), source, true);
193 if (getWidth() == 0 || getHeight() == 0) {
298 } else if (edges.right < getWidth()) {
299 adjustment[0] = (edges.right - getWidth()) / scale;
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
H A DSlideKitkat.java93 return view.getTranslationX() - view.getWidth();
107 return view.getTranslationX() + view.getWidth();
122 return view.getTranslationX() + view.getWidth();
124 return view.getTranslationX() - view.getWidth();
133 return view.getTranslationX() - view.getWidth();
135 return view.getTranslationX() + view.getWidth();

Completed in 1023 milliseconds

1234567891011>>