what-the-bank/sources/com/google/firebase/tracing/ComponentMonitor.java

49 lines
2.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.tracing;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentFactory;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.ComponentRegistrarProcessor;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public class ComponentMonitor implements ComponentRegistrarProcessor {
@Override // com.google.firebase.components.ComponentRegistrarProcessor
public List<Component<?>> processRegistrar(ComponentRegistrar componentRegistrar) {
ArrayList arrayList = new ArrayList();
for (final Component<?> component : componentRegistrar.getComponents()) {
final String name = component.getName();
if (name != null) {
component = component.withFactory(new ComponentFactory(name, component) { // from class: com.google.firebase.tracing.ComponentMonitor$$ExternalSyntheticLambda0
public final String f$0;
public final Component f$1;
@Override // com.google.firebase.components.ComponentFactory
public final Object create(ComponentContainer componentContainer) {
return ComponentMonitor.lambda$processRegistrar$0(this.f$0, this.f$1, componentContainer);
}
{
this.f$0 = name;
this.f$1 = component;
}
});
}
arrayList.add(component);
}
return arrayList;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ Object lambda$processRegistrar$0(String str, Component component, ComponentContainer componentContainer) {
try {
FirebaseTrace.pushTrace(str);
return component.getFactory().create(componentContainer);
} finally {
FirebaseTrace.popTrace();
}
}
}