summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-05-13 10:39:07 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-11 11:16:49 -0700
commitc07b1469e02da319eaf825a824411ae4b344541d (patch)
treec4788ed56028285a19ee6fe161eb7320e5030fd0
parent17297b78876f152f03ee51e5d95e5880420114a6 (diff)
downloadframeworks_base-c07b1469e02da319eaf825a824411ae4b344541d.zip
frameworks_base-c07b1469e02da319eaf825a824411ae4b344541d.tar.gz
frameworks_base-c07b1469e02da319eaf825a824411ae4b344541d.tar.bz2
SystemUI: add RecentsView EventLogs
Ticket: CYNGNOS-2391 Change-Id: Iec202e9f764fce85eaa4ddff7c8f311146b00229 Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r--packages/SystemUI/src/com/android/systemui/EventLogTags.logtags9
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java8
2 files changed, 17 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
index bd0799f..a08d4b7 100644
--- a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
+++ b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
@@ -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
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
index 64622620..735b944 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
@@ -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