/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlBar.java | 40 private int mWidth; field in ZoomControlBar 64 pos = mWidth - mTotalIconWidth - x; in getSliderPosition() 75 mWidth = w; in onSizeChanged() 78 mSliderLength = mWidth - (2 * mTotalIconWidth); in onSizeChanged() 83 if (!isEnabled() || (mWidth == 0)) return false; in dispatchTouchEvent() 129 mBar.layout(mTotalIconWidth, 0, mWidth - mTotalIconWidth, height); in onLayout() 141 mZoomOut.layout(mWidth - mIconWidth, 0, mWidth, height); in onLayout() 145 mZoomIn.layout(mWidth - mIconWidth, 0, mWidth, height); in onLayout()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorOpacityView.java | 40 private float mWidth; field in ColorOpacityView 112 if (mDotX > mWidth - mBorder) { in onTouchEvent() 113 mDotX = mWidth - mBorder; in onTouchEvent() 115 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent() 128 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton() 140 mWidth = w; in onSizeChanged() 153 mBorder, mBorder, mWidth - mBorder, mBorder, color1, color2, Shader.TileMode.CLAMP); in updatePaint() 162 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mCheckPaint); in onDraw() 163 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1); in onDraw() 164 canvas.drawLine(mDotX, mDotY, mWidth - mBorder, mDotY, mLinePaint1); in onDraw()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | PanoProgressBar.java | 42 private float mWidth; field in PanoProgressBar 101 mWidth = w; in onSizeChanged() 103 mDrawBounds.set(0, 0, mWidth, mHeight); in onSizeChanged() 122 mLeftMostProgress = mWidth; in setRightIncreasing() 123 mRightMostProgress = mWidth; in setRightIncreasing() 124 mProgressOffset = mWidth; in setRightIncreasing() 142 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress() 144 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress() 180 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
|
/packages/apps/Camera/src/com/android/camera/ |
D | PanoProgressBar.java | 42 private float mWidth; field in PanoProgressBar 101 mWidth = w; in onSizeChanged() 103 mDrawBounds.set(0, 0, mWidth, mHeight); in onSizeChanged() 122 mLeftMostProgress = mWidth; in setRightIncreasing() 123 mRightMostProgress = mWidth; in setRightIncreasing() 124 mProgressOffset = mWidth; in setRightIncreasing() 142 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress() 144 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress() 180 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoProgressBar.java | 41 private float mWidth; field in PanoProgressBar 98 mWidth = w; in onSizeChanged() 100 mDrawBounds.set(0, 0, mWidth, mHeight); in onSizeChanged() 119 mLeftMostProgress = mWidth; in setRightIncreasing() 120 mRightMostProgress = mWidth; in setRightIncreasing() 121 mProgressOffset = mWidth; in setRightIncreasing() 139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress() 141 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress() 177 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeEffect.java | 86 private int mWidth; field in EdgeEffect 151 mWidth = width; in setSize() 321 if (mWidth < mMinWidth) { in draw() 323 int glowLeft = (mWidth - mMinWidth)/2; in draw() 324 mGlow.setBounds(glowLeft, 0, mWidth - glowLeft, glowBottom); in draw() 327 mGlow.setBounds(0, 0, mWidth, glowBottom); in draw() 335 if (mWidth < mMinWidth) { in draw() 337 int edgeLeft = (mWidth - mMinWidth)/2; in draw() 338 mEdge.setBounds(edgeLeft, 0, mWidth - edgeLeft, edgeBottom); in draw() 341 mEdge.setBounds(0, 0, mWidth, edgeBottom); in draw()
|
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() 86 mWidth = width; in setSize() 92 mExtTexture.setSize(mWidth, mHeight); in resizeTexture() 93 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in resizeTexture() 99 return mWidth; in getWidth()
|
D | Paper.java | 33 private int mWidth; field in Paper 37 distance /= mWidth; // make it relative to width in overScroll() 46 velocity /= mWidth; // make it relative to width in edgeReached() 65 mWidth = width; in setSize() 75 float x = screenX + mWidth / 4; in getTransform() 76 int range = 3 * mWidth / 2; in getTransform()
|
D | TiledScreenNail.java | 48 private int mWidth; field in TiledScreenNail 56 mWidth = bitmap.getWidth(); in TiledScreenNail() 81 mWidth = Math.round(scale * width); in setSize() 100 mWidth = newer.mWidth; in combine() 122 return mWidth; in getWidth()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeekView.java | 134 protected int mWidth; field in SimpleWeekView 369 int dayStart = mShowWeekNum ? (mWidth - mPadding * 2) / mNumCells + mPadding : mPadding; in getDayFromLocation() 370 if (x < dayStart || x > mWidth - mPadding) { in getDayFromLocation() 374 int dayPosition = (int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding)); in getDayFromLocation() 419 r.right = mWidth - mPadding; in drawBackground() 441 int x = (mWidth - mPadding * 2) / divisor + mPadding; in drawWeekNums() 458 int x = (2 * i + 1) * (mWidth - mPadding * 2) / (divisor) + mPadding; in drawWeekNums() 488 int x = (mWidth - mPadding * 2) / mNumCells + mPadding; in drawDaySeparators() 495 mWidth = w; in onSizeChanged() 511 mSelectedLeft = selectedPosition * (mWidth - mPadding * 2) / mNumCells in updateSelectionPositions() [all …]
|
D | MonthWeekEventsView.java | 270 if (unsortedEvents == null || mWidth <= MIN_WEEK_WIDTH || getContext() == null) { in createDna() 283 int effectiveWidth = mWidth - mPadding * 2; in createDna() 576 int effectiveWidth = mWidth; in computeDayLeftPosition() 606 lines[i++] = mWidth; in drawDaySeparators() 646 r.right = mWidth; in drawBackground() 1012 int effectiveWidth = mWidth - mPadding * 2; in updateSelectionPositions() 1023 if (x < dayStart || x > mWidth - mPadding) { in getDayIndexFromLocation() 1027 return ((int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding))); in getDayIndexFromLocation() 1076 int dayPosition = (int) ((event.getX() - dayStart) * mNumDays / (mWidth in onHoverEvent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | FastBitmapDrawable.java | 30 private int mWidth; field in FastBitmapDrawable 38 mWidth = mBitmap.getWidth(); in FastBitmapDrawable() 41 mWidth = mHeight = 0; in FastBitmapDrawable() 78 return mWidth; in getIntrinsicWidth() 88 return mWidth; in getMinimumWidth() 99 mWidth = mBitmap.getWidth(); in setBitmap() 102 mWidth = mHeight = 0; in setBitmap()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
D | FallRS.java | 132 proj.loadProjectionNormalized(mWidth, mHeight); in resize() 157 final int width = mWidth > mHeight ? mHeight : mWidth; in createMesh() 158 final int height = mWidth > mHeight ? mWidth : mHeight; in createMesh() 217 mWorldState.width = mWidth; in createState() 226 mWorldState.rotate = mWidth > mHeight ? 1 : 0; in createState() 304 proj.loadProjectionNormalized(mWidth, mHeight); in createProgramVertex() 380 int dropX = (int) ((x / mWidth) * mMeshWidth); in addDrop()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 61 private final int mWidth; field in TiledTexture 124 mWidth = width + 2 * BORDER_SIZE; in setSize() 196 mWidth = bitmap.getWidth(); in TiledTexture() 200 for (int x = 0, w = mWidth; x < w; x += CONTENT_SIZE) { in TiledTexture() 207 Math.min(CONTENT_SIZE, mWidth - x), in TiledTexture() 273 float scaleX = (float) width / mWidth; in drawMixed() 292 float scaleX = (float) width / mWidth; in draw() 332 return mWidth; in getWidth() 342 draw(canvas, x, y, mWidth, mHeight); in draw()
|
D | ColorTexture.java | 25 private int mWidth; field in ColorTexture 30 mWidth = 1; in ColorTexture() 36 draw(canvas, x, y, mWidth, mHeight); in draw() 50 mWidth = width; in setSize() 56 return mWidth; in getWidth()
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
D | GalaxyRS.java | 42 private int mWidth; field in GalaxyRS 60 mWidth = width; in init() 148 mWidth = w; in updateProjectionMatrices() 151 proj.loadOrthoWindow(mWidth, mHeight); in updateProjectionMatrices() 152 Matrix4f projNorm = getProjectionNormalized(mWidth, mHeight); in updateProjectionMatrices() 164 proj.loadOrthoWindow(mWidth, mHeight); in createProgramVertex() 171 updateProjectionMatrices(mWidth, mHeight); in createProgramVertex() 269 mWidth = width; in resize()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 98 public final int mWidth; field in Key 188 mWidth = width - params.mHorizontalGap; in Key() 241 mWidth = Math.round(keyWidth - horizontalGap); in Key() 391 key.mWidth, in computeHashCode() 418 && o.mWidth == mWidth in equalsInternal() 457 Constants.printableCode(mCode), label, mX, mY, mWidth, mHeight, mHintLabel, in toString() 699 return (attrs == null) ? mWidth in getDrawWidth() 700 : mWidth - attrs.mVisualInsetsLeft - attrs.mVisualInsetsRight; in getDrawWidth() 749 final int right = left + mWidth; in squaredDistanceToEdge()
|
D | KeyboardId.java | 63 public final int mWidth; field in KeyboardId 81 mWidth = params.mKeyboardWidth; in KeyboardId() 107 id.mWidth, in computeHashCode() 129 && other.mWidth == mWidth in equals() 194 orientation, mWidth, mHeight, in toString()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | PanelSwitcher.java | 37 private int mWidth; field in PanelSwitcher 100 mWidth = w; in onSizeChanged() 101 inLeft = new TranslateAnimation(mWidth, 0, 0, 0); in onSizeChanged() 103 outLeft = new TranslateAnimation(0, -mWidth, 0, 0); in onSizeChanged() 104 inRight = new TranslateAnimation(-mWidth, 0, 0, 0); in onSizeChanged() 106 outRight = new TranslateAnimation(0, mWidth, 0, 0); in onSizeChanged()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | CountingTimerView.java | 89 protected float mWidth = 0; field in CountingTimerView.UnsignedTime 119 this.mWidth = unsignedTime.mWidth; in UnsignedTime() 127 mWidth = time.length() * mEm; in updateWidth() 131 mWidth = mLabelWidth = 0; in resetWidth() 137 return mWidth + mLabelWidth; in calcTotalWidth() 145 return mWidth; in getWidth() 202 mWidth += (mMinusWidth - mEm); in updateWidth()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | ImageModel.java | 66 private int mWidth; field in ImageModel 93 mWidth = uriImage.getWidth(); in initModelFromUri() 106 mWidth = uriImage.getWidth(); in decodeImageBounds() 110 Log.v(TAG, "Image bounds: " + mWidth + "x" + mHeight); in decodeImageBounds() 127 return mWidth; in getWidth() 156 byte[] data = UriImage.getResizedImageData(mWidth, mHeight, in createBitmap()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoCarousel.java | 58 private int mWidth; field in PhotoCarousel 212 if (width < mWidth && height < mHeight) { in setScaleType() 280 mWidth = right - left; in onLayout() 282 mOrientation = (mWidth > mHeight ? LANDSCAPE : PORTRAIT); in onLayout() 284 mLongSide = (int) Math.max(mWidth, mHeight); in onLayout() 285 mShortSide = (int) Math.min(mWidth, mHeight); in onLayout()
|
D | PhotoTable.java | 120 private int mWidth; field in PhotoTable 423 mWidth = right - left; in onLayout() 425 mLongSide = (int) (mImageRatio * Math.max(mWidth, mHeight)); in onLayout() 426 mShortSide = (int) (mImageRatio * Math.min(mWidth, mHeight)); in onLayout() 428 boolean isLandscape = mWidth > mHeight; in onLayout() 521 photo.setX(mSlot == PREV ? -2 * width : mWidth + 2 * width); in onPostExecute() 684 float offset = (((float) mWidth + scale * (photoWidth - 2f * mInset)) / 2f); in placeOnDeck() 735 final float[] o = { mWidth + mLongSide / 2f, in fling() 805 mWidth, mHeight); in dropOnTable()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | ProjectPickerAdapter.java | 246 private int mWidth; field in LoadPreviewBitmapTask 258 mWidth = width; in LoadPreviewBitmapTask() 276 mWidth, in doInBackground() 280 final Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, in doInBackground() 287 (mWidth - previewBitmap.getWidth()) / 2, in doInBackground() 303 result = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.ARGB_8888); in onPostExecute()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | BaseImage.java | 55 private int mWidth = UNKNOWN_LENGTH; field in BaseImage 148 mWidth = options.outWidth; in setupDimension() 151 mWidth = 0; in setupDimension() 159 if (mWidth == UNKNOWN_LENGTH) setupDimension(); in getWidth() 160 return mWidth; in getWidth()
|