Home
last modified time | relevance | path

Searched refs:InputT (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDefaultDialerExecutorFactory.java60 public <InputT, OutputT> DialerExecutor.Builder<InputT, OutputT> createUiTaskBuilder( in createUiTaskBuilder()
63 @NonNull Worker<InputT, OutputT> worker) { in createUiTaskBuilder() argument
74 public <InputT, OutputT> DialerExecutor.Builder<InputT, OutputT> createNonUiTaskBuilder( in createNonUiTaskBuilder() argument
75 @NonNull Worker<InputT, OutputT> worker) { in createNonUiTaskBuilder()
79 private abstract static class BaseTaskBuilder<InputT, OutputT>
80 implements DialerExecutor.Builder<InputT, OutputT> {
82 private final Worker<InputT, OutputT> worker;
92 Worker<InputT, OutputT> worker, in BaseTaskBuilder() argument
102 public Builder<InputT, OutputT> onSuccess(@NonNull SuccessListener<OutputT> successListener) { in onSuccess()
109 public Builder<InputT, OutputT> onFailure(@NonNull FailureListener failureListener) { in onFailure()
[all …]
DDialerExecutor.java118 public interface DialerExecutor<InputT> {
121 interface Worker<InputT, OutputT> {
124 OutputT doInBackground(@Nullable InputT input) throws Throwable; in doInBackground()
140 interface Builder<InputT, OutputT> {
150 Builder<InputT, OutputT> onSuccess(@NonNull SuccessListener<OutputT> successListener); in onSuccess()
160 Builder<InputT, OutputT> onFailure(@NonNull FailureListener failureListener); in onFailure()
167 DialerExecutor<InputT> build(); in build()
172 void executeSerial(@Nullable InputT input); in executeSerial()
182 void executeSerialWithWait(@Nullable InputT input, long waitMillis); in executeSerialWithWait()
189 void executeParallel(@Nullable InputT input); in executeParallel()
[all …]
DDialerUiTaskFragment.java43 public final class DialerUiTaskFragment<InputT, OutputT> extends Fragment {
45 private Worker<InputT, OutputT> worker;
77 static <InputT, OutputT> DialerUiTaskFragment<InputT, OutputT> create( in create()
80 Worker<InputT, OutputT> worker, in create() argument
87 DialerUiTaskFragment<InputT, OutputT> fragment = in create()
88 (DialerUiTaskFragment<InputT, OutputT>) fragmentManager.findFragmentByTag(taskId); in create()
121 void executeSerial(InputT input) { in executeSerial()
125 void executeSerialWithWait(InputT input, long waitMillis) { in executeSerialWithWait()
134 void executeParallel(InputT input) { in executeParallel()
138 void executeOnCustomExecutor(ExecutorService executor, InputT input) { in executeOnCustomExecutor()
[all …]
DDialerExecutorFactory.java45 <InputT, OutputT> DialerExecutor.Builder<InputT, OutputT> createUiTaskBuilder( in createUiTaskBuilder()
48 @NonNull Worker<InputT, OutputT> worker); in createUiTaskBuilder() argument
61 <InputT, OutputT> DialerExecutor.Builder<InputT, OutputT> createNonUiTaskBuilder( in createNonUiTaskBuilder() argument
62 @NonNull Worker<InputT, OutputT> worker); in createNonUiTaskBuilder()