textclassifier/src/main/java/androidx/textclassifier/TextClassification.java
private static List<Drawable> bitmapsToDrawables(List<Bitmap> bitmaps) {
        final List<Drawable> drawables = new ArrayList<>(bitmaps.size());
        for (Bitmap bitmap : bitmaps) {
            if (bitmap != null) {
                drawables.add(new BitmapDrawable(null, bitmap));
            } else {
                drawables.add(null);
            }
        }
        return drawables;
    }
/** Returns a list of drawable wrappers for a list of bitmaps. */
Returns a list of drawable wrappers for a list of bitmaps.
Returns a list of drawable wrappers for a list of bitmaps .
private static List<Drawable> bitmapsToDrawables(List<Bitmap> bitmaps) {
        final List<Drawable> drawables = new ArrayList<>(bitmaps.size());
        for (Bitmap bitmap : bitmaps) {
            if (bitmap != null) {
                drawables.add(new BitmapDrawable(null, bitmap));
            } else {
                drawables.add(null);
            }
        }
        return drawables;
    }
private static List < Drawable > bitmapsToDrawables ( List < Bitmap > bitmaps ) { final List < Drawable > drawables = new ArrayList < > ( bitmaps . size ( ) ) ; for ( Bitmap bitmap : bitmaps ) { if ( bitmap != null ) { drawables . add ( new BitmapDrawable ( null , bitmap ) ) ; } else { drawables . add ( null ) ; } } return drawables ; }
Returns a list of drawable wrappers for a list of bitmaps.
Returns a list of drawable wrappers for a list of bitmaps .