package androidx.core.app;

import android.app.Notification;
import android.app.Person;
import androidx.core.graphics.drawable.IconCompat;

/* JADX INFO: loaded from: classes.dex */
public abstract class E {
    public static void a(Notification.Builder builder, Person person) {
        builder.addPerson(person);
    }

    public static O b(Person person) {
        CharSequence name = person.getName();
        IconCompat iconCompatB = person.getIcon() != null ? IconCompat.b(person.getIcon()) : null;
        String uri = person.getUri();
        String key = person.getKey();
        boolean zIsBot = person.isBot();
        boolean zIsImportant = person.isImportant();
        O o6 = new O();
        o6.f11217a = name;
        o6.f11218b = iconCompatB;
        o6.f11219c = uri;
        o6.f11220d = key;
        o6.f11221e = zIsBot;
        o6.f11222f = zIsImportant;
        return o6;
    }

    public static void c(Notification.Action.Builder builder) {
        builder.setSemanticAction(0);
    }

    public static Person d(O o6) {
        Person.Builder name = new Person.Builder().setName(o6.f11217a);
        IconCompat iconCompat = o6.f11218b;
        return name.setIcon(iconCompat != null ? iconCompat.h(null) : null).setUri(o6.f11219c).setKey(o6.f11220d).setBot(o6.f11221e).setImportant(o6.f11222f).build();
    }
}
