package com.google.android.exoplayer2.offline; import android.app.Service; import android.content.Intent; import android.os.IBinder; import com.google.android.exoplayer2.scheduler.Scheduler; import com.google.android.exoplayer2.util.Assertions; import com.google.android.exoplayer2.util.NotificationUtil; import java.util.HashMap; /* loaded from: classes2.dex */ public abstract class DownloadService extends Service { public static final HashMap downloadManagerHelpers = new HashMap(); public final int channelDescriptionResourceId; public final String channelId; public final int channelNameResourceId; public boolean isDestroyed; public boolean isStopped; public int lastStartId; public boolean startedInForeground; public boolean taskRemoved; public abstract DownloadManager getDownloadManager(); public abstract Scheduler getScheduler(); @Override // android.app.Service public void onTaskRemoved(Intent intent) { this.taskRemoved = true; } @Override // android.app.Service public void onCreate() { String str = this.channelId; if (str != null) { NotificationUtil.createNotificationChannel(this, str, this.channelNameResourceId, this.channelDescriptionResourceId, 2); } getDownloadManager(); throw null; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Code restructure failed: missing block: B:68:0x0096, code lost: if (r2.equals("com.google.android.exoplayer.downloadService.action.RESUME_DOWNLOADS") == false) goto L18; */ @Override // android.app.Service /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public int onStartCommand(android.content.Intent r8, int r9, int r10) { /* Method dump skipped, instructions count: 346 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.exoplayer2.offline.DownloadService.onStartCommand(android.content.Intent, int, int):int"); } @Override // android.app.Service public void onDestroy() { this.isDestroyed = true; ((DownloadManagerHelper) Assertions.checkNotNull((DownloadManagerHelper) downloadManagerHelpers.get(getClass()))).detachService(this); } @Override // android.app.Service public final IBinder onBind(Intent intent) { throw new UnsupportedOperationException(); } public static final class DownloadManagerHelper { public abstract void attachService(DownloadService downloadService); public abstract void detachService(DownloadService downloadService); public static /* synthetic */ DownloadManager access$100(DownloadManagerHelper downloadManagerHelper) { downloadManagerHelper.getClass(); return null; } } }