/aosp_15_r20/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
D | VideoScale.java | 35 float scaleWidth = 1.0f; in scaleVideoAndFillView() local 47 scaleWidth = desiredScaledWidth / viewWidth; in scaleVideoAndFillView() 54 float scaleX = scaleWidth; in scaleVideoAndFillView() 56 scaleWidth = viewHeight / viewWidth * scaleY; in scaleVideoAndFillView() 60 scaleWidth = scaleWidth * -1.0f; in scaleVideoAndFillView() 73 scaleWidth, in scaleVideoAndFillView() 79 scaleWidth, in scaleVideoAndFillView() 99 float scaleWidth = 1.0f; in scaleVideoMaintainingAspectRatio() local 107 scaleWidth = (float) desiredHeight / (float) viewHeight; in scaleVideoMaintainingAspectRatio() 111 scaleWidth = (float) desiredWidth / (float) viewWidth; in scaleVideoMaintainingAspectRatio() [all …]
|
/aosp_15_r20/external/webrtc/sdk/android/api/org/webrtc/ |
H A D | JavaI420Buffer.java | 166 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 167 return cropAndScaleI420(this, cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale() 171 int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScaleI420() argument 172 if (cropWidth == scaleWidth && cropHeight == scaleHeight) { in cropAndScaleI420() 183 return JavaI420Buffer.wrap(scaleWidth, scaleHeight, dataY.slice(), buffer.getStrideY(), in cropAndScaleI420() 187 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScaleI420() 191 newBuffer.getStrideU(), newBuffer.getDataV(), newBuffer.getStrideV(), scaleWidth, in cropAndScaleI420() local 199 int dstStrideU, ByteBuffer dstV, int dstStrideV, int scaleWidth, int scaleHeight); in nativeCropAndScaleI420() argument
|
H A D | VideoProcessor.java | 25 public final int scaleWidth; field in VideoProcessor.FrameAdaptationParameters 31 int scaleWidth, int scaleHeight, long timestampNs, boolean drop) { in FrameAdaptationParameters() argument 36 this.scaleWidth = scaleWidth; in FrameAdaptationParameters() 73 parameters.cropHeight, parameters.scaleWidth, parameters.scaleHeight); in applyFrameAdaptationParameters()
|
/aosp_15_r20/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
H A D | FixedAspectSurfaceView.java | 83 boolean scaleWidth = false; in onMeasure() 95 scaleWidth = true; in onMeasure() 103 scaleWidth = true; in onMeasure() 113 scaleWidth = true; in onMeasure() 122 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
H A D | ScaleDrawableTest.java | 345 float scaleWidth = 0.3f; in testOnBoundsChange() local 348 mockDrawable, Gravity.LEFT, scaleWidth, scaleHeight); in testOnBoundsChange() 353 Gravity.apply(Gravity.LEFT, bounds.width() - (int) (bounds.width() * scaleWidth), in testOnBoundsChange() 360 scaleWidth = 0.6f; in testOnBoundsChange() 364 mockDrawable, Gravity.BOTTOM | Gravity.RIGHT, scaleWidth, scaleHeight); in testOnBoundsChange() 369 bounds.width() - (int) (bounds.width() * scaleWidth * (10000 - level) / 10000), in testOnBoundsChange() 377 scaleWidth = 0f; in testOnBoundsChange() 380 mockDrawable, Gravity.BOTTOM | Gravity.RIGHT, scaleWidth, scaleHeight); in testOnBoundsChange() 388 scaleWidth = 1f; in testOnBoundsChange() 391 mockDrawable, Gravity.BOTTOM | Gravity.RIGHT, scaleWidth, scaleHeight); in testOnBoundsChange() [all …]
|
/aosp_15_r20/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
H A D | FixedAspectSurfaceView.java | 94 boolean scaleWidth = false; in onMeasure() 107 scaleWidth = true; in onMeasure() 115 scaleWidth = true; in onMeasure() 125 scaleWidth = true; in onMeasure() 134 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | FixedAspectSurfaceView.java | 94 boolean scaleWidth = false; in onMeasure() 107 scaleWidth = true; in onMeasure() 115 scaleWidth = true; in onMeasure() 125 scaleWidth = true; in onMeasure() 134 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | FixedAspectSurfaceView.java | 97 boolean scaleWidth = false; in onMeasure() 109 scaleWidth = true; in onMeasure() 117 scaleWidth = true; in onMeasure() 127 scaleWidth = true; in onMeasure() 136 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | FixedAspectSurfaceView.java | 97 boolean scaleWidth = false; in onMeasure() 109 scaleWidth = true; in onMeasure() 117 scaleWidth = true; in onMeasure() 127 scaleWidth = true; in onMeasure() 136 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/external/webrtc/sdk/objc/unittests/ |
H A D | RTCCVPixelBuffer_xctest.mm | 33 int scaleWidth; 45 .scaleWidth = 320, 55 .scaleWidth = 320, 266 scaleWidth:960 281 scaleWidth:320 434 scaleWidth:setting.scaleWidth 443 scaleWidth:setting.scaleWidth
|
/aosp_15_r20/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | FixedAspectSurfaceView.java | 39 private final boolean scaleWidth; field in FixedAspectSurfaceView 49 scaleWidth = a.getBoolean(R.styleable.FixedAspectSurfaceView_scaleWidth, false); in FixedAspectSurfaceView() 50 Assert.checkArgument(scaleHeight != scaleWidth, "Must either scale width or height"); in FixedAspectSurfaceView() 73 if (scaleWidth) { in onMeasure()
|
/aosp_15_r20/external/webrtc/sdk/android/src/java/org/webrtc/ |
H A D | NV21Buffer.java | 58 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 59 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScale() 60 nativeCropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, data, width, in cropAndScale() 67 int scaleWidth, int scaleHeight, byte[] src, int srcWidth, int srcHeight, ByteBuffer dstY, in nativeCropAndScale() argument
|
H A D | NV12Buffer.java | 61 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 62 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScale() 63 nativeCropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, buffer, width, in cropAndScale() 70 int scaleWidth, int scaleHeight, ByteBuffer src, int srcWidth, int srcHeight, int srcStride, in nativeCropAndScale() argument
|
H A D | WrappedNativeI420Buffer.java | 106 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 108 this, cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale()
|
H A D | NativeAndroidVideoTrackSource.java | 81 int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight, long timestampNs, in createFrameAdaptationParameters() argument 84 cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, timestampNs, drop); in createFrameAdaptationParameters()
|
/aosp_15_r20/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | DesktopTaskView.kt | 188 val scaleWidth = containerWidth / windowWidth.toFloat() in <lambda>() constant 195 "window=[$windowWidth,$windowHeight] scale=[$scaleWidth,$scaleHeight]", in <lambda>() 215 width = (taskSize.width() * scaleWidth).toInt() in <lambda>() 217 leftMargin = (positionInParent.x * scaleWidth).toInt() in <lambda>()
|
/aosp_15_r20/external/webrtc/sdk/objc/api/video_frame_buffer/ |
H A D | RTCNativeI420Buffer.mm | 106 scaleWidth:(int)scaleWidth 109 _i420Buffer->CropAndScale(offsetX, offsetY, cropWidth, cropHeight, scaleWidth, scaleHeight);
|
/aosp_15_r20/external/webrtc/sdk/objc/base/ |
H A D | RTCVideoFrameBuffer.h | 35 scaleWidth:(int)scaleWidth
|
/aosp_15_r20/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
D | MtpImageView.java | 169 float scaleWidth = ((float) vwidth) / (iwidth * OVERLAY_ICON_SIZE_DENOMINATOR); in updateOverlayIconBounds() local 170 if (scaleHeight >= 1f && scaleWidth >= 1f) { in updateOverlayIconBounds() 176 float scale = Math.min(scaleHeight, scaleWidth); in updateOverlayIconBounds()
|
/aosp_15_r20/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
H A D | HardwareVideoEncoderTest.java | 195 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 197 return new MockTextureBuffer(textureId, scaleWidth, scaleHeight, this ::release); in cropAndScale() 259 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument 260 return realBuffer.cropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale()
|
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppUtils.java | 54 float scaleWidth = ((float) maxDimension) / actualWidth; in getSafeDrawable() local 56 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
|
/aosp_15_r20/packages/apps/TV/tuner/src/com/android/tv/tuner/layout/ |
D | ScaledLayout.java | 186 int scaleWidth = (int) (width * (scaleEndCol - scaleStartCol)); in onMeasure() local 189 scaleWidth > mMaxWidth ? mMaxWidth : scaleWidth, MeasureSpec.EXACTLY); in onMeasure()
|
/aosp_15_r20/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/transition/ |
D | ChangeScaleAndPosition.kt | 66 val scaleWidth = in createAnimator() constant 77 PropertyValuesHolder.ofFloat("scaleX", scaleWidth, 1f), in createAnimator()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/ |
H A D | DrawableSize.kt | 79 val scaleWidth = maxWidth.toFloat() / originalWidth.toFloat() in downscaleToSize() constant 81 val scale = minOf(scaleHeight, scaleWidth) in downscaleToSize()
|
/aosp_15_r20/external/executorch/backends/arm/ |
H A D | tosa_quant_utils.py | 241 def compute_multiplier_and_shift(scale, scaleWidth=32): argument 242 if scaleWidth == 16: 244 elif scaleWidth == 32:
|