diff options
author | Narayan Kamath <narayan@google.com> | 2014-04-11 11:42:33 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-04-11 10:50:43 +0000 |
commit | 24c089a8b5871b331441d0858aa164364b7737cb (patch) | |
tree | ab10e7a5f7847895355e2a001e6dda01d956c7d7 /services/tests/servicestests | |
parent | b11f250e09195d1ab250c93bfed0b31ed3a40f3d (diff) | |
download | frameworks_base-24c089a8b5871b331441d0858aa164364b7737cb.zip frameworks_base-24c089a8b5871b331441d0858aa164364b7737cb.tar.gz frameworks_base-24c089a8b5871b331441d0858aa164364b7737cb.tar.bz2 |
Fix build.
isScreenOn was changed to isInteractive.
Change-Id: I381d0b0ca745b61e64ac6309c2a6307696f52be0
Diffstat (limited to 'services/tests/servicestests')
-rw-r--r-- | services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java index 8b9f718..8392672 100644 --- a/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java +++ b/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java @@ -216,7 +216,7 @@ public class NetworkPolicyManagerServiceTest extends AndroidTestCase { expectLastCall().atLeastOnce(); // expect to answer screen status during systemReady() - expect(mPowerManager.isScreenOn()).andReturn(true).atLeastOnce(); + expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); expect(mNetworkManager.isBandwidthControlEnabled()).andReturn(true).atLeastOnce(); expectCurrentTime(); @@ -331,7 +331,7 @@ public class NetworkPolicyManagerServiceTest extends AndroidTestCase { verifyAndReset(); // now turn screen off and verify REJECT rule - expect(mPowerManager.isScreenOn()).andReturn(false).atLeastOnce(); + expect(mPowerManager.isInteractive()).andReturn(false).atLeastOnce(); expectSetUidNetworkRules(UID_A, true); expectSetUidForeground(UID_A, false); future = expectRulesChanged(UID_A, RULE_REJECT_METERED); @@ -341,7 +341,7 @@ public class NetworkPolicyManagerServiceTest extends AndroidTestCase { verifyAndReset(); // and turn screen back on, verify ALLOW rule restored - expect(mPowerManager.isScreenOn()).andReturn(true).atLeastOnce(); + expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); expectSetUidNetworkRules(UID_A, false); expectSetUidForeground(UID_A, true); future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); |