Home
last modified time | relevance | path

Searched refs:currentWidth (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewActivity.java37 private int currentWidth = 0; field in Camera2SurfaceViewActivity
67 if (expectWidth == currentWidth && expectHeight == currentHeight) { in waitForSurfaceSizeChanged()
83 if (currentWidth == expectWidth && currentHeight == expectHeight) { in waitForSurfaceSizeChanged()
105 currentWidth = width; in surfaceChanged()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java525 private static int modifyWordWidth(int value, int currentWidth, int targetWidth) { in modifyWordWidth() argument
527 if (targetWidth > currentWidth) { in modifyWordWidth()
529 newValue = value << (targetWidth - currentWidth); in modifyWordWidth()
532 newValue = value >> (currentWidth - targetWidth); in modifyWordWidth()
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
DColorCutQuantizer.java508 private static int modifyWordWidth(int value, int currentWidth, int targetWidth) { in modifyWordWidth() argument
510 if (targetWidth > currentWidth) { in modifyWordWidth()
512 newValue = value << (targetWidth - currentWidth); in modifyWordWidth()
515 newValue = value >> (currentWidth - targetWidth); in modifyWordWidth()
/frameworks/native/libs/gui/
DGLConsumer.cpp889 uint32_t currentWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local
893 if (newWidth < currentWidth) { in scaleDownCrop()
894 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()