Files
rr3-apk/decompiled/sources/androidx/work/impl/SynchronizedStartStopTokensImpl.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

60 lines
2.1 KiB
Java

package androidx.work.impl;
import androidx.work.impl.model.WorkGenerationalId;
import java.util.List;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nStartStopToken.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StartStopToken.kt\nandroidx/work/impl/SynchronizedStartStopTokensImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,104:1\n1#2:105\n*E\n"})
/* loaded from: classes.dex */
final class SynchronizedStartStopTokensImpl implements StartStopTokens {
private final StartStopTokens delegate;
private final Object lock;
public SynchronizedStartStopTokensImpl(StartStopTokens delegate) {
Intrinsics.checkNotNullParameter(delegate, "delegate");
this.delegate = delegate;
this.lock = new Object();
}
@Override // androidx.work.impl.StartStopTokens
public StartStopToken tokenFor(WorkGenerationalId id) {
StartStopToken startStopToken;
Intrinsics.checkNotNullParameter(id, "id");
synchronized (this.lock) {
startStopToken = this.delegate.tokenFor(id);
}
return startStopToken;
}
@Override // androidx.work.impl.StartStopTokens
public StartStopToken remove(WorkGenerationalId id) {
StartStopToken remove;
Intrinsics.checkNotNullParameter(id, "id");
synchronized (this.lock) {
remove = this.delegate.remove(id);
}
return remove;
}
@Override // androidx.work.impl.StartStopTokens
public List<StartStopToken> remove(String workSpecId) {
List<StartStopToken> remove;
Intrinsics.checkNotNullParameter(workSpecId, "workSpecId");
synchronized (this.lock) {
remove = this.delegate.remove(workSpecId);
}
return remove;
}
@Override // androidx.work.impl.StartStopTokens
public boolean contains(WorkGenerationalId id) {
boolean contains;
Intrinsics.checkNotNullParameter(id, "id");
synchronized (this.lock) {
contains = this.delegate.contains(id);
}
return contains;
}
}