/packages/apps/Camera2/src/com/android/camera/util/ |
D | AspectRatio.java | 37 private final int mHeight; field in AspectRatio 45 mHeight = height; in AspectRatio() 68 return mHeight; in getHeight() 76 return (float) mWidth / (float) mHeight; in toFloat() 88 if (mHeight != that.mHeight) in equals() 98 return Objects.hashCode(mWidth, mHeight); in hashCode() 110 return of(mHeight, mWidth); in transpose() 154 return this.mWidth * other.mHeight > other.mWidth * this.mHeight; in isWiderThan() 164 return this.mWidth * other.mHeight < other.mWidth * this.mHeight; in isTallerThan() 177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorCompareView.java | 45 private float mHeight; field in ColorCompareView 99 if (x> mWidth-2*mHeight) { in onTouchEvent() 115 mHeight = h; in onSizeChanged() 126 mOrigRegion.lineTo(mWidth, mHeight); in updatePaint() 127 mOrigRegion.lineTo(mWidth - mHeight * 2, mHeight); in updatePaint() 128 mOrigRegion.lineTo(mWidth - mHeight, 0); in updatePaint() 132 mRegion.lineTo(mWidth - mHeight, 0); in updatePaint() 133 mRegion.lineTo(mWidth - mHeight * 2, mHeight); in updatePaint() 134 mRegion.lineTo(0, mHeight); in updatePaint() 142 canvas.drawRect(mBorder, 0, mWidth, mHeight, mCheckPaint); in onDraw()
|
D | ColorValueView.java | 42 private float mHeight; field in ColorValueView 98 if (mDotY > mHeight - mBorder) { in onTouchEvent() 99 mDotY = mHeight - mBorder; in onTouchEvent() 101 mHSVO[2] = (mDotY - mBorder) / (mHeight - mBorder * 2); in onTouchEvent() 113 float pos = mHSVO[2] * (mHeight - mBorder * 2); in setupButton() 126 mHeight = h; in onSizeChanged() 139 Shader sg = new LinearGradient(mBorder, mBorder, mBorder, mHeight - mBorder, color1, color2, in updatePaint() 148 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1); in onDraw() 149 canvas.drawLine(mDotX, mDotY, mDotX, mHeight - mBorder, mLinePaint2); in onDraw()
|
D | ColorRectView.java | 63 private int mHeight; field in ColorRectView 101 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent() 104 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() 109 double hue = Math.PI * 2 * (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() 123 mHeight = h; in onSizeChanged() 152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP); in setUpColorPanel() 155 0, mBorder, 0, mHeight - mBorder, colors2, null, Shader.TileMode.CLAMP); in setUpColorPanel() 167 rect.bottom = mHeight - mBorder; in onDraw() 183 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * Math.toRadians(hue) / (Math.PI * 2)); in updateDot() 184 mDotY = (float) ((1 - sat) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
|
D | ColorSVRectView.java | 57 private int mHeight; field in ColorSVRectView 148 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent() 151 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() 156 float value = (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() 170 mHeight = h; in onSizeChanged() 185 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * sat); in updateDot() 186 mDotY = (float) ((1 - val) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ModeTransitionView.java | 75 private int mHeight = 0; field in ModeTransitionView 125 mShadePath.addRect(0, mHeight - getScrollDistance(), mWidth, mHeight, in updateShade() 135 if (shadeHeight < mHeight / 2 || mHeight == 0) { in updateShade() 138 int alpha = ((int) shadeHeight - mHeight / 2) * ALPHA_FULLY_OPAQUE in updateShade() 139 / (mHeight / 2); in updateShade() 156 scrollDistance = Math.min(scrollDistance, mHeight); in setScrollDistance() 160 scrollDistance = Math.max(scrollDistance, -mHeight); in setScrollDistance() 196 mHeight = bottom - top; in onLayout() 198 mIconRect.set(mWidth / 2 - mIconSize / 2, mHeight / 2 - mIconSize / 2, in onLayout() 199 mWidth / 2 + mIconSize / 2, mHeight / 2 + mIconSize / 2); in onLayout() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | TextureViewHelper.java | 54 private int mHeight = 0; field in TextureViewHelper 108 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange() 110 mHeight = height; in onLayoutChange() 129 mPreviewArea.set(0, 0, mWidth, mHeight); in clearTransform() 201 RectF previewRect = new RectF(0, 0, mWidth, mHeight); 230 mPreviewArea.set(0, 0, mWidth, mHeight); 294 transform.preRotate(270, mWidth / 2, mHeight / 2); 298 transform.preRotate(180, mWidth / 2, mHeight / 2); 302 transform.preRotate(90, mWidth / 2, mHeight / 2); 333 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) { [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessagePartData.java | 95 private int mHeight; field in MessagePartData 152 mHeight = height; in MessagePartData() 232 mHeight = cursor.getInt(INDEX_HEIGHT); in bind() 245 if (mHeight != UNSPECIFIED_SIZE) { in populate() 246 values.put(PartColumns.HEIGHT, mHeight); in populate() 270 insert.bindLong(INDEX_HEIGHT, mHeight); in getInsertStatement() 328 return mHeight; in getHeight() 350 mHeight = in.readInt(); in MessagePartData() 361 dest.writeInt(mHeight); in writeToParcel() 375 return mWidth == lhs.mWidth && mHeight == lhs.mHeight && in equals() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | BitmapWorkerOptions.java | 42 private int mHeight; field in BitmapWorkerOptions 59 private int mHeight; field in BitmapWorkerOptions.Builder 66 mHeight = MAX_IMAGE_DIMENSION_PX; in Builder() 81 final int largestDim = Math.max(mWidth, mHeight); in build() 85 mHeight *= scale; in build() 90 options.mHeight = mHeight; in build() 128 mHeight = height; in height() 168 return mHeight; in getHeight()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | ImagePersistTask.java | 42 private int mHeight; field in ImagePersistTask 62 mHeight = height; in ImagePersistTask() 101 Assert.equals(mHeight, bitmap.getWidth()); in doInBackgroundTimed() 102 clippedWidth = (int) (mHeight * mHeightPercent); in doInBackgroundTimed() 106 Assert.equals(mHeight, bitmap.getHeight()); in doInBackgroundTimed() 108 clippedHeight = (int) (mHeight * mHeightPercent); in doInBackgroundTimed() 113 mHeight = clippedHeight; in doInBackgroundTimed() 166 mCallback.onMediaReady(mOutputUri, ContentType.IMAGE_JPEG, mWidth, mHeight); in onPostExecute()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SurfaceTextureScreenNail.java | 38 private int mWidth, mHeight; field in SurfaceTextureScreenNail 47 mExtTexture.setSize(mWidth, mHeight); in acquireSurfaceTexture() 49 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in acquireSurfaceTexture() 87 mHeight = height; in setSize() 92 mExtTexture.setSize(mWidth, mHeight); in resizeTexture() 93 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in resizeTexture() 104 return mHeight; in getHeight()
|
D | TiledScreenNail.java | 49 private int mHeight; field in TiledScreenNail 57 mHeight = bitmap.getHeight(); in TiledScreenNail() 82 mHeight = Math.round(scale * height); in setSize() 101 mHeight = newer.mHeight; in combine() 127 return mHeight; in getHeight()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | ColorTexture.java | 26 private int mHeight; field in ColorTexture 31 mHeight = 1; in ColorTexture() 36 draw(canvas, x, y, mWidth, mHeight); in draw() 51 mHeight = height; in setSize() 61 return mHeight; in getHeight()
|
D | TiledTexture.java | 62 private final int mHeight; field in TiledTexture 125 mHeight = height + 2 * BORDER_SIZE; in setSize() 204 mHeight = bitmap.getHeight(); in TiledTexture() 208 for (int y = 0, h = mHeight; y < h; y += CONTENT_SIZE) { in TiledTexture() 215 Math.min(CONTENT_SIZE, mHeight - y)); in TiledTexture() 281 float scaleY = (float) height / mHeight; in drawMixed() 300 float scaleY = (float) height / mHeight; in draw() 344 return mHeight; in getHeight() 349 draw(canvas, x, y, mWidth, mHeight); in draw()
|
D | FadeTexture.java | 32 private final int mHeight; field in FadeTexture 38 mHeight = height; in FadeTexture() 46 draw(canvas, x, y, mWidth, mHeight); in draw() 61 return mHeight; in getHeight()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeekView.java | 136 protected int mHeight = DEFAULT_HEIGHT; field in SimpleWeekView 220 mHeight = params.get(VIEW_PARAMS_HEIGHT); in setWeekParams() 221 if (mHeight < MIN_HEIGHT) { in setWeekParams() 222 mHeight = MIN_HEIGHT; in setWeekParams() 414 r.bottom = mHeight - 1; in drawBackground() 430 int y = ((mHeight + MINI_DAY_NUMBER_TEXT_SIZE) / 2) - DAY_SEPARATOR_WIDTH; in drawWeekNums() 476 r.bottom = mHeight - 1; in drawDaySeparators() 489 canvas.drawLine(x, 0, x, mHeight, p); in drawDaySeparators() 520 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mHeight); in onMeasure() local
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 56 int mHeight; field in BitmapRegionTileSource 73 mHeight = mDecoder.getHeight(); in BitmapRegionTileSource() 93 mWidth, mHeight, in BitmapRegionTileSource() 111 return mHeight; in getImageHeight() 161 mOverlapRegion.set(0, 0, mWidth, mHeight); in getTileWithoutReusingBitmap() 191 float scale = (float) targetSize / Math.max(mWidth, mHeight); in decodePreview()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardId.java | 76 public final int mHeight; field in KeyboardId 91 mHeight = params.mKeyboardHeight; in KeyboardId() 110 id.mHeight, in computeHashCode() 131 && other.mHeight == mHeight in equals() 197 mWidth, mHeight, in toString()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | LeaveBehindItem.java | 55 private int mHeight; field in LeaveBehindItem 115 mHeight = height; in bind() 159 return new LeaveBehindData(getData(), mUndoOp, mHeight); in getLeaveBehindData() 169 final ObjectAnimator height = ObjectAnimator.ofInt(this, "animatedHeight", mHeight, 0); in startShrinkAnimation() 170 setMinimumHeight(mHeight); in startShrinkAnimation() 279 MeasureSpec.makeMeasureSpec(mHeight, MeasureSpec.EXACTLY)); in onMeasure()
|
/packages/services/BuiltInPrintService/src/com/android/bips/jni/ |
D | SizeD.java | 28 private final double mHeight; field in SizeD 34 mHeight = height; in SizeD() 53 return mHeight; in getHeight() 64 out.writeDouble(mHeight); in writeToParcel()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | BaseImage.java | 56 private int mHeight = UNKNOWN_LENGTH; field in BaseImage 149 mHeight = options.outHeight; in setupDimension() 152 mHeight = 0; in setupDimension() 164 if (mHeight == UNKNOWN_LENGTH) setupDimension(); in getHeight() 165 return mHeight; in getHeight()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrYuvLuminanceSource.java | 28 private int mHeight; field in QrYuvLuminanceSource 34 mHeight = height; in QrYuvLuminanceSource() 48 if (left + crop_width > mWidth || top + crop_height > mHeight) { in crop() 61 if (y < 0 || y >= mHeight) { in getRow()
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrYuvLuminanceSource.java | 28 private int mHeight; field in QrYuvLuminanceSource 34 mHeight = height; in QrYuvLuminanceSource() 48 if (left + crop_width > mWidth || top + crop_height > mHeight) { in crop() 61 if (y < 0 || y >= mHeight) { in getRow()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragHoverListener.java | 44 private final IntSupplier mHeight; field in DragHoverListener 72 mHeight = heightSupplier; in DragHoverListener() 85 return mHeight.getAsInt(); in DragHoverListener() 189 float topBottomRegionHeight = mHeight.getAsInt() in insideDragZone() 193 boolean shouldScrollDown = mCurrentPosition.y > mHeight.getAsInt() - topBottomRegionHeight in insideDragZone()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | SpacePreference.java | 35 private int mHeight; field in SpacePreference 53 mHeight = a.getDimensionPixelSize(0, 0); in SpacePreference() 58 mHeight = height; in setHeight() 65 LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, mHeight); in onBindViewHolder()
|