109 lines
3.6 KiB
Java
109 lines
3.6 KiB
Java
package c.f.d.b;
|
|
|
|
import android.os.Handler;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
import java.util.concurrent.AbstractExecutorService;
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.Future;
|
|
import java.util.concurrent.RunnableFuture;
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
import java.util.concurrent.ScheduledFuture;
|
|
import java.util.concurrent.TimeUnit;
|
|
/* compiled from: HandlerExecutorServiceImpl */
|
|
public class d extends AbstractExecutorService implements ScheduledExecutorService {
|
|
public final Handler i;
|
|
|
|
public d(Handler handler) {
|
|
this.i = handler;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ExecutorService
|
|
public boolean awaitTermination(long j, TimeUnit timeUnit) throws InterruptedException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.Executor
|
|
public void execute(Runnable runnable) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ExecutorService
|
|
public boolean isShutdown() {
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ExecutorService
|
|
public boolean isTerminated() {
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.concurrent.AbstractExecutorService
|
|
public RunnableFuture newTaskFor(Runnable runnable, Object obj) {
|
|
return new e(this.i, runnable, obj);
|
|
}
|
|
|
|
@Override // java.util.concurrent.AbstractExecutorService
|
|
public RunnableFuture newTaskFor(Callable callable) {
|
|
return new e(this.i, callable);
|
|
}
|
|
|
|
@Override // java.util.concurrent.ScheduledExecutorService
|
|
public ScheduledFuture<?> schedule(Runnable runnable, long j, TimeUnit timeUnit) {
|
|
e eVar = new e(this.i, runnable, null);
|
|
this.i.postDelayed(eVar, timeUnit.toMillis(j));
|
|
return eVar;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ScheduledExecutorService
|
|
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long j, TimeUnit timeUnit) {
|
|
e eVar = new e(this.i, callable);
|
|
this.i.postDelayed(eVar, timeUnit.toMillis(j));
|
|
return eVar;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ScheduledExecutorService
|
|
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long j, long j2, TimeUnit timeUnit) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.ScheduledExecutorService
|
|
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long j, long j2, TimeUnit timeUnit) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.ExecutorService
|
|
public void shutdown() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.ExecutorService
|
|
public List<Runnable> shutdownNow() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService
|
|
public Future submit(Runnable runnable) {
|
|
Objects.requireNonNull(runnable);
|
|
e eVar = new e(this.i, runnable, null);
|
|
execute(eVar);
|
|
return eVar;
|
|
}
|
|
|
|
@Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService
|
|
public Future submit(Runnable runnable, Object obj) {
|
|
Objects.requireNonNull(runnable);
|
|
e eVar = new e(this.i, runnable, obj);
|
|
execute(eVar);
|
|
return eVar;
|
|
}
|
|
|
|
@Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService
|
|
public Future submit(Callable callable) {
|
|
Objects.requireNonNull(callable);
|
|
e eVar = new e(this.i, callable);
|
|
execute(eVar);
|
|
return eVar;
|
|
}
|
|
}
|