package P;

import android.view.ContentInfo;
import android.view.View;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public abstract class O {
    public static String[] a(View view) {
        return view.getReceiveContentMimeTypes();
    }

    public static C0162f b(View view, C0162f c0162f) {
        ContentInfo contentInfoJ = c0162f.f2439a.j();
        Objects.requireNonNull(contentInfoJ);
        ContentInfo contentInfoPerformReceiveContent = view.performReceiveContent(contentInfoJ);
        if (contentInfoPerformReceiveContent == null) {
            return null;
        }
        return contentInfoPerformReceiveContent == contentInfoJ ? c0162f : new C0162f(new g3.c(contentInfoPerformReceiveContent));
    }
}
