summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2014-11-11 20:26:19 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-11 20:26:19 +0000
commit56c1037767fd77116c8de4021a56d761c6bd288c (patch)
tree7f168dfb54281effdf284e6ae746e8333e12ae1a /packages
parentd476bfd01b7443d63381141d14a20833421d8657 (diff)
parentaeca1baf656ac5197db345db6b890a5c5e4719b0 (diff)
downloadframeworks_base-56c1037767fd77116c8de4021a56d761c6bd288c.zip
frameworks_base-56c1037767fd77116c8de4021a56d761c6bd288c.tar.gz
frameworks_base-56c1037767fd77116c8de4021a56d761c6bd288c.tar.bz2
am aeca1baf: Merge "Add event logs when we launch fullscreen notications." into lmp-mr1-dev
* commit 'aeca1baf656ac5197db345db6b890a5c5e4719b0': Add event logs when we launch fullscreen notications.
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/EventLogTags.logtags2
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java7
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
index 5f2c348..6337956 100644
--- a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
+++ b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
@@ -7,6 +7,8 @@ option java_package com.android.systemui;
# ---------------------------
36000 sysui_statusbar_touch (type|1),(x|1),(y|1),(enabled|1)
36001 sysui_heads_up_status (key|3),(visible|1)
+36002 sysui_fullscreen_notification (key|3)
+36003 sysui_heads_up_escalation (key|3)
# ---------------------------
# PhoneStatusBarView.java
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index ce2ce6b..1697646 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -1309,6 +1309,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
// not immersive & a full-screen alert should be shown
if (DEBUG) Log.d(TAG, "Notification has fullScreenIntent; sending fullScreenIntent");
try {
+ EventLog.writeEvent(EventLogTags.SYSUI_FULLSCREEN_NOTIFICATION,
+ notification.getKey());
notification.getNotification().fullScreenIntent.send();
} catch (PendingIntent.CanceledException e) {
}
@@ -1350,16 +1352,19 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
@Override
public void scheduleHeadsUpOpen() {
+ mHandler.removeMessages(MSG_SHOW_HEADS_UP);
mHandler.sendEmptyMessage(MSG_SHOW_HEADS_UP);
}
@Override
public void scheduleHeadsUpClose() {
+ mHandler.removeMessages(MSG_HIDE_HEADS_UP);
mHandler.sendEmptyMessage(MSG_HIDE_HEADS_UP);
}
@Override
public void scheduleHeadsUpEscalation() {
+ mHandler.removeMessages(MSG_ESCALATE_HEADS_UP);
mHandler.sendEmptyMessage(MSG_ESCALATE_HEADS_UP);
}
@@ -2194,6 +2199,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
if (DEBUG)
Log.d(TAG, "converting a heads up to fullScreen");
try {
+ EventLog.writeEvent(EventLogTags.SYSUI_HEADS_UP_ESCALATION,
+ sbn.getKey());
notification.fullScreenIntent.send();
} catch (PendingIntent.CanceledException e) {
}