diff options
| author | Jeff Davidson <jpd@google.com> | 2014-11-03 17:39:54 -0800 |
|---|---|---|
| committer | Jeff Davidson <jpd@google.com> | 2014-11-04 10:55:49 -0800 |
| commit | 161977998feebf0a855ea56558464470877040cf (patch) | |
| tree | 3abb176afaab33879db2e7c54386c421432c42a4 /core/tests/coretests | |
| parent | a8d83d639a5687b2ab5689db4ea61e2a6cce66f4 (diff) | |
| download | frameworks_base-161977998feebf0a855ea56558464470877040cf.zip frameworks_base-161977998feebf0a855ea56558464470877040cf.tar.gz frameworks_base-161977998feebf0a855ea56558464470877040cf.tar.bz2 | |
Rename BROADCAST_SCORE_NETWORKS to BROADCAST_NETWORK_PRIVILEGED.
This is necessary/desired for two reasons:
1. UX around network scoring shipped with L despite lacking underlying
platform support. We do not want network scoring applications to
trigger this UX on L devices, and therefore we must break the contract
of what defines a network scorer so that apps build against the new
contract don't trigger the old UX.
2. As a start towards generalizing the term "score" for a potentially
broader role in the future, though that role is very much undefined.
Bug: 18160480
Change-Id: If228977513e32e45bc44dbeda24aa18436fdfca6
Diffstat (limited to 'core/tests/coretests')
| -rw-r--r-- | core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java b/core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java index f916711..9bb44d0 100644 --- a/core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java +++ b/core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java @@ -59,7 +59,7 @@ public class NetworkScorerAppManagerTest extends InstrumentationTestCase { // Package 1 - Valid scorer. Pair<ResolveInfo, ResolveInfo> package1 = buildResolveInfo("package1", true, true, false); - // Package 2 - Receiver does not have BROADCAST_SCORE_NETWORKS permission. + // Package 2 - Receiver does not have BROADCAST_NETWORK_PRIVILEGED permission. Pair<ResolveInfo, ResolveInfo> package2 = buildResolveInfo("package2", false, true, false); // Package 3 - App does not have SCORE_NETWORKS permission. @@ -134,7 +134,7 @@ public class NetworkScorerAppManagerTest extends InstrumentationTestCase { resolveInfo.activityInfo.packageName = packageName; resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); if (hasReceiverPermission) { - resolveInfo.activityInfo.permission = permission.BROADCAST_SCORE_NETWORKS; + resolveInfo.activityInfo.permission = permission.BROADCAST_NETWORK_PRIVILEGED; } ResolveInfo configActivityInfo = null; |
