/frameworks/base/core/java/com/android/internal/view/ |
H A D | BaseSurfaceHolder.java | 115 public void setFixedSize(int width, int height) { argument 116 if (mRequestedWidth != width || mRequestedHeight != height) { 117 mRequestedWidth = width; 227 public void setSurfaceFrameSize(int width, int height) { argument 230 mSurfaceFrame.right = width;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PasswordEntryKeyboard.java | 58 public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int width, int height) { argument 59 this(context, xmlLayoutResId, 0, width, height); 68 int width, int height) { 69 super(context, xmlLayoutResId, mode, width, height); 259 if (code == KEYCODE_SHIFT) x += width / 6; 260 if (code == KEYCODE_DELETE) x -= width / 6; 67 PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode, int width, int height) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 57 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument 68 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth); 70 if (width) 71 *width = SkScalarToHBFixed(skWidth); 76 extents->width = SkScalarToHBFixed(skBounds.width());
|
H A D | YuvToJpegEncoder.cpp | 26 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, argument 41 setJpegCompressStruct(&cinfo, width, height, jpegQuality); 53 int width, int height, int quality) { 54 cinfo->image_width = width; 84 int width = cinfo->image_width; local 87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; 88 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; 89 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; 95 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); 104 // height and width ar 52 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument 117 deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument 160 int width = cinfo->image_width; local 192 deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument 221 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, jint format, jint width, jint height, jintArray offsets, jintArray strides, jint jpegQuality, jobject jstream, jbyteArray jstorage) argument [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 36 PageRecord(int width, int height, const SkRect& contentRect) argument 39 , mWidth(width) 64 SkCanvas* startPage(int width, int height, argument 70 PageRecord* page = new PageRecord(width, height, contentRect); 75 SkRect::MakeWH(contentRect.width(), contentRect.height()));
|
H A D | PdfRenderer.cpp | 119 double width = 0; local 122 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); 130 env->SetIntField(outSize, gPointClassInfo.x, width); 256 const int stride = skBitmap.width() * 4; 258 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(),
|
/frameworks/base/core/jni/ |
H A D | android_media_RemoteDisplay.cpp | 65 uint32_t width, uint32_t height, uint32_t flags, uint32_t session) { 77 surfaceObj, width, height, flags, session); 64 onDisplayConnected(const sp<IGraphicBufferProducer>& bufferProducer, uint32_t width, uint32_t height, uint32_t flags, uint32_t session) argument
|
H A D | android_text_StaticLayout.cpp | 53 // set text and set a number of parameters for creating a layout (width, tabstops, strategy, 166 // Accept width measurements for the run, passed in from Java 175 jint start, jint end, jfloat width) { 177 b->addReplacement(start, end, width); 174 nAddReplacementRun(JNIEnv* env, jclass, jlong nativePtr, jint start, jint end, jfloat width) argument
|
H A D | android_view_GraphicBuffer.cpp | 102 jint width, jint height, jint format, jint usage) { 114 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error)); 101 android_view_GraphiceBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint usage) argument
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 66 assertEquals(b.width, l.getEllipsizedWidth()); 244 int width = 100; field in class:StaticLayoutTest.LayoutBuilder 260 LayoutBuilder setWidth(int width) { argument 261 this.width = width; 286 return new StaticLayout(text, paint, width, align, spacingMult, 375 // Zero width sequence
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Atlas.java | 78 * @param width The width of the atlas in pixels 83 public Atlas(Type type, int width, int height) { argument 84 this(type, width, height, FLAG_DEFAULTS); 93 * @param width The width of the atlas in pixels 100 public Atlas(Type type, int width, int height, int flags) { argument 101 mPolicy = findPolicy(type, width, height, flags); 107 * @param width The width o 115 pack(int width, int height) argument 132 pack(int width, int height, Entry entry) argument 137 findPolicy(Type type, int width, int height, int flags) argument 159 pack(int width, int height, Entry entry) argument 248 int width; field in class:Atlas.SlicePolicy.Cell 259 SlicePolicy(int width, int height, int flags, SplitDecision splitDecision) argument 273 pack(int width, int height, Entry entry) argument 356 insert(Cell cell, Cell prev, int width, int height, Entry entry) argument [all...] |
H A D | Picture.java | 77 public Canvas beginRecording(int width, int height) { argument 78 long ni = nativeBeginRecording(mNativePicture, width, height); 97 * Get the width of the picture as passed to beginRecording. This
|
H A D | Rect.java | 30 * These fields can be accessed directly. Use width() and height() to retrieve 31 * the rectangle's width and height. Note: most methods do not check to see that 201 * @return the rectangle's width. This does not check for a valid rectangle 204 public final int width() { method in class:Rect 301 * keeping its width and height the same.
|
H A D | RectF.java | 28 * These fields can be accessed directly. Use width() and height() to retrieve 29 * the rectangle's width and height. Note: most methods do not check to see that 149 * @return the rectangle's width. This does not check for a valid rectangle 152 public final float width() { method in class:RectF 246 * keeping its width and height the same.
|
H A D | SurfaceTexture.java | 224 * The width and height parameters must be no greater than the minimum of 230 public void setDefaultBufferSize(int width, int height) { argument 231 nativeSetDefaultBufferSize(width, height); 387 private native void nativeSetDefaultBufferSize(int width, int height); argument
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpRenderer.cpp | 32 OffscreenBuffer* BakedOpRenderer::startTemporaryLayer(uint32_t width, uint32_t height) { argument 35 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height); 36 startRepaintLayer(buffer, Rect(width, height)); 74 offscreenBuffer->texture.width(), 104 const uint32_t width = area.getWidth(); local 106 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height); 107 if (!area.isEmpty() && width != 0 && height != 0) { 112 area.left, mRenderTarget.viewportHeight - area.bottom, width, height); 117 void BakedOpRenderer::startFrame(uint32_t width, uint32_t height, const Rect& repaintRect) { argument 120 setViewport(width, heigh 161 setViewport(uint32_t width, uint32_t height) argument [all...] |
H A D | FontRenderer.h | 119 uint32_t width; member in struct:android::uirenderer::FontRenderer::DropShadow 145 CacheTexture* createCacheTexture(int width, int height, GLenum format, bool allocate); 211 int32_t width, int32_t height); 213 int32_t width, int32_t height); 216 void blurImage(uint8_t** image, int32_t width, int32_t height, float radius);
|
H A D | FrameInfoVisualizer.cpp | 136 void FrameInfoVisualizer::initializeRects(const int baseline, const int width) { argument 138 float right = width * .95;
|
H A D | GradientCache.cpp | 125 uint32_t width = 256 * (count - 1); local 129 // unless width is already a power of 2 130 if (!mHasNpot && (width & (width - 1)) != 0) { 131 width = 1 << (32 - __builtin_clz(width)); 142 info.width = min(width, uint32_t(mMaxTextureSize)); 157 const uint32_t size = info.width * 2 * bytesPerPixel(); 161 ", size = %" PRIu32 ", mMaxSize = %" PRIu32 ", width 222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument [all...] |
H A D | Layer.cpp | 99 bool Layer::resize(const uint32_t width, const uint32_t height) { argument 100 uint32_t desiredWidth = computeIdealWidth(width); 224 const float width = layer.getWidth(); local 228 dirtyRect.right >= width && dirtyRect.bottom >= height)) { 229 dirtyRect.set(0, 0, width, height); 237 renderer->setupFrameState(width, height, dirtyRect.left, dirtyRect.top,
|
H A D | Patch.cpp | 39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) 82 const float xStretch = std::max(width - fixed, 0.0f); 84 rescaleX = fixed == 0.0f ? 0.0f : std::min(std::max(width, 0.0f) / fixed, 1.0f); 125 width, bitmapWidth, quadCount); 137 width, bitmapWidth, quadCount); 149 float width, float bitmapWidth, uint32_t& quadCount) { 182 x2 = width; 38 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument 147 generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
|
H A D | Rect.h | 69 inline Rect(float width, float height): argument 72 right(width),
|
H A D | SkiaShader.cpp | 222 const float width = outData->bitmapTexture->width(); local 227 && (!isPowerOfTwo(width) || !isPowerOfTwo(height)) 242 outData->textureDimension[0] = 1.0f / width; 336 const float width = layer->getWidth(); local 342 outData->textureDimension[0] = 1.0f / width;
|
H A D | Snapshot.h | 187 void initializeViewport(int width, int height) { argument 188 mViewportData.initialize(width, height); 189 mClipAreaRoot.setViewportDimensions(width, height); 316 void initialize(int width, int height) { argument 317 mWidth = width; 319 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); 325 * The viewport is always defined to be (0, 0, width, height).
|
H A D | TessellationCache.h | 70 float width; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect 158 float width, float height, float rx, float ry) { 159 getRoundRectBuffer(transform, paint, width, height, rx, ry); 162 float width, float height, float rx, float ry); 188 float width, float height); 190 float width, float height, float rx, float ry); 157 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
|