Searched defs:height (Results 251 - 275 of 280) sorted by relevance

<<1112

/packages/apps/FMRadio/src/com/android/fmradio/views/
H A DFmScroller.java277 private void setGridViewHeight(int height) { argument
279 params.height = height;
466 return mHeader.getLayoutParams().height;
470 * Set the height of the toolbar and update its tint accordingly.
473 public void setHeaderHeight(int height) { argument
475 toolbarLayoutParams.height = height;
481 * Get header height. Used in ObjectAnimator
483 * @return The header height
760 setMinHeight(int height) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java128 public void setSize(int width, int height) { argument
129 Assert.assertTrue(width >= 0 && height >= 0);
133 mScreenHeight = height;
138 gl.glViewport(0, 0, width, height);
141 GLU.gluOrtho2D(gl, 0, width, 0, height);
150 Matrix.translateM(matrix, 0, 0, height, 0);
177 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument
185 scale(width, height, 1);
213 public void fillRect(float x, float y, float width, float height, int color) { argument
219 scale(width, height,
266 textureRect(float x, float y, float width, float height) argument
339 drawBoundTexture( BasicTexture texture, int x, int y, int width, int height) argument
372 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
377 drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha) argument
547 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument
989 getBounds(Rect bounds, int x, int y, int width, int height) argument
[all...]
H A DGLES20Canvas.java346 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...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPositionController.java93 // These are the limits for width / height of the picture in film mode.
271 if (s.width == 0 || s.height == 0) return;
274 b.mImageH = s.height;
279 if (s.width == 0 || s.height == 0) return;
287 needUpdate |= setBoxSize(index, s.width, s.height, false);
295 private boolean setBoxSize(int i, int width, int height, boolean isViewSize) { argument
304 if (width == b.mImageW && height == b.mImageH) {
315 float ratio = (width > height)
317 : (float) b.mImageH / height;
320 b.mImageH = height;
[all...]
H A DSlotView.java59 public void onSlotSizeChanged(int width, int height); argument
60 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height); argument
377 // (1) Specify slotWidth and slotHeight: they specify the width and height
382 // width and height of each slot is determined automatically.
461 // (2) mContentLength: the width (or height) we need to display all the
472 int majorLength, int minorLength, /* The view width and height */
473 int majorUnitSize, int minorUnitSize, /* The slot width and height */
524 public void setSize(int width, int height) { argument
526 mHeight = height;
H A DPhotoView.java57 public int height; field in class:PhotoView.Size
65 // not avaiable, width = height = 0.
516 // Get the width and height in framework orientation because the given
639 mSize.height = getRotated(mRotation, h, w);
733 int s = (int) (scale * Math.min(r.width(), r.height()) + 0.5f);
848 int drawW = getRotated(mRotation, r.width(), r.height());
849 int drawH = getRotated(mRotation, r.height(), r.width());
889 mSize.height = mScreenNail.getHeight();
897 int h = mSize.height;
899 mSize.height
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAppsCustomizePagedView.java356 protected void onDataReady(int width, int height) { argument
386 mWidgetSpacingLayout.calculateCellCount(width, height, maxCellCountX, maxCellCountY);
394 mWidgetSpacingLayout.calculateCellCount(width, height, maxCellCountX, maxWidgetCellCountY);
437 int height = MeasureSpec.getSize(heightMeasureSpec);
441 setMeasuredDimension(width, height);
442 onDataReady(width, height);
1230 lp.height = cellHeight;
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java344 public void setSize(int width, int height) { argument
346 mHeight = height;
350 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1);
353 mScreenHeight = height;
354 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0);
484 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument
485 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint);
489 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument
491 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth());
494 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument
552 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument
564 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument
573 fillRect(float x, float y, float width, float height, int color) argument
580 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument
992 getBounds(Rect bounds, int x, int y, int width, int height) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DDragLayer.java480 public LayoutParams(int width, int height) { argument
481 super(width, height);
496 public void setHeight(int height) { argument
497 this.height = height;
501 return height;
530 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height);
722 final int height = view.getMeasuredHeight();
736 float fromTop = from.top + (initialScaleY - 1f) * height / 2;
H A DPagedView.java358 // Convenience methods to get the actual width/height of the PagedView (since it is measured
364 return mViewport.height();
687 public LayoutParams(int width, int height) { argument
688 super(width, height);
772 /* Allow the height to be set as WRAP_CONTENT. This allows the particular case
781 // The children are given the same width and height as the workspace
807 if (lp.height == LayoutParams.WRAP_CONTENT) {
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.cpp47 this->height = frame_height;
64 m_pFrameYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned short) height, BORDER);
65 m_pFrameUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER);
66 m_pFrameVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER);
142 double halfheight = height / 2.0;
164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect);
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2);
246 "(%d, %d) vs (%d, %d)", width, height, Mwidth, Mheight);
259 memset(imgMos->Y.ptr[0], 255, (imgMos->Y.width * imgMos->Y.height));
374 DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation) argument
1165 FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java186 public MosaicJpeg(byte[] data, int width, int height) { argument
189 this.height = height;
196 this.height = 0;
202 public final int height; field in class:PanoramaActivity.MosaicJpeg
376 int h = size.height;
859 Uri uri = savePanorama(jpeg.data, jpeg.width, jpeg.height, orientation);
861 // Create a thumbnail whose width or height is equal or bigger
862 // than the screen's width or height.
865 int heightRatio = (int) Math.ceil((double) jpeg.height
947 savePanorama(byte[] jpegData, int width, int height, int orientation) argument
[all...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryHistoryChart.java101 void draw(Canvas canvas, int top, int height) { argument
103 int bottom = top + height;
1166 final int height = getHeight();
1168 //buildBitmap(width, height);
1170 if (DEBUG) Log.d(TAG, "onDraw: " + width + "x" + height);
1172 drawChart(canvas, width, height);
1175 void buildBitmap(int width, int height) { argument
1176 if (mBitmap != null && width == mBitmap.getWidth() && height == mBitmap.getHeight()) {
1180 if (DEBUG) Log.d(TAG, "buildBitmap: " + width + "x" + height);
1182 mBitmap = Bitmap.createBitmap(getResources().getDisplayMetrics(), width, height,
1188 drawChart(Canvas canvas, int width, int height) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemView.java320 final int height = fm.bottom - fm.top;
330 drawFolder(canvas, actualStart, y, measurements[index], height, folder,
691 Math.round(mAnimatedHeightFraction * mCoordinates.height) : mCoordinates.height;
832 "Contact image width(%d) or height(%d) is 0",
1703 * Grow the height of the item and fade it in when bringing a conversation
1712 * Grow the height of the item and fade it in when bringing a conversation
1716 ObjectAnimator height = createHeightAnimation(true);
1721 transitionSet.playTogether(height, fade);
1727 * Grow the height o
1764 setAnimatedHeightFraction(float height) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKey.java110 * The combined height in pixels of the vertical gaps belonging to this key, both above and
111 * below. I.e., mHeight + mVerticalGap = total height belonging to the key.
217 final int width, final int height, final int horizontalGap, final int verticalGap) {
219 mHeight = height - verticalGap;
238 mHitBox.set(x, y, x + width + 1, y + height);
838 * Gets the height of the key in pixels, excluding the gap.
839 * @return The height of the key in pixels, excluding the gap.
855 * The combined height in pixels of the vertical gaps belonging to this key, both above and
856 * below. I.e., getHeight() + getVerticalGap() = total height belonging to the key.
1016 final int height) {
214 Key(@ullable final String label, final int iconId, final int code, @Nullable final String outputText, @Nullable final String hintLabel, final int labelFlags, final int backgroundType, final int x, final int y, final int width, final int height, final int horizontalGap, final int verticalGap) argument
1015 Spacer(final KeyboardParams params, final int x, final int y, final int width, final int height) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DDefaultSoftKeyboard.java593 public View initView(OpenWnn parent, int width, int height) { argument
H A DTextCandidatesViewManager.java129 /** Minimum height of the category candidate view */
242 /** Minimum height of the candidate 1line view */
429 public View initView(OpenWnn parent, int width, int height) { argument
442 mKeyboardHeight += Math.round(height * KEYBOARD_VERTICAL_GAP)
924 int height = getCandidateMinimumHeight();
926 height = mCandidateCategoryMinimumHeight;
929 ViewGroup.LayoutParams params = buildLayoutParams(mViewCandidateList2nd, width, height);
1071 * @param height The height of the display
1074 private ViewGroup.LayoutParams buildLayoutParams(AbsoluteLayout layout, int width, int height) { argument
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTable.java325 private static PointF randMultiDrop(int n, float i, float j, int width, int height) { argument
326 log("randMultiDrop (%d, %f, %f, %d, %d)", n, i, j, width, height);
334 p.y = y * height + 0.05f * height * j;
349 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue();
351 - (photo.getY() + height / 2f) };
527 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue();
529 photo.setY((mHeight - height) / 2);
/packages/apps/Browser/src/com/android/browser/
H A DController.java1967 * Return the desired height for thumbnail screenshots, which are stored in
1970 * @return desired height for thumbnail screenshot.
1977 static Bitmap createScreenshot(WebView view, int width, int height) { argument
1987 int scaledHeight = height * filter_scale;
2013 width, height, true);
/packages/apps/Camera/src/com/android/camera/
H A DPhotoModule.java980 // Calculate the width and the height of the jpeg.
983 int width, height;
986 height = s.height;
988 width = s.height;
989 height = s.width;
997 mMediaSaver.addImage(jpegData, title, date, mLocation, width, height,
1217 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
1218 Log.v(TAG, "surfaceChanged:" + holder + " width=" + width + ". height="
1219 + height);
2424 onSizeChanged(int width, int height) argument
[all...]
H A DVideoModule.java765 int product = preferred.width * preferred.height;
770 if (size.width * size.height > product) {
777 mDesiredPreviewHeight = optimalSize.height;
1969 mParameters.setPictureSize(optimalSize.width, optimalSize.height);
1972 optimalSize.height);
1986 private void updateCameraScreenNailSize(int width, int height) { argument
1991 width = height;
1992 height = tmp;
1999 if (oldWidth != width || oldHeight != height) {
2000 screenNail.setSize(width, height);
2713 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DCameraAppUI.java585 * the width and height.)
610 public void onNonDecorWindowSizeChanged(int width, int height, int rotation); argument
1696 * Return the shared {@link android.graphics.SurfaceTexture}'s height.
1703 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
1706 mSurfaceHeight = height;
1709 mPreviewStatusListener.onSurfaceTextureAvailable(surface, width, height);
1715 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
1718 mSurfaceHeight = height;
1720 mPreviewStatusListener.onSurfaceTextureSizeChanged(surface, width, height);
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
H A DStaggeredGridView.java107 * or after it may need to be invalidated. e.g. if the item's height or the number
250 // the height of this view
283 public int height; field in class:StaggeredGridView.LayoutRecord
327 String result = "LayoutRecord{c=" + column + ", id=" + id + " h=" + height +
514 * however assumes that all list items have the same height. If you use a list in
662 mWindowParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
1249 final int height = getHeight();
1251 final int clearBelow = height + mItemMargin;
1345 rec.height = child.getHeight();
1541 Log.d(TAG, "onMeasure: must have an exact height o
3397 isWithinDeltaOfScreen(View descendant, int delta, int height) argument
3708 LayoutParams(int height) argument
4071 onSizeChanged(int width, int height, int oldWidth, int oldHeight) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCamera.java782 mImageSaver.addImage(jpegData, mLocation, s.width, s.height);
849 int width, height; field in class:Camera.SaveRequest
888 int height) {
893 r.height = height;
935 storeImage(r.data, r.loc, r.width, r.height, r.dateTaken,
992 int height, long dateTaken, int previewWidth) {
996 loc, orientation, data, width, height);
1954 mPreviewFrameLayout.setAspectRatio((double) size.width / size.height);
1956 // Set a preview size that is closest to the viewfinder height an
887 addImage(final byte[] data, Location loc, int width, int height) argument
991 storeImage(final byte[] data, Location loc, int width, int height, long dateTaken, int previewWidth) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DMmsUtils.java237 + "height=\"100%%\" width=\"100%%\"/>" +
251 + "height=\"100%%\" width=\"100%%\"/>" +
265 + "height=\"80%%\" width=\"100%%\"/>" +
266 "<region id=\"Text\" top=\"80%%\" left=\"0\" height=\"20%%\" "
454 final int height = messagePart.getHeight();
456 // Swap the width and height limits to match the orientation of the image so we scale the
458 if ((height > width) != (heightLimit > widthLimit)) {
474 + " height: " + height
486 height <
665 getResizedImageAsPart(final int widthLimit, final int heightLimit, final int byteLimit, final int width, final int height, final int orientation, final Uri imageUri, final Context context, final String contentType) argument
[all...]

Completed in 3966 milliseconds

<<1112