Searched refs:width (Results 251 - 275 of 1122) sorted by relevance

<<11121314151617181920>>

/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/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/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...]
H A DSurfaceTextureRenderer.java73 int width; field in class:SurfaceTextureRenderer.EGLSurfaceHolder
251 private void drawFrame(SurfaceTexture st, int width, int height, int flipType) { argument
274 RectF output = new RectF(/*left*/0, /*top*/0, /*right*/width, /*bottom*/height);
281 float scaleX = intermediate.width() / output.width();
292 width + "x" + height + " surface, intermediate buffer size is " + texWidth +
297 GLES20.glViewport(0, 0, width, height);
470 int length = holder.width * holder.height;
474 EGL14.EGL_WIDTH, holder.width,
565 path.append(String.format("_%d_%d", surface.width, surfac
[all...]
/frameworks/base/core/java/android/widget/
H A DVideoView.java143 int width = getDefaultSize(mVideoWidth, widthMeasureSpec);
154 width = widthSpecSize;
158 if ( mVideoWidth * height < width * mVideoHeight ) {
160 width = height * mVideoWidth / mVideoHeight;
161 } else if ( mVideoWidth * height > width * mVideoHeight ) {
163 height = width * mVideoHeight / mVideoWidth;
166 // only the width is fixed, adjust the height to match aspect ratio if possible
167 width = widthSpecSize;
168 height = width * mVideoHeight / mVideoWidth;
174 // only the height is fixed, adjust the width t
[all...]
H A DFrameLayout.java145 * Returns a set of layout parameters with a width of
202 if (lp.width == LayoutParams.MATCH_PARENT ||
214 // Check against our minimum height and width
218 // Check against our foreground's minimum height and width
236 if (lp.width == LayoutParams.MATCH_PARENT) {
237 final int width = Math.max(0, getMeasuredWidth()
241 width, MeasureSpec.EXACTLY);
246 lp.width);
291 final int width = child.getMeasuredWidth();
308 childLeft = parentLeft + (parentRight - parentLeft - width) /
456 LayoutParams(int width, int height) argument
472 LayoutParams(int width, int height, int gravity) argument
[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.cpp35 PageRecord(int width, int height, const SkRect& contentRect) argument
38 , mWidth(width)
63 SkCanvas* startPage(int width, int height, argument
69 PageRecord* page = new PageRecord(width, height, contentRect);
74 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.java84 int width = getWidth();
91 mTempRect.set(0, 0, width, mInsets.top);
96 mTempRect.set(0, height - mInsets.bottom, width, height);
106 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
235 static EGLint width, height; variable
509 == searchLimits.sourceCrop.width()) ? ">= " : "",
521 testPrintI(" scMaxDim: %s%s", ((measPtr->sc.maxDim.width()
522 >= searchLimits.sourceCrop.width())
523 || (measPtr->sc.maxDim.width() >=
534 >= Rational(searchLimits.sourceCrop.width(),
535 measPtr->df.minDim.width())) ? ">= " : "",
645 (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.cpp378 sp<CameraDeviceBase> &device, int32_t width, int32_t height) {
389 res = mSurfaceTexture->setDefaultBufferSize(width, height);
402 res = device->createStream(mSurface, width, height, format,
417 const camera_info& info, int32_t *width, int32_t *height) {
418 if (!width || !height) {
460 *width = w;
487 int32_t width, height; local
488 res = getSmallestSurfaceSize(info, &width, &height);
492 res = initializeSurface(device, width, height);
764 int32_t *width, int32_
377 initializeSurface( sp<CameraDeviceBase> &device, int32_t width, int32_t height) argument
416 getSmallestSurfaceSize( const camera_info& info, int32_t *width, int32_t *height) argument
763 getSmallestSurfaceSize( int32_t *width, int32_t *height) argument
792 initializePreviewWindow( sp<CameraHardwareInterface> device, int32_t width, int32_t height) argument
844 int32_t width, height; local
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dbit_cnt.c43 const Word16 width,
58 for(i=0;i<width;i+=4){
119 const Word16 width,
133 for(i=0;i<width;i+=4){
193 const Word16 width,
207 for(i=0;i<width;i+=2){
250 const Word16 width,
262 for(i=0;i<width;i+=2){
298 const Word16 width,
310 for(i=0;i<width;
42 count1_2_3_4_5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
118 count3_4_5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
192 count5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
249 count7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
297 count9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
345 count11(const Word16 *values, const Word16 width, Word16 *bitCount) argument
386 countEsc(const Word16 *values, const Word16 width, Word16 *bitCount) argument
469 bitCount(const Word16 *values, const Word16 width, Word16 maxVal, Word16 *bitCount) argument
495 codeValues(Word16 *values, Word16 width, Word16 codeBook, HANDLE_BIT_BUF hBitstream) argument
[all...]
/frameworks/native/opengl/libagl/
H A Ddxt.cpp136 DXT1HasAlpha(const GLvoid *data, int width, int height) { argument
146 int xblocks = (width + 3)/4;
187 printf("Scanned w=%d h=%d in %ld usec\n", width, height, usec);
194 decodeDXT1(const GLvoid *data, int width, int height, argument
214 for (int base_x = 0; base_x < width; base_x += 4, blockPtr += 4) {
293 int w = min(width - base_x, 4);
307 decodeDXT3(const GLvoid *data, int width, int height, argument
326 for (int base_x = 0; base_x < width; base_x += 4, blockPtr += 4) {
399 int w = min(width - base_x, 4);
416 decodeDXT5(const GLvoid *data, int width, in argument
599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DAccessibilityNodeInfoDumper.java49 * @param width The pixel width of current display
53 int width, int height) {
63 rotation, width, height);
72 * @param width The pixel width of current display
76 int width, int height) {
89 dumpNodeRec(root, serializer, 0, width, height);
102 int width, int height) throws IOException {
123 node, width, heigh
52 dumpWindowToFile(AccessibilityNodeInfo root, int rotation, int width, int height) argument
75 dumpWindowToFile(AccessibilityNodeInfo root, File dumpFile, int rotation, int width, int height) argument
101 dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer,int index, int width, int height) argument
[all...]
/frameworks/base/libs/hwui/
H A DLayer.cpp50 texture.width = layerWidth;
101 bool Layer::resize(const uint32_t width, const uint32_t height) { argument
102 uint32_t desiredWidth = computeIdealWidth(width);
228 const float width = layer.getWidth(); local
232 dirtyRect.right >= width && dirtyRect.bottom >= height)) {
233 dirtyRect.set(0, 0, width, height);
241 renderer->setViewport(width, height);
H A DPatch.cpp41 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch)
84 const float xStretch = std::max(width - fixed, 0.0f);
86 rescaleX = fixed == 0.0f ? 0.0f : std::min(std::max(width, 0.0f) / fixed, 1.0f);
127 width, bitmapWidth, quadCount);
139 width, bitmapWidth, quadCount);
151 float width, float bitmapWidth, uint32_t& quadCount) {
184 x2 = width;
40 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
149 generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPseudoGridView.java69 throw new UnsupportedOperationException("Needs a maximum width");
71 int width = MeasureSpec.getSize(widthMeasureSpec);
73 int childWidth = (width - (mNumColumns - 1) * mHorizontalSpacing) / mNumColumns;
101 setMeasuredDimension(width, getDefaultSize(totalHeight, heightMeasureSpec));
117 int width = child.getMeasuredWidth();
120 x -= width;
122 child.layout(x, y, x + width, y + height);
127 x += width + mHorizontalSpacing;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java42 * minSideLength is used to specify that minimal width or height of a
58 public static int computeSampleSize(int width, int height, argument
61 width, height, minSideLength, maxNumOfPixels);
117 int width = Math.round(bitmap.getWidth() * scale);
119 if (width == bitmap.getWidth()
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
158 int width = Math.round(scale * bitmap.getWidth());
161 canvas.translate((size - width) / 2f, (size - height) / 2f);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java140 int width = Math.min(src.getWidth(), dstIn.getWidth());
148 int[] srcPixels = new int[width];
149 int[] dstPixels = new int[width];
152 dstIn.getDataElements(0, y, width, 1, dstPixels);
154 src.getDataElements(0, y, width, 1, srcPixels);
155 for (int x = 0; x < width; x++) {
193 dstOut.setDataElements(0, y, width, 1, dstPixels);
/frameworks/native/libs/gui/
H A DSurface.cpp336 mCrop.intersect(Rect(buffer->width, buffer->height), &crop);
361 int width = buffer->width; local
366 std::swap(width, height);
378 Rect flippedRect{top, width - right, bottom, width - left};
384 Rect flippedRect{width - right, height - bottom,
385 width - left, height - top};
581 uint32_t width = va_arg(args, uint32_t); local
584 int err = setBuffersDimensions(width, heigh
592 uint32_t width = va_arg(args, uint32_t); local
598 uint32_t width = va_arg(args, uint32_t); local
814 setBuffersDimensions(uint32_t width, uint32_t height) argument
828 setBuffersUserDimensions(uint32_t width, uint32_t height) argument
[all...]

Completed in 657 milliseconds

<<11121314151617181920>>