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

Commit 77b1e570 authored by Matthew Sedam's avatar Matthew Sedam
Browse files

Remove dump() from ContextHubEventLogger

Bug: 217576459
Test: m && ./vendor/google/tools/flashall
Test: gts-tradefed run everything --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker --module GtsGmscoreHostTestCases --primary-abi-only --test com.google.android.gts.locationcontext.LocationContextHostTest#testContextHubBusyStartupNanoAppTest
Test: Restart CHRE
Test: adb shell dumpsys contexthub
Change-Id: I8d811eb11d969a1367dc4763d045ec303824eb7b
parent 4653017c
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -325,12 +325,8 @@ public class ContextHubEventLogger {
        }
    }

    /**
     * Creates a string representation of the logged events
     *
     * @return the dumped events
     */
    public synchronized String dump() {
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Nanoapp Loads:");
        sb.append(System.lineSeparator());
@@ -368,9 +364,4 @@ public class ContextHubEventLogger {
        }
        return sb.toString();
    }

    @Override
    public String toString() {
        return dump();
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -1054,7 +1054,7 @@ public class ContextHubService extends IContextHubService.Stub {

        pw.println("");
        pw.println("=================== EVENTS ====================");
        pw.println(ContextHubEventLogger.getInstance().dump());
        pw.println(ContextHubEventLogger.getInstance());

        // dump eventLog
    }