/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | stats_scorer.h | 36 JNIEnv* env, jobject thiz, jobject imageBuffer, jint width, jint height,
|
H A D | colorspace.cpp | 57 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) { 61 const int size = width * height; 68 for (int y = 0; y < height; y += 2) { 96 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) { 100 for (int i = 0; i < width * height; ++i) { 111 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) { 117 for (int i = 0; i < width * height; ++i) { 154 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) { 159 for (int i = 0; i < width * height; ++i) { 56 nativeYuv420pToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 95 nativeArgb8888ToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 110 nativeRgba8888ToHsva8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 153 nativeRgba8888ToYcbcra8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | ColorFilter_Delegate.java | 61 public void applyFilter(Graphics2D g, int width, int height) { argument
|
/frameworks/native/include/android/ |
H A D | bitmap.h | 69 /** The bitmap height in pixels. */ 70 uint32_t height; member in struct:__anon1287
|
/frameworks/native/include/gui/ |
H A D | GraphicBufferAlloc.h | 37 uint32_t height, PixelFormat format, uint32_t usage,
|
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferAlloc.cpp | 48 uint32_t height, PixelFormat format, uint32_t usage, 53 data.writeUint32(height); 101 uint32_t height = data.readUint32(); local 106 createGraphicBuffer(width, height, format, usage, &error); 47 createGraphicBuffer(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage, status_t* error) argument
|
/frameworks/support/percent/src/android/support/percent/ |
H A D | PercentFrameLayout.java | 60 * It is not necessary to specify {@code layout_width/height} if you specify {@code 62 * percentage value permits, you can add {@code layout_width/height="wrap_content"}. In that case 67 * You can also make one dimension be a fraction of the other by setting only width or height and 74 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted 126 public LayoutParams(int width, int height) { argument 127 super(width, height); 130 public LayoutParams(int width, int height, int gravity) { argument 131 super(width, height, gravity);
|
H A D | PercentLayoutHelper.java | 96 params.height = array.getLayoutDimension(heightAttr, 0); 100 * Iterates over children and changes their width and height to one calculated from percentage 161 Log.v(TAG, "percent height: " + value); 309 params.height = ViewGroup.LayoutParams.WRAP_CONTENT; 329 info.mPreservedParams.height == ViewGroup.LayoutParams.WRAP_CONTENT; 333 // These two flags keep track of whether we're computing the LayoutParams width and height 337 // the same set of width / height. 341 public PercentMarginLayoutParams(int width, int height) { argument 342 super(width, height); 354 /** The decimal value of the percentage-based height [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | NetworkImageView.java | 105 int height = getHeight(); 111 wrapHeight = getLayoutParams().height == LayoutParams.WRAP_CONTENT; 117 if (width == 0 && height == 0 && !isFullyWrapContent) { 144 // Calculate the max image width / height to use while ignoring WRAP_CONTENT dimens. 146 int maxHeight = wrapHeight ? 0 : height;
|
/frameworks/av/media/libstagefright/ |
H A D | CameraSourceTimeLapse.cpp | 90 mVideoHeight = videoSize.height; 92 if (OK == mInitCheck && !trySettingVideoSize(videoSize.width, videoSize.height)) { 125 int32_t width, int32_t height) { 144 int32_t pictureHeight = supportedSizes[i].height; 146 if ((pictureWidth == width) && (pictureHeight == height)) { 153 ALOGV("Video size (%d, %d) is supported", width, height); 155 params.setVideoSize(width, height); 157 params.setPreviewSize(width, height); 162 ALOGE("Failed to set preview size to %dx%d", width, height); 124 trySettingVideoSize( int32_t width, int32_t height) argument
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | findhalfpel.cpp | 34 void GenerateSearchRegion(UChar *searchPadding, UChar *ref, Int width, Int height, 81 Int height = video->vol[video->currLayer]->height; local 106 else if (jmin >= height - 1) 117 else if (jmin >= height - 16) 190 Int height; local 203 height = video->vol[video->currLayer]->height; 227 else if (jmin >= height - 1)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistDisclosure.java | 198 final int height = getHeight(); 200 final float pixelProgress = mTracingProgress * (width + height - 2 * thickness); 206 height - thickness, 208 height, paint, padding); 211 float sideProgress = Math.min(pixelProgress - bottomProgress, height - thickness); 215 (height - thickness) - sideProgress, 217 height - thickness, paint, padding); 220 (height - thickness) - sideProgress, 222 height - thickness, paint, padding);
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | TestWallpaper.java | 139 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 140 super.onSurfaceChanged(holder, format, width, height); 196 final int height = frame.height(); 205 c.drawRect(0, 0, width, height, paint); 209 width-mMainInsets.right, height-mMainInsets.bottom, paint); 213 width - mStableInsets.right, height - mStableInsets.bottom, 221 int y = height - mStableInsets.bottom - mPadding - ascdesc; 222 c.drawText("Surface Size: " + width + " x " + height,
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); 80 floatImage.setY(mRoiBounds.height()); 91 mRoiBounds.width(), mRoiBounds.height()); 96 mRoiBounds.width(), mRoiBounds.height()); 110 options.setY(1, mRoiBounds.height() - 1); 133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), 136 Rect undoRect = new Rect(0, 0, mRoiBounds.width(), mRoiBounds.height()); 145 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument 146 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
|
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 62 int32_t height, 69 mHeight(height), 387 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { 394 for (size_t y = height; y > 0; --y) { 401 for (size_t y = height >> 1; y > 0; --y) { 411 for (size_t y = height >> 1; y > 0; --y) { 429 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) { 431 int32_t outYsize = width * height; 442 for (int32_t i = height >> 1; i > 0; --i) { 461 const uint8_t *src, size_t width, size_t height, size_ 55 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 385 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument 428 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument 459 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 [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, 112 resize(width, height, densityDpi, false /* doLayout */); 140 public void resize(int width, int height, int densityDpi) { argument 141 resize(width, height, densityDpi, true /* doLayout */); 144 private void resize(int width, int height, int densityDpi, boolean doLayout) { argument 146 mHeight = height; 204 mTextureView.getLayoutParams().height = mHeight; 251 int height = (int)(mHeight * scale); 253 int y = (int)(mWindowY + mLiveTranslationY - height * offsetScale); 255 y = Math.max(0, Math.min(y, mDefaultDisplayInfo.logicalHeight - height)); 95 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 91 mCropRectangle = new Rect(0, 0, activeArray.width(), activeArray.height()); 194 mActiveArray.height() / mCurrentZoomRatio, 0, mActiveArray.height())); 196 (mActiveArray.height() - mCropRectangle.height()) / 2); 237 return (mExifThumbnailSize.width() == 0 && mExifThumbnailSize.height() == 0) || 240 mExifThumbnailSize.height() == defaultThumbnailSize.getHeight()); 284 mExifThumbnailSize.width(), mExifThumbnailSize.height())); 310 mCropRectangle.height() * oldTop, 0, mCropRectangle.height() [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ImageReader.java | 108 * @param height The default height in pixels of the Images that this reader 123 public static ImageReader newInstance(int width, int height, int format, int maxImages) { argument 124 return new ImageReader(width, height, format, maxImages); 130 protected ImageReader(int width, int height, int format, int maxImages) { argument 132 mHeight = height; 136 if (width < 1 || height < 1) { 152 nativeInit(new WeakReference<ImageReader>(this), width, height, format, maxImages); 164 width, height, format, /*buffer count*/ 1); 182 * The default height o [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | ActionMenuItemView.java | 200 int height = icon.getIntrinsicHeight(); 204 height *= scale; 206 if (height > mMaxIconSize) { 207 final float scale = (float) mMaxIconSize / height; 208 height = mMaxIconSize; 211 icon.setBounds(0, 0, width, height); 259 final int height = getHeight(); 260 final int midy = screenPos[1] + height / 2; 267 if (midy < displayFrame.height()) { 270 screenPos[1] + height [all...] |
/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/av/cmds/screenrecord/ |
H A D | TextRenderer.h | 51 void setScreenSize(uint32_t width, uint32_t height) { argument 53 mScreenHeight = height; 104 // Returns the font's glyph height. This is the full pixel height of the
|
/frameworks/av/cmds/stagefright/ |
H A D | recordvideo.cpp | 50 fprintf(stderr, " -t height in pixels (default: 144)\n"); 62 DummySource(int width, int height, int nFrames, int fps, int colorFormat) argument 64 mHeight(height), 68 mSize((width * height * 3) / 2) { 169 int height = 144; local 225 height = atoi(optarg); 273 new DummySource(width, height, nFrames, frameRateFps, colorFormat); 288 enc_meta->setInt32("height", height); 292 enc_meta->setInt32("slice-height", heigh [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkImagePriv.h | 36 int32_t width, int32_t height, int32_t numPlanes); 52 media_status_t getHeight(/*out*/int32_t* height) const;
|
/frameworks/base/core/java/android/app/ |
H A D | IActivityContainer.aidl | 29 void setSurface(in Surface surface, int width, int height, int density);
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableSize.java | 48 int height = buffer.getInt(); 50 return new Size(width, height);
|