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

Commit 3a043081 authored by LaMont Jones's avatar LaMont Jones
Browse files

benchmarks: add more systemui benchmarks

Bug: b/372507810
Test: manual
Change-Id: I3e7349a4193e3c46143f949c8f5ab453a3b8c3e0
parent fbcc6337
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -794,6 +794,24 @@ benchmarks:
                      preroll=1,
                      postroll=2,
                      ),
            Benchmark(id="systemui_flicker_add_log_call",
                      title="Add a Log call to flicker",
                      change=Modify("platform_testing/libraries/flicker/src/android/tools/flicker/FlickerServiceResultsCollector.kt",
                                    lambda: f'Log.v(LOG_TAG, "BENCHMARK = {random.randint(0, 1000000)}");\n',
                                    before="Log.v(LOG_TAG,"),
                      modules=["WMShellFlickerTestsPip"],
                      preroll=1,
                      postroll=2,
                      ),
            Benchmark(id="systemui_core_add_log_call",
                      title="Add a Log call SystemUIApplication",
                      change=Modify("frameworks/base/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java",
                                    lambda: f'Log.v(TAG, "BENCHMARK = {random.randint(0, 1000000)}");\n',
                                    before="Log.wtf(TAG,"),
                      modules=["SystemUI-core"],
                      preroll=1,
                      postroll=2,
                      ),
        ]

    def _error(self, message):