Search in sources :

Example 16 with JobWorkItem

use of android.app.job.JobWorkItem in project android_packages_apps_Dialer by LineageOS.

the class TranscriptionService method makeWorkItem.

private static JobWorkItem makeWorkItem(Uri voicemailUri, PhoneAccountHandle account) {
    Intent intent = new Intent();
    intent.putExtra(EXTRA_VOICEMAIL_URI, voicemailUri);
    if (account != null) {
        intent.putExtra(EXTRA_ACCOUNT_HANDLE, account);
    }
    return new JobWorkItem(intent);
}
Also used : Intent(android.content.Intent) JobWorkItem(android.app.job.JobWorkItem)

Aggregations

JobWorkItem (android.app.job.JobWorkItem)16 ComponentName (android.content.ComponentName)7 Intent (android.content.Intent)7 JobInfo (android.app.job.JobInfo)6 JobScheduler (android.app.job.JobScheduler)6 ContentResolver (android.content.ContentResolver)2 Context (android.content.Context)2 UserManager (android.os.UserManager)2 MainThread (android.support.annotation.MainThread)2 BatteryUtils (com.android.settings.fuelgauge.BatteryUtils)2 PowerUsageFeatureProvider (com.android.settings.fuelgauge.PowerUsageFeatureProvider)2 MetricsFeatureProvider (com.android.settingslib.core.instrumentation.MetricsFeatureProvider)2 Test (org.junit.Test)2 Config (org.robolectric.annotation.Config)2 TargetApi (android.annotation.TargetApi)1 PhoneAccountHandle (android.telecom.PhoneAccountHandle)1 PowerAllowlistBackend (com.android.settingslib.fuelgauge.PowerAllowlistBackend)1 PowerWhitelistBackend (com.android.settingslib.fuelgauge.PowerWhitelistBackend)1