/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 302 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 D | ImageCrop.java | 100 .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 D | TiledTexture.java | 121 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 D | DragView.java | 67 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 D | PreloadIconDrawable.java | 125 (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 D | NotificationFooterLayout.java | 156 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 D | BaseCardView.java | 232 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 D | AttachmentTile.java | 57 // 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 D | FolderDisplayer.java | 183 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 D | ThumbnailLoadTask.java | 63 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 D | ModeOptionsOverlay.java | 174 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 D | CircleFramedDrawable.java | 63 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 D | jpeg_writer.cpp | 44 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 D | TiledImageView.java | 176 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 D | KeyboardParams.java | 37 /** 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 D | EvsGlDisplay.cpp | 180 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 D | BlockingGLTextureView.java | 67 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 D | ResourceSurfaceTextureImpl.java | 115 mSurfaceTexture.setDefaultBufferSize(mPreviewSize.width(), mPreviewSize.height()); 134 mSurfaceTexture.setDefaultBufferSize(defaultBufferSize.width(), defaultBufferSize.height());
|
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | PlaceholderItem.java | 50 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 D | PointMeteringParameters.java | 95 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 D | AndroidImageReaderProxy.java | 46 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 D | CircleBitmapDrawable.java | 55 int height = bounds.bottom - bounds.top; 61 mDrawable.setCornerRadius(Math.min(width, height) / 2f);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | PinnedHeaderListAdapter.java | 149 int height = listView.getPinnedHeaderHeight(i); 150 bottomHeaderHeight += height;
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
H A D | PinnedHeaderListAdapter.java | 139 int height = listView.getPinnedHeaderHeight(i); 140 bottomHeaderHeight += height;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InsettableFrameLayout.java | 88 public LayoutParams(int width, int height) { argument 89 super(width, height);
|