Searched refs:height (Results 226 - 250 of 757) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/app/
H A DLauncherActivity.java279 int height = mIconHeight;
287 painter.setIntrinsicHeight(height);
290 if (width > 0 && height > 0) {
291 if (width < iconWidth || height < iconHeight) {
295 height = (int) (width / ratio);
297 width = (int) (height * ratio);
312 final int y = (mIconHeight - height) / 2;
313 icon.setBounds(x, y, x + width, y + height);
318 } else if (iconWidth < width && iconHeight < height) {
325 final int y = (height
[all...]
H A DMediaRouteButton.java171 final int height = getHeight();
172 final int midy = screenPos[1] + height / 2;
176 if (midy < displayFrame.height()) {
179 screenWidth - screenPos[0] - width / 2, height);
182 cheatSheet.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, height);
356 int height;
359 height = heightSize;
362 height = Math.min(heightSize, minHeight + getPaddingTop() + getPaddingBottom());
366 height = minHeight + getPaddingTop() + getPaddingBottom();
370 setMeasuredDimension(width, height);
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSizeAdaptiveLayout.java42 * A layout that switches between its children based on the requested layout height.
43 * Each child specifies its minimum and maximum valid height. Results are undefined
44 * if children specify overlapping ranges. A child may specify the maximum height
174 int height = Math.max(heightIn, lp.minHeight);
176 height = Math.min(height, lp.maxHeight);
179 if (REPORT_BAD_BOUNDS && heightIn != height) {
182 "clamped to " + height + "px");
185 return height;
188 //TODO extend to width and height
370 LayoutParams(int width, int height, int minHeight, int maxHeight) argument
379 LayoutParams(int width, int height) argument
[all...]
H A DPasswordEntryKeyboardHelper.java107 createKeyboardsWithSpecificSize(lp.width, lp.height);
119 private void createKeyboardsWithSpecificSize(int width, int height) { argument
120 mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC], width, height);
122 width, height);
126 R.id.mode_normal, width, height);
130 mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS], width, height);
134 width, height);
H A DPasswordEntryKeyboard.java59 public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int width, int height) { argument
60 this(context, xmlLayoutResId, 0, width, height);
69 int width, int height) {
70 super(context, xmlLayoutResId, mode, width, height);
259 y -= height / 10;
68 PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode, int width, int height) argument
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java51 dest.offset(0, -src.height());
114 rect2.offset(0, rect1.height() - 1);
130 rect2.offset(0, -(rect1.height() - 1));
187 directlyAbove.offset(0, -(1 + src.height()));
190 aboveLeft.offset(-(1 + src.width()), -(1 + src.height()));
200 directlyAbove.offset(0, -(1 + src.height()));
203 aboveLeft.offset(-(1 + src.width()), -(1 + src.height()));
216 aboveLeftOfBeam.offset(-(src.width() + 1), -src.height());
220 aboveInBeam.offset(0, -src.height());
227 aboveInBeam.offset(0, -(aboveLeftOfBeam.height()
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardWidgetFrame.java115 // we need to specify a height.
332 * @param height The height of the widget, -1 for full height
334 private void setWidgetHeight(int height) { argument
339 if (lp.height != height) {
341 lp.height = height;
403 public void setFrameHeight(int height) { argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteButton.java311 final int height = getHeight();
312 final int midy = screenPos[1] + height / 2;
316 if (midy < displayFrame.height()) {
319 screenWidth - screenPos[0] - width / 2, height);
322 cheatSheet.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, height);
446 int height;
449 height = heightSize;
452 height = Math.min(heightSize, minHeight + getPaddingTop() + getPaddingBottom());
456 height = minHeight + getPaddingTop() + getPaddingBottom();
460 setMeasuredDimension(width, height);
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvop.cpp335 /* height */
416 video->displayHeight = video->height = (int) BitstreamReadBits16(stream, 13);
419 video->height = (video->height + 15) & -16;
687 video->nMBPerCol = video->height / MB_SIZE;
1087 video->displayHeight = video->height = 96;
1097 video->displayHeight = video->height = 144;
1107 video->displayHeight = video->height = 288;
1117 video->displayHeight = video->height = 576;
1127 video->displayHeight = video->height
[all...]
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp503 etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height) { argument
504 return (((width + 3) & ~3) * ((height + 3) & ~3)) >> 1;
512 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, argument
524 etc1_uint32 encodedHeight = (height + 3) & ~3;
527 etc1_uint32 yEnd = height - y;
569 etc1_uint32 width, etc1_uint32 height,
577 etc1_uint32 encodedHeight = (height + 3) & ~3;
580 etc1_uint32 yEnd = height - y;
633 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) { argument
636 etc1_uint32 encodedHeight = (height
568 etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride) argument
654 etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); local
[all...]
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoFullScreen.java50 int height = getDefaultSize(mVideoHeight, heightMeasureSpec);
52 if ( mVideoWidth * height > width * mVideoHeight ) {
53 height = width * mVideoHeight / mVideoWidth;
54 } else if ( mVideoWidth * height < width * mVideoHeight ) {
55 width = height * mVideoWidth / mVideoHeight;
58 setMeasuredDimension(width, height);
137 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp53 ANativeWindowBuffer::height = h; member in class:android::NativeBuffer::ANativeWindowBuffer
120 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB);
126 fbDev->width, fbDev->height, fbDev->format,
130 i, fbDev->width, fbDev->height, strerror(-err));
184 return fbDev->setUpdateRect(fbDev, r.left, r.top, r.width(), r.height());
304 *value = fb->height;
319 *value = fb->height;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java392 int height = data[valueIndex++] & 0xFF;
393 int numOfPixels = width*height;
412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
435 int height = data[valueIndex++] & 0xFF;
449 (width * height), colorIndexArray, bits);
452 (width * height), colorIndexArray, bits);
455 return Bitmap.createBitmap(resultArray, width, height,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java392 int height = data[valueIndex++] & 0xFF;
393 int numOfPixels = width*height;
412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
435 int height = data[valueIndex++] & 0xFF;
449 (width * height), colorIndexArray, bits);
452 (width * height), colorIndexArray, bits);
455 return Bitmap.createBitmap(resultArray, width, height,
/frameworks/base/tools/aapt/
H A DImages.cpp53 png_uint_32 height; member in struct:image_info
82 &outImageInfo->height, &bit_depth, &color_type,
112 outImageInfo->height * png_sizeof(png_bytep));
113 outImageInfo->allocHeight = outImageInfo->height;
118 for (i = 0; i < (int)outImageInfo->height; i++)
130 (int)outImageInfo->width, (int)outImageInfo->height,
135 &outImageInfo->height, &bit_depth, &color_type,
253 png_bytepp rows, int offset, int height, bool transparent, bool required,
262 for (i=1; i<height-1; i++) {
267 *outBottom = height
252 get_vertical_ticks( png_bytepp rows, int offset, int height, bool transparent, bool required, int32_t* outTop, int32_t* outBottom, const char** outError, uint8_t* outDivs, bool multipleAllowed) argument
339 get_vertical_layout_bounds_ticks( png_bytepp rows, int offset, int height, bool transparent, bool required, int32_t* outTop, int32_t* outBottom, const char** outError) argument
978 png_uint_32 width, height; local
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DActionMenuView.java443 int height = v.getMeasuredHeight();
446 int t = midVertical - (height / 2);
447 int b = t + height;
468 final int height = v.getMeasuredHeight();
471 final int t = midVertical - height / 2;
472 v.layout(l, t, l + width, t + height);
489 int height = v.getMeasuredHeight();
490 int t = midVertical - height / 2;
491 v.layout(startLeft, t, startLeft + width, t + height);
610 public LayoutParams(int width, int height) { argument
615 LayoutParams(int width, int height, boolean isOverflowButton) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_hor.s48 height RN 5 label
83 ;// u32 height, : 0xfc
105 LDR height, [sp, #0xfc] ;// height
107 CMP tmp6, height
112 LDR height, [sp, #0xfc] ;// height
115 STMIA sp,{width,height,tmp8,chrPH,tmp2}
122 STMIA sp,{width,height,tmp8,chrPH,tmp2}
124 MLA ref, height, widt
[all...]
H A Dh264bsd_interpolate_chroma_hor_ver.s50 height RN 5 label
84 ;// u32 height, : 0xfc
108 LDR height, [sp, #0xfc] ;// height
111 CMP tmp1, height
116 LDR height, [sp, #0xfc] ;// height
120 STMIA sp,{width,height,tmp1,tmp2,tmp3}
127 STMIA sp,{width,height,tmp1,tmp2,tmp3}
129 MLA ref, height, widt
[all...]
H A Dh264bsd_interpolate_chroma_ver.s47 height RN 5 label
82 ;// u32 height, : 0xfc
103 LDR height, [sp, #0xfc] ;// height
106 CMP tmp1, height
111 LDR height, [sp, #0xfc] ;// height
114 STMIA sp,{width,height,chrPW,tmp1,tmp2}
121 STMIA sp,{width,height,chrPW,tmp1,tmp2}
123 MLA ref, height, widt
[all...]
/frameworks/base/libs/hwui/
H A DCaches.cpp448 bool Caches::setScissor(GLint x, GLint y, GLint width, GLint height) { argument
450 width != mScissorWidth || height != mScissorHeight)) {
457 height += y;
463 if (height < 0) {
464 height = 0;
466 glScissor(x, y, width, height);
471 mScissorHeight = height;
513 void Caches::startTiling(GLuint x, GLuint y, GLuint width, GLuint height, bool discard) { argument
515 glStartTilingQCOM(x, y, width, height, (discard ? GL_NONE : GL_COLOR_BUFFER_BIT0_QCOM));
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp44 * sourceDim: [width, height]
171 static EGLint width, height; variable
403 rect.sourceCrop.bottom = rect.sourceDim.height();
492 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height())
493 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) {
499 || (rect.displayFrame.top >= height)
500 || (rect.displayFrame.bottom > height)) {
511 rect.sourceDim.height(),
522 testPrintI(" buf: %p handle: %p format: %s width: %u height: %u "
525 rect.sourceDim.width(), rect.sourceDim.height(),
[all...]
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp164 buf->stride, buf->height,
172 size_t dst_y_size = buf->stride * buf->height;
174 size_t dst_c_size = dst_c_stride * buf->height / 2;
205 size_t dst_y_size = buf->stride * buf->height;
207 size_t dst_c_size = dst_c_stride * buf->height / 2;
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java278 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
279 super.initialize(width, height, parentWidth, parentHeight);
283 mFromY = resolveScale(mFromY, mFromYType, mFromYData, height, parentHeight);
284 mToY = resolveScale(mToY, mToYType, mToYData, height, parentHeight);
287 mPivotY = resolveSize(mPivotYType, mPivotYValue, height, parentHeight);
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.cpp104 int height; local
106 meta->findInt32(kKeyHeight, &height);
107 configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height);
186 int width, int height) {
187 bm->setConfig(getColorSpaceConfig(pref), width, height); local
185 configBitmapSize(SkBitmap* bm, SkBitmap::Config pref, int width, int height) argument
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp47 uint32_t height; member in struct:android::CpuConsumerTestParams
53 return os << "[ (" << p.width << ", " << p.height << "), B:"
67 params.width, params.height,
282 // Blocks need to be even-width/height, aim for 8-wide otherwise
308 uint32_t h = buf.height;
347 uint32_t h = buf.height;
390 uint32_t h = buf.height;
460 params.width, params.height, params.format);
505 fillYV12Buffer(img, params.width, params.height, *stride);
508 fillBayerRawBuffer(img, params.width, params.height, bu
[all...]

Completed in 754 milliseconds

1234567891011>>