/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.cpp | 110 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument 113 RenderBufferEntry entry(format, width, height); 124 RenderBuffer::formatName(format), width, height); 126 buffer = new RenderBuffer(format, width, height); 129 RenderBuffer::formatName(format), width, height);
|
H A D | Snapshot.h | 157 void initializeViewport(int width, int height) { argument 158 mViewportData.initialize(width, height); 282 void initialize(int width, int height) { argument 284 mHeight = height; 285 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); 289 * Width and height of current viewport. 291 * The viewport is always defined to be (0, 0, width, height).
|
H A D | PathCache.h | 189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 191 PathTexture* getOval(float width, float height, const SkPaint* paint); 192 PathTexture* getRect(float width, float height, const SkPaint* paint); 193 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle, 225 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 227 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 257 void purgeCache(uint32_t width, uint32_t height); 261 bool checkTextureSize(uint32_t width, uint32_t height) { argument 262 if (width > mMaxTextureSize || height > mMaxTextureSize) { 264 width, height, mMaxTextureSiz [all...] |
H A D | TessellationCache.h | 65 float height; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect 125 float width, float height, float rx, float ry) { 126 getRoundRectBuffer(transform, paint, width, height, rx, ry); 129 float width, float height, float rx, float ry); 150 float width, float height); 152 float width, float height, float rx, float ry); 124 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapMutateActivity.java | 88 int height = mBitmap1.getHeight(); 97 for (int y = 0; y < height; y++) { 102 mBitmap1.setPixels(mPixels, 0, width, 0, 0, width, height); 106 canvas.translate(0.0f, height + 32); 107 canvas.drawBitmap(mPixels, 0, width, 0.0f, 0.0f, width, height, false, mBitmapPaint);
|
/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 89 height_ = height; 91 vp_height_ = height; 187 bool GLFrame::SetViewport(int x, int y, int width, int height) { argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | Blur.cpp | 95 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 99 for (int32_t y = 0; y < height; y ++) { 139 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 143 for (int32_t y = 0; y < height; y ++) { 151 if (y > radius && y < (height - radius)) { 166 if (validH > height - 1) { 167 validH = height - 1; 94 horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument 138 vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | YuvToJpegEncoder.cpp | 25 int height, int* offsets, int jpegQuality) { 39 setJpegCompressStruct(&cinfo, width, height, jpegQuality); 51 int width, int height, int quality) { 53 cinfo->image_height = height; 83 int height = cinfo->image_height; local 85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; 93 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); 95 // Jpeg library ignores the rows whose indices are greater than height. 102 // height and width are both halved because of downsampling 116 uint8_t* vRows, int rowIndex, int width, int height) { 24 encode(SkWStream* stream, void* inYuv, int width, int height, int* offsets, int jpegQuality) argument 50 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument 115 deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument 159 int height = cinfo->image_height; local 190 deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument 219 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/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 139 int width, int height) { 142 mPreviewTexHeight = height; 148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 207 if (lhs.height < rhs.height) return -1; 208 if (lhs.height > rhs.height) return 1; 223 Integer.toString(mPreviewSizes.get(i).height); 272 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; 285 p.setPreviewSize(mPreviewSize.width, mPreviewSize.height); 138 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 141 0, 0, native_buffer->width, native_buffer->height, 279 (dst.height == src.height) && 286 const size_t size = src.height * src.stride * pixelFormat.size; 363 GLenum format, GLenum type, GLsizei width, GLsizei height, 380 const size_t size = bpr * height; 387 width, height, stride, formatIdx, compressedFormat, bpr); 398 width, height, stride, formatIdx, compressedFormat, bpr); 408 static size_t dataSizePalette4(int numLevels, int width, int height, int format) argument 443 int h = (height >> 361 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument 451 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1056 glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 128 int height = getFormat().getHeight(); 129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) { 138 int height = getFormat().getHeight(); 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 369 int height); 374 int height); 396 private native boolean setNativeViewport(int x, int y, int width, int height); 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/policy/src/com/android/internal/policy/impl/ |
H A D | IconUtilities.java | 107 int height = mIconHeight; 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/ |
H A D | DisplaySourceService.java | 88 final int height = content.getInt(); 91 && height >= 0 && height <= 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 120 mSinkHeight = height; 181 public VirtualDisplayThread(int width, int height, 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)); 179 * @param height height 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); 215 * @param height 220 toBitmap(int width, int height, int inset, int color) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | 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 110 h264bsdInterpolateChromaHor( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument 206 h264bsdInterpolateChromaVer( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument 302 h264bsdInterpolateChromaHorVer( u8 *ref, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument 428 u32 xFrac, yFrac, width, height, chromaPartWidth, chromaPartHeight; local 491 h264bsdInterpolateVerHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument 609 h264bsdInterpolateVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument 743 h264bsdInterpolateHorHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument 866 h264bsdInterpolateHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument 1004 h264bsdInterpolateHorVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horVerOffset) argument 1210 h264bsdInterpolateMidHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument 1396 h264bsdInterpolateMidVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument 1600 h264bsdInterpolateMidHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument 1834 u32 xFrac, yFrac, width, height; local 1983 u32 width, height; local 2222 h264bsdFillBlock( u8 *ref, u8 *fill, i32 x0, i32 y0, u32 width, u32 height, u32 blockWidth, u32 blockHeight, u32 fillScanLength) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | mb_motion_comp.cpp | 140 int height, width, pred_width; local 172 height = video->height; 251 video->mblock->pred_block, width, height, 272 ypred >= 0 && ypred <= ((height << 1) - (2*B_SIZE))) 285 pred, width, height, round1, pred_width); 308 ypred >= 0 && ypred <= ((height << 1) - (2*B_SIZE))) 320 pred, width, height, round1, pred_width); 344 ypred >= 0 && ypred <= ((height << 1) - (2*B_SIZE))) 356 pred, width, height, round [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | APacketSource.cpp | 108 const char *params, int32_t *width, int32_t *height) { 110 *height = 0; 200 FindAVCDimensions(nal, width, height); 201 ALOGI("dimensions %dx%d", *width, *height); 338 const sp<ABuffer> &config, int32_t *width, int32_t *height) { 340 *height = 0; 361 &ptr[offset], config->size() - offset, width, height); 365 const char *params, int32_t *width, int32_t *height) { 367 *height = 0; 375 if (!ExtractDimensionsMPEG4Config(config, width, height)) { 107 MakeAVCCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 337 ExtractDimensionsMPEG4Config( const sp<ABuffer> &config, int32_t *width, int32_t *height) argument 364 MakeMPEG4VideoCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 430 int32_t width, height; local 462 int32_t width, height; local 515 int32_t width, height; local [all...] |
H A D | VideoSource.h | 32 VideoSource(int width, int height) argument 34 mHeight(height), 35 mSize((width * height * 3) / 2) {
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | CompareActivity.java | 66 int height = getResources().getDimensionPixelSize(R.dimen.layer_height); 67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 81 int height = mSoftwareBitmap.getHeight(); 83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsRS.java | 89 private void createPF(int width, int height) { argument 98 public void init(RenderScriptGL rs, Resources res, int width, int height) { argument 102 createPF(width, height); 113 mGrid = ScriptField_BallGrid.create2D(mRS, (width + 99) / 100, (height + 99) / 100); 135 mPhysicsScript.set_gMaxPos(new Float2(width - 5, height - 5)); 138 mScript.invoke_initParts(width, height);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ShadowOverlayContainer.java | 166 if (lp.height == LayoutParams.MATCH_PARENT) { 170 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, 0, lp.height); 190 if (lp.height == LayoutParams.MATCH_PARENT) { 194 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, 0, lp.height); 208 final int height = child.getMeasuredHeight(); 209 child.layout(0, 0, width, height);
|
/frameworks/av/camera/ |
H A D | ProCamera.cpp | 182 status_t ProCamera::createStream(int width, int height, int format, argument 189 ALOGV("%s: createStreamW %dx%d (fmt=0x%x)", __FUNCTION__, width, height, 196 return createStream(width, height, format, 201 status_t ProCamera::createStream(int width, int height, int format, argument 207 ALOGV("%s: createStreamT %dx%d (fmt=0x%x)", __FUNCTION__, width, height, 215 status_t stat = c->createStream(width, height, format, bufferProducer, 227 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 232 return createStreamCpu(width, height, format, heapCount, 237 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 244 ALOGV("%s: createStreamW %dx%d (fmt=0x%x)", __FUNCTION__, width, height, [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | jpeg.cpp | 40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument 64 cinfo.image_height = height; 73 for (int row = 0; row < height; row++) {
|
/frameworks/base/core/java/android/view/ |
H A D | HardwareLayer.java | 99 * return false if the requested width/height cannot be satisfied 102 * @param height The new height of this layer 108 public boolean prepare(int width, int height, boolean isOpaque) { argument 109 return nPrepare(mFinalizer.get(), width, height, isOpaque); 147 private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque); argument
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | IncludeTest.java | 57 assertTrue("Both buttons should have different height", 58 button1.getLayoutParams().height != button2.getLayoutParams().height); 77 assertEquals("Included button should be 23dip x 23dip", 23, lp.height);
|