public static IconCompat createWithData(byte[] data, int offset, int length) {
        if (data == null) {
            throw new IllegalArgumentException("Data must not be null.");
        }
        final IconCompat rep = new IconCompat(TYPE_DATA);
        rep.mObj1 = data;
        rep.mInt1 = offset;
        rep.mInt2 = length;
        return rep;
    }
Create an Icon pointing to a compressed bitmap stored in a byte array.

@param data   Byte array storing compressed bitmap data of a type that
              {@link BitmapFactory}
              can decode (see {@link Bitmap.CompressFormat}).
@param offset Offset into <code>data</code> at which the bitmap data starts
@param length Length of the bitmap data
@see Icon#createWithData(byte[], int, int)
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/IconCompat.java