Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6257d935 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Update PerfettoProtoLogImpl constructor usages to use unprocessed and...

Update PerfettoProtoLogImpl constructor usages to use unprocessed and processed implementations where relevant

Bug: 369052956
Test: atest TracingTests
Flag: EXEMPT minor refactor
Change-Id: Iec12159590be9b3cc08eb2a94f26215556d2b53a
parent 3228b880
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public class ProtoLog {
                }

                try {
                    sProtoLogInstance = new PerfettoProtoLogImpl(groups);
                    sProtoLogInstance = new UnprocessedPerfettoProtoLogImpl(groups);
                } catch (ServiceManager.ServiceNotFoundException e) {
                    throw new RuntimeException(e);
                }
+4 −3
Original line number Diff line number Diff line
@@ -117,10 +117,11 @@ public class ProtoLogImpl {
                                + ProtoLogImpl.class.getSimpleName() + ". "
                                + "Setting up without a viewer config instead...");

                        sServiceInstance = new PerfettoProtoLogImpl(sCacheUpdater, groups);
                    } else {
                        sServiceInstance =
                                new PerfettoProtoLogImpl(sViewerConfigPath, sCacheUpdater, groups);
                                new UnprocessedPerfettoProtoLogImpl(sCacheUpdater, groups);
                    } else {
                        sServiceInstance = new ProcessedPerfettoProtoLogImpl(
                                sViewerConfigPath, sCacheUpdater, groups);
                    }
                } catch (ServiceManager.ServiceNotFoundException e) {
                    throw new RuntimeException(e);