Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e07a89b authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix build & preserve DHCP scheduling as-is

Change-Id: I4063b18532c476280f343658bf3641495e526ed4
parent b4be6948
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ public class DhcpStateMachine extends StateMachine {
                //Do it a bit earlier than half the lease duration time
                //to beat the native DHCP client and avoid extra packets
                //48% for one hour lease time = 29 minutes
                mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                        SystemClock.elapsedRealtime() +
                        leaseDuration * 480, //in milliseconds
                        mDhcpRenewalIntent);
+1 −2
Original line number Diff line number Diff line
@@ -878,8 +878,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
        mAlarmManager.remove(isA(PendingIntent.class));
        expectLastCall().anyTimes();

        mAlarmManager.setInexactRepeating(
                eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class));
        mAlarmManager.set(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class), false);
        expectLastCall().atLeastOnce();

        mNetManager.setGlobalAlert(anyLong());