Home
last modified time | relevance | path

Searched refs:targetWidth (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/media/java/android/media/
DThumbnailUtils.java358 int targetWidth, in transform() argument
364 int deltaX = source.getWidth() - targetWidth; in transform()
373 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform()
382 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform()
384 int dstX = (targetWidth - src.width()) / 2; in transform()
389 targetWidth - dstX, in transform()
402 float viewAspect = (float) targetWidth / targetHeight; in transform()
412 float scale = targetWidth / bitmapWidthF; in transform()
433 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform()
440 targetWidth, in transform()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFullscreenBlur.java52 static int targetWidth; field in FullscreenBlur
58 targetWidth = w/8; in createRenderTargets()
61 Type renderType = b.setX(targetWidth).setY(targetHeight).create(); in createRenderTargets()
69 renderType = b.setX(targetWidth).setY(targetHeight).create(); in createRenderTargets()
134 addOffsets(quad, 1.0f / (float)targetWidth); in addBlurPasses()
/frameworks/base/core/java/android/app/
DActivityOptions.java397 Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, in makeThumbnailAspectScaleUpAnimation() argument
400 targetWidth, targetHeight, handler, listener, true); in makeThumbnailAspectScaleUpAnimation()
423 Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, in makeThumbnailAspectScaleDownAnimation() argument
426 targetWidth, targetHeight, handler, listener, false); in makeThumbnailAspectScaleDownAnimation()
430 int startX, int startY, int targetWidth, int targetHeight, in makeAspectScaledThumbnailAnimation() argument
441 opts.mWidth = targetWidth; in makeAspectScaledThumbnailAnimation()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java298 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure() local
301 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { in onMeasure()
303 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuItemView.java281 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure() local
284 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { in onMeasure()
286 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in onMeasure()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCropFilter.java106 float targetWidth = croppedDims[0] / (float)extDims[0]; in onProcess() local
108 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight); in onProcess()
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java347 final int targetWidth = targetDrawable.getIntrinsicWidth(); in layout() local
352 final int leftTarget = (int) (THRESHOLD * parentWidth) - targetWidth + handleWidth / 2; in layout()
367 target.layout(leftTarget, targetTop, leftTarget + targetWidth, targetBottom); in layout()
372 target.layout(rightTarget, targetTop, rightTarget + targetWidth, targetBottom); in layout()
378 final int targetLeft = (parentWidth - targetWidth) / 2; in layout()
379 final int targetRight = (parentWidth + targetWidth) / 2; in layout()
/frameworks/base/core/java/android/view/
DIWindowManager.aidl97 int startY, int targetWidth, int targetHeight, IRemoteCallback startedCallback, in overridePendingAppTransitionAspectScaledThumb() argument
/frameworks/base/core/java/android/widget/
DFastScroller.java1118 final int targetWidth = target.getWidth(); in transitionPreviewLayout() local
1119 if (targetWidth > previewWidth) { in transitionPreviewLayout()
1120 target.setScaleX((float) previewWidth / targetWidth); in transitionPreviewLayout()
1129 if (showingWidth > targetWidth) { in transitionPreviewLayout()
1130 final float scale = (float) targetWidth / showingWidth; in transitionPreviewLayout()
DActionMenuView.java418 final int targetWidth = cellsUsed * cellSize; in measureChildForCells() local
419 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in measureChildForCells()
DGridLayout.java1119 int targetWidth = right - left; in onLayout() local
1127 mHorizontalAxis.layout(targetWidth - paddingLeft - paddingRight); in onLayout()
1183 targetWidth - width - paddingRight - rightMargin - dx; in onLayout()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java225 int startY, int targetWidth, int targetHeight, IRemoteCallback startedCallback, in overridePendingAppTransitionAspectScaledThumb() argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionMenuView.java428 final int targetWidth = cellsUsed * cellSize; in measureChildForCells() local
429 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in measureChildForCells()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java1008 int targetWidth, int targetHeight, IRemoteCallback startedCallback, boolean scaleUp) { in overridePendingAppTransitionAspectScaledThumb() argument
1017 mNextAppTransitionStartWidth = targetWidth; in overridePendingAppTransitionAspectScaledThumb()
DWindowManagerService.java4122 int startY, int targetWidth, int targetHeight, IRemoteCallback startedCallback, in overridePendingAppTransitionAspectScaledThumb() argument
4126 startY, targetWidth, targetHeight, startedCallback, scaleUp); in overridePendingAppTransitionAspectScaledThumb()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java1008 int targetWidth = right - left; in onLayout() local
1016 mHorizontalAxis.layout(targetWidth - paddingLeft - paddingRight); in onLayout()
1072 targetWidth - width - paddingRight - rightMargin - dx; in onLayout()