package j5;

import android.app.slice.SliceManager;
import android.content.Context;
import android.net.Uri;
import java.util.List;
import java.util.Set;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public class c extends b {

    /* renamed from: a, reason: collision with root package name */
    private final SliceManager f23966a;

    /* renamed from: b, reason: collision with root package name */
    private final Context f23967b;

    /* JADX INFO: Access modifiers changed from: package-private */
    public c(Context context) {
        this(context, (SliceManager) context.getSystemService(SliceManager.class));
    }

    @Override // j5.b
    public List b() {
        return this.f23966a.getPinnedSlices();
    }

    @Override // j5.b
    public Set c(Uri uri) {
        return androidx.slice.b.d(this.f23966a.getPinnedSpecs(uri));
    }

    @Override // j5.b
    public void d(String str, Uri uri) {
        this.f23966a.grantSlicePermission(str, uri);
    }

    c(Context context, SliceManager sliceManager) {
        this.f23967b = context;
        this.f23966a = sliceManager;
    }
}
