Searched refs:width (Results 276 - 300 of 1274) sorted by relevance

<<11121314151617181920>>

/frameworks/base/libs/hwui/tests/unit/
H A DFontRendererTests.cpp50 EXPECT_FALSE(isZero(result.image, result.width * result.height));
51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width);
/frameworks/base/media/java/android/media/tv/
H A DITvRemoteServiceInput.aidl24 void openInputBridge(IBinder token, String name, int width, int height, int maxPointers);
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DFilterEffect.java85 protected Frame frameFromTexture(int texId, int width, int height) { argument
87 FrameFormat format = ImageFormat.create(width, height,
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraUtils.java76 return compareSizes(lhs.width, lhs.height, rhs.width, rhs.height);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java346 public void setSize(int width, int height) { argument
347 mWidth = width;
352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1);
354 mScreenWidth = width;
486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument
487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint);
491 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument
493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth());
496 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument
499 draw(mDrawParameters, type, count, x, y, width, heigh
554 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument
566 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument
575 fillRect(float x, float y, float width, float height, int color) argument
582 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument
993 getBounds(Rect bounds, int x, int y, int width, int height) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java132 * The width of the display in its natural orientation, in pixels.
135 public int width; field in class:DisplayDeviceInfo
260 public void setAssumedDensityForExternalDisplay(int width, int height) { argument
261 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080;
288 || width != other.width
322 width = other.width;
352 sb.append(width).append(" x ").append(height);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java56 final int width = getWidth();
64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java139 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
140 super.onSurfaceChanged(holder, format, width, height);
195 final int width = frame.width();
205 c.drawRect(0, 0, width, height, paint);
209 width-mMainInsets.right, height-mMainInsets.bottom, paint);
213 width - mStableInsets.right, height - mStableInsets.bottom,
222 c.drawText("Surface Size: " + width + " x " + height,
/frameworks/native/opengl/tests/gl_jni/src/com/android/gljni/
H A DGLJNIView.java75 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
76 GLJNILib.init(width, height);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DVerticalGridView.java81 * Sets the column width.
83 * @param width May be {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}, or a size
84 * in pixels. If zero, column width will be fixed based on number of columns
85 * and view width.
87 public void setColumnWidth(int width) { argument
88 mLayoutManager.setRowHeight(width);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatRatingBar.java60 final int width = sampleTile.getWidth() * getNumStars();
61 setMeasuredDimension(ViewCompat.resolveSizeAndState(width, widthMeasureSpec, 0),
/frameworks/av/media/libstagefright/wifi-display/
H A DVideoFormats.cpp184 size_t width, height, fps, score; local
186 if (!GetConfiguration(type, index, &width, &height,
191 score = width * height * fps * (!interlaced + 1);
195 &width, &height, &fps, &interlaced)
196 && score >= width * height * fps * (!interlaced + 1)) {
273 size_t *width, size_t *height, size_t *framesPerSecond,
283 if (config->width == 0) {
287 if (width) {
288 *width = config->width;
270 GetConfiguration( ResolutionType type, size_t index, size_t *width, size_t *height, size_t *framesPerSecond, bool *interlaced) argument
494 size_t width, height, framesPerSecond; local
[all...]
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp36 for (int32_t x = 0; x < mYUVImage.width(); ++x) {
67 for (int32_t offsetX = 0; offsetX < srcRect.width(); ++offsetX) {
91 CHECK((srcOffsetX + (mYUVImage.width() - 1) * skipX) < srcImage.width());
101 for (int32_t x = 0; x < mYUVImage.width(); ++x) {
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.h42 uint32_t width; member in struct:android::camera3::StreamInfo
60 width(w),
82 uint32_t width, uint32_t height, int format,
93 uint32_t width, uint32_t height, size_t maxSize, int format,
145 uint32_t width, uint32_t height, int format,
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java155 int w = clipLower(rect.width(), /*lo*/0, rect, "width");
239 return new Size(size.width, size.height);
250 sizes.add(new Size(s.width, s.height));
264 array[ctr++] = new Size(s.width, s.height);
272 public static boolean containsSize(List<Camera.Size> sizeList, int width, int height) { argument
275 if (s.height == height && s.width == width) {
441 } else if (currentPreviewCropRegion.width() >= cropRegionAsPreview.width()
[all...]
/frameworks/base/core/java/android/widget/
H A DVideoView.java144 int width = getDefaultSize(mVideoWidth, widthMeasureSpec);
155 width = widthSpecSize;
159 if ( mVideoWidth * height < width * mVideoHeight ) {
161 width = height * mVideoWidth / mVideoHeight;
162 } else if ( mVideoWidth * height > width * mVideoHeight ) {
164 height = width * mVideoHeight / mVideoWidth;
167 // only the width is fixed, adjust the height to match aspect ratio if possible
168 width = widthSpecSize;
169 height = width * mVideoHeight / mVideoWidth;
175 // only the height is fixed, adjust the width t
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java115 public void setFixedSize(int width, int height) { argument
116 if (mRequestedWidth != width || mRequestedHeight != height) {
117 mRequestedWidth = width;
227 public void setSurfaceFrameSize(int width, int height) { argument
230 mSurfaceFrame.right = width;
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp57 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument
68 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth);
70 if (width)
71 *width = SkScalarToHBFixed(skWidth);
76 extents->width = SkScalarToHBFixed(skBounds.width());
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfDocument.cpp36 PageRecord(int width, int height, const SkRect& contentRect) argument
39 , mWidth(width)
64 SkCanvas* startPage(int width, int height, argument
70 PageRecord* page = new PageRecord(width, height, contentRect);
75 SkRect::MakeWH(contentRect.width(), contentRect.height()));
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DCircularBitmapDrawable.java68 * Set the border stroke width of this drawable.
115 bounds.width() / 2f - mBorderWidth / 2, mBorderPaint);
142 float scale = Math.max((float) dst.width() / src.width(),
152 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2,
158 dst.width() / 2f - mBorderWidth / 2, mBorderPaint);
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java68 void reset(int width, int height) { argument
73 android.util.Log.v("cpa", "reset " + width + ", " + height);
75 mWidth = width;
127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
/frameworks/support/design/src/android/support/design/internal/
H A DScrimInsetsFrameLayout.java85 int width = getWidth();
92 mTempRect.set(0, 0, width, mInsets.top);
97 mTempRect.set(0, height - mInsets.bottom, width, height);
107 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom);
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp24 * -s [width, height] - Starting dimension
234 static EGLint width, height; variable
508 == searchLimits.sourceCrop.width()) ? ">= " : "",
520 testPrintI(" scMaxDim: %s%s", ((measPtr->sc.maxDim.width()
521 >= searchLimits.sourceCrop.width())
522 || (measPtr->sc.maxDim.width() >=
533 >= Rational(searchLimits.sourceCrop.width(),
534 measPtr->df.minDim.width())) ? ">= " : "",
644 (x + startDim.width()) < (unsigned int) width;
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp48 // by one pixel more than the width because the generator left a gap to
101 if (!isPowerOfTwo(FontBitmap::width)) {
102 ALOGE("npot glyph bitmap width %u", FontBitmap::width);
107 uint8_t* rgbaPixels = new uint8_t[FontBitmap::width * potHeight * 4];
108 memset(rgbaPixels, 0, FontBitmap::width * potHeight * 4);
111 for (unsigned int i = 0; i < FontBitmap::width * FontBitmap::height; i++) {
128 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, FontBitmap::width, potHeight, 0,
141 ALOGW("setFontScale: can't set scale for width=%d height=%d",
171 float width
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraFlashlight.cpp381 sp<CameraDeviceBase> &device, int32_t width, int32_t height) {
392 res = mSurfaceTexture->setDefaultBufferSize(width, height);
405 res = device->createStream(mSurface, width, height, format,
420 const camera_info& info, int32_t *width, int32_t *height) {
421 if (!width || !height) {
463 *width = w;
490 int32_t width, height; local
491 res = getSmallestSurfaceSize(info, &width, &height);
495 res = initializeSurface(device, width, height);
786 int32_t *width, int32_
380 initializeSurface( sp<CameraDeviceBase> &device, int32_t width, int32_t height) argument
419 getSmallestSurfaceSize( const camera_info& info, int32_t *width, int32_t *height) argument
785 getSmallestSurfaceSize( int32_t *width, int32_t *height) argument
814 initializePreviewWindow( sp<CameraHardwareInterface> device, int32_t width, int32_t height) argument
866 int32_t width, height; local
[all...]

Completed in 9179 milliseconds

<<11121314151617181920>>