Loading services/core/java/com/android/server/notification/ReviewNotificationPermissionsJobService.java +0 −4 Original line number Diff line number Diff line Loading @@ -42,10 +42,6 @@ public class ReviewNotificationPermissionsJobService extends JobService { */ public static void scheduleJob(Context context, long rescheduleTimeMillis) { JobScheduler jobScheduler = context.getSystemService(JobScheduler.class); // if the job already exists for some reason, cancel & reschedule if (jobScheduler.getPendingJob(JOB_ID) != null) { jobScheduler.cancel(JOB_ID); } ComponentName component = new ComponentName( context, ReviewNotificationPermissionsJobService.class); JobInfo newJob = new JobInfo.Builder(JOB_ID, component) Loading services/tests/uiservicestests/src/com/android/server/notification/ReviewNotificationPermissionsJobServiceTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -20,10 +20,8 @@ import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import android.app.job.JobInfo; import android.app.job.JobParameters; Loading Loading @@ -75,9 +73,6 @@ public class ReviewNotificationPermissionsJobServiceTest extends UiServiceTestCa @Test public void testScheduleJob() { // if asked, the job doesn't currently exist yet when(mMockJobScheduler.getPendingJob(anyInt())).thenReturn(null); final int rescheduleTimeMillis = 350; // arbitrary number // attempt to schedule the job Loading Loading
services/core/java/com/android/server/notification/ReviewNotificationPermissionsJobService.java +0 −4 Original line number Diff line number Diff line Loading @@ -42,10 +42,6 @@ public class ReviewNotificationPermissionsJobService extends JobService { */ public static void scheduleJob(Context context, long rescheduleTimeMillis) { JobScheduler jobScheduler = context.getSystemService(JobScheduler.class); // if the job already exists for some reason, cancel & reschedule if (jobScheduler.getPendingJob(JOB_ID) != null) { jobScheduler.cancel(JOB_ID); } ComponentName component = new ComponentName( context, ReviewNotificationPermissionsJobService.class); JobInfo newJob = new JobInfo.Builder(JOB_ID, component) Loading
services/tests/uiservicestests/src/com/android/server/notification/ReviewNotificationPermissionsJobServiceTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -20,10 +20,8 @@ import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import android.app.job.JobInfo; import android.app.job.JobParameters; Loading Loading @@ -75,9 +73,6 @@ public class ReviewNotificationPermissionsJobServiceTest extends UiServiceTestCa @Test public void testScheduleJob() { // if asked, the job doesn't currently exist yet when(mMockJobScheduler.getPendingJob(anyInt())).thenReturn(null); final int rescheduleTimeMillis = 350; // arbitrary number // attempt to schedule the job Loading