Home
last modified time | relevance | path

Searched refs:scheduleTask (Results 1 – 25 of 30) sorted by relevance

12

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsTaskSchedulerTest.java51 scheduler.scheduleTask(1); in testSimple()
52 scheduler.scheduleTask(10); in testSimple()
53 scheduler.scheduleTask(2, "arg"); in testSimple()
66 scheduler.scheduleTask(1); in testAutoShutdown()
73 scheduler.scheduleTask(2); in testAutoShutdown()
77 scheduler.scheduleTask(3); in testAutoShutdown()
80 scheduler.scheduleTask(4); in testAutoShutdown()
83 scheduler.scheduleTask(5); in testAutoShutdown()
86 scheduler.scheduleTask(6); in testAutoShutdown()
93 scheduler.scheduleTask(7); in testAutoShutdown()
DBaseVoicemailProviderTest.java180 void scheduleTask(int taskId, Object arg) {
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelperTest.java102 public void scheduleTask() { in scheduleTask() method in JobSchedulerHelperTest
103 assertThat(mJobSchedulerHelper.scheduleTask(mContext, TRAINING_TASK)).isTrue(); in scheduleTask()
112 mJobSchedulerHelper.scheduleTask(mContext, TRAINING_TASK); in schedule_collides_sameService_success()
114 assertThat(mJobSchedulerHelper.scheduleTask(mContext, TRAINING_TASK)).isTrue(); in schedule_collides_sameService_success()
128 assertThat(mJobSchedulerHelper.scheduleTask(mContext, trainingTask)).isTrue(); in scheduleTask_overrideIdleConstraint_waivesIdle()
148 assertThat(mJobSchedulerHelper.scheduleTask(mContext, trainingTask)).isTrue(); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
168 assertThat(mJobSchedulerHelper.scheduleTask(mContext, trainingTask)).isTrue(); in scheduleTask_overrideChargingConstraint_waivesCharging()
179 mJobSchedulerHelper.scheduleTask(mContext, TRAINING_TASK); in cancelTask()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsTaskScheduler.java95 public void scheduleTask(int taskId) { in scheduleTask() method in ContactsTaskScheduler
96 scheduleTask(taskId, null); in scheduleTask()
101 public void scheduleTask(int taskId, Object arg) { in scheduleTask() method in ContactsTaskScheduler
DVoicemailContentProvider.java144 scheduleTask(BACKGROUND_TASK_SCAN_STALE_PACKAGES, null); in scheduleScanStalePackages()
148 void scheduleTask(int taskId, Object arg) { in scheduleTask() method in VoicemailContentProvider
149 mTaskScheduler.scheduleTask(taskId, arg); in scheduleTask()
DContactsPackageMonitor.java114 mTaskScheduler.scheduleTask(BACKGROUND_TASK_PACKAGE_EVENT, in registerReceiver()
DCallLogProvider.java285 mTaskScheduler.scheduleTask(
288 mTaskScheduler.scheduleTask(BACKGROUND_TASK_ADJUST_PHONE_ACCOUNT,
366 mTaskScheduler.scheduleTask(BACKGROUND_TASK_INITIALIZE, null); in onCreate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/hal/
DRemoteAccessHalWrapperUnitTest.java237 mHalWrapper.scheduleTask(scheduleInfo); in testScheduleTask()
239 verify(mRemoteAccessHal).scheduleTask(scheduleInfo); in testScheduleTask()
245 doThrow(new RemoteException()).when(mRemoteAccessHal).scheduleTask(any()); in testScheduleTask_remoteException()
248 assertThrows(RemoteException.class, () -> mHalWrapper.scheduleTask(scheduleInfo)); in testScheduleTask_remoteException()
254 doThrow(new ServiceSpecificException(0)).when(mRemoteAccessHal).scheduleTask(any()); in testScheduleTask_serviceSpecificException()
257 assertThrows(ServiceSpecificException.class, () -> mHalWrapper.scheduleTask(scheduleInfo)); in testScheduleTask_serviceSpecificException()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogReceiver.java42 VisualVoicemailUpdateTask.scheduleTask(context, pendingResult::finish); in onReceive()
45 VisualVoicemailUpdateTask.scheduleTask(context, pendingResult::finish); in onReceive()
DVoicemailNotificationJobService.java55 VisualVoicemailUpdateTask.scheduleTask( in onStartJob()
DVisualVoicemailUpdateTask.java227 static void scheduleTask(@NonNull Context context, @NonNull Runnable callback) { in scheduleTask() method in VisualVoicemailUpdateTask
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/remoteaccess/
DRemoteAccessTestFragment.java93 v.findViewById(R.id.schedule_task_btn).setOnClickListener(this::scheduleTask); in onCreateView()
194 private void scheduleTask(View v) { in scheduleTask() method in RemoteAccessTestFragment
232 taskScheduler.scheduleTask(scheduleInfoBuilder.build()); in scheduleTask()
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dasync_manager.cc295 return scheduleTask(std::make_shared<Task>( in ExecAsync()
303 return scheduleTask(std::make_shared<Task>( in ExecAsyncPeriodically()
429 AsyncTaskId scheduleTask(const std::shared_ptr<Task>& task) { in scheduleTask() function in rootcanal::AsyncManager::AsyncTaskManager
/packages/services/Car/tests/CarLibUnitTest/src/android/car/remoteaccess/
DCarRemoteAccessManagerUnitTest.java466 mRemoteAccessManager.getInVehicleTaskScheduler().scheduleTask(scheduleInfo); in testScheduleTask()
468 verify(mService).scheduleTask(getTestTaskScheduleInfo()); in testScheduleTask()
476 mRemoteAccessManager.getInVehicleTaskScheduler().scheduleTask(null)); in testScheduleTask_nullScheduleInfo()
483 .scheduleTask(any()); in testScheduleTask_ServiceSpecificException()
489 mRemoteAccessManager.getInVehicleTaskScheduler().scheduleTask(scheduleInfo)); in testScheduleTask_ServiceSpecificException()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java1405 mService.scheduleTask(testTaskScheduleInfo); in testScheduleTask()
1407 verify(mRemoteAccessHalWrapper).scheduleTask(mHalScheduleInfoCaptor.capture()); in testScheduleTask()
1432 mService.scheduleTask(testTaskScheduleInfo); in testScheduleTask_enterGarageMode()
1434 verify(mRemoteAccessHalWrapper).scheduleTask(mHalScheduleInfoCaptor.capture()); in testScheduleTask_enterGarageMode()
1459 () -> mService.scheduleTask(testTaskScheduleInfo)); in testScheduleTask_unsupportedTaskType()
1468 mService.scheduleTask(testTaskScheduleInfo)); in testScheduleTask_unsupported()
1480 mService.scheduleTask(testTaskScheduleInfo)); in testScheduleTask_notServerlessClient()
1486 doThrow(new RemoteException()).when(mRemoteAccessHalWrapper).scheduleTask(any()); in testScheduleTask_RemoteException()
1490 mService.scheduleTask(testTaskScheduleInfo)); in testScheduleTask_RemoteException()
1498 .scheduleTask(any()); in testScheduleTask_serviceSpecificException()
[all …]
/packages/services/Car/car-lib/src/android/car/remoteaccess/
DICarRemoteAccessService.aidl77 void scheduleTask(in TaskScheduleInfo scheduleInfo); in scheduleTask() method
DCarRemoteAccessManager.java951 public void scheduleTask(@NonNull ScheduleInfo scheduleInfo) in scheduleTask() method in CarRemoteAccessManager.InVehicleTaskScheduler
956 mService.scheduleTask(taskScheduleInfo); in scheduleTask()
/packages/services/Car/service/src/com/android/car/remoteaccess/hal/
DRemoteAccessHalWrapper.java191 public void scheduleTask(ScheduleInfo scheduleInfo) in scheduleTask() method in RemoteAccessHalWrapper
195 remoteAccessHal.scheduleTask(scheduleInfo); in scheduleTask()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailClientImpl.java209 TranscriptionBackfillService.scheduleTask(context, phoneAccountHandle); in setVoicemailTranscriptionEnabled()
353 TranscriptionBackfillService.scheduleTask(context, account); in onTosAccepted()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionRatingService.java41 public static boolean scheduleTask(Context context, SendTranscriptionFeedbackRequest request) { in scheduleTask() method in TranscriptionRatingService
DTranscriptionRatingHelper.java78 TranscriptionRatingService.scheduleTask(context, getFeedbackRequest()); in doInBackground()
DTranscriptionBackfillService.java43 public static boolean scheduleTask(Context context, PhoneAccountHandle account) { in scheduleTask() method in TranscriptionBackfillService
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeLearningJobScheduleOrchestrator.java98 mJobSchedulerHelper.scheduleTask(mContext, task); in checkAndSchedule()
DJobSchedulerHelper.java43 public boolean scheduleTask(Context context, FederatedTrainingTask newTask) { in scheduleTask() method in JobSchedulerHelper
DFederatedComputeJobManager.java292 boolean scheduleResult = mJobSchedulerHelper.scheduleTask(mContext, newTask); in onTrainerStartCalled()
497 return mJobSchedulerHelper.scheduleTask(mContext, newTask); in rescheduleFederatedTaskAfterTraining()

12