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

Commit 814aae8d authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Log atom for device orientation change

To let other metrics use slice_by_state with the orientation info.

Bug: 342367404
Flag: EXEMPT add log
Test: adb shell cmd stats print-logs
      adb logcat | grep statsd | grep "(906)"
      Rotate device to landscape and portrait. The log will contain
        (906)0x10000->2[I][EXCLUSIVE]
        (906)0x10000->1[I][EXCLUSIVE]
Change-Id: I97f2e076b319f95843217571151f43a9e07ce77a
parent 9a70da4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4709,6 +4709,10 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
        // Update stored global config and notify everyone about the change.
        mRootWindowContainer.onConfigurationChanged(mTempConfig);
        Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER);
        if ((changes & ActivityInfo.CONFIG_ORIENTATION) != 0) {
            FrameworkStatsLog.write(FrameworkStatsLog.DEVICE_ORIENTATION_CHANGED,
                    values.orientation);
        }

        Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER);
        return changes;