Home
last modified time | relevance | path

Searched refs:Executors (Results 1 – 25 of 69) sorted by relevance

123

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DMediaDb.java27 import com.android.pump.concurrent.Executors;
88 Executors.uiThreadExecutor().execute(() -> addAudios(audios)); in MediaDb()
93 Executors.uiThreadExecutor().execute(() -> addArtists(artists)); in MediaDb()
98 Executors.uiThreadExecutor().execute(() -> addAlbums(albums)); in MediaDb()
103 Executors.uiThreadExecutor().execute(() -> addGenres(genres)); in MediaDb()
108 Executors.uiThreadExecutor().execute(() -> addPlaylists(playlists)); in MediaDb()
115 Executors.uiThreadExecutor().execute(() -> addMovies(movies)); in MediaDb()
120 Executors.uiThreadExecutor().execute(() -> addSeries(series)); in MediaDb()
125 Executors.uiThreadExecutor().execute(() -> addEpisodes(episodes)); in MediaDb()
130 Executors.uiThreadExecutor().execute(() -> addOthers(others)); in MediaDb()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerExecutorModule.java33 import java.util.concurrent.Executors;
57 return Executors.newFixedThreadPool( in provideNonUiThreadPool()
75 return Executors.newSingleThreadScheduledExecutor(
98 return Executors.newSingleThreadScheduledExecutor(
/packages/apps/Camera2/src/com/android/camera/device/
DCameraModuleHelper.java27 import java.util.concurrent.Executors;
40 ExecutorService backgroundRunner = Executors.newSingleThreadExecutor(); in providePortabilityActionProvider()
49 ExecutorService backgroundRunner = Executors.newSingleThreadExecutor(); in provideCamera2ActionProvider()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java29 import com.android.pump.concurrent.Executors;
60 addCallback(callback, Executors.uiThreadExecutor()); in addCallback()
72 removeCallback(callback, Executors.uiThreadExecutor()); in removeCallback()
84 loadImage(uri, callback, Executors.uiThreadExecutor()); in loadImage()
/packages/apps/Dialer/java/com/android/incallui/async/
DPausableExecutorImpl.java19 import java.util.concurrent.Executors;
38 Executors.newSingleThreadExecutor().execute(command); in execute()
/packages/apps/Car/Dialer/src/com/android/car/dialer/widget/
DWorkerExecutor.java20 import java.util.concurrent.Executors;
40 mSingleThreadExecutor = Executors.newSingleThreadExecutor(); in WorkerExecutor()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DSingleThreadNamedTaskExecutorTest.java21 import java.util.concurrent.Executors;
37 mExecutor = new SingleThreadNamedTaskExecutor(Executors.defaultThreadFactory()); in setUp()
/packages/apps/TV/common/src/com/android/tv/common/concurrent/
DNamedThreadFactory.java20 import java.util.concurrent.Executors;
31 mDefaultThreadFactory = Executors.defaultThreadFactory(); in NamedThreadFactory()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java29 import java.util.concurrent.Executors;
100 private static final Executor MEDIA_LOADING_EXECUTOR = Executors.newFixedThreadPool(10);
106 private static final Executor MEDIA_BACKGROUND_EXECUTOR = Executors.newSingleThreadExecutor(
/packages/apps/TV/src/com/android/tv/modules/
DTvApplicationModule.java30 import java.util.concurrent.Executors;
48 return Executors.newSingleThreadExecutor(THREAD_FACTORY); in providesDbExecutor()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/app/
DGlobalsApplication.java9 import com.android.pump.concurrent.Executors;
60 mExecutor = Executors.newFixedUniqueThreadPool( in getExecutor()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/
DExecutors.java32 public final class Executors { class
33 private Executors() { } in Executors() method in Executors
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java37 import java.util.concurrent.Executors;
152 mThreadPoolFast = Executors.newFixedThreadPool(NUM_THREADS_FAST, new FastThreadFactory()); in ImageBackend()
153 mThreadPoolAverage = Executors.newFixedThreadPool(NUM_THREADS_AVERAGE, in ImageBackend()
155 mThreadPoolSlow = Executors.newFixedThreadPool(NUM_THREADS_SLOW, new SlowThreadFactory()); in ImageBackend()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DExecutorUtils.java24 import java.util.concurrent.Executors;
43 return Executors.newSingleThreadScheduledExecutor(new ExecutorFactory(name)); in newExecutorService()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DLoader.java28 import java.util.concurrent.Executors;
49 private final ExecutorService mExecutor = Executors.newSingleThreadExecutor();
/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemStateInterface.java34 import java.util.concurrent.Executors;
127 mExecutorService = Executors.newScheduledThreadPool(corePoolSize); in scheduleActionForBootCompleted()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DDrawableDownloader.java32 import java.util.concurrent.Executors;
57 Executors.newFixedThreadPool(CORE_POOL_SIZE);
64 Executors.newFixedThreadPool(CORE_RESOURCE_POOL_SIZE);
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DVideoPlayerActivity.java38 import com.android.pump.concurrent.Executors;
89 mMediaController = new MediaController(this, token, Executors.uiThreadExecutor(), in onAttachedToWindow()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DConditionManager.java32 import java.util.concurrent.Executors;
53 mExecutorService = Executors.newCachedThreadPool(); in ConditionManager()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionManager.java32 import java.util.concurrent.Executors;
53 mExecutorService = Executors.newCachedThreadPool(); in ConditionManager()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java45 import java.util.concurrent.Executors;
142 executor = Executors.newFixedThreadPool(POOL_SIZE); in onCreate()
146 deletionExecutor = Executors.newCachedThreadPool(); in onCreate()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchFeatureProviderImpl.java42 import java.util.concurrent.Executors;
144 mExecutorService = Executors.newCachedThreadPool(); in getExecutorService()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DCandidateSuggestionFilter.java41 import java.util.concurrent.Executors;
59 sExecutorService = Executors.newCachedThreadPool(); in getInstance()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDbFuture.java36 import java.util.concurrent.Executors;
43 MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor(THREAD_FACTORY));
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLoader.java45 import java.util.concurrent.Executors;
79 mExecutorService = Executors.newCachedThreadPool(); in ContextualCardLoader()

123