Searched refs:height (Results 51 - 75 of 632) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScreenNail.java25 public void draw(GLCanvas canvas, int x, int y, int width, int height); argument
H A DSurfaceTextureScreenNail.java57 private static void setDefaultBufferSize(SurfaceTexture st, int width, int height) { argument
59 st.setDefaultBufferSize(width, height);
85 public void setSize(int width, int height) { argument
87 mHeight = height;
108 public void draw(GLCanvas canvas, int x, int y, int width, int height) { argument
117 int cy = y + height / 2;
122 canvas.drawTexture(mExtTexture, mTransform, x, y, width, height);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DPyramid.h35 real width, height; // Width and height of input images member in class:PyramidShort
40 static PyramidShort *allocatePyramidPacked(real width, real height, real levels, real border = 0);
41 static PyramidShort *allocateImage(real width, real height, real border);
45 static unsigned int calcStorage(real width, real height, real border2, int levels, int *lines);
H A DAlignFeatures.cpp35 width = height = 0;
55 int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still) argument
64 int nrvert = height/60; // and vertical buckets for harris corner detection.
82 reg.Init(width, height, motion_model_type, 20, linear_polish, quarter_res,
88 this->height = height;
90 imageGray = ImageUtils::allocateImage(width, height, 1);
100 ImageUtils::rgb2gray(imageGray, imageRGB, width, height);
109 ImageType *m_rows = ImageUtils::imageTypeToRowPointers(imageGray_, width, height);
/packages/services/Car/evs/app/
H A DWindowSurface.cpp46 uint32_t width, height; local
51 height = mainDpyInfo.w;
54 height = mainDpyInfo.h;
58 String8("Benchmark"), width, height,
H A DTexWrapper.cpp42 TexWrapper::TexWrapper(GLuint textureId, unsigned width, unsigned height) { argument
46 h = height;
116 png_uint_32 height; local
118 &width, &height,
142 png_byte * buffer = (png_byte*)malloc(stride * height);
152 png_byte ** rowPointers = (png_byte**)malloc(height * sizeof(png_byte*));
161 for (unsigned int r = 0; r < height; r++)
178 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
197 return new TexWrapper(textureId, width, height);
/packages/apps/Camera2/src/com/android/camera/captureintent/
H A DPreviewTransformCalculator.java47 new RectF(0.0f, 0.0f, previewViewSize.width(), previewViewSize.height());
54 previewBufferSize = new Size(previewStreamSize.height(), previewStreamSize.width());
61 new RectF(0.0f, 0.0f, previewBufferSize.width(), previewBufferSize.height());
89 rotatedPreviewSize = new Size(previewStreamSize.height(), previewStreamSize.width());
93 (float) previewViewSize.height() / (float) rotatedPreviewSize.height());
97 0.0f, 0.0f, previewStreamSize.width() * scale, previewStreamSize.height() * scale);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DZoomControlBar.java128 int height = bottom - top;
129 mBar.layout(mTotalIconWidth, 0, mWidth - mTotalIconWidth, height);
140 mZoomIn.layout(0, 0, mIconWidth, height);
141 mZoomOut.layout(mWidth - mIconWidth, 0, mWidth, height);
144 mZoomOut.layout(0, 0, mIconWidth, height);
145 mZoomIn.layout(mWidth - mIconWidth, 0, mWidth, height);
150 (pos + sliderWidth / 2), height);
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DUpdateMessagePartSizeAction.java37 public static void updateSize(final String partId, final int width, final int height) { argument
40 Assert.inRange(height, 0, Integer.MAX_VALUE);
43 partId, width, height);
49 private static final String KEY_HEIGHT = "height";
51 private UpdateMessagePartSizeAction(final String partId, final int width, final int height) { argument
54 actionParameters.putInt(KEY_HEIGHT, height);
61 final int height = actionParameters.getInt(KEY_HEIGHT);
69 values.put(PartColumns.HEIGHT, height);
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DTouchTargetEnforcerTest.java87 private void testExpansionNeeded(int width, int height) { argument
88 setViewDimen(width, height);
89 assertExpansionNeeded(width, height);
92 private void assertExpansionNeeded(int width, int height) { argument
107 assertBoundsCorrect(height, mCapturedBounds.height());
140 private void setViewDimen(int width, int height) { argument
141 setViewDimen(width, height, OFFSET_DEFAULT);
144 private void setViewDimen(int width, int height, int offset) { argument
148 mView.setBottom(offset + height);
[all...]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DWallpaperUtils.java36 public static final String WALLPAPER_HEIGHT_KEY = "wallpaper.height";
43 public static void saveWallpaperDimensions(int width, int height, Activity activity) { argument
46 // desired width and desired height of the wallpaper.
52 if (width != 0 && height != 0) {
54 editor.putInt(WALLPAPER_HEIGHT_KEY, height);
70 // If we have saved a wallpaper width/height, use that instead
72 int height = sp.getInt(WALLPAPER_HEIGHT_KEY, -1);
74 if (width == -1 || height == -1) {
79 height = defaultWallpaperSize.y;
84 if (width != wm.getDesiredMinimumWidth() || height !
103 wallpaperTravelToScreenWidthRatio(int width, int height) argument
[all...]
H A DDrawableTileSource.java73 float height = getImageHeight();
74 while (width > MAX_PREVIEW_SIZE || height > MAX_PREVIEW_SIZE) {
76 height /= 2;
78 Bitmap b = Bitmap.createBitmap((int) width, (int) height, Bitmap.Config.ARGB_8888);
80 mDrawable.setBounds(new Rect(0, 0, (int) width, (int) height));
/packages/apps/Dialer/java/com/android/dialer/util/
H A DDrawableConverter.java35 /** Converts the provided drawable to a bitmap using the drawable's intrinsic width and height. */
42 * Converts the provided drawable to a bitmap with the specified width and height.
44 * <p>If both width and height are 0, the drawable's intrinsic width and height are used (but in
48 public static Bitmap drawableToBitmap(@Nullable Drawable drawable, int width, int height) { argument
57 if (width > 0 || height > 0) {
58 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
72 "created bitmap with width: %d, height: %d",
85 @NonNull Context context, @Nullable Drawable photo, int width, int height) {
88 Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, width, height, fals
84 getRoundedDrawable( @onNull Context context, @Nullable Drawable photo, int width, int height) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DExportDialog.java111 mOriginalBounds.height());
112 mRatio = mOriginalBounds.width() / (float) mOriginalBounds.height();
114 mHeightText.setText("" + mOriginalBounds.height());
116 mExportHeight = mOriginalBounds.height();
189 float originalArea = mCompressedBounds.width() * mCompressedBounds.height();
206 int height = 1;
220 height = (int) (width / mRatio);
222 mHeightText.setText("" + height);
228 height = Integer.parseInt(value);
229 if (height > mOriginalBound
[all...]
/packages/apps/Camera2/jni/
H A Djpegutilnative.cpp30 * The Y plane is assumed to have the same width and height of the entire image.
32 * dimensions (floor(width / 2), floor(height / 2)).
40 * (width, height) is a no-op.
49 * @param height the height of the image to compress
72 jint width, jint height,
93 return Compress(width, height, //
110 * @param height the height of the output image
119 JNIEnv* env, jclass clazz __unused, jint width, jint height, jobjec
69 Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative( JNIEnv* env, jclass clazz __unused, jint width, jint height, jobject yBuf, jint yPStride, jint yRStride, jobject cbBuf, jint cbPStride, jint cbRStride, jobject crBuf, jint crPStride, jint crRStride, jobject outBuf, jint outBufCapacity, jint quality, jint cropLeft, jint cropTop, jint cropRight, jint cropBottom, jint rot90) argument
118 Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap( JNIEnv* env, jclass clazz __unused, jint width, jint height, jobject planeBuf, jint pStride, jint rStride, jobject outBitmap, jint rot90) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
H A DCameraPreview.java81 mCameraHeight = size.height;
86 mCameraWidth = size.height;
106 int height;
108 height = (int) (width * aspectRatio);
110 height = (int) (width / aspectRatio);
112 return View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DPreviewImageView.java49 final int height = view.getMeasuredHeight();
51 if (mBitmap == null || mBitmap.getWidth() != width || mBitmap.getHeight() != height) {
52 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
60 lp = new DragLayer.LayoutParams(width, height);
70 lp.height = (int) (scale * height);
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraPreview.java58 mCameraHeight = size.height;
63 mCameraWidth = size.height;
83 int height;
85 height = (int) (width * aspectRatio);
87 height = (int) (width / aspectRatio);
89 return View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
/packages/apps/Camera2/src/com/android/camera/
H A DMediaSaverImpl.java70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) {
71 addImage(data, title, date, loc, width, height, orientation, exif, l,
77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l,
85 width, height, orientation, mimeType, exif, mContentResolver, l);
97 // When dimensions are unknown, pass 0 as width and height,
98 // and decode image for width and height later in a background thread
103 public void addImage(final byte[] data, String title, Location loc, int width, int height, argument
105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l,
142 private int width, height; field in class:MediaSaverImpl.ImageSaveTask
150 int width, int height, in
69 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument
76 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType) argument
149 ImageSaveTask(byte[] data, String title, long date, Location loc, int width, int height, int orientation, String mimeType, ExifInterface exif, ContentResolver resolver, OnMediaSavedListener listener) argument
[all...]
/packages/services/Car/evs/sampleDriver/
H A DbufferCopy.cpp70 // It assumes an even width and height for the overall image, and a horizontal stride that is
75 const unsigned sizeY = strideLum * tgtBuff.height;
77 const unsigned sizeColor = strideColor * tgtBuff.height/2;
92 // NV21 requires even width and height, so we assume that is the case for the incomming image
104 const unsigned sizeY = strideLum * tgtBuff.height;
114 for (unsigned cellRow = 0; cellRow < tgtBuff.height/2; cellRow++) {
148 unsigned height = tgtBuff.height; local
157 for (unsigned r=0; r<height; r++) {
182 unsigned height local
197 unsigned height = tgtBuff.height; local
[all...]
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
H A DZoomedCropRegion.java41 int yCenter = sensor.height() / 2;
43 int yDelta = (int) (0.5f * sensor.height() / zoom);
/packages/apps/Dialer/java/com/android/incallui/videotech/
H A DVideoTech.java79 void onCameraDimensionsChanged(int width, int height); argument
81 void onPeerDimensionsChanged(int width, int height); argument
/packages/apps/Gallery2/jni/filters/
H A Dcontrast.c39 void JNIFUNCF(ImageFilterContrast, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloat bright) argument
45 int len = width * height * 4;
H A Dhighlight.c23 jint width, jint height, jfloatArray luminanceMap){
28 int len = width * height * 4;
22 JNIFUNCF(ImageFilterHighlights, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray luminanceMap) argument
H A Dshadows.c22 void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){ argument
36 int len = width * height * 4;

Completed in 2302 milliseconds

1234567891011>>