Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageProcessorProxyListener.java150 public void onStart(TaskImageContainer.TaskInfo job) { in onStart() argument
153 listeners = filteredListeners(job.contentId); in onStart()
157 l.onStart(job); in onStart()
161 public void onResultCompressed(TaskImageContainer.TaskInfo job, in onResultCompressed() argument
165 listeners = filteredListeners(job.contentId); in onResultCompressed()
169 l.onResultCompressed(job, payload); in onResultCompressed()
173 public void onResultUncompressed(TaskImageContainer.TaskInfo job, in onResultUncompressed() argument
177 listeners = filteredListeners(job.contentId); in onResultUncompressed()
181 l.onResultUncompressed(job, payload); in onResultUncompressed()
185 public void onResultUri(TaskImageContainer.TaskInfo job, Uri uri) { in onResultUri() argument
[all …]
DTaskJpegEncode.java212 TaskInfo job = new TaskInfo(id, input, result, aDestination); in onJpegEncodeDone() local
214 listener.onResultCompressed(job, new CompressedPayload(data)); in onJpegEncodeDone()
228 final TaskInfo job = new TaskInfo(id, input, result, destination); in onUriResolved() local
230 listener.onResultUri(job, imageUri); in onUriResolved()
DTaskImageContainer.java292 TaskInfo job = new TaskInfo(id, input, result, aDestination); in onStart() local
294 listener.onStart(job); in onStart()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/job/
DDishService.java16 package com.google.android.car.kitchensink.job;
18 import android.app.job.JobParameters;
19 import android.app.job.JobService;
42 JobParameters job = (JobParameters) msg.obj;
45 Log.d(TAG, "Job done! " + job.getJobId());
46 mTaskMap.remove(job.getJobId());
47 jobFinished(job, false);
50 DishWasherTask task = new DishWasherTask(this, job, msg.arg1);
52 mTaskMap.put(job.getJobId(), job);
55 JobParameters job1 = mTaskMap.get(job.getJobId());
[all …]
DJobSchedulerFragment.java16 package com.google.android.car.kitchensink.job;
18 import android.app.job.JobInfo;
19 import android.app.job.JobScheduler;
107 for (JobInfo job : jobs) { in refreshCurrentJobs()
109 sb.append(job.getId()); in refreshCurrentJobs()
111 sb.append(job.getExtras().getInt(DishService.EXTRA_DISH_COUNT, 0)); in refreshCurrentJobs()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java48 public JobWrapper(Job<T> job, FutureListener<T> listener) { in JobWrapper() argument
49 mJob = job; in JobWrapper()
105 Job<T> job = null; in run() local
108 job = mJob; in run()
112 result = job.run(jc); in run()
114 Log.w(TAG, "error executing job: " + job, t); in run()
136 public synchronized <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit() argument
137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener); in submit()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java56 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { in testGetCapsMode() local
58 protected SpacingAndPunctuations job(final Resources res) { in testGetCapsMode()
63 SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode()
94 sp = job.runInLocale(res, Locale.FRENCH); in testGetCapsMode()
101 sp = job.runInLocale(res, Locale.GERMAN); in testGetCapsMode()
107 sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode()
115 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("hy_AM")); in testGetCapsMode()
129 sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode()
140 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("el")); in testGetCapsMode()
DDictionaryInfoUtilsTests.java31 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { in testLooksValidForDictionaryInsertion() local
33 protected SpacingAndPunctuations job(final Resources res) { in testLooksValidForDictionaryInsertion()
38 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testLooksValidForDictionaryInsertion()
DSubtypeLocaleUtilsTests.java229 protected Void job(final Resources res) { in testPredefinedSubtypesInEnglishSystemLocale()
270 protected Void job(final Resources res) { in testAdditionalSubtypesInEnglishSystemLocale()
329 protected Void job(final Resources res) { in testPredefinedSubtypesInFrenchSystemLocale()
370 protected Void job(final Resources res) { in testAdditionalSubtypesInFrenchSystemLocale()
411 protected Void job (final Resources res) { in testHinglishSubtypesInHindiSystemLocale()
438 protected Void job (final Resources res) { in testSerbianLatinSubtypesInSerbianSystemLocale()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit() argument
98 Worker<T> w = new Worker<T>(job, listener); in submit()
103 public <T> Future<T> submit(Job<T> job) { in submit() argument
104 return submit(job, null); in submit()
119 public Worker(Job<T> job, FutureListener<T> listener) { in Worker() argument
120 mJob = job; in Worker()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java23 import android.app.job.JobInfo;
24 import android.app.job.JobParameters;
25 import android.app.job.JobScheduler;
26 import android.app.job.JobService;
89 final JobInfo job = new JobInfo.Builder(IDLE_JOB_ID, in scheduleIdlePass() local
95 scheduler.schedule(job); in scheduleIdlePass()
DDownloadJobService.java23 import android.app.job.JobParameters;
24 import android.app.job.JobService;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DKlpActionLabelTests.java78 final RunInLocale<Void> job = new RunInLocale<Void>() { in doTestActionKeysInLocaleWithStringResources() local
80 public Void job(final Resources res) { in doTestActionKeysInLocaleWithStringResources()
86 job.runInLocale(getContext().getResources(), systemLocale); in doTestActionKeysInLocaleWithStringResources()
136 final RunInLocale<Void> job = new RunInLocale<Void>() { in doTestActionKeysInLocaleWithKeyboardTextsSet() local
138 public Void job(final Resources res) { in doTestActionKeysInLocaleWithKeyboardTextsSet()
144 job.runInLocale(getContext().getResources(), systemLocale); in doTestActionKeysInLocaleWithKeyboardTextsSet()
DActionTestsBase.java54 protected String job(final Resources res) { in newLabelKey()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DRunInLocale.java27 protected abstract T job(final Resources res); in job() method in RunInLocale
40 return job(res); in runInLocale()
46 return job(res); in runInLocale()
DSubtypeLocaleUtils.java228 protected String job(final Resources res) { in getSubtypeLocaleDisplayNameInternal()
291 protected String job(final Resources res) { in getSubtypeDisplayNameInternal()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardService.java355 final ProcessorBase job = mRunningJobMap.get(jobId); in handleFinishExportNotification() local
357 if (job == null) { in handleFinishExportNotification()
359 } else if (!(job instanceof ExportProcessor)) { in handleFinishExportNotification()
363 final String path = ((ExportProcessor)job).getRequest().destUri.getEncodedPath(); in handleFinishExportNotification()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java81 final RunInLocale<SpacingAndPunctuations> job = in WordIterator() local
84 protected SpacingAndPunctuations job(final Resources r) { in WordIterator()
88 mSpacingAndPunctuations = job.runInLocale(res, locale); in WordIterator()
/packages/apps/Gallery/src/com/android/camera/
DUtil.java377 public BackgroundJob(MonitoredActivity activity, Runnable job, in BackgroundJob() argument
381 mJob = job; in BackgroundJob()
415 String title, String message, Runnable job, Handler handler) { in startBackgroundJob() argument
420 new Thread(new BackgroundJob(activity, job, dialog, handler)).start(); in startBackgroundJob()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyboardBuilder.java87 private void replaceKeyOf(final ExpectedKeyVisual visual, final ReplaceJob job) { in replaceKeyOf() argument
98 final ExpectedKey[] replacingKeys = job.replacingKeys(currentKey); in replaceKeyOf()
103 if (job.stopAtFirstOccurrence()) { in replaceKeyOf()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java178 final RunInLocale<SettingsValues> job = new RunInLocale<SettingsValues>() { in loadSettings() local
180 protected SettingsValues job(final Resources res) { in loadSettings()
184 mSettingsValues = job.runInLocale(mRes, locale); in loadSettings()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java24 import android.app.job.JobParameters;
25 import android.app.job.JobScheduler;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java53 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { in setUp() local
55 protected SpacingAndPunctuations job(final Resources res) { in setUp()
60 mSpacingAndPunctuations = job.runInLocale(res, Locale.ENGLISH); in setUp()
DRichInputMethodSubtypeTests.java228 protected Void job(final Resources res) {
266 protected Void job(final Resources res) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java96 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { in getSpacingAndPunctuations() local
98 protected SpacingAndPunctuations job(Resources res) { in getSpacingAndPunctuations()
102 return job.runInLocale(getContext().getResources(), locale); in getSpacingAndPunctuations()

12