diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-07-13 18:00:37 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-07-14 18:33:08 -0700 |
commit | fd854ee58c5d56f84047007ead9f88a767ae956f (patch) | |
tree | 8cd12e57928f2984b2da6c9a0872fcb795c5fa94 /test-runner | |
parent | 987241265b77542f45ce95838c25beeaf3ae6849 (diff) | |
download | frameworks_base-fd854ee58c5d56f84047007ead9f88a767ae956f.zip frameworks_base-fd854ee58c5d56f84047007ead9f88a767ae956f.tar.gz frameworks_base-fd854ee58c5d56f84047007ead9f88a767ae956f.tar.bz2 |
Fix issue #21626564: MMS should be receivied while Dozing
We now place whoever is receiving the MMS on the temporary
whitelist while doing so, so they can get network access to
download it.
There was also an issue that needed to be fixed where we
were no longer updating the list of allowed uids while
dozing based on their proc states... we now do that.
Also did a bit of optimization of the temp white list update
path do the network policy manager, instead of going through
a broadcast we now directly call in to the network policy
manager. This also allows us to have a synchronous version
of updating the list, so we can know the app has network access
before we tell it to do anything.
Finally added battery stats events for things going on and off
the whitelist so we can diagnose the behavior there.
Change-Id: Ic7fe010af680034d9f8cb014bb135b2addef7455
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/src/android/test/mock/MockContext.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index e5ea562..e09d124 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -395,13 +395,19 @@ public class MockContext extends Context { @Override public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, int appOp, BroadcastReceiver resultReceiver, - Handler scheduler, - int initialCode, String initialData, Bundle initialExtras) { + Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { throw new UnsupportedOperationException(); } + /** @hide */ @Override + public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, + String receiverPermission, int appOp, Bundle options, BroadcastReceiver resultReceiver, + Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { + throw new UnsupportedOperationException(); + } + @Override public void sendStickyBroadcast(Intent intent) { throw new UnsupportedOperationException(); } |