Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 122) sorted by relevance

12345

/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DScalingOffsettingHelper.java41 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/animation/ToonGame/src/com/example/android/toongame/
DToonGame.java111 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()
DSkewableTextView.java51 canvas.translate(0, getHeight()); in onDraw()
53 canvas.translate(0, -getHeight()); in onDraw()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DAnimationCloning.java81 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()
DShapeHolder.java86 s.resize(width, s.getHeight()); in setWidth()
89 public float getHeight() { in getHeight() method in ShapeHolder
90 return shape.getShape().getHeight(); in getHeight()
DMultiPropertyAnimation.java90 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()
DBouncingBalls.java88 float endY = getHeight() - 50f; in onTouchEvent()
89 float h = (float)getHeight(); in onTouchEvent()
114 newBall.getHeight(), newBall.getHeight() - 25); in onTouchEvent()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLivePointerIconButton.java49 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()
DSystemPointerIconButton.java48 final int minY = getHeight() / 4; in onResolvePointerIcon()
49 final int maxY = getHeight() - minY; in onResolvePointerIcon()
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DCustomArrayAdapter.java99 .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()
DListItemObject.java44 public int getHeight() { in getHeight() method in ListItemObject
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java195 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/ApiDemos/src/com/example/android/apis/graphics/
DAlphaBitmap.java44 float y = bm.getHeight(); in drawIntoBitmap()
83 y += mBitmap.getHeight() + 10; in onDraw()
85 y += mBitmap2.getHeight() + 10; in onDraw()
DPictureLayout.java121 super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); in dispatchDraw()
125 int y = getHeight()/2; in dispatchDraw()
141 dirty.set(0, 0, getWidth(), getHeight()); in invalidateChildInParent()
DWindowSurface.java218 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()
DColorMatrixSample.java111 canvas.drawBitmap(mBitmap, x, y + mBitmap.getHeight() + 10, paint); in onDraw()
115 canvas.drawBitmap(mBitmap, x, y + 2*(mBitmap.getHeight() + 10), in onDraw()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayoutActivity.java298 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/SquashAndStretch/src/com/example/squashandstretch/
DSquashAndStretch.java79 view.setPivotY(view.getHeight()); in onButtonClick()
83 mContainer.getHeight() - view.getHeight()); in onButtonClick()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DThumbnailRadioButton.java72 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/ActivityAnimations/src/com/example/android/activityanim/
DPictureDetailsActivity.java115 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/
DCustomArrayAdapter.java110 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/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java392 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/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java157 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/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java35 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight()); in scaleBitmap()
37 (int) (src.getWidth() * scaleFactor), (int) (src.getHeight() * scaleFactor), false); in scaleBitmap()
/development/samples/devbytes/animation/Anticipation/src/com/example/android/anticipation/
DAnticiButton.java85 canvas.translate(0, getHeight()); in draw()
87 canvas.translate(0, -getHeight()); in draw()
184 y > 0 && y < getHeight());

12345