/frameworks/base/libs/hwui/tests/common/scenes/ |
RecentsAnimation.cpp | 31 void createContent(int width, int height, TestCanvas& renderer) override { 39 thumbnailSize = std::min(std::min(width, height) / 2, 720); 40 int cardsize = std::min(width, height) - dp(64); 71 sp<RenderNode> createCard(int x, int y, int width, int height, 73 return TestUtils::createNode(x, y, x + width, y + height, 74 [&thumb, width, height](RenderProperties& props, TestCanvas& canvas) { 76 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); 80 canvas.drawBitmap(thumb, 0, 0, thumb.width(), thumb.height(), 81 0, 0, width, height, nullptr);
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
Size.java | 70 flatSizes.add(s.width()); 86 int width = Integer.parseInt(flatSizes[i]); local 88 list.add(new Size(width,height)); 98 public Size(int width, int height) { 99 val = new Point(width, height); 109 val = new Point(other.width(), other.height()); 122 val = new Point(other.width, other.height); 152 public int width() { method in class:Size 176 return "Size: (" + this.width() + " x " + this.height() + ")";
|
/packages/apps/Camera2/src/com/android/camera/data/ |
PhotoDataFactory.java | 43 int width = c.getInt(PhotoDataQuery.COL_WIDTH); local 47 // If the width or height is unknown, attempt to decode it from 49 if (width <= 0 || height <= 0) { 52 + filePath + ":" + width + "x" + height); 62 dimensions = new Size(width, height); 90 int width; local 99 width = opts.outWidth; 111 width = b.getWidth(); 113 if (width == 0 || height == 0) { 119 return new Size(width, height) [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
AspectRatio.java | 40 * @param width The width of the aspect ratio, after simplification. 43 private AspectRatio(int width, int height) { 44 mWidth = width; 48 public static AspectRatio of(int width, int height) { 49 int gcd = BigInteger.valueOf(width).gcd(BigInteger.valueOf(height)).intValue(); 50 int simplifiedWidth = width / gcd; 56 return of(size.width(), size.height()); 177 int cropHeight = area.width() * mHeight / mWidth; 181 int cropRight = area.width(); [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
AvatarGroupRequestDescriptor.java | 73 final float width = desiredWidth; local 75 final float halfWidth = width / 2F; 98 final float diameter = (float) ((2 - Math.sqrt(2)) * width); 100 destArray[1] = new RectF(width - diameter, height - diameter, width, height); 130 final float quarterWidth = width / 4F; 141 destArray[2] = new RectF(halfWidth, halfHeight, width, height); 152 destArray[1] = new RectF(halfWidth, 0, width, halfHeight); 154 destArray[3] = new RectF(halfWidth, halfHeight, width, height);
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
row_common.cc | 73 void RGB24ToARGBRow_C(const uint8* src_rgb24, uint8* dst_argb, int width) { 75 for (x = 0; x < width; ++x) { 88 void RAWToARGBRow_C(const uint8* src_raw, uint8* dst_argb, int width) { 90 for (x = 0; x < width; ++x) { 103 void RGB565ToARGBRow_C(const uint8* src_rgb565, uint8* dst_argb, int width) { 105 for (x = 0; x < width; ++x) { 119 int width) { 121 for (x = 0; x < width; ++x) { 136 int width) { 138 for (x = 0; x < width; ++x) [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
GoldenImageVerifier.java | 35 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { 37 width, height); 39 mDifferenceBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 41 mDifferenceBitmap.setPixels(differences, 0, width, 0, 0, width, height);
|
/device/generic/goldfish/camera/ |
JpegCompressor.cpp | 43 int width, int height, int quality); 70 int width, 74 mStrides[0] = width; 75 mStrides[1] = width; 77 return (status_t)(*f)(&mStub, image, width, height, quality);
|
JpegStub.cpp | 37 int width, int height, int quality) 42 offsets[1] = width * height; 48 if (encoder->encode(stream, pY, width, height, offsets, quality)) { 50 __FUNCTION__, (width * height * 12) / 8, 51 width, height, stream->getOffset());
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
image_util_bitmap_impl.py | 13 def Width(bitmap): 14 return bitmap.width 28 def FromRGBPixels(width, height, pixels, bpp): 29 return _bitmap.Bitmap(bpp, width, height, pixels) 46 def Crop(bitmap, left, top, width, height): 47 return bitmap.Crop(left, top, width, height)
|
/external/clang/test/CodeGen/ |
vla.c | 55 void function(short width, int data[][width]) {} // expected-note {{passing argument to parameter 'data' here}} 67 void function1(short width, int data[][width][width]) {}
|
/external/curl/tests/unit/ |
unit1398.c | 34 int width = 3; variable 40 rc = curl_msnprintf(output, 4, "%.*s", width, buf); 45 rc = curl_msnprintf(output, 4, "%.*s", width, str); 49 width = 2; 51 rc = curl_msnprintf(output, 4, "%.*s", width, buf); 65 /* negative width */ 70 /* larger width that string length */
|
/external/libdrm/libkms/ |
api.c | 68 unsigned width = 0; local 79 width = value; 92 if (width == 0 || height == 0) 98 (width != 64 || height != 64)) 101 return kms->bo_create(kms, width, height, type, attr, out);
|
/external/libgdx/gdx/jni/ |
com.badlogic.gdx.graphics.glutils.ETC1.cpp | 7 JNIEXPORT jint JNICALL Java_com_badlogic_gdx_graphics_glutils_ETC1_getCompressedDataSize(JNIEnv* env, jclass clazz, jint width, jint height) { 12 return etc1_get_encoded_data_size(width, height);
17 JNIEXPORT void JNICALL Java_com_badlogic_gdx_graphics_glutils_ETC1_formatHeader(JNIEnv* env, jclass clazz, jobject obj_header, jint offset, jint width, jint height) { 23 etc1_pkm_format_header((etc1_byte*)header + offset, width, height);
82 JNIEXPORT void JNICALL Java_com_badlogic_gdx_graphics_glutils_ETC1_decodeImage(JNIEnv* env, jclass clazz, jobject obj_compressedData, jint offset, jobject obj_decodedData, jint offsetDec, jint width, jint height, jint pixelSize) { 89 etc1_decode_image((etc1_byte*)compressedData + offset, (etc1_byte*)decodedData + offsetDec, width, height, pixelSize, width * pixelSize);
95 (JNIEnv* env, jclass clazz, jobject obj_imageData, jint offset, jint width, jint height, jint pixelSize, char* imageData) { 99 int compressedSize = etc1_get_encoded_data_size(width, height);
101 etc1_encode_image((etc1_byte*)imageData + offset, width, height, pixelSize, width * pixelSize, compressedData); [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/ |
FrameBuffer.java | 44 public FrameBuffer (Pixmap.Format format, int width, int height, boolean hasDepth) {
45 this(format, width, height, hasDepth, false);
52 * @param width the width of the framebuffer in pixels
56 public FrameBuffer (Pixmap.Format format, int width, int height, boolean hasDepth, boolean hasStencil) {
57 super(format, width, height, hasDepth, hasStencil);
64 GLOnlyTextureData data = new GLOnlyTextureData(width, height, 0, glFormat, glFormat, glType);
|
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/ |
convert.h | 33 int width, int height); 43 int width, int height); 53 int width, int height); 64 int width, int height); 72 int width, int height); 83 int width, int height); 92 int width, int height); 100 int width, int height); 108 int width, int height); 116 int width, int height) [all...] |
/external/libyuv/files/include/libyuv/ |
convert.h | 31 int width, int height); 41 int width, int height); 51 int width, int height); 62 int width, int height); 70 int width, int height); 81 int width, int height); 90 int width, int height); 98 int width, int height); 106 int width, int height); 114 int width, int height) [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_box.h | 14 box->width = w; 29 box->width = w; 42 box->width = w; 58 box->width = w; 75 box->width = w;
|
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
test_surface.c | 34 const unsigned int width = 16, height = 16; local 50 width, 71 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, &context) == Success); 85 /* Test width & height assigned and correct */ 86 assert(surface.width == width && surface.height == height);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/ |
TrackMetaData.java | 28 private double width; field in class:TrackMetaData 76 return width; 79 public void setWidth(double width) { 80 this.width = width;
|
/external/skia/src/core/ |
SkBitmapProvider.cpp | 12 int SkBitmapProvider::width() const { function in class:SkBitmapProvider 13 return fImage ? fImage->width() : fBitmap.width(); 26 if (0 == fBitmap.width() || 0 == fBitmap.height()) { 49 return SkImageInfo::MakeN32(fImage->width(), fImage->height(), at);
|
/external/skia/src/gpu/batches/ |
GrCopySurfaceBatch.cpp | 42 if (clippedSrcRect->fRight > src->width()) { 43 clippedSrcRect->fRight = src->width(); 45 if (clippedDstPoint->fX + clippedSrcRect->width() > dst->width()) { 46 clippedSrcRect->fRight = clippedSrcRect->fLeft + dst->width() - clippedDstPoint->fX;
|
/external/skia/tools/ |
iOSShell.cpp | 37 int w = SkScalarRoundToInt(this->width()); 53 view->setSize(this->width(), this->height()); 80 void get_preferred_size(int* x, int* y, int* width, int* height); 81 void get_preferred_size(int* x, int* y, int* width, int* height) { 84 *width = 640;
|
/external/toybox/kconfig/lxdialog/ |
inputbox.c | 29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 31 int x = width / 2 - 11; 44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, 60 if (getmaxx(stdscr) <= (width - 2)) 64 x = (COLS - width) / 2; 67 draw_shadow(stdscr, y, x, height, width); 69 dialog = newwin(height, width, y, x); 72 draw_box(dialog, 0, 0, height, width, 76 for (i = 0; i < width - 2; i++) 81 print_title(dialog, title, width); [all...] |
/external/webrtc/webrtc/tools/frame_analyzer/ |
video_quality_analysis.h | 57 const char* stats_file_name, int width, int height, 67 int width, 91 // Calculates the size of a I420 frame if given the width and height. 92 int GetI420FrameSize(int width, int height); 107 int width, 115 int width,
|