mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-05 03:58:52 +01:00
35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package com.google.firebase.tracing;
|
|
|
|
import com.google.firebase.components.Component;
|
|
import com.google.firebase.components.ComponentContainer;
|
|
import com.google.firebase.components.ComponentRegistrar;
|
|
import com.google.firebase.components.ComponentRegistrarProcessor;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes8.dex */
|
|
public class ComponentMonitor implements ComponentRegistrarProcessor {
|
|
/* JADX INFO: Access modifiers changed from: 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();
|
|
}
|
|
}
|
|
|
|
@Override // com.google.firebase.components.ComponentRegistrarProcessor
|
|
public List<Component<?>> processRegistrar(ComponentRegistrar componentRegistrar) {
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Component<?> component : componentRegistrar.getComponents()) {
|
|
String name = component.getName();
|
|
if (name != null) {
|
|
component = component.withFactory(new ComponentMonitor$$ExternalSyntheticLambda0(name, component, 0));
|
|
}
|
|
arrayList.add(component);
|
|
}
|
|
return arrayList;
|
|
}
|
|
}
|