package com.liulishuo.filedownloader; import android.content.Context; import com.liulishuo.filedownloader.model.FileDownloadHeader; import com.liulishuo.filedownloader.services.FDServiceSharedHandler; import com.liulishuo.filedownloader.util.FileDownloadProperties; /* loaded from: classes.dex */ public class FileDownloadServiceProxy implements IFileDownloadServiceProxy { private final IFileDownloadServiceProxy a; private static final class HolderClass { private static final FileDownloadServiceProxy a = new FileDownloadServiceProxy(); } public static FDServiceSharedHandler.FileDownloadServiceSharedConnection a() { if (c().a instanceof FileDownloadServiceSharedTransmit) { return (FDServiceSharedHandler.FileDownloadServiceSharedConnection) c().a; } return null; } public static FileDownloadServiceProxy c() { return HolderClass.a; } @Override // com.liulishuo.filedownloader.IFileDownloadServiceProxy public boolean b(int i) { return this.a.b(i); } private FileDownloadServiceProxy() { this.a = FileDownloadProperties.a().d ? new FileDownloadServiceSharedTransmit() : new FileDownloadServiceUIGuard(); } @Override // com.liulishuo.filedownloader.IFileDownloadServiceProxy public boolean b() { return this.a.b(); } @Override // com.liulishuo.filedownloader.IFileDownloadServiceProxy public boolean a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, FileDownloadHeader fileDownloadHeader, boolean z3) { return this.a.a(str, str2, z, i, i2, i3, z2, fileDownloadHeader, z3); } @Override // com.liulishuo.filedownloader.IFileDownloadServiceProxy public byte a(int i) { return this.a.a(i); } @Override // com.liulishuo.filedownloader.IFileDownloadServiceProxy public void a(Context context) { this.a.a(context); } }