Searched refs:height (Results 101 - 125 of 632) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumSlotRenderer.java104 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { argument
120 drawContent(canvas, content, width, height, entry.rotation);
127 drawVideoOverlay(canvas, width, height);
131 drawPanoramaIcon(canvas, width, height);
134 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height);
140 AlbumSlidingWindow.AlbumEntry entry, int width, int height) {
144 drawPressedUpFrame(canvas, width, height);
151 drawPressedFrame(canvas, width, height);
154 drawSelectedFrame(canvas, width, height);
156 drawSelectedFrame(canvas, width, height);
139 renderOverlay(GLCanvas canvas, int index, AlbumSlidingWindow.AlbumEntry entry, int width, int height) argument
194 onSlotSizeChanged(int width, int height) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DAvatarRequest.java92 final int height = mDescriptor.desiredHeight;
109 bitmap = renderLetterTile(name, width, height);
111 bitmap = renderDefaultAvatar(width, height);
117 private Bitmap renderDefaultAvatar(final int width, final int height) { argument
118 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height,
140 (height > sDefaultPersonBitmap.getHeight());
148 final RectF dest = new RectF(0, 0, width, height);
156 private Bitmap renderLetterTile(final String name, final int width, final int height) { argument
158 final float halfHeight = height / 2;
159 final int minOfWidthAndHeight = Math.min(width, height);
[all...]
H A DSimSelectorAvatarRequest.java57 final int height = mDescriptor.desiredHeight;
62 return renderSimAvatarInternal(identifier, width, height, simColor, simSelected,
69 final int height, final int subColor, final boolean selected, final boolean incoming) {
72 final float halfHeight = height / 2;
73 final int minOfWidthAndHeight = Math.min(width, height);
77 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, backgroundColor);
68 renderSimAvatarInternal(final String identifier, final int width, final int height, final int subColor, final boolean selected, final boolean incoming) argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterChanSat.java105 int height = getInPixelsAllocation().getType().getY();
119 int height = getInPixelsAllocation().getType().getY();
120 Matrix m = getOriginalToScreenMatrix(width, height);
133 int height = in.getType().getY();
139 for (ty = 0; ty < height; ty += STRIP_SIZE) {
141 if (endy > height) {
142 endy = height;
/packages/apps/LegacyCamera/jni/
H A Dfeature_mos_jni.cpp59 int width=0, height=0; variable
209 void YUV420toYVU24(ImageType yvu24, ImageType yuv420sp, int width, int height) argument
211 int frameSize = width * height;
217 for (int j = 0, yp = 0; j < height; j++)
240 int height)
242 int frameSize = width * height;
250 for (int j = 0; j < height; j += 2)
278 JNIEnv* env, jobject thiz, jint width, jint height)
281 tHeight[HR] = height;
283 tHeight[LR] = int(height / H2L_FACTO
239 YUV420toYVU24_NEW(ImageType yvu24, ImageType yuv420sp, int width, int height) argument
277 Java_com_android_camera_panorama_Mosaic_allocateMosaicMemory( JNIEnv* env, jobject thiz, jint width, jint height) argument
309 decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, int height) argument
347 ConvertYVUAiToPlanarYVU(unsigned char *planar, unsigned char *in, int width, int height) argument
576 int height = mosaicHeight; local
621 int height; local
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
H A DLetterTileProvider.java91 LogUtils.w(TAG, "LetterTileProvider width(%d) or height(%d) is 0 for name %s and "
92 + "address %s.", dimensions.width, dimensions.height, displayName, address);
108 0 + dimensions.height / 2 + (mBounds.bottom - mBounds.top) / 2, mPaint);
123 if (d.width <= 0 || d.height <= 0) {
125 "LetterTileProvider width(%d) or height(%d) is 0.", d.width, d.height);
143 if (bitmap == null || bitmap.getWidth() != d.width || bitmap.getHeight() != d.height) {
146 bitmap = BitmapUtil.centerCrop(mDefaultBitmap, d.width, d.height);
148 bitmap = Bitmap.createBitmap(d.width, d.height, Bitmap.Config.ARGB_8888);
/packages/services/Car/tests/DirectRenderingClusterSample/src/android/car/cluster/sample/
H A DNavigationFragment.java116 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
117 Log.i(TAG, "surfaceChanged, holder: " + holder + ", size:" + width + "x" + height
121 mUnobscuredBounds = new Rect(40, 0, width - 80, height - 40);
124 mVirtualDisplay = createVirtualDisplay(holder.getSurface(), width, height);
142 private VirtualDisplay createVirtualDisplay(Surface surface, int width, int height) { argument
144 + "x" + height);
145 return mDisplayManager.createVirtualDisplay("Cluster-App-VD", width, height, 160, surface,
/packages/apps/Camera2/src/com/android/camera/settings/
H A DResolutionUtil.java109 return Integer.compare(size2.width() * size2.height(),
110 size.width() * size.height());
113 maxPixels = sizes.get(0).width() * sizes.get(0).height();
170 return size.width() * size.height();
278 return aspectRatio.width() + "x" + aspectRatio.height();
290 BigInteger height = BigInteger.valueOf(aspectRatio.height());
291 BigInteger gcd = width.gcd(height);
292 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue();
293 int denominator = Math.min(width.intValue(), height
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java126 public void setSize(int width, int height) { argument
127 Utils.assertTrue(width >= 0 && height >= 0);
131 mScreenHeight = height;
136 gl.glViewport(0, 0, width, height);
139 GLU.gluOrtho2D(gl, 0, width, 0, height);
148 Matrix.translateM(matrix, 0, 0, height, 0);
175 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument
183 scale(width, height, 1);
211 public void fillRect(float x, float y, float width, float height, int color) { argument
217 scale(width, height,
264 textureRect(float x, float y, float width, float height) argument
337 drawBoundTexture( BasicTexture texture, int x, int y, int width, int height) argument
370 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
375 drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha) argument
545 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument
987 getBounds(Rect bounds, int x, int y, int width, int height) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DMultiShrinkScroller.java79 * In portrait mode, the height:width ratio of the photo's starting height.
85 * to this ratio of its full height.
93 * toolbar height.
134 * header, that contains the contact photo, can expand to a height equal its width.
344 // We never want the height of the photo view to exceed its width.
371 // Permanently set photo width and height.
374 photoLayoutParams.height = mMaximumHeaderHeight;
405 actionBarGradientLayoutParams.height = mActionBarSize;
412 titleGradientLayoutParams.height
791 setHeaderHeight(int height) argument
976 setTransparentViewHeight(int height) argument
1221 calculateHeightRatioToFullyOpen(int height) argument
1226 calculateHeightRatioToBlendingStartHeight(int height) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUtilities.java101 int height = sIconHeight;
106 painter.setIntrinsicHeight(height);
119 if (width < sourceWidth || height < sourceHeight) {
123 height = (int) (width / ratio);
125 width = (int) (height * ratio);
127 } else if (sourceWidth < width && sourceHeight < height) {
130 height = sourceHeight;
144 final int top = (textureHeight-height) / 2;
154 canvas.drawRect(left, top, left+width, top+height, debugPaint);
158 icon.setBounds(left, top, left+width, top+height);
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DGlideFilmstripManager.java126 * Create a full size drawable request for a given width and height that is
137 .override(size.width(), size.height());
141 * Create a full size drawable request for a given width and height that is
151 .override(size.width(), size.height());
167 .override(size.width(), size.height());
182 .override(size.width(), size.height());
204 int height = (int) Math.round(original.height() * ratio);
208 if (width > maxSize.width() || height > maxSize.height()) {
[all...]
/packages/apps/TV/src/com/android/tv/tuner/layout/
H A DScaledLayout.java139 int height = heightSpecSize - getPaddingTop() - getPaddingBottom();
141 Log.d(TAG, String.format("onMeasure width: %d, height: %d", width, height));
178 mRectArray[i] = new Rect((int) (scaleStartCol * width), (int) (scaleStartRow * height),
179 (int) (scaleEndCol * width), (int) (scaleEndRow * height));
186 // If the height of the measured child view is bigger than the height of the calculated
187 // region by the given ScaleLayoutParams, the height of the region should be increased
189 if (child.getMeasuredHeight() > mRectArray[i].height()) {
190 int overflowedHeight = child.getMeasuredHeight() - mRectArray[i].height();
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DTextureViewHelper.java106 int height = bottom - top;
108 if (mWidth != width || mHeight != height || mOrientation != rotation) {
110 mHeight = height;
205 float previewHeight = previewRect.height();
279 RectF rotatedRect = new RectF(normalRect.width() / 2 - normalRect.height() / 2,
280 normalRect.height() / 2 - normalRect.width() / 2,
281 normalRect.width() / 2 + normalRect.height() / 2,
282 normalRect.height() / 2 + normalRect.width() / 2);
314 * Updates the transform matrix based current width and height of
419 int height
464 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
476 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
[all...]
/packages/apps/Gallery/src/com/android/camera/
H A DHighlightView.java91 float height = mDrawRect.height();
93 mDrawRect.top + (height / 2),
111 int height = mResizeDrawableDiagonal.getIntrinsicHeight();
118 + (mDrawRect.height() / 2) - d - height / 2;
249 dy * (mCropRect.height() / r.height()));
261 float yDelta = dy * (mCropRect.height() / r.height());
[all...]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DRecycleBitmapPool.java77 private static int getSize(int width, int height) { argument
78 if (width >= 2048 || height >= 2048) {
81 return width * height * 4;
110 public Bitmap getRecycledBitmap(int width, int height) { argument
111 int key = getSize(width, height);
135 Log.d(TAG, "not avaialbe for " + width + "," + height);
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
H A DVideoSurfaceTextureImpl.java135 private boolean createSurface(int width, int height) { argument
138 "width: " + width + ", height: " + height + " " + toString());
139 savedSurfaceTexture.setDefaultBufferSize(width, height);
178 public void onSurfaceTextureAvailable(SurfaceTexture newSurfaceTexture, int width, int height) { argument
192 surfaceCreated = createSurface(width, height);
232 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {} argument
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DRotateImageView.java121 int height = getHeight() - top - bottom;
127 ((width < w) || (height < h))) {
128 float ratio = Math.min((float) width / w, (float) height / h);
129 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f);
131 canvas.translate(left + width / 2, top + height / 2);
156 final int miniThumbHeight = param.height
H A DRotateLayout.java51 int height = bottom - top;
55 mChild.layout(0, 0, width, height);
59 mChild.layout(0, 0, height, width);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DPendingAttachmentData.java58 @NonNull final Uri sourceUri, final int width, final int height,
60 super(caption, contentType, sourceUri, width, height, onlySingleAttachment);
75 final String contentType, final Uri sourceUri, final int width, final int height) {
77 return new PendingAttachmentData(caption, contentType, sourceUri, width, height,
82 final String contentType, final Uri sourceUri, final int width, final int height,
85 return new PendingAttachmentData(caption, contentType, sourceUri, width, height,
57 PendingAttachmentData(final String caption, final String contentType, @NonNull final Uri sourceUri, final int width, final int height, final boolean onlySingleAttachment) argument
74 createPendingAttachmentData(final String caption, final String contentType, final Uri sourceUri, final int width, final int height) argument
81 createPendingAttachmentData(final String caption, final String contentType, final Uri sourceUri, final int width, final int height, final boolean onlySingleAttachment) argument
/packages/apps/TV/src/com/android/tv/menu/
H A DPlaybackProgressBar.java132 int height = getHeight() - getPaddingTop() - getPaddingBottom();
133 mProgressDrawable.setBounds(0, 0, width, height);
155 int height = mProgressDrawable.getBounds().height();
158 if (!isEqualRect(oldBounds, left, 0, right, height)) {
159 drawable.setBounds(left, 0, right, height);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DRotateLayout.java56 int height = bottom - top;
60 mChild.layout(0, 0, width, height);
64 mChild.layout(0, 0, height, width);
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DViewPagerTabStrip.java96 int height = getHeight();
99 height - mSelectedUnderlineThickness,
101 height,
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.h95 int width, height; member in class:Blend
103 void FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect);
107 int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DViewPagerTabStrip.java93 int height = getHeight();
94 canvas.drawRect(selectedLeft, height - mSelectedUnderlineThickness,
95 selectedRight, height, mSelectedUnderlinePaint);

Completed in 4224 milliseconds

1234567891011>>