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

<<11121314151617181920>>

/frameworks/base/services/core/java/com/android/server/tv/
H A DUinputBridge.java34 private static native long nativeOpen(String name, String uniqueId, int width, int height, argument
44 public UinputBridge(IBinder token, String name, int width, int height, int maxPointers) argument
46 if (width < 1 || height < 1) {
55 mPtr = nativeOpen(name, token.toString(), width, height, maxPointers);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dstats_scorer.h36 JNIEnv* env, jobject thiz, jobject imageBuffer, jint width, jint height,
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DColorFilter_Delegate.java61 public void applyFilter(Graphics2D g, int width, int height) { argument
/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:__anon1493
/frameworks/rs/tests/java_api/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/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A DBlur25.java72 int width = mInPixelsAllocation.getType().getX();
86 tb.setX(width);
93 mScript_half.set_width(width);
102 mScript.set_width(width);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dhealing.rs109 int width = rsAllocationGetDimX(in);
112 rs_allocation tmp = rsCreateAllocation_float3(width, height);
118 int width = rsAllocationGetDimX(in);
120 rs_allocation tmp = rsCreateAllocation_float3(width, height);
127 int width = rsAllocationGetDimX(src_image);
131 laplace = rsCreateAllocation_float3(width, height);
135 int steps = (int)hypot((float)width, (float)height);
140 opts.xEnd = width - 1;
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java68 * You can also make one dimension be a fraction of the other by setting only width or height and
75 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted
184 public LayoutParams(int width, int height) { argument
185 super(width, height);
188 public LayoutParams(int width, int height, int gravity) { argument
189 super(width, height, gravity);
H A DPercentLayoutHelper.java145 params.width = array.getLayoutDimension(widthAttr, 0);
150 * Iterates over children and changes their width and height to one calculated from percentage
203 Log.v(TAG, "percent width: " + value);
336 * space, it will be remeasured with width set to {@code WRAP_CONTENT}.
355 params.width = ViewGroup.LayoutParams.WRAP_CONTENT;
373 && info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT;
383 // These two flags keep track of whether we're computing the LayoutParams width and height
387 // the same set of width / height.
391 public PercentMarginLayoutParams(int width, int height) { argument
392 super(width, heigh
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DActionMenuItemView.java216 int width = icon.getIntrinsicWidth();
218 if (width > mMaxIconSize) {
219 final float scale = (float) mMaxIconSize / width;
220 width = mMaxIconSize;
221 height = (int) (width * scale);
226 width = (int) (width * scale);
228 icon.setBounds(0, 0, width, height);
283 // Remeasure at exactly the minimum width.
292 final int dw = mIcon.getBounds().width();
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskPositioner.java400 mStartOrientationWasLandscape = startBounds.width() >= startBounds.height();
452 // 1. mMinVisible[Width/Height] <= [width/height] <= mMaxVisibleSize.[x/y]
467 // Calculate the resulting width and height of the drag operation.
468 int width = right - left;
471 width = Math.max(mMinVisibleWidth, width - deltaX);
473 width = Math.max(mMinVisibleWidth, width + deltaX);
482 final float aspect = (float) width / (float) height;
492 // Assuming that the width i
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DPipSnapAlgorithm.java132 movementBounds.right + stackBounds.width(),
140 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(),
146 final float thresh = Math.max(stackBounds.width(), stackBounds.height())
161 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(),
177 stackBounds.offsetTo(stableInsets.left + mMinimizedVisibleSize - stackBounds.width(),
202 movementBounds.width();
230 int offset = movementBounds.left + (int) (snapFraction * movementBounds.width());
238 int offset = movementBounds.left + (int) ((1f - snapFraction) * movementBounds.width());
256 stackBounds.width());
271 final int width;
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayWindow.java97 int width, int height, int densityDpi, int gravity, boolean secure,
115 resize(width, height, densityDpi, false /* doLayout */);
143 public void resize(int width, int height, int densityDpi) { argument
144 resize(width, height, densityDpi, true /* doLayout */);
147 private void resize(int width, int height, int densityDpi, boolean doLayout) { argument
148 mWidth = width;
206 mTextureView.getLayoutParams().width = mWidth;
253 int width = (int)(mWidth * scale);
255 int x = (int)(mWindowX + mLiveTranslationX - width * offsetScale);
257 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width));
96 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/tools/aapt2/compile/
H A DPngCrunch.cpp207 uint32_t width, height; local
209 png_get_IHDR(read_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
251 if (width > std::numeric_limits<int32_t>::max() || height > std::numeric_limits<int32_t>::max()) {
253 << "PNG image dimensions are too large: " << width << "x" << height);
258 output_image->width = static_cast<int32_t>(width);
262 CHECK(row_bytes == 4 * width); // RGBA
310 static int PickColorType(int32_t width, int32_t height, bool grayscale, argument
315 const size_t color_alpha_data_chunk_size = 16 + 4 * width * height;
316 const size_t color_data_chunk_size = 16 + 3 * width * heigh
[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 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes);
52 media_status_t getWidth(/*out*/int32_t* width) const;
/frameworks/base/cmds/vr/src/com/android/commands/vr/
H A DVr.java52 "usage: vr set-display-props [width] [height] [dpi]\n"
79 int width = Integer.parseInt(widthStr);
88 new Vr2dDisplayProperties(width, height, dpi);
/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);

Completed in 4822 milliseconds

<<11121314151617181920>>