summaryrefslogtreecommitdiff
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2016-02-09 14:54:08 -0500
committerJulia Reynolds <juliacr@google.com>2016-02-09 14:54:08 -0500
commit81afbcdbf96c687b61ed53170e1654f4f8ea5b15 (patch)
tree18d86025fe5ac36afb41ba506b94afa88a28cae4 /tests/StatusBar
parentb1a235f9524b71126a9768571ad0b0a7fe0b304c (diff)
Allow apps to know what users think of their notifications.
- App wide blocking - Topic importance Change-Id: I9026e5c26c5dbcab1c86c385beede891f961933f
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
index 3a30230833ed..46de2016e4e4 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
@@ -37,6 +37,7 @@ import android.os.PowerManager;
// private NM API
import android.app.INotificationManager;
+import android.widget.Toast;
public class NotificationTestList extends TestActivity
{
@@ -233,6 +234,30 @@ public class NotificationTestList extends TestActivity
}
},
+ new Test("Is blocked?") {
+ public void run() {
+ Toast.makeText(NotificationTestList.this,
+ "package enabled? " + mNM.areNotificationsEnabled(),
+ Toast.LENGTH_LONG).show();
+ }
+ },
+
+ new Test("Topic banana importance?") {
+ public void run() {
+ Toast.makeText(NotificationTestList.this,
+ "bananas importance? " + mNM.getImportance("bananas"),
+ Toast.LENGTH_LONG).show();
+ }
+ },
+
+ new Test("Topic garbage importance?") {
+ public void run() {
+ Toast.makeText(NotificationTestList.this,
+ "garbage importance? " + mNM.getImportance("garbage"),
+ Toast.LENGTH_LONG).show();
+ }
+ },
+
new Test("Whens") {
public void run()
{