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

<<11121314151617181920>>

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DListViewRequireScrollHelper.java63 final int height = mListView.getHeight();
64 mListView.smoothScrollBy(height, 500);
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp35 for (int32_t y = 0; y < mYUVImage.height(); ++y) {
66 for (int32_t offsetY = 0; offsetY < srcRect.height(); ++offsetY) {
92 CHECK((srcOffsetY + (mYUVImage.height() - 1) * skipY) < srcImage.height());
99 for (int32_t y = 0; y < mYUVImage.height(); ++y) {
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java156 int h = clipLower(rect.height(), /*lo*/0, rect, "height");
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) {
442 currentPreviewCropRegion.height() >= cropRegionAsPreview.height()) {
[all...]
/frameworks/base/core/java/android/widget/
H A DVideoView.java158 int height = getDefaultSize(mVideoHeight, heightMeasureSpec);
169 height = heightSpecSize;
172 if ( mVideoWidth * height < width * mVideoHeight ) {
174 width = height * mVideoWidth / mVideoHeight;
175 } else if ( mVideoWidth * height > width * mVideoHeight ) {
177 height = width * mVideoHeight / mVideoWidth;
180 // only the width is fixed, adjust the height to match aspect ratio if possible
182 height = width * mVideoHeight / mVideoWidth;
183 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize) {
185 height
[all...]
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) /
446 LayoutParams(int width, int height) argument
462 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) {
118 mRequestedHeight = height;
227 public void setSurfaceFrameSize(int width, int height) { argument
231 mSurfaceFrame.bottom = height;
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfDocument.cpp36 PageRecord(int width, int height, const SkRect& contentRect) argument
40 , mHeight(height) {
64 SkCanvas* startPage(int width, int height, argument
70 PageRecord* page = new PageRecord(width, height, contentRect);
75 SkRect::MakeWH(contentRect.width(), contentRect.height()));
/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/compat/tests/java/android/support/v4/widget/
H A DTextViewCompatTest.java49 public TestDrawable(@ColorInt int color, int width, int height) { argument
52 mHeight = height;
152 assertEquals("Compound drawable: left height",
153 drawablesAbsolute[0].getBounds().height(), 20);
158 assertEquals("Compound drawable: top height",
159 drawablesAbsolute[1].getBounds().height(), 25);
164 assertEquals("Compound drawable: right height",
165 drawablesAbsolute[2].getBounds().height(), 20);
198 assertEquals("Compound drawable: left height",
199 drawablesAbsolute[0].getBounds().height(), 2
[all...]
/frameworks/support/design/src/android/support/design/internal/
H A DScrimInsetsFrameLayout.java90 int height = getHeight();
101 mTempRect.set(0, height - mInsets.bottom, width, height);
106 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom);
111 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/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/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java136 * @param top Top coordinate as a fraction of the parent height, range
140 * @param bottom Bottom coordinate as a fraction of the parent height,
159 final int height = getHeight();
165 scaleRectF(item.bounds, bounds, width, height);
219 protected static void scaleRectF(RectF in, Rect out, int width, int height) { argument
220 out.top = (int) (in.top * height);
221 out.bottom = (int) (in.bottom * height);
290 final int height = getHeight();
292 scaleRectF(item.bounds, bounds, width, height);
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java136 * @param top Top coordinate as a fraction of the parent height, range
140 * @param bottom Bottom coordinate as a fraction of the parent height,
159 final int height = getHeight();
165 scaleRectF(item.bounds, bounds, width, height);
219 protected static void scaleRectF(RectF in, Rect out, int width, int height) { argument
220 out.top = (int) (in.top * height);
221 out.bottom = (int) (in.bottom * height);
290 final int height = getHeight();
292 scaleRectF(item.bounds, bounds, width, height);
/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...]

Completed in 1270 milliseconds

<<11121314151617181920>>