/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 346 public void setSize(int width, int height) { argument 348 mHeight = height; 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 355 mScreenHeight = height; 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 554 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument 566 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument 575 fillRect(float x, float y, float width, float height, int color) argument 582 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument 993 getBounds(Rect bounds, int x, int y, int width, int height) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayManagerService.java | 517 String name, int width, int height, int densityDpi, Surface surface, int flags) { 527 name, width, height, densityDpi, surface, flags); 548 int width, int height, int densityDpi) { 554 mVirtualDisplayAdapter.resizeVirtualDisplayLocked(appToken, width, height, densityDpi); 1284 int width, int height, int densityDpi, Surface surface, int flags) { 1295 if (width <= 0 || height <= 0 || densityDpi <= 0) { 1296 throw new IllegalArgumentException("width, height, and densityDpi must be " 1338 packageName, name, width, height, densityDpi, surface, flags); 1346 int width, int height, int densityDpi) { 1349 resizeVirtualDisplayInternal(callback.asBinder(), width, height, densityDp 515 createVirtualDisplayInternal(IVirtualDisplayCallback callback, IMediaProjection projection, int callingUid, String packageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument 547 resizeVirtualDisplayInternal(IBinder appToken, int width, int height, int densityDpi) argument 1282 createVirtualDisplay(IVirtualDisplayCallback callback, IMediaProjection projection, String packageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument 1345 resizeVirtualDisplay(IVirtualDisplayCallback callback, int width, int height, int densityDpi) argument [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 1107 int height, int userId) { 1118 height); 1121 resolvedUserId).dispatchSurfaceChanged(format, width, height); 1106 dispatchSurfaceChanged(IBinder sessionToken, int format, int width, int height, int userId) argument
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | Connection.java | 591 * @param height The updated peer video height. 593 public void changePeerDimensions(int width, int height) { argument 596 mVideoCallback.changePeerDimensions(width, height);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | CameraStreamer.java | 103 public void setCameraSize(int width, int height) { argument 105 mCameraHeight = height; 593 throw new RuntimeException("Camera height must be a multiple of 2!"); 780 /** The requested preview width and height */ 784 /** The requested picture width and height */ 788 /** The actual camera width and height */ 1015 public synchronized void setDesiredPreviewSize(int width, int height) { argument 1016 if (width != mRequestedPreviewWidth || height != mRequestedPreviewHeight) { 1018 mRequestedPreviewHeight = height; 1023 public synchronized void setDesiredPictureSize(int width, int height) { argument 1315 findClosestPreviewSize(int width, int height, Camera.Parameters parameters) argument 1320 findClosestPictureSize(int width, int height, Camera.Parameters parameters) argument 1325 findClosestSizeFromList(int width, int height, List<Camera.Size> sizes) argument 1575 setDesiredPreviewSize(int width, int height) argument 1586 setDesiredPictureSize(int width, int height) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 63 png_uint_32 height; member in struct:image_info 111 &outImageInfo->height, &bit_depth, &color_type, 143 outImageInfo->height * sizeof(png_bytep)); 144 outImageInfo->allocHeight = outImageInfo->height; 149 for (i = 0; i < (int)outImageInfo->height; i++) 161 (int)outImageInfo->width, (int)outImageInfo->height, 166 &outImageInfo->height, &bit_depth, &color_type, 284 png_bytepp rows, int offset, int height, bool transparent, bool required, 293 for (i=1; i<height-1; i++) { 298 *outBottom = height 283 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 370 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 1072 png_uint_32 width, height; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 448 bounds.bottom = rect.y + rect.height; 760 final float y, int width, int height, 764 final BufferedImage image = new BufferedImage(width, height, 766 image.setRGB(0, 0, width, height, colors, offset, stride); 758 native_drawBitmap(long nativeCanvas, int[] colors, int offset, int stride, final float x, final float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument
|
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 221 Bitmap::Bitmap(int width, int height) : width(width), height(height) { argument 222 buf = new uint8_t[width * height](); 231 o << width << " " << height << std::endl; 233 o.write((const char *)buf, width * height); 239 int bmh = bitmap.height; 245 int y1 = std::min(height, y + bmh); 824 printf("glyphBitmap.width=%d, glyphBitmap.height=%d (%d, %d) x=%f, y=%f, ok=%d\n", 825 glyphBitmap.width, glyphBitmap.height, glyphBitma [all...] |
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 55 EGLint left, EGLint top, EGLint width, EGLint height); 232 virtual EGLint getHeight() const { return height; } 247 int height; member in struct:android::egl_window_surface_v2_t 357 nativeWindow->query(nativeWindow, NATIVE_WINDOW_HEIGHT, &height); 392 height = buffer->height; 395 depth.height = height; 397 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2); 410 buffer, buffer->width, buffer->height); 2154 eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height) argument [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 24 * -s [width, height] - Starting dimension 235 static EGLint width, height; variable 515 == searchLimits.sourceCrop.height()) ? ">= " : "", 525 searchLimits.sourceCrop.height())) ? ">= " : "", 550 >= Rational(searchLimits.sourceCrop.height(), 551 measPtr->df.minDim.height())) ? ">= " : "", 649 (y + startDim.height()) < (unsigned int) height; 650 y += (allowOverlap) ? 1 : startDim.height()) { 655 rect.displayFrame.bottom = y + startDim.height(); [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | DrawerLayout.java | 66 * a width and height of <code>match_parent</code>. Add drawers as child views after the main 68 * <code>match_parent</code> for height with a fixed width.</p> 882 lp.height); 937 final int height = b - t; 939 height - lp.bottomMargin - child.getMeasuredHeight(), 941 height - lp.bottomMargin); 946 final int height = b - t; 947 int childTop = (height - childHeight) / 2; 953 } else if (childTop + childHeight > height - lp.bottomMargin) { 954 childTop = height 1802 LayoutParams(int width, int height) argument 1806 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | SlidingPaneLayout.java | 500 // First pass. Measure based on child LayoutParams width/height. 532 if (lp.height == LayoutParams.WRAP_CONTENT) { 534 } else if (lp.height == LayoutParams.FILL_PARENT) { 537 childHeightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY); 580 // Do initial height measurement if we skipped measuring this view 582 if (lp.height == LayoutParams.WRAP_CONTENT) { 585 } else if (lp.height == LayoutParams.FILL_PARENT) { 589 childHeightSpec = MeasureSpec.makeMeasureSpec(lp.height, 603 // This was skipped the first time; figure out a real height spec. 604 if (lp.height 1419 LayoutParams(int width, int height) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListPopupWindow.java | 151 * If used to specify a popup height, the popup will fill available space. 518 * @return The height of the popup window in pixels. 525 * Sets the height of the popup window in pixels. Can also be {@link #MATCH_PARENT}. 527 * @param height Height of the popup window. 529 public void setHeight(int height) { argument 530 mDropDownHeight = height; 584 int height = buildDropDown(); 605 heightSpec = noInputMethod ? height : ViewGroup.LayoutParams.MATCH_PARENT; 617 heightSpec = height; 641 mPopup.setHeight(height); [all...] |
H A D | Toolbar.java | 83 * <li><em>A branded logo image.</em> This may extend to the height of the bar and can be 1135 + heightUsed, lp.height); 1167 + heightUsed, lp.height); 1193 int height = 0; 1214 height = Math.max(height, mNavButtonView.getMeasuredHeight() + 1225 height = Math.max(height, mCollapseButtonView.getMeasuredHeight() + 1240 height = Math.max(height, mMenuVie 1826 LayoutParams(int width, int height) argument 1831 LayoutParams(int width, int height, int gravity) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 345 size_t s = info.width * info.height; 415 info.width, info.height, pixels, GetBitmapSize(_env, jbitmap), 0); 537 jint width, jint height, 542 " dstMip(%i), dstFace(%i), width(%i), height(%i)," 545 width, height, (RsAllocation)srcAlloc, srcXoff, srcYoff, srcMip, srcFace); 551 width, height, 605 jint width, jint height, jint depth, 610 " dstMip(%i), width(%i), height(%i)," 613 width, height, (RsAllocation)srcAlloc, srcXoff, srcYoff, srcMip, srcFace); 618 width, height, dept 534 nAllocationData2D_alloc(JNIEnv *_env, jobject _this, RsContext con, jint dstAlloc, jint dstXoff, jint dstYoff, jint dstMip, jint dstFace, jint width, jint height, jint srcAlloc, jint srcXoff, jint srcYoff, jint srcMip, jint srcFace) argument 602 nAllocationData3D_alloc(JNIEnv *_env, jobject _this, RsContext con, jint dstAlloc, jint dstXoff, jint dstYoff, jint dstZoff, jint dstMip, jint width, jint height, jint depth, jint srcAlloc, jint srcXoff, jint srcYoff, jint srcZoff, jint srcMip) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OMXCodec.cpp | 797 OMX_COLOR_FORMATTYPE colorFormat, int32_t width, int32_t height) { 801 return width * height * 2; 815 return (width * height * 3) / 2; 880 int32_t width, height, frameRate, bitRate, stride, sliceHeight; local 882 success = success && meta->findInt32(kKeyHeight, &height); 929 video_def->nFrameHeight = height; 954 video_def->nFrameHeight = height; 1277 int32_t width, height; local 1279 success = success && meta->findInt32(kKeyHeight, &height); 1282 CODEC_LOGV("setVideoOutputFormat width=%ld, height 796 getFrameSize( OMX_COLOR_FORMATTYPE colorFormat, int32_t width, int32_t height) argument 3626 setImageOutputFormat( OMX_COLOR_FORMATTYPE format, OMX_U32 width, OMX_U32 height) argument 3698 setJPEGInputFormat( OMX_U32 width, OMX_U32 height, OMX_U32 compressedSize) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4lib_int.h | 51 Int height; /* Height (multiple of 16) */ member in struct:tagVOP 90 Int height; /* Height */ member in struct:tagVol
|
/frameworks/base/core/java/android/view/ |
H A D | Window.java | 663 * Set the width and height layout parameters of the window. The default 668 * @param height The desired layout height of the window. 670 * @see ViewGroup.LayoutParams#height 673 public void setLayout(int width, int height) { argument 676 attrs.height = height; 683 * is only useful when using WRAP_CONTENT for the layout width or height.
|
H A D | WindowManagerPolicy.java | 492 public void setInitialDisplaySize(Display display, int width, int height, int density); argument 596 * Return the display height available after excluding any screen 611 * Return the available screen height that we should report for the 830 * @param displayHeight The current full height of the screen. 898 * @param displayHeight The current full height of the screen. 1218 * @return The current height of the input method window.
|
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 141 * {@link View#GONE GONE}, as having zero width and height. This is subtly different from 332 * The order in which axes are laid out is important if, for example, the height of 340 * deriving its height for a given width, but not the other way around. 344 * the height of the intended layout greatly exceeds its width. 1014 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, lp.height); 1027 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); 1045 /** If we have been called by {@link View#measure(int, int)}, one of width or height 1178 int height = vAlign.getSizeInCell(c, pHeight, cellHeight - sumMarginsY); 1186 if (width != c.getMeasuredWidth() || height != c.getMeasuredHeight()) { 1187 c.measure(makeMeasureSpec(width, EXACTLY), makeMeasureSpec(height, EXACTL 2066 LayoutParams( int width, int height, int left, int top, int right, int bottom, Spec rowSpec, Spec columnSpec) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 113 bool setThumbnail(const uint8_t* buffer, uint32_t width, uint32_t height); 142 bool NativeContext::setThumbnail(const uint8_t* buffer, uint32_t width, uint32_t height) { argument 144 mThumbnailHeight = height; 146 size_t size = BYTES_PER_RGB_PIXEL * width * height; 402 InputStripSource(JNIEnv* env, Input& input, uint32_t ifd, uint32_t width, uint32_t height, 425 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, 427 mWidth(width), mHeight(height), mPixStride(pixStride), mRowStride(rowStride), 538 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, 560 uint32_t width, uint32_t height, uint32_t pixStride, uint32_t rowStride, 562 mPixelBytes(pixelBytes), mWidth(width), mHeight(height), mPixStrid 424 InputStripSource(JNIEnv* env, Input& input, uint32_t ifd, uint32_t width, uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, uint32_t bytesPerSample, uint32_t samplesPerPixel) argument 559 DirectStripSource(JNIEnv* env, const uint8_t* pixelBytes, uint32_t ifd, uint32_t width, uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, uint32_t bytesPerSample, uint32_t samplesPerPixel) argument 620 validateDngHeader(JNIEnv* env, TiffWriter* writer, jint width, jint height) argument 909 uint32_t height = static_cast<uint32_t>(entry.data.i32[3]); local 1631 DngCreator_nativeSetThumbnail(JNIEnv* env, jobject thiz, jobject buffer, jint width, jint height) argument 1802 DngCreator_nativeWriteImage(JNIEnv* env, jobject thiz, jobject outStream, jint width, jint height, jobject inBuffer, jint rowStride, jint pixStride, jlong offset, jboolean isDirect) argument 1904 DngCreator_nativeWriteInputStream(JNIEnv* env, jobject thiz, jobject outStream, jobject inStream, jint width, jint height, jlong offset) argument [all...] |
H A D | android_opengl_GLES10.cpp | 505 /* void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) */ 508 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject data_buf) { 524 (GLsizei)height, 534 /* void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) */ 537 (JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) { 554 (GLsizei)height, 564 /* void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) */ 567 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint x, jint y, jint width, jint height, jint border) { 575 (GLsizei)height, 580 /* void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) */ 507 android_glCompressedTexImage2D__IIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject data_buf) argument 536 android_glCompressedTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) argument 566 android_glCopyTexImage2D__IIIIIIII(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint x, jint y, jint width, jint height, jint border) argument 582 android_glCopyTexSubImage2D__IIIIIIII(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint x, jint y, jint width, jint height) argument 2512 android_glReadPixels__IIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) argument 2606 android_glScissor__IIII(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height) argument 2924 android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) argument 2978 android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) argument 3056 android_glViewport__IIII(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height) argument [all...] |
H A D | android_opengl_GLES11Ext.cpp | 358 /* void glDrawTexsOES ( GLshort x, GLshort y, GLshort z, GLshort width, GLshort height ) */ 361 (JNIEnv *_env, jobject _this, jshort x, jshort y, jshort z, jshort width, jshort height) { 367 (GLshort)height 371 /* void glDrawTexiOES ( GLint x, GLint y, GLint z, GLint width, GLint height ) */ 374 (JNIEnv *_env, jobject _this, jint x, jint y, jint z, jint width, jint height) { 380 (GLint)height 384 /* void glDrawTexxOES ( GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height ) */ 387 (JNIEnv *_env, jobject _this, jint x, jint y, jint z, jint width, jint height) { 393 (GLfixed)height 649 /* void glDrawTexfOES ( GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height ) */ 360 android_glDrawTexsOES__SSSSS(JNIEnv *_env, jobject _this, jshort x, jshort y, jshort z, jshort width, jshort height) argument 373 android_glDrawTexiOES__IIIII(JNIEnv *_env, jobject _this, jint x, jint y, jint z, jint width, jint height) argument 386 android_glDrawTexxOES__IIIII(JNIEnv *_env, jobject _this, jint x, jint y, jint z, jint width, jint height) argument 651 android_glDrawTexfOES__FFFFF(JNIEnv *_env, jobject _this, jfloat x, jfloat y, jfloat z, jfloat width, jfloat height) argument 2326 android_glRenderbufferStorageOES__IIII(JNIEnv *_env, jobject _this, jint target, jint internalformat, jint width, jint height) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 237 * @param height The height of the viewport 241 public void setViewport(int width, int height) {} argument 272 * Returns the height of the current drawing layer 274 * @return the height of the current drawing layer 331 * Returns the maximum allowed height for bitmaps drawn with this canvas. 1322 * extends beyond the bitmap's original width/height (e.g. BlurMaskFilter), 1324 * Thus the color outside of the original width/height will be the edge 1348 * extends beyond the bitmap's original width/height (e.g. BlurMaskFilter), 1350 * Thus the color outside of the original width/height wil 1461 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument 1497 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument 2060 native_drawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 649 : DrawBoundedOp(0, 0, bitmap->width(), bitmap->height(), paint) 856 mMesh = cache.get(getAtlasEntry(renderer), mBitmap->width(), mBitmap->height(), 1224 uint32_t width, height; local 1225 PathCache::computePathBounds(path, paint, left, top, offset, width, height); 1228 mLocalBounds.set(left, top, left + width, top + height);
|