Searched refs:height (Results 251 - 275 of 1236) sorted by relevance

<<11121314151617181920>>

/frameworks/native/libs/ui/
H A DRect.cpp93 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const {
100 result = Rect(result.left, height - result.bottom, result.right,
101 height - result.top);
104 int left = height - result.bottom;
106 int right = height - result.top;
/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);
74 mHeight = height;
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.java86 int height = getHeight();
97 mTempRect.set(0, height - mInsets.bottom, width, height);
102 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom);
107 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewLogoPresenter.java16 * Default implementation assumes no scaleType on ImageView and uses intrinsic width and height of
147 lp.height = row.getImageDrawable().getIntrinsicHeight();
157 if (lp.height > imageView.getMaxHeight()) {
158 maxScaleHeight = imageView.getMaxHeight() / (float) lp.height;
163 lp.height = (int) (lp.height * scale);
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp24 * -s [width, height] - Starting dimension
234 static EGLint width, height; variable
513 == searchLimits.sourceCrop.height()) ? ">= " : "",
523 searchLimits.sourceCrop.height())) ? ">= " : "",
548 >= Rational(searchLimits.sourceCrop.height(),
549 measPtr->df.minDim.height())) ? ">= " : "",
647 (y + startDim.height()) < (unsigned int) height;
648 y += (allowOverlap) ? 1 : startDim.height()) {
653 rect.displayFrame.bottom = y + startDim.height();
[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) {
464 *height = h;
490 int32_t width, height; local
491 res = getSmallestSurfaceSize(info, &width, &height);
495 res = initializeSurface(device, width, height);
786 int32_t *width, int32_t *height) {
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...]
/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,
291 if (height) {
292 *height = config->height;
494 size_t width, height, framesPerSecon local
270 GetConfiguration( ResolutionType type, size_t index, size_t *width, size_t *height, size_t *framesPerSecond, bool *interlaced) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DFrameLayout.java142 * and a height of {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}.
194 lp.height == LayoutParams.MATCH_PARENT) {
205 // Check against our minimum height and width
209 // Check against our foreground's minimum height and width
241 if (lp.height == LayoutParams.MATCH_PARENT) {
242 final int height = Math.max(0, getMeasuredHeight()
246 height, MeasureSpec.EXACTLY);
251 lp.height);
279 final int height = child.getMeasuredHeight();
313 childTop = parentTop + (parentBottom - parentTop - height) /
445 LayoutParams(int width, int height) argument
461 LayoutParams(int width, int height, int gravity) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DRotarySelector.java284 // by making the height less than arrow + bg, arrow and bg will be scrunched together,
288 final int height = mBackgroundHeight + arrowH - arrowScrunch;
291 setMeasuredDimension(length, height);
293 setMeasuredDimension(height, length);
310 final int height = getHeight();
330 mArrowMatrix.postTranslate(0, height);
338 // since bg width is > height of screen in landscape mode...
339 mArrowMatrix.postTranslate(0, height + (mBackgroundWidth - height));
349 height
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollAlgorithm.java153 float newHeight = state.height;
365 clampPositionToBottomStackStart(childViewState, childViewState.height, childHeight,
417 float unmodifiedEndLocation = childState.yTranslation + childState.height;
425 childState.height = Math.max(row.getIntrinsicHeight(), childState.height);
428 || unmodifiedEndLocation < topState.yTranslation + topState.height)) {
431 childState.height = row.getIntrinsicHeight();
432 childState.yTranslation = topState.yTranslation + topState.height
433 - childState.height;
443 childState.height
[all...]
/frameworks/native/opengl/libagl/
H A Ddxt.cpp136 DXT1HasAlpha(const GLvoid *data, int width, int height) { argument
147 int yblocks = (height + 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
212 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) {
289 if (base_y + y >= height) {
307 decodeDXT3(const GLvoid *data, int width, int height, argument
324 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) {
395 if (base_y + y >= height) {
416 decodeDXT5(const GLvoid *data, int width, int height, argument
599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
[all...]
H A DTextureObjectManager.cpp78 int h = surface.height;
151 sur.height= native_buffer->height;
181 surface.height = h;
213 mipmap.height = h;
229 uint32_t h = (prev->height >> 1) ? : 1;
230 if (w != curr->width || h != curr->height) {
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DAccessibilityNodeInfoDumper.java50 * @param height The pixel height of current display
53 int width, int height) {
63 rotation, width, height);
73 * @param height The pixel height 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, height)
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/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);
118 int height = Math.round(bitmap.getHeight() * scale);
120 && height == bitmap.getHeight()) return bitmap;
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
159 int height = Math.round(scale * bitmap.getHeight());
161 canvas.translate((size - width) / 2f, (size - height) / 2f);
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES30.spec4 void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
5 void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei offset )
6 void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels )
7 void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei offset )
8 void glCopyTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height )
9 void glCompressedTexImage3D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data )
10 void glCompressedTexImage3D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLsizei offset )
11 void glCompressedTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data )
12 void glCompressedTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLsizei offset )
30 void glRenderbufferStorageMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height )
[all...]
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp72 } else if (src.width() == 1 && src.height() == 1) {
139 SkScalarToFloat(bounds.height()));
140 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
146 bitmap.width() == 0 || bitmap.height() == 0 ||
179 const int bitmapHeight = bitmap.height();
200 bitmap.width(), bitmap.height(),
202 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()),
211 // The last row always ends with the bottom being bitmap.height and the top
212 // being either yDivs[numYDivs-2] (if yDivs[numYDivs-1]=bitmap.height) or
305 src.fLeft, src.fTop, src.width(), src.height(),
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DCameraSource.java54 /** Frame height to request from camera. Actual size may not match requested. */
55 @GenerateFieldPort(name = "height", hasDefault = true)
276 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) { argument
281 int smallestHeight = previewSizes.get(0).height;
288 size.height <= height &&
290 size.height >= closestHeight) {
292 closestHeight = size.height;
295 size.height < smallestHeight) {
297 smallestHeight = size.height;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java77 // Visibility optimization, if the thumbnail height is less than the height of the header
113 public void onTaskViewSizeChanged(int width, int height) { argument
115 if (mTaskViewRect.width() == width && mTaskViewRect.height() == height) {
119 mTaskViewRect.set(0, 0, width, height);
120 setLeftTopRightBottom(0, 0, width, height);
131 int viewHeight = mTaskViewRect.height();
135 (int) (mThumbnailRect.height() * mThumbnailScale));
254 (float) mTaskViewRect.height() / mThumbnailRec
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp192 const int height = mFrameSequence.getHeight(); local
194 mPreserveBuffer = new Color8888[width * height];
196 for (int y = 0; y < height; y++) {
205 const int height = mFrameSequence.getHeight(); local
210 for (int y = 0; y < height; y++) {
231 const int height = mFrameSequence.getHeight(); local
261 for (int y = 0; y < height; y++) {
283 getCopySize(prevFrame.ImageDesc, width, height, copyWidth, copyHeight);
318 getCopySize(frame.ImageDesc, width, height, copyWidth, copyHeight);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DMeteringRectangle.java29 * An immutable class to represent a rectangle {@code (x, y, width, height)} with an additional
39 * android.sensor.info.activeArraySize.height - 1)} being the bottom-right pixel in the active pixel
86 * @param height height >= 0
91 public MeteringRectangle(int x, int y, int width, int height, int meteringWeight) { argument
95 mHeight = checkArgumentNonnegative(height, "height must be nonnegative");
106 * @param dimensions a non-{@code null} {@link android.util.Size Size} with width, height >= 0
119 mHeight = checkArgumentNonnegative(dimensions.getHeight(), "height must be nonnegative");
140 mHeight = checkArgumentNonnegative(rect.height(), "rec
[all...]
/frameworks/base/core/java/android/view/animation/
H A DRotateAnimation.java178 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
179 super.initialize(width, height, parentWidth, parentHeight);
181 mPivotY = resolveSize(mPivotYType, mPivotYValue, height, parentHeight);
/frameworks/base/graphics/java/android/graphics/
H A DSurfaceTexture.java224 * The width and height parameters must be no greater than the minimum of
230 public void setDefaultBufferSize(int width, int height) { argument
231 nativeSetDefaultBufferSize(width, height);
387 private native void nativeSetDefaultBufferSize(int width, int height); argument
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DFixedRotationFilter.java73 int height = inputFormat.getHeight();
82 outputFormat.setDimensions(height, width);
89 outputFormat.setDimensions(height, width);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherScrim.java59 float height = (mTop + bounds.height()) * OUTER_EXTENT;
61 canvas.scale(1, height / width);
/frameworks/base/services/core/java/com/android/server/display/
H A DVirtualDisplayAdapter.java65 String name, int width, int height, int densityDpi, Surface surface, int flags) {
73 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags,
95 int width, int height, int densityDpi) {
98 device.resizeLocked(width, height, densityDpi);
190 String name, int width, int height, int densityDpi, Surface surface, int flags,
198 mHeight = height;
199 mMode = createMode(width, height, REFRESH_RATE);
263 public void resizeLocked(int width, int height, int densityDpi) { argument
264 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) {
268 mHeight = height;
63 createVirtualDisplayLocked(IVirtualDisplayCallback callback, IMediaProjection projection, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument
94 resizeVirtualDisplayLocked(IBinder appToken, int width, int height, int densityDpi) argument
188 VirtualDisplayDevice(IBinder displayToken, IBinder appToken, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, Callback callback, String uniqueId, int uniqueIndex) argument
[all...]

Completed in 698 milliseconds

<<11121314151617181920>>