Loading core/java/android/net/DhcpStateMachine.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -374,7 +374,7 @@ public class DhcpStateMachine extends StateMachine { //Do it a bit earlier than half the lease duration time //Do it a bit earlier than half the lease duration time //to beat the native DHCP client and avoid extra packets //to beat the native DHCP client and avoid extra packets //48% for one hour lease time = 29 minutes //48% for one hour lease time = 29 minutes mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + SystemClock.elapsedRealtime() + leaseDuration * 480, //in milliseconds leaseDuration * 480, //in milliseconds mDhcpRenewalIntent); mDhcpRenewalIntent); Loading services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -878,8 +878,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase { mAlarmManager.remove(isA(PendingIntent.class)); mAlarmManager.remove(isA(PendingIntent.class)); expectLastCall().anyTimes(); expectLastCall().anyTimes(); mAlarmManager.setInexactRepeating( mAlarmManager.set(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class), false); eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class)); expectLastCall().atLeastOnce(); expectLastCall().atLeastOnce(); mNetManager.setGlobalAlert(anyLong()); mNetManager.setGlobalAlert(anyLong()); Loading Loading
core/java/android/net/DhcpStateMachine.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -374,7 +374,7 @@ public class DhcpStateMachine extends StateMachine { //Do it a bit earlier than half the lease duration time //Do it a bit earlier than half the lease duration time //to beat the native DHCP client and avoid extra packets //to beat the native DHCP client and avoid extra packets //48% for one hour lease time = 29 minutes //48% for one hour lease time = 29 minutes mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + SystemClock.elapsedRealtime() + leaseDuration * 480, //in milliseconds leaseDuration * 480, //in milliseconds mDhcpRenewalIntent); mDhcpRenewalIntent); Loading
services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -878,8 +878,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase { mAlarmManager.remove(isA(PendingIntent.class)); mAlarmManager.remove(isA(PendingIntent.class)); expectLastCall().anyTimes(); expectLastCall().anyTimes(); mAlarmManager.setInexactRepeating( mAlarmManager.set(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class), false); eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class)); expectLastCall().atLeastOnce(); expectLastCall().atLeastOnce(); mNetManager.setGlobalAlert(anyLong()); mNetManager.setGlobalAlert(anyLong()); Loading