/frameworks/base/libs/hwui/ |
H A D | Patch.cpp | 51 float width, float height, const Res_png_9patch* patch) { 53 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch); 57 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) { 102 const float xStretch = fmaxf(width - fixed, 0.0f); 104 rescaleX = fixed == 0.0f ? 0.0f : fminf(fmaxf(width, 0.0f) / fixed, 1.0f); 145 width, bitmapWidth, quadCount); 157 width, bitmapWidth, quadCount); 173 float width, float bitmapWidth, uint32_t& quadCount) { 206 x2 = width; 50 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const Res_png_9patch* patch) argument 56 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument 171 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/av/media/libstagefright/ |
H A D | CameraSource.cpp | 138 size.width = -1; 189 mVideoSize.width = -1; 232 * Check to see whether the requested video width and height is one 234 * @param width the video frame width in pixels 237 * @return true if the dimension (width and height) is supported. 240 int32_t width, int32_t height, 245 if (width == supportedSizes[i].width && 303 * (width an 239 isVideoSizeSupported( int32_t width, int32_t height, const Vector<Size>& supportedSizes) argument 316 configureCamera( CameraParameters* params, int32_t width, int32_t height, int32_t frameRate) argument 392 checkVideoSize( const CameraParameters& params, int32_t width, int32_t height) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupWindow.java | 244 * @param width the popup's width 247 public PopupWindow(int width, int height) { argument 248 this(null, width, height); 260 * @param width the popup's width 263 public PopupWindow(View contentView, int width, int height) { argument 264 this(contentView, width, height, false); 275 * @param width the popup's width 279 PopupWindow(View contentView, int width, int height, boolean focusable) argument 869 setWidth(int width) argument 1471 update(int width, int height) argument 1488 update(int x, int y, int width, int height) argument 1505 update(int x, int y, int width, int height, boolean force) argument 1573 update(View anchor, int width, int height) argument 1592 update(View anchor, int xoff, int yoff, int width, int height) argument 1596 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height, int gravity) argument [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 91 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/core/jni/android/graphics/ |
H A D | NinePatchImpl.cpp | 78 } else if (src.width() == 1 && src.height() == 1) { 148 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height())); 149 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height()); 156 bitmap.width() == 0 || bitmap.height() == 0 || 188 const int bitmapWidth = bitmap.width(); 207 bitmap.width(), bitmap.height(), 209 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()), 312 src.fLeft, src.fTop, src.width(), src.height(), 314 SkScalarToFloat(dst.width()), SkScalarToFloat(dst.height())); 315 if (2 == src.width() [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, 100 mWidth = width; 191 mTextureView.getLayoutParams().width = mWidth; 238 int width = (int)(mWidth * scale); 240 int x = (int)(mWindowX + mLiveTranslationX - width * offsetScale); 242 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); 249 + ", width=" + width + ", height=" + height); 257 mWindowParams.width = width; 95 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | MultiPaneChallengeLayout.java | 215 final int width = MeasureSpec.getSize(widthSpec); 217 setMeasuredDimension(width, height); 257 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY); 298 (int) ((width - widthUsed) * lp.centerWithinArea + 0.5f), 304 width - widthUsed, MeasureSpec.EXACTLY); 311 width - widthUsed, MeasureSpec.EXACTLY); 337 final int width = r - l; 344 layoutWithGravity(width, insetHeight, mUserSwitcherView, padding, true); 356 child.layout(0, 0, width, height); 359 layoutWithGravity(width, insetHeigh 367 layoutWithGravity(int width, int height, View child, Rect padding, boolean adjustPadding) argument 553 LayoutParams(int width, int height) argument [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.h | 51 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 D | recordvideo.cpp | 42 fprintf(stderr, " -w width in pixels (default: 176)\n"); 55 DummySource(int width, int height, int nFrames, int fps, int colorFormat) argument 56 : mWidth(width), 61 mSize((width * height * 3) / 2) { 161 int width = 176; local 212 width = atoi(optarg); 269 new DummySource(width, height, nFrames, frameRateFps, colorFormat); 283 enc_meta->setInt32(kKeyWidth, width); 287 enc_meta->setInt32(kKeyStride, width);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_intra_prediction.h | 69 u8 *pImage, u32 width, 73 u32 width, u32 constrainedIntraPred);
|
/frameworks/av/media/libstagefright/include/ |
H A D | avc_utils.h | 42 int32_t *width, int32_t *height, 67 const uint8_t *data, size_t size, int32_t *width, int32_t *height);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | EbmlUtil.cpp | 82 // Like above but pads the input value with leading zeros up to the specified width. The length 83 // descriptor is calculated based on width. 84 uint64_t encodeUnsigned(uint64_t u, int width) { argument 85 int shiftWidth = 7 * width;
|
/frameworks/base/core/java/android/app/ |
H A D | IActivityContainer.aidl | 29 void setSurface(in Surface surface, int width, int height, int density);
|
H A D | IUiAutomationConnection.aidl | 40 Bitmap takeScreenshot(int width, int height);
|
H A D | IWallpaperManager.aidl | 62 * minimum width and height for the wallpaper. 64 void setDimensionHints(in int width, in int height); 67 * Returns the desired minimum width for the wallpaper.
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableHighSpeedVideoConfiguration.java | 32 * <p>Data is stored as {@code (width, height, fpsMin, fpsMax)} tuples (int32).</p> 56 int width = buffer.getInt(); 61 return new HighSpeedVideoConfiguration(width, height, fpsMin, fpsMax);
|
H A D | MarshalQueryableSize.java | 47 int width = buffer.getInt(); 50 return new Size(width, height);
|
H A D | MarshalQueryableSizeF.java | 49 float width = buffer.getFloat(); 52 return new SizeF(width, height);
|
H A D | MarshalQueryableStreamConfiguration.java | 32 * <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 D | MarshalQueryableStreamConfigurationDuration.java | 32 * 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 D | HighSpeedVideoConfiguration.java | 40 * @param width image width, in pixels (positive) 46 * if width/height/fpsMin were not positive or fpsMax less than 60 51 final int width, final int height, final int fpsMin, final int fpsMax) { 56 mWidth = checkArgumentPositive(width, "width must be positive"); 64 * Return the width of the high speed video configuration. 66 * @return width > 0 102 * @return a Size with positive width and height 50 HighSpeedVideoConfiguration( final int width, final int height, final int fpsMin, final int fpsMax) argument
|
H A D | StreamConfiguration.java | 49 * @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 D | StreamConfigurationDuration.java | 43 * @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
|
/frameworks/base/core/java/android/hardware/display/ |
H A D | VirtualDisplay.java | 90 public void resize(int width, int height, int densityDpi) { argument 91 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi);
|
/frameworks/base/core/java/android/text/ |
H A D | MeasuredText.java | 228 int breakText(int limit, boolean forwards, float width) { argument 233 width -= w[i]; 234 if (width < 0.0f) break; 242 width -= w[i]; 243 if (width < 0.0f) break; 252 float width = 0; 255 width += w[i]; 257 return width;
|