/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaRecordingCanvas.h | 33 explicit SkiaRecordingCanvas(uirenderer::RenderNode* renderNode, int width, int height) { argument 34 initDisplayList(renderNode, width, height); 41 virtual void resetRecording(int width, int height, 43 initDisplayList(renderNode, width, height); 85 * @param width used to calculate recording bounds. 88 void initDisplayList(uirenderer::RenderNode* renderNode, int width, int height);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 75 final int width = 100; 78 final int left = (getWidth() - width) / 2; 84 mPatch3.setBounds(left, top, left + height, top + width); 89 mPatch1.setBounds(left, top, left + width, top + height); 95 mPatch2.setBounds(left, top, left + width, top + height);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
H A D | m4v_h263_enc_test.cpp | 49 fprintf(stderr, "Usage %s <input yuv> <output file> <mode> <width> " 52 fprintf(stderr, "Max width %d\n", kMaxWidth); 70 // Read height and width. 71 int32_t width; local 73 width = atoi(argv[4]); 75 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) { 76 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height); 80 if (width % 16 != 0 || height % 16 != 0) { 82 width, heigh [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 64 mCpuConsumer->setDefaultBufferSize(mSize.width(), mSize.height()); 67 mSize.width(), mSize.height()); 77 (0, 0, mSize.width(), mSize.height()); 87 float lightX = mSize.width() / 2.0f; 91 mCanvas.reset(new android::uirenderer::RecordingCanvas(mSize.width(), mSize.height())); 95 //mCanvas->reset(mSize.width(), mSize.height()); 96 mCanvas->clipRect(0, 0, mSize.width(), mSize.height(), SkClipOp::kReplace_deprecated); 114 SkImageInfo::Make(mSize.width(), mSize.height(), 118 mSize.width() * mSize.height() * 4); 139 SkImageInfo::Make(nativeBuffer.width, nativeBuffe 185 initialize(int width, int height) argument [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 56 bool GLFrame::Init(int width, int height) { argument 59 InitDimensions(width, height); 65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) { argument 68 InitDimensions(width, height); 72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) { argument 76 InitDimensions(width, height); 87 void GLFrame::InitDimensions(int width, int height) { argument 88 width_ = width; 90 vp_width_ = width; 187 bool GLFrame::SetViewport(int x, int y, int width, in argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | OptimizingLineBreaker.java | 52 breakInfo.widths = new float[]{p.width}; 161 w += p.width; 166 w = mTabStops.width(w); 173 private static float computeDemerits(float maxWidth, float width, boolean finalBreak, argument 175 float deviation = finalBreak ? 0 : maxWidth - width; 192 w += p.width; 197 w = mTabStops.width(w); 224 /** Actual width of the line. */ 233 public LineMetrics(float width, float printedWidth, boolean hasTabs) { argument 234 mWidth = width; 253 Node(int prev, int prevCount, float demerits, float width, boolean hasTabs) argument [all...] |
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/ |
H A D | VideoProvider.java | 63 int width, int height, Context context, boolean useSingleBitmap) { 67 String rootPath = String.format(Locale.US, "%s/%d_%d/", context.getFilesDir(), width, 93 makeIcon(width, height, "Jank", file); 106 public static void makeIcon(int width, int height, String string, File file) { argument 107 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 117 Shader shader = new LinearGradient(0, 0, width - 1, height - 1, COLORS.get(0), 120 canvas.drawRect(0, 0, width - 1, height - 1, paint); 127 int wOffset = (width - rect.width()) / 2; 128 shader = new LinearGradient(wOffset, height - hOffset, width 62 buildMedia(int categoryCount, int entriesPerCat, int width, int height, Context context, boolean useSingleBitmap) argument [all...] |
/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/ |
H A D | VideoProvider.java | 63 int width, int height, Context context, boolean useSingleBitmap) { 67 String rootPath = String.format(Locale.US, "%s/%d_%d/", context.getFilesDir(), width, 93 makeIcon(width, height, "Jank", file); 106 public static void makeIcon(int width, int height, String string, File file) { argument 107 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 117 Shader shader = new LinearGradient(0, 0, width - 1, height - 1, COLORS.get(0), 120 canvas.drawRect(0, 0, width - 1, height - 1, paint); 127 int wOffset = (width - rect.width()) / 2; 128 shader = new LinearGradient(wOffset, height - hOffset, width 62 buildMedia(int categoryCount, int entriesPerCat, int width, int height, Context context, boolean useSingleBitmap) argument [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 64 int32_t width, 71 mWidth(width), 390 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { 398 memcpy(dst, src, width); 405 memcpy(dstU, srcU, width >> 1); 408 memcpy(dstV, srcV, width >> 1); 415 for (size_t x = width >> 1; x > 0; --x) { 421 dstU += (dstStride >> 1) - (width >> 1); 422 dstV += (dstStride >> 1) - (width >> 1); 423 srcU += ycbcr->cstride - (width >> 58 SoftVideoEncoderOMXComponent( const char *name, const char *componentRole, OMX_VIDEO_CODINGTYPE codingType, const CodecProfileLevel *profileLevels, size_t numProfileLevels, int32_t width, int32_t height, const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData, OMX_COMPONENTTYPE **component) argument 388 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument 431 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument 462 ConvertRGB32ToPlanar( uint8_t *dstY, size_t dstStride, size_t dstVStride, const uint8_t *src, size_t width, size_t height, size_t srcStride, bool bgr) argument 522 extractGraphicBuffer( uint8_t *dst, size_t dstSize, const uint8_t *src, size_t srcSize, size_t width, size_t height) const argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | APacketSource.cpp | 108 const char *params, int32_t *width, int32_t *height) { 109 *width = 0; 200 FindAVCDimensions(nal, width, height); 201 ALOGI("dimensions %dx%d", *width, *height); 336 const sp<ABuffer> &config, int32_t *width, int32_t *height) { 337 *width = 0; 359 &ptr[offset], config->size() - offset, width, height); 363 const char *params, int32_t *width, int32_t *height) { 364 *width = 0; 373 if (!ExtractDimensionsMPEG4Config(config, width, heigh 107 MakeAVCCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 335 ExtractDimensionsMPEG4Config( const sp<ABuffer> &config, int32_t *width, int32_t *height) argument 362 MakeMPEG4VideoCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 428 int32_t width, height; local 460 int32_t width, height; local 513 int32_t width, height; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | get_pred_adv_b_add.cpp | 33 width = width of the VOP in pixels (x axis); full-pel resolution 85 int width, /* i */ 96 offset = width - B_SIZE; /* offset for prev */ 108 prev += width; 185 int width, /* i */ 198 offset = width - B_SIZE; /* offset for prev */ 514 int width, /* i */ 527 offset = width - B_SIZE; /* offset for prev */ 548 word2 = *((uint32*)(prev + width)); 82 GetPredAdvancedBy0x0( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument 182 GetPredAdvancedBy0x1( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument 511 GetPredAdvancedBy1x0( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument 858 GetPredAdvancedBy1x1( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument [all...] |
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 139 int width, int height) { 141 mPreviewTexWidth = width; 148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 206 if (lhs.width < rhs.width) return -1; 207 if (lhs.width > rhs.width) return 1; 223 Integer.toString(mPreviewSizes.get(i).width) + " x " + 272 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; 286 p.setPreviewSize(mPreviewSize.width, mPreviewSiz 138 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
H A D | h264bsd_interpolate_chroma_ver.s | 45 width RN 4 label 81 ;// u32 width, : 0xf8 92 LDR width, [sp, #0xf8] ;// width 97 CMP tmp1, width ;// x0+chromaPartWidth > width 114 STMIA sp,{width,height,chrPW,tmp1,tmp2} 121 STMIA sp,{width,height,chrPW,tmp1,tmp2} 123 MLA ref, height, width, ref ;// ref += width * heigh [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 50 width = 87 HandleWrapMethod method, uint32_t width, uint32_t height, 93 mInitCheck = initWithHandle(handle, method, width, height, format, 138 static_cast<int>(inWidth) == width && 157 if (static_cast<int>(inWidth) != width) return true; 175 width = static_cast<int>(inWidth); 186 HandleWrapMethod method, uint32_t width, uint32_t height, 190 ANativeWindowBuffer::width = static_cast<int>(width); member in class:android::ANativeWindowBuffer 224 const Rect lockBounds(width, heigh 86 GraphicBuffer(const native_handle_t* handle, HandleWrapMethod method, uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, uint32_t stride) argument 185 initWithHandle(const native_handle_t* handle, HandleWrapMethod method, uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, uint32_t stride) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 138 Rect(native_buffer->width, native_buffer->height), 271 (dst.width == src.width) && 356 GLenum format, GLenum type, GLsizei width, GLsizei height, 372 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; 380 width, height, stride, formatIdx, compressedFormat, bpr); 391 width, height, stride, formatIdx, compressedFormat, bpr); 401 static GLsizei dataSizePalette4(int numLevels, int width, int height, int format) argument 435 int w = (width >> i) ? : 1; 444 static void decodePalette4(const GLvoid *data, int level, int width, in argument 354 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument 1049 glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupWindow.java | 360 * @param width the popup's width 363 public PopupWindow(int width, int height) { argument 364 this(null, width, height); 376 * @param width the popup's width 379 public PopupWindow(View contentView, int width, int height) { argument 380 this(contentView, width, height, false); 391 * @param width the popup's width 395 PopupWindow(View contentView, int width, int height, boolean focusable) argument 1093 setWidth(int width) argument 1581 findDropDownPosition(View anchor, WindowManager.LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) argument 1728 tryFitHorizontal(@onNull LayoutParams outParams, int xOffset, int width, int anchorWidth, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean allowResize) argument 1746 positionInDisplayHorizontal(@onNull LayoutParams outParams, int width, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean canResize) argument 2071 update(int width, int height) argument 2088 update(int x, int y, int width, int height) argument 2107 update(int x, int y, int width, int height, boolean force) argument 2209 update(View anchor, int width, int height) argument 2229 update(View anchor, int xoff, int yoff, int width, int height) argument 2233 update(View anchor, boolean updateLocation, int xoff, int yoff, int width, int height) argument [all...] |
/frameworks/native/libs/vr/libbufferhub/ |
H A D | buffer_hub_client.cpp | 84 int BufferHubBuffer::Lock(int usage, int x, int y, int width, int height, argument 86 return buffer_.Lock(usage, x, y, width, height, address); 92 int width = static_cast<int>(size); local 94 int ret = Lock(usage(), 0, 0, width, height, addr); 170 BufferProducer::BufferProducer(uint32_t width, uint32_t height, uint32_t format, argument 172 : BufferProducer(width, height, format, usage, usage, metadata_size) {} 174 BufferProducer::BufferProducer(uint32_t width, uint32_t height, uint32_t format, argument 180 "BufferProducer::BufferProducer: fd=%d width=%u height=%u format=%u " 183 event_fd(), width, height, format, producer_usage, consumer_usage, 188 width, heigh 206 BufferProducer(const std::string& name, int user_id, int group_id, uint32_t width, uint32_t height, uint32_t format, uint32_t usage, size_t meta_size_bytes) argument 213 BufferProducer(const std::string& name, int user_id, int group_id, uint32_t width, uint32_t height, uint32_t format, uint64_t producer_usage, uint64_t consumer_usage, size_t meta_size_bytes) argument 260 const int width = static_cast<int>(size); local 299 const int width = static_cast<int>(size); local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_image.c | 86 u32 width; local 97 width = image->width; 110 width *= 4; 121 lum += width-4; 124 width >>= 1; 131 cb += width-2; 140 cr += width-2; 193 ASSERT(mbNum < image->width * image->height); 197 picWidth = image->width; [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuItemView.java | 101 final int width = configuration.screenWidthDp; 103 return width >= 480 || (width >= 640 && height >= 480) 208 int width = icon.getIntrinsicWidth(); 210 if (width > mMaxIconSize) { 211 final float scale = (float) mMaxIconSize / width; 212 width = mMaxIconSize; 218 width *= scale; 220 icon.setBounds(0, 0, width, height); 291 // Remeasure at exactly the minimum width [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 127 int width = getFormat().getWidth(); 129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) { 137 int width = getFormat().getWidth(); 139 if (!nativeAllocateWithFbo(mGLEnvironment, fboId, width, height)) { 276 public void setViewport(int x, int y, int width, int height) { argument 278 setNativeViewport(x, y, width, height); 364 private native boolean nativeAllocate(GLEnvironment env, int width, int height); argument 368 int width, 373 int width, 396 private native boolean setNativeViewport(int x, int y, int width, in argument 366 nativeAllocateWithTexture(GLEnvironment env, int textureId, int width, int height) argument 371 nativeAllocateWithFbo(GLEnvironment env, int fboId, int width, int height) argument [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 106 int width = mIconWidth; 111 painter.setIntrinsicWidth(width); 126 if (width < sourceWidth || height < sourceHeight) { 130 height = (int) (width / ratio); 132 width = (int) (height * ratio); 134 } else if (sourceWidth < width && sourceHeight < height) { 136 width = sourceWidth; 150 final int left = (textureWidth-width) / 2; 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); 163 icon.setBounds(left, top, left+width, to [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 87 final int width = content.getInt(); 90 if (width >= 0 && width <= 4096 93 handleSinkAvailable(width, height, densityDpi); 109 private void handleSinkAvailable(int width, int height, int densityDpi) { argument 110 if (mSinkAvailable && mSinkWidth == width && mSinkHeight == height 116 + "width=" + width + ", height=" + height 119 mSinkWidth = width; 181 public VirtualDisplayThread(int width, in argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 142 public Path toPath(int width, int height, int edge, int numSample) { argument 143 return toPath(null, width, height, edge, numSample); 146 public Path toPath(Path path, int width, int height, int edge, int numSample) { argument 153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); 178 * @param width width of the target bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { argument 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); 214 * @param width 220 toBitmap(int width, int height, int inset, int color) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 47 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 50 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 53 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 90 private static native void nativeSetDisplaySize(IBinder displayToken, int width, int height); argument 290 * @param w The surface initial width. 603 public int width; field in class:SurfaceControl.PhysicalDisplayInfo 627 && width == other.width 644 width = other.width; 46 nativeScreenshot(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 49 nativeScreenshotToBuffer(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 52 nativeScreenshot(IBinder displayToken, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument 751 setDisplaySize(IBinder displayToken, int width, int height) argument 804 screenshot(IBinder display, Surface consumer, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform) argument 821 screenshot(IBinder display, Surface consumer, int width, int height) argument 866 screenshot(Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform, int rotation) argument 880 screenshotToBuffer(Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform, int rotation) argument 901 screenshot(int width, int height) argument 909 screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 127 uint32_t& width, uint32_t& height) { 129 const float pathWidth = std::max(bounds.width(), 1.0f); 137 width = uint32_t(pathWidth + texture->offset * 2.0 + 0.5); 154 uint32_t width, height; local 155 computePathBounds(path, paint, texture, width, height); 156 if (width > maxTextureSize || height > maxTextureSize) { 158 width, height, maxTextureSize, maxTextureSize); 162 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(SkImageInfo::MakeA8(width, height)); 222 const uint32_t size = texture->width() * texture->height(); 251 void PathCache::purgeCache(uint32_t width, uint32_ argument 126 computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, uint32_t& width, uint32_t& height) argument 443 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument 489 getOval(float width, float height, const SkPaint* paint) argument 512 getRect(float width, float height, const SkPaint* paint) argument 535 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |