Class ShadowPublicFormatUtils

java.lang.Object
org.robolectric.shadows.ShadowPublicFormatUtils

@Implements(className="android.media.PublicFormatUtils", minSdk=33) public class ShadowPublicFormatUtils extends Object
Shadow for private class PublicFormatUtils.

It converts between the "legacy" Image "public format" (S) and the newer "hal format" (T).

Reference: https://cs.android.com/android/platform/superproject/+/android-13.0.0_r1:frameworks/base/media/java/android/media/PublicFormatUtils.java https://cs.android.com/android/platform/superproject/+/android-13.0.0_r1:frameworks/base/libs/hostgraphics/PublicFormat.cpp

  • Constructor Details

    • ShadowPublicFormatUtils

      public ShadowPublicFormatUtils()
  • Method Details

    • getHalFormat

      @Implementation protected static int getHalFormat(int imageFormat)
    • getHalDataspace

      @Implementation protected static int getHalDataspace(int imageFormat)
    • getPublicFormat

      @Implementation protected static int getPublicFormat(int imageFormat, int dataspace)