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

<<11121314151617181920>>

/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DGreedyLineBreaker.java41 float width = 0, printedWidth = 0;
57 // update the current line width
59 width += p.width;
61 printedWidth = width;
64 width = mTabStops.width(width);
94 printedWidth = width = 0;
108 // this does not handle penalties with width
[all...]
/frameworks/native/include/android/
H A Dbitmap.h67 /** The bitmap width in pixels. */
68 uint32_t width; member in struct:__anon1293
/frameworks/native/include/gui/
H A DGraphicBufferAlloc.h36 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t width,
/frameworks/native/libs/gui/
H A DIGraphicBufferAlloc.cpp47 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t width, argument
52 data.writeUint32(width);
106 uint32_t width = data.readUint32(); local
113 sp<GraphicBuffer> result = createGraphicBuffer(width, height,
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8);
79 floatImage.setX(mRoiBounds.width());
91 mRoiBounds.width(), mRoiBounds.height());
96 mRoiBounds.width(), mRoiBounds.height());
109 options.setX(1, mRoiBounds.width() - 1);
133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(),
136 Rect undoRect = new Rect(0, 0, mRoiBounds.width(), mRoiBounds.height());
145 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument
146 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java67 * You can also make one dimension be a fraction of the other by setting only width or height and
74 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted
126 public LayoutParams(int width, int height) { argument
127 super(width, height);
130 public LayoutParams(int width, int height, int gravity) { argument
131 super(width, height, gravity);
H A DPercentLayoutHelper.java97 params.width = array.getLayoutDimension(widthAttr, 0);
102 * Iterates over children and changes their width and height to one calculated from percentage
155 Log.v(TAG, "percent width: " + value);
288 * space, it will be remeasured with width set to {@code WRAP_CONTENT}.
307 params.width = ViewGroup.LayoutParams.WRAP_CONTENT;
325 info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT;
335 // These two flags keep track of whether we're computing the LayoutParams width and height
339 // the same set of width / height.
343 public PercentMarginLayoutParams(int width, int height) { argument
344 super(width, heigh
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DNetworkImageView.java104 int width = getWidth();
110 wrapWidth = getLayoutParams().width == LayoutParams.WRAP_CONTENT;
117 if (width == 0 && height == 0 && !isFullyWrapContent) {
144 // Calculate the max image width / height to use while ignoring WRAP_CONTENT dimens.
145 int maxWidth = wrapWidth ? 0 : width;
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayWindow.java96 int width, int height, int densityDpi, int gravity, boolean secure,
112 resize(width, height, densityDpi, false /* doLayout */);
140 public void resize(int width, int height, int densityDpi) { argument
141 resize(width, height, densityDpi, true /* doLayout */);
144 private void resize(int width, int height, int densityDpi, boolean doLayout) { argument
145 mWidth = width;
203 mTextureView.getLayoutParams().width = mWidth;
250 int width = (int)(mWidth * scale);
252 int x = (int)(mWindowX + mLiveTranslationX - width * offsetScale);
254 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width));
95 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java91 mCropRectangle = new Rect(0, 0, activeArray.width(), activeArray.height());
192 mActiveArray.width() / mCurrentZoomRatio, 0, mActiveArray.width()),
195 mCropRectangle.offsetTo((mActiveArray.width() - mCropRectangle.width()) / 2,
237 return (mExifThumbnailSize.width() == 0 && mExifThumbnailSize.height() == 0) ||
239 mExifThumbnailSize.width() == defaultThumbnailSize.getWidth() &&
284 mExifThumbnailSize.width(), mExifThumbnailSize.height()));
308 mCropRectangle.width() * oldLeft, 0, mCropRectangle.width()
[all...]
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp72 } else if (src.width() == 1 && src.height() == 1) {
138 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()),
140 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
146 bitmap.width() == 0 || bitmap.height() == 0 ||
178 const int bitmapWidth = bitmap.width();
200 bitmap.width(), bitmap.height(),
202 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()),
305 src.fLeft, src.fTop, src.width(), src.height(),
307 SkScalarToFloat(dst.width()), SkScalarToFloat(dst.height()));
308 if (2 == src.width()
[all...]
/frameworks/base/media/java/android/media/
H A DImageReader.java106 * @param width The default width in pixels of the Images that this reader
123 public static ImageReader newInstance(int width, int height, int format, int maxImages) { argument
124 return new ImageReader(width, height, format, maxImages);
130 protected ImageReader(int width, int height, int format, int maxImages) { argument
131 mWidth = width;
136 if (width < 1 || height < 1) {
152 nativeInit(new WeakReference<ImageReader>(this), width, height, format, maxImages);
164 width, height, format, /*buffer count*/ 1);
169 * The default width o
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.h51 void setScreenSize(uint32_t width, uint32_t height) { argument
52 mScreenWidth = width;
98 // Computes the width of the string, in pixels.
101 // Computes the width of first N characters in the string.
/frameworks/av/cmds/stagefright/
H A Drecordvideo.cpp49 fprintf(stderr, " -w width in pixels (default: 176)\n");
62 DummySource(int width, int height, int nFrames, int fps, int colorFormat) argument
63 : mWidth(width),
68 mSize((width * height * 3) / 2) {
168 int width = 176; local
219 width = atoi(optarg);
273 new DummySource(width, height, nFrames, frameRateFps, colorFormat);
287 enc_meta->setInt32("width", width);
291 enc_meta->setInt32("stride", width);
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_intra_prediction.h69 u8 *pImage, u32 width,
73 u32 width, u32 constrainedIntraPred);
/frameworks/av/media/libstagefright/webm/
H A DEbmlUtil.cpp84 // Like above but pads the input value with leading zeros up to the specified width. The length
85 // descriptor is calculated based on width.
86 uint64_t encodeUnsigned(uint64_t u, int width) { argument
87 int shiftWidth = 7 * width;
/frameworks/av/media/ndk/
H A DNdkImagePriv.h36 int32_t width, int32_t height, int32_t numPlanes);
51 media_status_t getWidth(/*out*/int32_t* width) const;
/frameworks/base/core/java/android/app/
H A DIActivityContainer.aidl29 void setSurface(in Surface surface, int width, int height, int density);
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableSize.java47 int width = buffer.getInt();
50 return new Size(width, height);
H A DMarshalQueryableSizeF.java49 float width = buffer.getFloat();
52 return new SizeF(width, height);
H A DMarshalQueryableStreamConfiguration.java32 * <p>Data is stored as {@code (format, width, height, input?)} tuples (int32).</p>
55 int width = buffer.getInt();
59 return new StreamConfiguration(format, width, height, input);
H A DMarshalQueryableStreamConfigurationDuration.java32 * Data is stored as {@code (format, width, height, durationNs)} tuples (int64).
64 int width = (int)buffer.getLong();
68 return new StreamConfigurationDuration(format, width, height, durationNs);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DHighSpeedVideoConfiguration.java41 * @param width image width, in pixels (positive)
47 * if width/height/fpsMin were not positive or fpsMax less than 60
52 final int width, final int height, final int fpsMin, final int fpsMax,
59 mWidth = checkArgumentPositive(width, "width must be positive");
68 * Return the width of the high speed video configuration.
70 * @return width > 0
106 * @return a Size with positive width and height
51 HighSpeedVideoConfiguration( final int width, final int height, final int fpsMin, final int fpsMax, final int batchSizeMax) argument
H A DStreamConfiguration.java49 * @param width image width, in pixels (positive)
54 * if width/height were not positive
61 final int format, final int width, final int height, final boolean input) {
63 mWidth = checkArgumentPositive(width, "width must be positive");
82 * Return the width of the stream configuration.
84 * @return width > 0
102 * @return a Size with positive width and height
60 StreamConfiguration( final int format, final int width, final int height, final boolean input) argument
H A DStreamConfigurationDuration.java43 * @param width image width, in pixels (positive)
48 * if width/height were not positive, or durationNs was negative
56 final int format, final int width, final int height, final long durationNs) {
58 mWidth = checkArgumentPositive(width, "width must be positive");
77 * Return the width of the stream configuration duration.
79 * @return width > 0
97 * @return a Size with positive width and height
55 StreamConfigurationDuration( final int format, final int width, final int height, final long durationNs) argument

Completed in 1347 milliseconds

<<11121314151617181920>>