diff options
author | John Spurlock <jspurlock@google.com> | 2015-03-18 19:21:54 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2015-03-20 00:04:11 -0400 |
commit | 1d881a1e986c706963c254fbe2b6296a1cd10b75 (patch) | |
tree | 771b5732ce70606a3aa688d0bd5927a2dcf8f732 /core/java/android/app/Notification.java | |
parent | 11b7445f9534c952e25b727e5d7fa1007d51e9c9 (diff) | |
download | frameworks_base-1d881a1e986c706963c254fbe2b6296a1cd10b75.zip frameworks_base-1d881a1e986c706963c254fbe2b6296a1cd10b75.tar.gz frameworks_base-1d881a1e986c706963c254fbe2b6296a1cd10b75.tar.bz2 |
HUN: Implement per-package config.
- Keep track of whether or not HUNs are allowed per-package.
- No impact on ranking, purely presentational.
- Simplify RankingHelper with a package table.
- Improve RankingHelper dump.
- Fix some warnings and typos.
Bug: 19776495
Change-Id: I28d69df69b576f4eabbb528eabecb1f736f0e830
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r-- | core/java/android/app/Notification.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 55d6ac8..320d9f4 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1840,6 +1840,26 @@ public class Notification implements Parcelable } /** + * {@hide} + */ + public static String priorityToString(@Priority int pri) { + switch (pri) { + case PRIORITY_MIN: + return "MIN"; + case PRIORITY_LOW: + return "LOW"; + case PRIORITY_DEFAULT: + return "DEFAULT"; + case PRIORITY_HIGH: + return "HIGH"; + case PRIORITY_MAX: + return "MAX"; + default: + return "UNKNOWN(" + String.valueOf(pri) + ")"; + } + } + + /** * @hide */ public boolean isValid() { |