/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ViewServer.java | 76 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 D | GalleryAppImpl.java | 43 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 D | SlideshowDataAdapter.java | 61 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 D | BatchService.java | 35 private ThreadPool mThreadPool = new ThreadPool(1, 1); field in BatchService 46 return mThreadPool; in getThreadPool()
|
H A D | SinglePhotoDataAdapter.java | 52 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 D | PhotoDataAdapter.java | 141 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 D | SoundDecoder.cpp | 37 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 D | StreamManager.cpp | 124 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 D | StreamManager.h | 421 (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 D | SoundDecoder.h | 41 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 D | AuthFsHostTest.java | 63 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 D | CEngine.cpp | 69 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 D | NBAIO_Tee.cpp | 86 : 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 D | sles_allinclusive.h | 459 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 D | entry.cpp | 149 memset(&thiz->mThreadPool, 0, sizeof(ThreadPool)); in liCreateEngine()
|
H A D | classes.h | 198 ThreadPool mThreadPool; // for asynchronous operations member
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | AlbumSlidingWindow.java | 63 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 D | AlbumSetSlidingWindow.java | 61 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 D | TileImageView.java | 122 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 D | IDynamicInterfaceManagement.cpp | 138 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 D | IObject.cpp | 125 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()
|