Searched refs:getWidth (Results 76 - 100 of 699) sorted by relevance

1234567891011>>

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2RecordingTest.java396 (videoSz.getWidth() > maxPreviewSize.getWidth() ||
553 (videoSz.getWidth() > maxPreviewSize.getWidth() ||
581 if (candidateSize.getWidth() <= videoSz.getWidth() &&
589 if (candidateSize.getWidth() <= videoSz.getWidth() &&
606 videoSz.getWidth() <= maxPreviewSize.getWidth()
[all...]
/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.java350 mSurface.setDefaultBufferSize(getWidth(), getHeight());
353 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight());
381 mSurface.setDefaultBufferSize(getWidth(), getHeight());
387 mListener.onSurfaceTextureAvailable(mSurface, getWidth(), getHeight());
404 mSurface.setDefaultBufferSize(getWidth(), getHeight());
455 mLayer.prepare(getWidth(), getHeight(), mOpaque);
535 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/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScrimView.java88 canvas.drawRect(0, 0, getWidth(), mExcludedRect.top, mPaint);
94 if (mExcludedRect.right < getWidth()) {
97 getWidth(),
102 canvas.drawRect(0, mExcludedRect.bottom, getWidth(), getHeight(), mPaint);
176 int right = Math.min(area.right, getWidth());
/frameworks/support/percent/tests/java/android/support/percent/
H A DPercentRelativeRtlTest.java113 mContainerWidth = mPercentRelativeLayout.getWidth();
151 final int childWidth = childToTest.getWidth();
176 final int childWidth = childToTest.getWidth();
207 final int childWidth = childToTest.getWidth();
237 final int childWidth = childToTest.getWidth();
/frameworks/support/v4/tests/java/android/support/v4/testutils/
H A DTestUtilsMatchers.java132 if (view.getRight() == parentGroup.getWidth()) {
138 parentGroup.getWidth();
169 if (view.getRight() == parentGroup.getWidth()) {
175 parentGroup.getWidth();
214 final int parentWidth = parentGroup.getWidth();
/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 ;
635 mEdgeGlowLeft.onPull((float) deltaX / getWidth(),
641 mEdgeGlowRight.onPull((float) deltaX / getWidth(),
792 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
804 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
854 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight));
884 final int rightWithoutFadingEdge = left + getWidth()
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java286 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) /
296 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale;
415 final float viewWidth = getWidth();
448 final float viewWidth = getWidth();
528 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() ||
693 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2;
706 canvas.drawRect(0, 0, getWidth(), getHeight(), sCropDimPaint);
725 final int layoutWidth = getWidth();
808 final int vwidth = getWidth();
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java172 } else if (getFormat().getWidth() != bitmap.getWidth() ||
190 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(),
/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());
H A DCropRectFilter.java105 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
106 updateSourceRect(inputFormat.getWidth(), inputFormat.getHeight());
H A DDocumentaryFilter.java123 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
124 mWidth = inputFormat.getWidth();
H A DFisheyeFilter.java115 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
116 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/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();
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
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/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DTouchUtils.java37 final int viewWidth = v.getWidth();
68 final int viewWidth = v.getWidth();
95 final int viewWidth = v.getWidth();
132 final int viewWidth = v.getWidth();
173 final int viewWidth = v.getWidth();
186 final int viewWidth = v.getWidth();
/frameworks/base/core/java/android/hardware/camera2/params/
H A DMeteringRectangle.java118 mWidth = checkArgumentNonnegative(dimensions.getWidth(), "width must be nonnegative");
167 public int getWidth() { method in class:MeteringRectangle
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth()
194 public int getWidth() { method in class:BitmapRegionDecoder
196 checkRecycled("getWidth called on recycled region decoder");
212 * getWidth() or getHeight() is called.
H A DNinePatch.java227 public int getWidth() { method in class:NinePatch
228 return mBitmap.getWidth();
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.cpp34 mWidth = mLayer->layer.getWidth();
98 forceFilter = mWidth != static_cast<int>(buffer->getWidth())
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java175 int width = bitmap.getWidth();
220 if (source.getWidth() < source.getHeight()) {
221 scale = width / (float) source.getWidth();
365 int deltaX = source.getWidth() - targetWidth;
383 deltaXHalf + Math.min(targetWidth, source.getWidth()),
399 float bitmapWidthF = source.getWidth();
425 source.getWidth(), source.getHeight(), scaler, true);
434 int dx1 = Math.max(0, b1.getWidth() - targetWidth);

Completed in 678 milliseconds

1234567891011>>