/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ShapeHolder.java | 81 public float getWidth() { in getWidth() method in ShapeHolder 82 return shape.getShape().getWidth(); in getWidth() 94 s.resize(s.getWidth(), height); in setHeight()
|
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | ListViewRemovalAnimation.java | 109 v.setAlpha(1 - deltaXAbs / v.getWidth()); 124 if (deltaXAbs > v.getWidth() / 4) { 126 fractionCovered = deltaXAbs / v.getWidth(); 127 endX = deltaX < 0 ? -v.getWidth() : v.getWidth(); 132 fractionCovered = 1 - (deltaXAbs / v.getWidth());
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | Camera2VideoFragment.java | 195 configureTransform(mTextureView.getWidth(), mTextureView.getHeight()); 236 if (size.getWidth() == size.getHeight() * 4 / 3 && size.getWidth() <= 1080) { in chooseVideoSize() 258 int w = aspectRatio.getWidth(); in chooseOptimalSize() 261 if (option.getHeight() == option.getWidth() * h / w && in chooseOptimalSize() 262 option.getWidth() >= width && option.getHeight() >= height) { in chooseOptimalSize() 295 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume() 444 mTextureView.setAspectRatio(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in openCamera() 446 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera() 494 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startPreview() 558 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform() [all …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | DefaultCardStreamAnimator.java | 81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator() 105 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeOutAnimator() 108 endX = deltaX < 0 ? -view.getWidth() : view.getWidth(); in getSwipeOutAnimator()
|
/development/samples/RenderScript/Levels/src/com/android/rs/levels/ |
D | LevelsDalvikActivity.java | 157 mInPixels = new int[mBitmapIn.getHeight() * mBitmapIn.getWidth()]; in onCreate() 158 mOutPixels = new int[mBitmapOut.getHeight() * mBitmapOut.getWidth()]; in onCreate() 159 mBitmapIn.getPixels(mInPixels, 0, mBitmapIn.getWidth(), 0, 0, in onCreate() 160 mBitmapIn.getWidth(), mBitmapIn.getHeight()); in onCreate() 171 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap() 227 mBitmapOut.setPixels(mOutPixels, 0, mBitmapOut.getWidth(), 0, 0, in filter() 228 mBitmapOut.getWidth(), mBitmapOut.getHeight()); in filter()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | Pictures.java | 68 canvas.drawPicture(mPicture, new RectF(0, 100, getWidth(), 200)); in onDraw() 70 mDrawable.setBounds(0, 200, getWidth(), 300); in onDraw()
|
D | PictureLayout.java | 121 super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); in dispatchDraw() 124 int x = getWidth()/2; in dispatchDraw() 141 dirty.set(0, 0, getWidth(), getHeight()); in invalidateChildInParent()
|
D | WindowSurface.java | 218 mPoint1.init(canvas.getWidth(), canvas.getHeight(), mMinStep); in run() 219 mPoint2.init(canvas.getWidth(), canvas.getHeight(), mMinStep); in run() 222 mPoint1.step(canvas.getWidth(), canvas.getHeight(), in run() 224 mPoint2.step(canvas.getWidth(), canvas.getHeight(), in run()
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
D | ThumbnailRadioButton.java | 71 rectChecked.setIntrinsicWidth(bitmap.getWidth() + strokeWidth); in setThumbnail() 81 rectUnchecked.setIntrinsicWidth(bitmap.getWidth() + strokeWidth); in setThumbnail() 104 setPadding(getPaddingLeft() + (int) ((bitmap.getWidth() - w) / 2.f + .5f), in setThumbnail()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | SystemPointerIconButton.java | 46 final int minX = getWidth() / 4; in onResolvePointerIcon() 47 final int maxX = getWidth() - minX; in onResolvePointerIcon()
|
D | LivePointerIconButton.java | 68 final float relativeX = (event.getX(pointerIndex) / getWidth()) - 0.5f; in onResolvePointerIcon() 81 final int hotSpotX = bitmap.getWidth() / 2; in onResolvePointerIcon()
|
D | Animation3.java | 58 targetParent.getWidth() - target.getWidth() - targetParent.getPaddingLeft() - in onItemSelected()
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | ViewfinderProcessor.java | 59 yuvTypeBuilder.setX(dimensions.getWidth()); in ViewfinderProcessor() 68 rgbTypeBuilder.setX(dimensions.getWidth()); in ViewfinderProcessor() 83 mHdrTask = new ProcessingTask(mInputHdrAllocation, dimensions.getWidth()/2, true); in ViewfinderProcessor()
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
D | CustomArrayAdapter.java | 117 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), in getCroppedBitmap() 120 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap() 127 int halfWidth = bitmap.getWidth() / 2; in getCroppedBitmap()
|
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/ |
D | FoldingLayoutActivity.java | 298 mFoldLayout.getWidth(), mFoldLayout.getHeight())); in onOptionsItemSelected() 302 mFoldLayout.getWidth(), mFoldLayout.getHeight())); in onOptionsItemSelected() 402 factor = Math.abs(((float)mTranslation) / ((float) mFoldLayout.getWidth())); in onScroll() 404 if (e2.getRawX() > mFoldLayout.getWidth() * mAnchorFactor) { in onScroll() 413 if (mTranslation < -mFoldLayout.getWidth()) { in onScroll() 414 mTranslation = -mFoldLayout.getWidth(); in onScroll()
|
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
D | ListViewItemAnimations.java | 152 if (deltaXAbs > v.getWidth() / 4) { 154 fractionCovered = deltaXAbs / v.getWidth(); 155 endX = deltaX < 0 ? -v.getWidth() : v.getWidth(); 159 fractionCovered = 1 - (deltaXAbs / v.getWidth()); 239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 391 int w = aspectRatio.getWidth(); in chooseOptimalSize() 394 if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight && in chooseOptimalSize() 395 option.getHeight() == option.getWidth() * h / w) { in chooseOptimalSize() 396 if (option.getWidth() >= textureViewWidth && in chooseOptimalSize() 450 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume() 515 mImageReader = ImageReader.newInstance(largest.getWidth(), largest.getHeight(), in setUpCameraOutputs() 576 mPreviewSize.getWidth(), mPreviewSize.getHeight()); in setUpCameraOutputs() 579 mPreviewSize.getHeight(), mPreviewSize.getWidth()); in setUpCameraOutputs() 681 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in createCameraPreviewSession() 748 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform() [all …]
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
D | CustomArrayAdapter.java | 110 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), in getCroppedBitmap() 113 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap() 120 int halfWidth = bitmap.getWidth()/2; in getCroppedBitmap()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | BitmapHelper.java | 35 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight()); in scaleBitmap() 37 (int) (src.getWidth() * scaleFactor), (int) (src.getHeight() * scaleFactor), false); in scaleBitmap()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 622 configureTransform(mTextureView.getWidth(), mTextureView.getHeight()); in onViewCreated() 639 configureTransform(mTextureView.getWidth(), mTextureView.getHeight()); in onResume() 734 ImageReader.newInstance(largestJpeg.getWidth(), in setUpCameraOutputs() 742 ImageReader.newInstance(largestRaw.getWidth(), in setUpCameraOutputs() 924 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in createCameraPreviewSessionLocked() 1090 previewSize.getHeight(), previewSize.getWidth()); in configureTransform() 1093 previewSize.getWidth(), previewSize.getHeight()); in configureTransform() 1105 RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform() 1130 (float) viewWidth / previewSize.getWidth()); in configureTransform() 1515 return Long.signum((long) lhs.getWidth() * lhs.getHeight() - in compare() [all …]
|
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
D | CardView.java | 120 setPivotX(getWidth()); in flipLeftToRight() 223 (2 * getPivotX () - getWidth())); 311 setPivotX(getWidth()); 319 setPivotX(getWidth());
|
/development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/ |
D | Bouncer1.java | 85 mShapeW = mBitmap.getWidth(); in setupShape() 97 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged()
|
D | Bouncer3.java | 86 mShapeW = mBitmap.getWidth(); in setupShape() 98 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged()
|
D | Bouncer.java | 77 mShapeW = mBitmap.getWidth(); in setupShape() 115 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged()
|
/development/samples/browseable/ClippingBasic/src/com.example.android.clippingbasic/ |
D | ClippingBasicFragment.java | 133 final int margin = Math.min(view.getWidth(), view.getHeight()) / 10; in getOutline() 134 outline.setRoundRect(margin, margin, view.getWidth() - margin, in getOutline()
|