Home
last modified time | relevance | path

Searched refs:mThreadPool (Results 1 – 21 of 21) sorted by relevance

/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DViewServer.java76 private ExecutorService mThreadPool; field in ViewServer
109 mThreadPool = Executors.newFixedThreadPool(VIEW_SERVER_MAX_CONNECTIONS); in start()
129 if (mThreadPool != null) { in stop()
131 mThreadPool.shutdownNow(); in stop()
136 mThreadPool = null; in stop()
170 if (mThreadPool != null) { in run()
171 mThreadPool.submit(new ViewServerWorker(client)); in run()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DGalleryAppImpl.java43 private ThreadPool mThreadPool; field in GalleryAppImpl
84 if (mThreadPool == null) { in getThreadPool()
85 mThreadPool = new ThreadPool(); in getThreadPool()
87 return mThreadPool; in getThreadPool()
H A DSlideshowDataAdapter.java61 private final ThreadPool mThreadPool; field in SlideshowDataAdapter
74 mThreadPool = context.getThreadPool(); in SlideshowDataAdapter()
175 return mThreadPool.submit(new Job<Slide>() { in nextSlide()
202 mReloadTask = mThreadPool.submit(new ReloadTask());
H A DBatchService.java35 private ThreadPool mThreadPool = new ThreadPool(1, 1); field in BatchService
46 return mThreadPool; in getThreadPool()
H A DSinglePhotoDataAdapter.java52 private ThreadPool mThreadPool; field in SinglePhotoDataAdapter
74 mThreadPool = activity.getThreadPool(); in SinglePhotoDataAdapter()
154 mTask = mThreadPool.submit( in resume()
157 mTask = mThreadPool.submit( in resume()
H A DPhotoDataAdapter.java141 private final ThreadPool mThreadPool; field in PhotoDataAdapter
182 mThreadPool = activity.getThreadPool(); in PhotoDataAdapter()
789 entry.screenNailTask = mThreadPool.submit( in startTaskIfNeeded()
799 entry.fullImageTask = mThreadPool.submit( in startTaskIfNeeded()
/aosp12/frameworks/base/media/jni/soundpool/
H A DSoundDecoder.cpp37 mThreadPool = std::make_unique<ThreadPool>( in SoundDecoder()
57 mThreadPool->quit(); in quit()
109 if (pendingSounds > mThreadPool->getActiveThreadCount()) { in loadSound()
110 const int32_t id = mThreadPool->launch([this](int32_t id) { run(id); }); in loadSound()
H A DStreamManager.cpp124 mThreadPool = std::make_unique<ThreadPool>( in StreamManager()
140 mThreadPool->quit(); in ~StreamManager()
264 const int32_t id = mThreadPool->launch([this](int32_t id) { run(id); }); in queueForPlay()
293 const int32_t id = mThreadPool->launch([this](int32_t id) { run(id); }); in moveToRestartQueue()
H A DStreamManager.h421 (mThreadPool->getActiveThreadCount() == 0 in needMoreThreads_l()
424 > (ptrdiff_t)mThreadPool->getActiveThreadCount()); in needMoreThreads_l()
448 std::unique_ptr<ThreadPool> mThreadPool; // locked internally variable
H A DSoundDecoder.h41 std::unique_ptr<ThreadPool> mThreadPool; // set in constructor, has own lock variable
/aosp12/packages/modules/Virtualization/authfs/tests/java/src/com/android/fs/
H A DAuthFsHostTest.java63 private ExecutorService mThreadPool; field in AuthFsHostTest
68 mThreadPool = Executors.newCachedThreadPool(); in setUp()
310 mThreadPool.submit(() -> { in runAuthFsInBackground()
330 mThreadPool.submit(() -> { in runFdServerInBackground()
/aosp12/frameworks/wilhelm/src/objects/
H A DCEngine.cpp69 result = ThreadPool_init(&thiz->mThreadPool, 0, 0); in CEngine_Realize()
138 ThreadPool_deinit(&thiz->mThreadPool); in CEngine_Destroy()
/aosp12/frameworks/av/services/audioflinger/
H A DNBAIO_Tee.cpp86 : mThreadPool(pool) in AudioFileHandler()
176 } mThreadPool; member in android::AudioFileHandler
263 if (mThreadPool.launch(std::string("create ") + filename, in create()
322 (void)mThreadPool.launch( in setDirectory()
/aosp12/frameworks/wilhelm/src/
H A Dsles_allinclusive.h459 ThreadPool_add_ppi(&(object)->mObject.mEngine->mThreadPool, \
462 ThreadPool_add_ppii(&(object)->mObject.mEngine->mThreadPool, \
465 ThreadPool_add_piipp(&(object)->mObject.mEngine->mThreadPool, \
H A Dentry.cpp149 memset(&thiz->mThreadPool, 0, sizeof(ThreadPool)); in liCreateEngine()
H A Dclasses.h198 ThreadPool mThreadPool; // for asynchronous operations member
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumSlidingWindow.java63 private final JobLimiter mThreadPool; field in AlbumSlidingWindow
106 mThreadPool = new JobLimiter(activity.getThreadPool(), JOB_LIMIT); in AlbumSlidingWindow()
299 return mThreadPool.submit( in submitBitmapTask()
H A DAlbumSetSlidingWindow.java61 private final ThreadPool mThreadPool; field in AlbumSetSlidingWindow
100 mThreadPool = activity.getThreadPool(); in AlbumSetSlidingWindow()
431 return mThreadPool.submit(mMediaItem.requestImage( in submitBitmapTask()
495 return mThreadPool.submit(mLabelMaker.requestLabel( in submitBitmapTask()
H A DTileImageView.java122 private final ThreadPool mThreadPool; field in TileImageView
154 mThreadPool = context.getThreadPool(); in TileImageView()
155 mTileDecoder = mThreadPool.submit(new TileDecoder()); in TileImageView()
397 mTileDecoder = mThreadPool.submit(new TileDecoder()); in prepareTextures()
/aosp12/frameworks/wilhelm/src/itf/
H A DIDynamicInterfaceManagement.cpp138 result = ThreadPool_add_ppi(&thisObject->mEngine->mThreadPool, HandleAdd, thiz, in IDynamicInterfaceManagement_AddInterface()
386 result = ThreadPool_add_ppi(&thisObject->mEngine->mThreadPool, HandleResume, in IDynamicInterfaceManagement_ResumeInterface()
H A DIObject.cpp125 result = ThreadPool_add_ppi(&thiz->mEngine->mThreadPool, HandleRealize, thiz, NULL, 0); in IObject_Realize()
253 result = ThreadPool_add_ppi(&thiz->mEngine->mThreadPool, HandleResume, thiz, NULL, 0); in IObject_Resume()