Searched refs:height (Results 226 - 250 of 632) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java302 public static Rect finalGeometryRect(int width, int height, argument
305 RectF crop = getTrueCropRect(holder, width, height);
313 int height = image.getHeight();
314 RectF crop = getTrueCropRect(holder, width, height);
317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(),
318 frame.height());
321 frame.height(), BitmapCache.UTIL_GEOMETRY);
335 bmapDimens.height(), viewWidth, viewHeight);
342 RectF rCrop = new RectF(0, 0, originalBounds.width(), originalBounds.height());
352 if (rCrop.width() < rCrop.height()) {
[all...]
H A DImageCrop.java100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height());
170 float h = outer.height();
234 int height = image.getHeight();
236 || mImageBounds.width() != width || mImageBounds.height() != height
238 mImageBounds.set(0, 0, width, height);
242 FilterCropRepresentation.findScaledCrop(scaledCrop, width, height);
311 (int) outer.height());
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DTiledTexture.java121 public void setSize(int width, int height) { argument
123 contentHeight = height;
125 mHeight = height + 2 * BORDER_SIZE;
277 int x, int y, int width, int height) {
281 float scaleY = (float) height / mHeight;
296 public void draw(GLCanvas canvas, int x, int y, int width, int height) { argument
300 float scaleY = (float) height / mHeight;
322 float scaleY = target.height() / source.height();
276 drawMixed(GLCanvas canvas, int color, float ratio, int x, int y, int width, int height) argument
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragView.java67 int left, int top, int width, int height, final float initialScale) {
110 mBitmap = Bitmap.createBitmap(bitmap, left, top, width, height);
111 setDragRegion(new Rect(0, 0, width, height));
140 return mDragRegion.height();
254 lp.height = mBitmap.getHeight();
66 DragView(Launcher launcher, Bitmap bitmap, int registrationX, int registrationY, int left, int top, int width, int height, final float initialScale) argument
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DPreloadIconDrawable.java125 (bounds.height() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE);
134 mShadowBitmap = getShadowBitmap(bounds.width(), bounds.height(),
142 private Bitmap getShadowBitmap(int width, int height, float shadowRadius) { argument
143 int key = (width << 16) | height;
149 shadow = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationFooterLayout.java156 float scale = (float) toBounds.height() / fromBounds.height();
159 + (fromBounds.height() * scale - fromBounds.height()) / 2).build());
211 // Keep view around because gutter is aligned to it, but remove height to
213 getLayoutParams().height = newHeight;
/packages/apps/TV/src/com/android/tv/menu/
H A DBaseCardView.java232 int height = mExtendViewOnFocus ? Math.round(mTextViewHeight
235 if (height != params.height) {
236 params.height = height;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAttachmentTile.java57 // previews with width/height or height/width less than this value will be
183 final int height = result.getHeight();
186 final int scaledHeight = height * getResources().getDisplayMetrics().densityDpi
189 final float ratio = Math.min((float) width / height, (float) height / width);
192 || height >= maxSize || scaledHeight >= mIcon.getHeight();
H A DFolderDisplayer.java183 public static void drawFolder(Canvas canvas, float x, float y, int width, int height, argument
186 drawFolder(canvas, x, y, width, height, f.name,
191 public static void drawFolder(Canvas canvas, float x, float y, int width, int height, argument
200 final RectF rect = new RectF(0, 0, width, height);
259 final int textY = height / 2 - (int) (paint.descent() + paint.ascent()) / 2;
H A DThumbnailLoadTask.java63 final int height = holder.getThumbnailHeight();
64 if (attachment == null || width == 0 || height == 0
80 holder, width, height);
89 public ThumbnailLoadTask(AttachmentBitmapHolder holder, int width, int height) { argument
92 mHeight = height;
/packages/apps/Camera2/src/com/android/camera/widget/
H A DModeOptionsOverlay.java174 MeasureSpec.makeMeasureSpec((int) uncoveredPreviewRect.height(),
196 modeOptionsParams.height = modeOptionsDimension;
205 modeOptionsParams.height = ViewGroup.LayoutParams.MATCH_PARENT;
/packages/apps/EmergencyInfo/src/com/android/emergency/
H A DCircleFramedDrawable.java63 final int height = icon.getHeight();
64 final int square = Math.min(width, height);
66 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square);
/packages/apps/Gallery2/jni_jpegstream/src/
H A Djpeg_writer.cpp44 int32_t JpegWriter::setup(JNIEnv *env, jobject out, int32_t width, int32_t height, argument
52 if (height <= 0 || width <= 0 || quality <= 0 || quality > 100) {
72 // Initialize width, height, and color space
74 mInfo.image_height = height;
/packages/apps/WallpaperPicker/src/com/android/photos/views/
H A DTiledImageView.java176 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
177 mCanvas.setSize(width, height);
178 mRenderer.image.setViewSize(width, height);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardParams.java37 /** Total height and width of the keyboard, including the paddings and keys */
41 /** Base height and width of the keyboard used to calculate rows' or keys' heights and
179 final int height = key.getHeight() + mVerticalGap;
180 final int heightCount = updateHistogramCounter(mHeightHistogram, height);
183 mMostCommonKeyHeight = height;
/packages/services/Car/evs/sampleDriver/
H A DEvsGlDisplay.cpp180 mBuffer.height = mGlWrapper.getHeight();
189 status_t result = alloc.allocate(mBuffer.width, mBuffer.height,
196 result, mBuffer.width, mBuffer.height);
/packages/apps/Gallery2/src/com/android/photos/views/
H A DBlockingGLTextureView.java67 int height) {
69 mRenderThread.setSize(width, height);
74 int height) {
75 mRenderThread.setSize(width, height);
353 public void setSize(int width, int height) { argument
357 mHeight = height;
66 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
73 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
H A DResourceSurfaceTextureImpl.java115 mSurfaceTexture.setDefaultBufferSize(mPreviewSize.width(), mPreviewSize.height());
134 mSurfaceTexture.setDefaultBufferSize(defaultBufferSize.width(), defaultBufferSize.height());
/packages/apps/Camera2/src/com/android/camera/data/
H A DPlaceholderItem.java50 View v, FilmstripItemType viewType, int width, int height) {
53 Size dimensions = new Size(width, height);
49 PlaceholderItem( View v, FilmstripItemType viewType, int width, int height) argument
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
H A DPointMeteringParameters.java95 int minCropEdge = Math.min(cropRegion.width(), cropRegion.height());
107 int yCenterSensor = (int) (cropRegion.top + nsc.y * cropRegion.height());
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
H A DAndroidImageReaderProxy.java46 public static ImageReaderProxy newInstance(int width, int height, int format, int maxImages) { argument
47 return new AndroidImageReaderProxy(android.media.ImageReader.newInstance(width, height,
168 .add("height", getHeight())
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DCircleBitmapDrawable.java55 int height = bounds.bottom - bounds.top;
61 mDrawable.setCornerRadius(Math.min(width, height) / 2f);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DPinnedHeaderListAdapter.java149 int height = listView.getPinnedHeaderHeight(i);
150 bottomHeaderHeight += height;
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DPinnedHeaderListAdapter.java139 int height = listView.getPinnedHeaderHeight(i);
140 bottomHeaderHeight += height;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInsettableFrameLayout.java88 public LayoutParams(int width, int height) { argument
89 super(width, height);

Completed in 805 milliseconds

1234567891011>>