Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
DWebViewFunctorManagerTests.cpp30 int functor = WebViewFunctor_create( in TEST() local
32 ASSERT_NE(-1, functor); in TEST()
33 WebViewFunctor_release(functor); in TEST()
37 auto& counts = TestUtils::countsForFunctor(functor); in TEST()
44 int functor = WebViewFunctor_create( in TEST() local
46 ASSERT_NE(-1, functor); in TEST()
47 auto handle = WebViewFunctorManager::instance().handleFor(functor); in TEST()
49 WebViewFunctor_release(functor); in TEST()
50 EXPECT_FALSE(WebViewFunctorManager::instance().handleFor(functor)); in TEST()
54 auto& counts = TestUtils::countsForFunctor(functor); in TEST()
[all …]
DCanvasContextTests.cpp47 TestUtils::MockFunctor functor; in RENDERTHREAD_TEST() local
48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
51 ASSERT_EQ(functor.getLastMode(), DrawGlInfo::kModeProcessNoContext); in RENDERTHREAD_TEST()
53 ASSERT_EQ(functor.getLastMode(), DrawGlInfo::kModeProcess); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/pipeline/skia/
DFunctorDrawable.h39 FunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) in FunctorDrawable() argument
41 , mAnyFunctor(std::in_place_type<LegacyFunctor>, functor, listener) {} in FunctorDrawable()
43 FunctorDrawable(int functor, SkCanvas* canvas) in FunctorDrawable() argument
45 , mAnyFunctor(std::in_place_type<NewFunctor>, functor) {} in FunctorDrawable()
53 (*(std::get<1>(mAnyFunctor).functor))(DrawGlInfo::kModeSync, nullptr); in syncFunctor()
63 explicit LegacyFunctor(Functor* functor, GlFunctorLifecycleListener* listener) in LegacyFunctor()
64 : functor(functor), listener(listener) {} in LegacyFunctor()
65 Functor* functor; member
70 explicit NewFunctor(int functor) { in NewFunctor()
71 handle = WebViewFunctorManager::instance().handleFor(functor); in NewFunctor()
DSkiaRecordingCanvas.cpp128 void SkiaRecordingCanvas::callDrawGLFunction(Functor* functor, in callDrawGLFunction() argument
133 functor, listener, asSkCanvas()); in callDrawGLFunction()
136 mDisplayList->allocateDrawable<GLFunctorDrawable>(functor, listener, asSkCanvas()); in callDrawGLFunction()
142 void SkiaRecordingCanvas::drawWebViewFunctor(int functor) { in drawWebViewFunctor() argument
145 functorDrawable = mDisplayList->allocateDrawable<VkFunctorDrawable>(functor, asSkCanvas()); in drawWebViewFunctor()
147 functorDrawable = mDisplayList->allocateDrawable<GLFunctorDrawable>(functor, asSkCanvas()); in drawWebViewFunctor()
DVkInteropFunctorDrawable.cpp54 void VkInteropFunctorDrawable::vkInvokeFunctor(Functor* functor) { in vkInvokeFunctor() argument
61 (*functor)(mode, nullptr); in vkInvokeFunctor()
157 (*(std::get<1>(mAnyFunctor).functor))(DrawGlInfo::kModeDraw, &info); in onDraw()
193 lp->listener->onGlFunctorReleased(lp->functor); in ~VkInteropFunctorDrawable()
DSkiaRecordingCanvas.h75 virtual void callDrawGLFunction(Functor* functor,
77 void drawWebViewFunctor(int functor) override;
DSkiaVulkanPipeline.cpp144 void SkiaVulkanPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument
145 VkInteropFunctorDrawable::vkInvokeFunctor(functor); in invokeFunctor()
DVkInteropFunctorDrawable.h39 static void vkInvokeFunctor(Functor* functor);
DSkiaDisplayList.cpp32 for (auto& functor : mChildFunctors) { in syncContents() local
33 functor->syncFunctor(data); in syncContents()
/frameworks/base/libs/hwui/private/hwui/
DWebViewFunctor.h40 void (*onSync)(int functor, void* data, const WebViewSyncData& syncData);
44 void (*onContextDestroyed)(int functor, void* data);
49 void (*onDestroyed)(int functor, void* data);
54 void (*draw)(int functor, void* data, const DrawGlInfo& params);
59 void (*initialize)(int functor, void* data, const VkFunctorInitParams& params);
60 void (*draw)(int functor, void* data, const VkFunctorDrawParams& params);
61 void (*postDraw)(int functor, void*);
74 ANDROID_API void WebViewFunctor_release(int functor);
/frameworks/base/native/webview/plat_support/
Ddraw_functor.cpp35 void onSync(int functor, void* data, in onSync() argument
42 support->callbacks.on_sync(functor, support->data, &params); in onSync()
45 void onContextDestroyed(int functor, void* data) { in onContextDestroyed() argument
47 support->callbacks.on_context_destroyed(functor, support->data); in onContextDestroyed()
50 void onDestroyed(int functor, void* data) { in onDestroyed() argument
52 support->callbacks.on_destroyed(functor, support->data); in onDestroyed()
56 void draw_gl(int functor, void* data, in draw_gl() argument
88 support->callbacks.draw_gl(functor, support->data, &params); in draw_gl()
91 void initializeVk(int functor, void* data, in initializeVk() argument
118 support->callbacks.init_vk(functor, support->data, &params); in initializeVk()
[all …]
Ddraw_fn.h133 typedef void AwDrawFn_OnSync(int functor,
140 typedef void AwDrawFn_OnContextDestroyed(int functor, void* data);
146 typedef void AwDrawFn_OnDestroyed(int functor, void* data);
149 typedef void AwDrawFn_DrawGL(int functor,
155 typedef void AwDrawFn_InitVk(int functor,
160 typedef void AwDrawFn_DrawVk(int functor,
165 typedef void AwDrawFn_PostDrawVk(int functor,
195 typedef void AwDrawFn_ReleaseFunctor(int functor);
Ddraw_gl_functor.cpp104 void DestroyGLFunctor(JNIEnv*, jclass, jlong functor) { in DestroyGLFunctor() argument
105 delete reinterpret_cast<DrawGLFunctor*>(functor); in DestroyGLFunctor()
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp55 void WebViewFunctor_release(int functor) { in WebViewFunctor_release() argument
56 WebViewFunctorManager::instance().releaseFunctor(functor); in WebViewFunctor_release()
139 void WebViewFunctorManager::releaseFunctor(int functor) { in releaseFunctor() argument
144 if ((*iter)->id() == functor) { in releaseFunctor()
171 void WebViewFunctorManager::destroyFunctor(int functor) { in destroyFunctor() argument
176 if ((*iter)->id() == functor) { in destroyFunctor()
185 sp<WebViewFunctor::Handle> WebViewFunctorManager::handleFor(int functor) { in handleFor() argument
188 if (iter->id() == functor) { in handleFor()
DWebViewFunctorManager.h87 void releaseFunctor(int functor);
89 void destroyFunctor(int functor);
91 sp<WebViewFunctor::Handle> handleFor(int functor);
DAnimatorManager.cpp145 AnimateFunctor functor(info, mAnimationHandle->context(), &dirtyMask); in animateCommon() local
146 auto newEnd = std::remove_if(mAnimators.begin(), mAnimators.end(), functor); in animateCommon()
181 EndActiveAnimatorsFunctor functor(mAnimationHandle->context()); in endAllActiveAnimators() local
182 for_each(mAnimators.begin(), mAnimators.end(), functor); in endAllActiveAnimators()
DGlFunctorLifecycleListener.h28 virtual void onGlFunctorReleased(Functor* functor) = 0;
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h318 [](int functor, void* client_data, const WebViewSyncData& data) { in createMockFunctor()
320 sMockFunctorCounts[functor].sync++; in createMockFunctor()
323 [](int functor, void* client_data) { in createMockFunctor()
325 sMockFunctorCounts[functor].contextDestroyed++; in createMockFunctor()
328 [](int functor, void* client_data) { in createMockFunctor()
330 sMockFunctorCounts[functor].destroyed++; in createMockFunctor()
335 callbacks.gles.draw = [](int functor, void* client_data, const DrawGlInfo& params) { in createMockFunctor()
337 sMockFunctorCounts[functor].glesDraw++; in createMockFunctor()
347 static CallCounts& countsForFunctor(int functor) { return sMockFunctorCounts[functor]; } in countsForFunctor() argument
/frameworks/base/core/jni/
Dandroid_view_DisplayListCanvas.cpp82 virtual void onGlFunctorReleased(Functor* functor) override { in onGlFunctorReleased() argument
96 Functor* functor = reinterpret_cast<Functor*>(functorPtr); in android_view_DisplayListCanvas_callDrawGLFunction() local
101 canvas->callDrawGLFunction(functor, bridge.get()); in android_view_DisplayListCanvas_callDrawGLFunction()
171 static void android_view_DisplayListCanvas_drawWebViewFunctor(jlong canvasPtr, jint functor) { in android_view_DisplayListCanvas_drawWebViewFunctor() argument
173 canvas->drawWebViewFunctor(functor); in android_view_DisplayListCanvas_drawWebViewFunctor()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp362 void ForEachFileInDir(const std::string& dirname, Functor functor) { in ForEachFileInDir() argument
377 functor(entry->d_name); in ForEachFileInDir()
383 Functor functor) { in ForEachFileInZip() argument
416 functor(filename); in ForEachFileInZip()
423 void ForEachFileInPath(const std::string& path, Functor functor) { in ForEachFileInPath() argument
426 ForEachFileInDir(path, functor); in ForEachFileInPath()
429 functor); in ForEachFileInPath()
/frameworks/base/graphics/java/android/graphics/
DRecordingCanvas.java200 public void drawWebViewFunctor(int functor) { in drawWebViewFunctor() argument
201 nDrawWebViewFunctor(mNativeCanvasWrapper, functor); in drawWebViewFunctor()
319 private static native void nDrawWebViewFunctor(long canvas, int functor); in nDrawWebViewFunctor() argument
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java300 public void forEachJob(Consumer<JobStatus> functor) { in forEachJob() argument
301 mJobSet.forEachJob(null, functor); in forEachJob()
305 Consumer<JobStatus> functor) { in forEachJob() argument
306 mJobSet.forEachJob(filterPredicate, functor); in forEachJob()
309 public void forEachJob(int uid, Consumer<JobStatus> functor) { in forEachJob() argument
310 mJobSet.forEachJob(uid, functor); in forEachJob()
313 public void forEachJobForSourceUid(int sourceUid, Consumer<JobStatus> functor) { in forEachJobForSourceUid() argument
314 mJobSet.forEachJobForSourceUid(sourceUid, functor); in forEachJobForSourceUid()
1237 Consumer<JobStatus> functor) { in forEachJob() argument
1244 functor.accept(jobStatus); in forEachJob()
[all …]
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp134 void RenderProxy::invokeFunctor(Functor* functor, bool waitForCompletion) { in invokeFunctor() argument
137 auto invoke = [&thread, functor]() { CanvasContext::invokeFunctor(thread, functor); }; in invokeFunctor()
148 void RenderProxy::destroyFunctor(int functor) { in destroyFunctor() argument
151 thread.queue().post([=]() { WebViewFunctorManager::instance().destroyFunctor(functor); }); in destroyFunctor()
DRenderProxy.h84 ANDROID_API static void invokeFunctor(Functor* functor, bool waitForCompletion);
85 static void destroyFunctor(int functor);
/frameworks/base/core/java/android/webkit/
DWebViewDelegate.java154 public void drawWebViewFunctor(@NonNull Canvas canvas, int functor) { in drawWebViewFunctor() argument
160 ((RecordingCanvas) canvas).drawWebViewFunctor(functor); in drawWebViewFunctor()

12