summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-09-23 17:08:57 -0700
committerDianne Hackborn <hackbod@google.com>2012-09-24 10:55:46 -0700
commit50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 (patch)
treeaf1acc3ce0293d1ed797ecf0b7210464eb76e67c /core/tests
parent6b3292ce5b3908c7433503f64c852cf2b27718ed (diff)
downloadframeworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.zip
frameworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.tar.gz
frameworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.tar.bz2
Fix issue #7214090: Need to be able to post notifications to all users
Also fix a bunch of system services that should be doing this. And while doing that, found I needed to fix PendingIntent to evaluate USER_CURRENT at the point of sending, not creation. Note that this may end up with us having some notification shown to non-primary users that lead to settings UI that should only be for the primary user (such as the vpn notification). I'm not sure what to do about this, maybe we need a different UI to come up there or something, but showing the actual notification for those users at least seems less broken than not telling them at all. Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/coretests/src/android/accounts/AccountManagerServiceTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/accounts/AccountManagerServiceTest.java b/core/tests/coretests/src/android/accounts/AccountManagerServiceTest.java
index 33a73b5..1d7576f 100644
--- a/core/tests/coretests/src/android/accounts/AccountManagerServiceTest.java
+++ b/core/tests/coretests/src/android/accounts/AccountManagerServiceTest.java
@@ -23,6 +23,7 @@ import android.content.pm.RegisteredServicesCache.ServiceInfo;
import android.content.pm.RegisteredServicesCacheListener;
import android.os.Bundle;
import android.os.Handler;
+import android.os.UserHandle;
import android.test.AndroidTestCase;
import android.test.IsolatedContext;
import android.test.RenamingDelegatingContext;
@@ -243,11 +244,11 @@ public class AccountManagerServiceTest extends AndroidTestCase {
}
@Override
- protected void installNotification(final int notificationId, final Notification n) {
+ protected void installNotification(final int notificationId, final Notification n, UserHandle user) {
}
@Override
- protected void cancelNotification(final int id) {
+ protected void cancelNotification(final int id, UserHandle user) {
}
}
}