Correctly propagate origin to ZenModeEventLogger

This also makes the logging more accurate as we can now correctly distinguish user-initiated actions coming from apps (which was impossible) or from the system (which was heuristically derived from other signals).

This CL also fixes TestWithLooperRule so it works in parameterized tests.

Fixes: 312905146
Fixes: 278888961
Test: atest ZenModeHelperTest
Change-Id: Ie3ef83391801f1bdd14cae1f6bbb2bbb71c0c1ef
5 files changed