/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
D | ToonGame.java | 111 y > 0 && y < mStarter.getHeight()); 133 mContainer.getHeight() - mStarter.getTop() - mStarter.getHeight(), 167 mStarter.setY(-mStarter.getHeight()); 169 -(mStarter.getTop() + mStarter.getHeight()), 170 mContainer.getHeight() - mStarter.getTop() - 171 mStarter.getHeight(), 182 view.setPivotY(view.getHeight()); in squishyBounce()
|
D | SkewableTextView.java | 51 canvas.translate(0, getHeight()); in onDraw() 53 canvas.translate(0, -getHeight()); in onDraw()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | AnimationCloning.java | 81 0f, getHeight() - balls.get(0).getHeight()).setDuration(500); in createAnimation() 88 0f, getHeight() - ball2.getHeight()).setDuration(500); in createAnimation() 91 getHeight() - ball2.getHeight(), 0f).setDuration(500); in createAnimation()
|
D | ShapeHolder.java | 86 s.resize(width, s.getHeight()); in setWidth() 89 public float getHeight() { in getHeight() method in ShapeHolder 90 return shape.getShape().getHeight(); in getHeight()
|
D | MultiPropertyAnimation.java | 90 ball.getY(), getHeight() - BALL_SIZE).setDuration(DURATION); in createAnimation() 96 getHeight() - BALL_SIZE); in createAnimation() 108 PropertyValuesHolder pvhH = PropertyValuesHolder.ofFloat("height", ball.getHeight(), in createAnimation() 109 ball.getHeight() * 2); in createAnimation() 120 pvhY = PropertyValuesHolder.ofFloat("y", ball.getY(), getHeight() - BALL_SIZE); in createAnimation()
|
D | BouncingBalls.java | 88 float endY = getHeight() - 50f; in onTouchEvent() 89 float h = (float)getHeight(); in onTouchEvent() 114 newBall.getHeight(), newBall.getHeight() - 25); in onTouchEvent()
|
/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() 259 int h = aspectRatio.getHeight(); 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/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
D | ScalingOffsettingHelper.java | 41 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in updateChild() 42 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in updateChild()
|
/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() 384 factor = Math.abs((float)(mTranslation) / (float)(mFoldLayout.getHeight())); in onScroll() 386 if (e2.getY() - mParentPositionY <= mFoldLayout.getHeight() in onScroll() 388 if ((e2.getY() - mParentPositionY) > mFoldLayout.getHeight() * mAnchorFactor) { in onScroll() 397 if (mTranslation < -mFoldLayout.getHeight()) { in onScroll() 398 mTranslation = -mFoldLayout.getHeight(); in onScroll()
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
D | CustomArrayAdapter.java | 99 .MATCH_PARENT, obj.getHeight())); in getView() 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() 128 int halfHeight = bitmap.getHeight() / 2; in getCroppedBitmap()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 392 int h = aspectRatio.getHeight(); in chooseOptimalSize() 394 if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight && in chooseOptimalSize() 395 option.getHeight() == option.getWidth() * h / w) { in chooseOptimalSize() 397 option.getHeight() >= textureViewHeight) { 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/ApiDemos/src/com/example/android/apis/view/ |
D | LivePointerIconButton.java | 49 int cursorSize = getHeight(); in onResolvePointerIcon() 69 final float relativeY = (event.getY(pointerIndex) / getHeight()) - 0.5f; in onResolvePointerIcon() 82 final int hotSpotY = bitmap.getHeight() / 2; in onResolvePointerIcon()
|
D | SystemPointerIconButton.java | 48 final int minY = getHeight() / 4; in onResolvePointerIcon() 49 final int maxY = getHeight() - minY; in onResolvePointerIcon()
|
/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() 735 largestJpeg.getHeight(), ImageFormat.JPEG, /*maxImages*/5)); in setUpCameraOutputs() 743 … largestRaw.getHeight(), ImageFormat.RAW_SENSOR, /*maxImages*/ 5)); 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() 1129 (float) viewHeight / previewSize.getHeight(), in configureTransform() 1515 return Long.signum((long) lhs.getWidth() * lhs.getHeight() - in compare() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | AlphaBitmap.java | 44 float y = bm.getHeight(); in drawIntoBitmap() 83 y += mBitmap.getHeight() + 10; in onDraw() 85 y += mBitmap2.getHeight() + 10; in onDraw()
|
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()
|
D | PictureLayout.java | 121 super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); in dispatchDraw() 125 int y = getHeight()/2; in dispatchDraw() 141 dirty.set(0, 0, getWidth(), getHeight()); in invalidateChildInParent()
|
/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() 160 mBitmapIn.getWidth(), mBitmapIn.getHeight()); in onCreate() 171 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap() 228 mBitmapOut.getWidth(), mBitmapOut.getHeight()); in filter()
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
D | ThumbnailRadioButton.java | 72 rectChecked.setIntrinsicHeight(bitmap.getHeight() + strokeWidth); in setThumbnail() 82 rectUnchecked.setIntrinsicHeight(bitmap.getHeight() + strokeWidth); in setThumbnail() 105 getPaddingTop() + (int) (bitmap.getHeight() * 0.70), in setThumbnail()
|
/development/samples/devbytes/animation/SquashAndStretch/src/com/example/squashandstretch/ |
D | SquashAndStretch.java | 79 view.setPivotY(view.getHeight()); in onButtonClick() 83 mContainer.getHeight() - view.getHeight()); in onButtonClick()
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
D | PictureDetailsActivity.java | 115 mHeightScale = (float) thumbnailHeight / mImageView.getHeight(); in onCreate() 157 mTextView.setTranslationY(-mTextView.getHeight()); in runEnterAnimation() 203 mImageView.setPivotY(mImageView.getHeight() / 2); in runExitAnimation() 212 mTextView.animate().translationY(-mTextView.getHeight()).alpha(0). in runExitAnimation()
|
/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() 121 int halfHeight = bitmap.getHeight()/2; in getCroppedBitmap()
|
/development/samples/devbytes/animation/Anticipation/src/com/example/android/anticipation/ |
D | AnticiButton.java | 85 canvas.translate(0, getHeight()); in draw() 87 canvas.translate(0, -getHeight()); in draw() 184 y > 0 && y < getHeight());
|
/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ |
D | ThemedNavBarKeyboard.java | 81 outInsets.visibleTopInsets = getWindow().getWindow().getDecorView().getHeight(); in onComputeInsets() 82 outInsets.contentTopInsets = getWindow().getWindow().getDecorView().getHeight(); in onComputeInsets() 90 outInsets.touchableRegion.set(x, y, x + mLayout.getWidth(), y + mLayout.getHeight()); in onComputeInsets()
|
/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()
|