Searched refs:SystemJobInfoConverter (Results 1 – 6 of 6) sorted by relevance
61 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()
22 import static androidx.work.impl.background.systemjob.SystemJobInfoConverter.EXTRA_WORK_SPEC_ID;104 new SystemJobInfoConverter(context))); in setUp()
261 persistableBundle.putString(SystemJobInfoConverter.EXTRA_WORK_SPEC_ID, id); in createMockJobParameters()
52 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()
64 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()
46 class SystemJobInfoConverter { class55 SystemJobInfoConverter(@NonNull Context context) { in SystemJobInfoConverter() method in SystemJobInfoConverter