- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
756 B
Java
23 lines
756 B
Java
package androidx.lifecycle;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
/* loaded from: classes.dex */
|
|
public class MethodCallsLogger {
|
|
private final Map<String, Integer> calledMethods = new HashMap();
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public boolean approveCall(String name, int i) {
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
Integer num = this.calledMethods.get(name);
|
|
int intValue = num != null ? num.intValue() : 0;
|
|
boolean z = (intValue & i) != 0;
|
|
this.calledMethods.put(name, Integer.valueOf(i | intValue));
|
|
return !z;
|
|
}
|
|
}
|