| /frameworks/base/services/core/java/com/android/server/policy/ |
| IconUtilities.java | 107 int height = mIconHeight; local 112 painter.setIntrinsicHeight(height); 126 if (width < sourceWidth || height < sourceHeight) { 130 height = (int) (width / ratio); 132 width = (int) (height * ratio); 134 } else if (sourceWidth < width && sourceHeight < height) { 137 height = sourceHeight; 151 final int top = (textureHeight-height) / 2; 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); 163 icon.setBounds(left, top, left+width, top+height); [all...] |
| /frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
| DisplaySourceService.java | 88 final int height = content.getInt(); local 91 && height >= 0 && height <= 4096 93 handleSinkAvailable(width, height, densityDpi); 109 private void handleSinkAvailable(int width, int height, int densityDpi) { 110 if (mSinkAvailable && mSinkWidth == width && mSinkHeight == height 116 + "width=" + width + ", height=" + height 120 mSinkHeight = height; 181 public VirtualDisplayThread(int width, int height, int densityDpi) [all...] |
| /hardware/intel/common/libva/test/putsurface/ |
| putsurface_wayland.c | 38 int x, int y, int width, int height); 40 int *width, int *height, int *quit); 89 src_rect.height = src_h; 94 dst_rect.height = src_h; 166 dst_rect->x, dst_rect->y, dst_rect->width, dst_rect->height 244 create_window(void *win_display, int x, int y, int width, int height) 287 int *height, 327 *height = event.xconfigure.height; 328 printf("Scale window to %dx%d\n", width, height); [all...] |
| /hardware/qcom/media/msm8996/libc2dcolorconvert/ |
| C2DColorConverter.cpp | 66 void *getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource); 71 size_t calcYSize(ColorConvertFormat format, size_t width, size_t height); 72 size_t calcSize(ColorConvertFormat format, size_t width, size_t height); 183 mBlit.source_rect.height = srcHeight << 16; 187 mBlit.target_rect.height = dstHeight << 16; 302 void* C2DColorConverter::getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource) 308 surfaceDef->height = height; 333 surfaceDef->height = height; [all...] |
| /packages/apps/Contacts/src/com/android/contacts/widget/ |
| MultiShrinkScroller.java | 79 * In portrait mode, the height:width ratio of the photo's starting height. 85 * to this ratio of its full height. 93 * toolbar height. 134 * header, that contains the contact photo, can expand to a height equal its width. 344 // We never want the height of the photo view to exceed its width. 371 // Permanently set photo width and height. 374 photoLayoutParams.height = mMaximumHeaderHeight; 405 actionBarGradientLayoutParams.height = mActionBarSize; 412 titleGradientLayoutParams.height = (int) ((mMaximumHeaderTextSiz 891 final int height = getHeight(); local 906 mEdgeGlowBottom.setSize(mScrollView.getWidth(), height); local 922 mEdgeGlowTop.setSize(mScrollView.getWidth(), height); local [all...] |
| /packages/apps/Launcher2/src/com/android/launcher2/ |
| Utilities.java | 101 int height = sIconHeight; local 106 painter.setIntrinsicHeight(height); 119 if (width < sourceWidth || height < sourceHeight) { 123 height = (int) (width / ratio); 125 width = (int) (height * ratio); 127 } else if (sourceWidth < width && sourceHeight < height) { 130 height = sourceHeight; 144 final int top = (textureHeight-height) / 2; 154 canvas.drawRect(left, top, left+width, top+height, debugPaint); 158 icon.setBounds(left, top, left+width, top+height); [all...] |
| /external/ImageMagick/MagickCore/ |
| fourier.c | 99 height; 392 static MagickBooleanType RollFourier(const size_t width,const size_t height, 411 Move zero frequency (DC, average color) from (0,0) to (width/2,height/2). 413 source_info=AcquireVirtualMemory(width,height*sizeof(*source_pixels)); 418 for (y=0L; y < (ssize_t) height; y++) 421 v=((y+y_offset) < 0L) ? y+y_offset+(ssize_t) height : y+y_offset; 423 v=((y+y_offset) > ((ssize_t) height-1L)) ? y+y_offset-(ssize_t) height : 435 (void) CopyMagickMemory(roll_pixels,source_pixels,height*width* 442 const size_t height,double *source_pixels,double *forward_pixels 97 height; member in struct:_FourierInfo 907 height, local [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| FrameBufferObjectActivity.java | 80 public void onSurfaceChanged(GL10 gl, int width, int height) { 83 mSurfaceHeight = height; 84 gl.glViewport(0, 0, width, height); 98 private void drawOnscreen(GL10 gl, int width, int height) { 99 gl.glViewport(0, 0, width, height); 100 float ratio = (float) width / height; 136 private void drawOffscreenImage(GL10 gl, int width, int height) { 137 gl.glViewport(0, 0, width, height); 138 float ratio = (float) width / height; 174 private int createTargetTexture(GL10 gl, int width, int height) { [all...] |
| /external/deqp/external/vulkancts/modules/vulkan/draw/ |
| vktDrawImageObjectUtil.hpp | 44 int height, 53 int height, 77 int height, 96 int height, 104 int height, 115 int height, 128 int height, 137 int height, 174 int height, 185 int height, [all...] |
| /external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
| vktDynamicStateImageObjectUtil.hpp | 45 int height, 54 int height, 78 int height, 97 int height, 105 int height, 116 int height, 129 int height, 138 int height, 175 int height, 186 int height, [all...] |
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
| PolygonSprite.java | 29 private float width, height;
field in class:PolygonSprite 42 setOrigin(width / 2, height / 2);
58 height = sprite.height;
70 public void setBounds (float x, float y, float width, float height) {
74 this.height = height;
82 public void setSize (float width, float height) {
84 this.height = height;
[all...] |
| /external/opencv/ |
| cvjni.h | 72 jint height);
99 jint height);
107 jint height);
146 IplImage* loadPixels(int* pixels, int width, int height) {
149 IplImage *img = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 3);
151 for ( y = 0; y < height; y++ ) {
169 int height,
179 assert( data && width > 0 && height > 0 && step >= fileStep );
186 int testSize = fileStep*height + headerSize;
188 sprintf(log_str, "fileStep*height + headerSize=%i", testSize); [all...] |
| /external/webrtc/webrtc/modules/desktop_capture/x11/ |
| x_server_pixel_buffer.cc | 109 window_size_ = DesktopSize(attributes.width, attributes.height); 134 window_size_.height()); 137 IPC_PRIVATE, x_image_->bytes_per_line * x_image_->height, 186 window_size_.height(), depth); 239 assert(rect.bottom() <= window_size_.height()); 246 rect.left(), rect.top(), rect.width(), rect.height(), 257 rect.width(), rect.height(), AllPlanes, ZPixmap); 278 int height = rect.height(); local 280 for (int y = 0; y < height; ++y) 292 int width = rect.width(), height = rect.height(); local [all...] |
| /frameworks/base/core/java/android/gesture/ |
| Gesture.java | 142 public Path toPath(int width, int height, int edge, int numSample) { 143 return toPath(null, width, height, edge, numSample); 146 public Path toPath(Path path, int width, int height, int edge, int numSample) { 153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); 179 * @param height height of the target bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 204 Path path = strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample); 215 * @param height [all...] |
| /frameworks/base/core/java/com/android/internal/policy/ |
| BackdropFrameRenderer.java | 264 * @param ySize The height of the content. 314 // The caption height will probably never dynamically change while we are resizing. 317 // Remember the height of the caption. 333 final int height = newBounds.height(); local 335 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height); 338 DisplayListCanvas canvas = mFrameAndBackdropNode.start(width, height); 349 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); 354 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets); 362 private void drawColorViews(int left, int top, int width, int height, [all...] |
| /frameworks/base/core/java/com/android/internal/view/menu/ |
| ActionMenuItemView.java | 107 final int height = configuration.screenHeightDp; local 108 return width >= 480 || (width >= 640 && height >= 480) 197 int height = icon.getIntrinsicHeight(); local 201 height *= scale; 203 if (height > mMaxIconSize) { 204 final float scale = (float) mMaxIconSize / height; 205 height = mMaxIconSize; 208 icon.setBounds(0, 0, width, height); 277 final int height = getHeight(); local 278 final int midy = screenPos[1] + height / 2 [all...] |
| /packages/apps/Camera2/src/com/android/camera/data/ |
| GlideFilmstripManager.java | 126 * Create a full size drawable request for a given width and height that is 137 .override(size.width(), size.height()); 141 * Create a full size drawable request for a given width and height that is 151 .override(size.width(), size.height()); 167 .override(size.width(), size.height()); 182 .override(size.width(), size.height()); 204 int height = (int) Math.round(original.height() * ratio); local 208 if (width > maxSize.width() || height > maxSize.height()) { [all...] |
| /packages/apps/TV/usbtuner/src/com/android/usbtuner/layout/ |
| ScaledLayout.java | 127 int height = heightSpecSize - getPaddingTop() - getPaddingBottom(); local 129 Log.d(TAG, String.format("onMeasure width: %d, height: %d", width, height)); 166 mRectArray[i] = new Rect((int) (scaleStartCol * width), (int) (scaleStartRow * height), 167 (int) (scaleEndCol * width), (int) (scaleEndRow * height)); 173 // If the height of the measured child view is bigger than the height of the calculated 174 // region by the given ScaleLayoutParams, the height of the region should be increased 176 if (child.getMeasuredHeight() > mRectArray[i].height()) { 177 int overflowedHeight = child.getMeasuredHeight() - mRectArray[i].height(); [all...] |
| /frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
| h264bsd_reconstruct.c | 101 height height of the reference frame chrominance in pixels 104 chromaPartHeight height of the predicted part in pixels 116 u32 height, 138 (y0 < 0) || ((u32)y0+chromaPartHeight > height)) 140 h264bsdFillBlock(pRef, block, x0, y0, width, height, 142 pRef += width * height; 144 x0, y0, width, height, chromaPartWidth + 1, 151 height = chromaPartHeight; 159 ptrA = pRef + (comp * height + (u32)y0) * width + x0 428 u32 xFrac, yFrac, width, height, chromaPartWidth, chromaPartHeight; local 1834 u32 xFrac, yFrac, width, height; local 1983 u32 width, height; local [all...] |
| /external/mesa3d/src/gallium/state_trackers/xa/ |
| xa_renderer.c | 188 float width, float height, 199 pt2[1] = (srcY + height); 201 pt3[1] = (srcY + height); 224 add_vertex_1tex(r, dstX + width, dstY + height, s2, t2); 226 add_vertex_1tex(r, dstX, dstY + height, s3, t3); 232 float dstX, float dstY, float width, float height, 245 spt1[1] = srcY + height; 250 mpt1[1] = maskY + height; 279 add_vertex_2tex(r, dstX + width, dstY + height, 282 add_vertex_2tex(r, dstX, dstY + height, [all...] |
| /external/webrtc/talk/media/base/ |
| videocapturer.cc | 79 height(0), 292 best_format->height = best->height; 319 ss << fourcc_name << captured_frame->width << "x" << captured_frame->height; 365 ComputeScale(captured_frame->width, captured_frame->height, 370 scaled_height != captured_frame->height)) { 374 << captured_frame->height << " to " 383 // Compute new width such that width * height is less than maximum but 390 captured_frame->height, scale_buffer.get(), 394 modified_frame->height = scaled_height [all...] |
| /hardware/intel/img/hwcomposer/merrifield/common/devices/ |
| VirtualDevice.cpp | 139 VAMappedHandle(VADisplay dpy, buffer_handle_t handle, uint32_t stride, uint32_t height, unsigned int pixel_format) 143 VTRACE("Map gralloc %p size=%ux%u", handle, stride, height); 150 buf.height = height; 158 buf.data_size = stride * height * 4; 171 buf.data_size = stride * height * 3/2; 178 buf.offsets[1] = stride * height; 199 height, 209 VAMappedHandle(VADisplay dpy, buffer_handle_t khandle, uint32_t stride, uint32_t height, bool tiled) 216 VTRACE("Map khandle 0x%x size=%ux%u", khandle, stride, height); 436 uint32_t height; member in struct:android::intel::VirtualDevice::EnableVspTask [all...] |
| /hardware/qcom/display/msm8084/libexternal/ |
| external.cpp | 72 void ExternalDisplay::getAttributes(int& width, int& height) { 74 getAttrForMode(width, height, fps); 158 property_set("persist.sys.actionsafe.height", actionsafeHeight); 580 int width = 0, height = 0, fps = 0; local 581 getAttrForMode(width, height, fps); 582 ALOGD("ExtDisplay setting xres = %d, yres = %d", width, height); 586 mHwcContext->dpyAttr[HWC_DISPLAY_EXTERNAL].yres = height; 596 if(((priW * priH) > (width * height)) && 615 void ExternalDisplay::getAttrForMode(int& width, int& height, int& fps) { 619 height = 480 [all...] |
| /external/libvncserver/common/ |
| turbojpeg.c | 294 while(height--) \ 309 int height, int pixelFormat, unsigned char *dst) 354 while(height--) \ 370 int pitch, int height, int pixelFormat) 498 DLLEXPORT unsigned long DLLCALL tjBufSize(int width, int height, 502 if(width<1 || height<1 || jpegSubsamp<0 || jpegSubsamp>=NUMSUBOPT) 513 retval=PAD(width, mcuw) * PAD(height, mcuh) * (2 + chromasf) + 2048; 520 DLLEXPORT unsigned long DLLCALL TJBUFSIZE(int width, int height) 523 if(width<1 || height<1) 531 retval=PAD(width, 16) * PAD(height, 16) * 6 + 2048 [all...] |
| /external/libvncserver/libvncserver/ |
| cursor.c | 65 pCursor->height == 1 && 90 maskBytes = bitmapRowBytes * pCursor->height; 92 (pCursor->width * pCursor->height * 115 rect.r.h = Swap16IfLE(pCursor->height); 136 for (i = 0; i < pCursor->height; i++) { 150 pCursor->width*bpp1, pCursor->width, pCursor->height); 152 cl->ublen += pCursor->width*bpp2*pCursor->height; 159 for (i = 0; i < pCursor->height; i++) { 245 void rfbConvertLSBCursorBitmapOrMask(int width,int height,unsigned char* bitmap) 247 int i,t=(width+7)/8*height; [all...] |