Home
last modified time | relevance | path

Searched refs:SystemJobInfoConverter (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverterTest.java61 private SystemJobInfoConverter mConverter;
65 mConverter = new SystemJobInfoConverter( in setUp()
76 SystemJobInfoConverter.EXTRA_WORK_SPEC_ID); in testConvert_ids()
230 assertThat(SystemJobInfoConverter.convertNetworkType(NOT_REQUIRED), in testConvertNetworkType_none()
237 assertThat(SystemJobInfoConverter.convertNetworkType(CONNECTED), in testConvertNetworkType_any()
244 assertThat(SystemJobInfoConverter.convertNetworkType(UNMETERED), in testConvertNetworkType_unmetered()
252 assertThat(SystemJobInfoConverter.convertNetworkType(NOT_ROAMING), in testConvertNetworkType_notRoaming_returnAnyBeforeApi24()
260 assertThat(SystemJobInfoConverter.convertNetworkType(NOT_ROAMING), in testConvertNetworkType_notRoaming_returnsNotRoamingAtOrAfterApi24()
268 assertThat(SystemJobInfoConverter.convertNetworkType(METERED), in testConvertNetworkType_metered_returnsAnyBeforeApi26()
276 assertThat(SystemJobInfoConverter.convertNetworkType(METERED), in testConvertNetworkType_metered_returnsMeteredAtOrAfterApi26()
DSystemJobSchedulerTest.java22 import static androidx.work.impl.background.systemjob.SystemJobInfoConverter.EXTRA_WORK_SPEC_ID;
104 new SystemJobInfoConverter(context))); in setUp()
DSystemJobServiceTest.java261 persistableBundle.putString(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID, id); in createMockJobParameters()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java52 private final SystemJobInfoConverter mSystemJobInfoConverter;
58 new SystemJobInfoConverter(context)); in SystemJobScheduler()
66 SystemJobInfoConverter systemJobInfoConverter) { in SystemJobScheduler()
138 jobInfo.getExtras().getString(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID))) { in cancel()
170 if (extras.containsKey(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID)) { in jobSchedulerCancelAll()
DSystemJobService.java64 String workSpecId = extras.getString(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID); in onStartJob()
79 boolean isPeriodic = extras.getBoolean(SystemJobInfoConverter.EXTRA_IS_PERIODIC, false); in onStartJob()
112 String workSpecId = params.getExtras().getString(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID); in onStopJob()
DSystemJobInfoConverter.java46 class SystemJobInfoConverter { class
55 SystemJobInfoConverter(@NonNull Context context) { in SystemJobInfoConverter() method in SystemJobInfoConverter