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

Commit c07b1469 authored by Roman Birg's avatar Roman Birg Committed by Gerrit Code Review
Browse files

SystemUI: add RecentsView EventLogs



Ticket: CYNGNOS-2391
Change-Id: Iec202e9f764fce85eaa4ddff7c8f311146b00229
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 17297b78
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -67,3 +67,12 @@ option java_package com.android.systemui;
## shown: 0:panel is hidden
##        1:panel is visible
36062 sysui_lls_notification_panel_shown (shown|1)

# ---------------------------
# RecentsView.java
# ---------------------------
36070 sysui_recents_event (what|1)
## what: 1: OPEN
##       2: CLOSE
##       3: CHOSE_TASK
##       4: CLOSE_ALL_TASKS
+8 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.os.UserHandle;
import android.provider.Settings;
import android.util.AttributeSet;
import android.util.Log;
import android.util.EventLog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowInsets;
@@ -48,6 +49,8 @@ import com.android.systemui.recents.model.RecentsTaskLoader;
import com.android.systemui.recents.model.Task;
import com.android.systemui.recents.model.TaskStack;

import com.android.systemui.EventLogTags;

import java.util.ArrayList;
import java.util.List;

@@ -267,6 +270,8 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
            stackView.startEnterRecentsAnimation(ctx);
        }
        ctx.postAnimationTrigger.decrement();

        EventLog.writeEvent(EventLogTags.SYSUI_RECENTS_EVENT, 1 /* opened */);
    }

    /** Requests all task stacks to start their exit-recents animation */
@@ -620,6 +625,8 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
                launchRunnable.run();
            }
        }

        EventLog.writeEvent(EventLogTags.SYSUI_RECENTS_EVENT, 3 /* chose task */);
    }

    @Override
@@ -670,6 +677,7 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
            TaskStackView stackView = stackViews.get(i);
            stackView.onRecentsHidden();
        }
        EventLog.writeEvent(EventLogTags.SYSUI_RECENTS_EVENT, 2 /* closed */);
    }

    @Override