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

Commit e62c5dcd authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Deprecate methods that should only be used when the client side protologging flag is off

Bug: 364254249
Test: n/a
Flag: EXEMPT annotations only
Change-Id: I8cda5e46ce197bbbd28bf1edc501cc9b2a04efe2
parent ed34ba17
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
    private final ProtoLogDataSource mDataSource;
    @Nullable
    private final ProtoLogViewerConfigReader mViewerConfigReader;
    @Deprecated
    @Nullable
    private final ViewerConfigInputStreamProvider mViewerConfigInputStreamProvider;
    @NonNull
@@ -148,6 +149,7 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
                cacheUpdater, groups);
    }

    @Deprecated
    @VisibleForTesting
    public PerfettoProtoLogImpl(
            @Nullable ViewerConfigInputStreamProvider viewerConfigInputStreamProvider,
@@ -160,6 +162,18 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
                groups, dataSourceBuilder, configurationService);
    }

    @VisibleForTesting
    public PerfettoProtoLogImpl(
            @Nullable String viewerConfigFilePath,
            @Nullable ProtoLogViewerConfigReader viewerConfigReader,
            @NonNull Runnable cacheUpdater,
            @NonNull IProtoLogGroup[] groups,
            @NonNull ProtoLogDataSourceBuilder dataSourceBuilder,
            @NonNull ProtoLogConfigurationService configurationService) {
        this(viewerConfigFilePath, null, viewerConfigReader, cacheUpdater,
                groups, dataSourceBuilder, configurationService);
    }

    private PerfettoProtoLogImpl(
            @Nullable String viewerConfigFilePath,
            @Nullable ViewerConfigInputStreamProvider viewerConfigInputStreamProvider,
@@ -449,6 +463,7 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
        Log.d(LOG_TAG, "Finished onTracingFlush");
    }

    @Deprecated
    private void dumpViewerConfig() {
        if (mViewerConfigInputStreamProvider == null) {
            // No viewer config available