Loading tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyCleanupJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,8 @@ public class AnomalyCleanupJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); } Loading tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ public class AnomalyConfigJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); mJobService = spy(new AnomalyConfigJobService()); Loading tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,8 @@ public class AnomalyDetectionJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); mPolicy = new BatteryTipPolicy(mContext); Loading Loading
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyCleanupJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,8 @@ public class AnomalyCleanupJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); } Loading
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ public class AnomalyConfigJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); mJobService = spy(new AnomalyConfigJobService()); Loading
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,8 @@ public class AnomalyDetectionJobServiceTest { MockitoAnnotations.initMocks(this); mContext = spy(RuntimeEnvironment.application); mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder()))); mJobScheduler = spy(new JobSchedulerImpl(mContext, IJobScheduler.Stub.asInterface(new Binder()))); when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); mPolicy = new BatteryTipPolicy(mContext); Loading