Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 25 of 36) 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 …]
DRenderNodeTests.cpp234 int functor = WebViewFunctor_create( in TEST() local
238 canvas.drawWebViewFunctor(functor); in TEST()
243 auto& counts = TestUtils::countsForFunctor(functor); in TEST()
248 canvas.drawWebViewFunctor(functor); in TEST()
259 WebViewFunctor_release(functor); in TEST()
/frameworks/base/libs/hwui/private/hwui/
DWebViewFunctor.h74 void (*onSync)(int functor, void* data, const WebViewSyncData& syncData);
78 void (*onContextDestroyed)(int functor, void* data);
83 void (*onDestroyed)(int functor, void* data);
88 void (*removeOverlays)(int functor, void* data, void (*mergeTransaction)(ASurfaceTransaction*));
93 void (*draw)(int functor, void* data, const DrawGlInfo& params,
99 void (*initialize)(int functor, void* data, const VkFunctorInitParams& params);
100 void (*draw)(int functor, void* data, const VkFunctorDrawParams& params,
102 void (*postDraw)(int functor, void*);
115 ANDROID_API void WebViewFunctor_release(int functor);
/frameworks/base/native/webview/plat_support/
Ddraw_functor.cpp44 void onSync(int functor, void* data, in onSync() argument
51 support->callbacks.on_sync(functor, support->data, &params); in onSync()
54 void onContextDestroyed(int functor, void* data) { in onContextDestroyed() argument
56 support->callbacks.on_context_destroyed(functor, support->data); in onContextDestroyed()
59 void onDestroyed(int functor, void* data) { in onDestroyed() argument
61 support->callbacks.on_destroyed(functor, support->data); in onDestroyed()
65 void removeOverlays(int functor, void* data, in removeOverlays() argument
73 support->callbacks.remove_overlays(functor, support->data, &params); in removeOverlays()
76 void draw_gl(int functor, void* data, in draw_gl() argument
129 support->callbacks.draw_gl(functor, support->data, &params); in draw_gl()
[all …]
Ddraw_fn.h192 typedef void AwDrawFn_OnSync(int functor,
199 typedef void AwDrawFn_OnContextDestroyed(int functor, void* data);
205 typedef void AwDrawFn_OnDestroyed(int functor, void* data);
208 typedef void AwDrawFn_DrawGL(int functor,
214 typedef void AwDrawFn_InitVk(int functor,
219 typedef void AwDrawFn_DrawVk(int functor,
224 typedef void AwDrawFn_PostDrawVk(int functor,
231 typedef void AwDrawFn_RemoveOverlays(int functor,
269 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.cpp33 ScopedCurrentFunctor(WebViewFunctor* functor) { in ScopedCurrentFunctor() argument
35 ALOG_ASSERT(functor); in ScopedCurrentFunctor()
36 sCurrentFunctor = functor; in ScopedCurrentFunctor()
85 void WebViewFunctor_release(int functor) { in WebViewFunctor_release() argument
86 WebViewFunctorManager::instance().releaseFunctor(functor); in WebViewFunctor_release()
303 void WebViewFunctorManager::releaseFunctor(int functor) { in releaseFunctor() argument
308 if ((*iter)->id() == functor) { in releaseFunctor()
335 void WebViewFunctorManager::destroyFunctor(int functor) { in destroyFunctor() argument
340 if ((*iter)->id() == functor) { in destroyFunctor()
349 sp<WebViewFunctor::Handle> WebViewFunctorManager::handleFor(int functor) { in handleFor() argument
[all …]
DWebViewFunctorManager.h110 void releaseFunctor(int functor);
112 void destroyFunctor(int functor);
114 sp<WebViewFunctor::Handle> handleFor(int functor);
DAnimatorManager.cpp154 AnimateFunctor functor(info, mAnimationHandle->context(), &dirtyMask); in animateCommon() local
155 auto newEnd = std::remove_if(mAnimators.begin(), mAnimators.end(), functor); in animateCommon()
190 EndActiveAnimatorsFunctor functor(mAnimationHandle->context()); in endAllActiveAnimators() local
191 for_each(mAnimators.begin(), mAnimators.end(), functor); in endAllActiveAnimators()
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DContextUtils.kt32 fun mockContextAsUser(context: Context, functor: BiConsumer<Context, UserHandle>? = null) = in <lambda>()
33 mockContextAsUser(context) { c, h -> functor?.accept(c, h) } in <lambda>()
45 fun mockContextAsUser(context: Context, functor: ((Context, UserHandle) -> Unit)? = null) { in mockContextAsUser()
52 functor?.let { it(asUserContext, user) } in mockContextAsUser()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h301 [](int functor, void* client_data, const WebViewSyncData& data) { in createMockFunctor()
303 sMockFunctorCounts[functor].sync++; in createMockFunctor()
306 [](int functor, void* client_data) { in createMockFunctor()
308 sMockFunctorCounts[functor].contextDestroyed++; in createMockFunctor()
311 [](int functor, void* client_data) { in createMockFunctor()
313 sMockFunctorCounts[functor].destroyed++; in createMockFunctor()
316 [](int functor, void* data, in createMockFunctor()
319 sMockFunctorCounts[functor].removeOverlays++; in createMockFunctor()
324 callbacks.gles.draw = [](int functor, void* client_data, const DrawGlInfo& params, in createMockFunctor()
327 sMockFunctorCounts[functor].glesDraw++; in createMockFunctor()
[all …]
/frameworks/base/core/jni/
Dandroid_os_SystemProperties.cpp47 void ReadProperty(const prop_info* prop, Functor&& functor) in ReadProperty() argument
56 __system_property_read_callback(prop, thunk, &functor); in ReadProperty()
63 void ReadProperty(JNIEnv* env, jstring keyJ, Functor&& functor) in ReadProperty() argument
74 ReadProperty(prop, std::forward<Functor>(functor)); in ReadProperty()
76 std::forward<Functor>(functor)( in ReadProperty()
/frameworks/base/libs/hwui/pipeline/skia/
DFunctorDrawable.h39 FunctorDrawable(int functor, SkCanvas* canvas) in FunctorDrawable() argument
41 , mWebViewHandle(WebViewFunctorManager::instance().handleFor(functor)) {} in FunctorDrawable()
DSkiaDisplayList.cpp39 for (auto& functor : mChildFunctors) { in syncContents() local
40 functor->syncFunctor(data); in syncContents()
51 for (auto& functor : mChildFunctors) { in onRemovedFromTree() local
52 functor->onRemovedFromTree(); in onRemovedFromTree()
DVkInteropFunctorDrawable.h40 static void vkInvokeFunctor(Functor* functor);
DVkInteropFunctorDrawable.cpp55 void VkInteropFunctorDrawable::vkInvokeFunctor(Functor* functor) { in vkInvokeFunctor() argument
62 (*functor)(mode, nullptr); in vkInvokeFunctor()
DSkiaVulkanPipeline.cpp166 void SkiaVulkanPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument
167 VkInteropFunctorDrawable::vkInvokeFunctor(functor); in invokeFunctor()
DSkiaRecordingCanvas.cpp163 void SkiaRecordingCanvas::drawWebViewFunctor(int functor) { in drawWebViewFunctor() argument
167 functorDrawable = mDisplayList->allocateDrawable<VkFunctorDrawable>(functor, asSkCanvas()); in drawWebViewFunctor()
169 functorDrawable = mDisplayList->allocateDrawable<GLFunctorDrawable>(functor, asSkCanvas()); in drawWebViewFunctor()
DSkiaOpenGLPipeline.cpp208 void SkiaOpenGLPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument
214 (*functor)(mode, nullptr); in invokeFunctor()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp343 void ForEachFileInDir(const std::string& dirname, Functor functor) { in ForEachFileInDir() argument
358 functor(entry->d_name); in ForEachFileInDir()
364 Functor functor) { in ForEachFileInZip() argument
394 functor(filename); in ForEachFileInZip()
401 void ForEachFileInPath(const std::string& path, Functor functor) { in ForEachFileInPath() argument
404 ForEachFileInDir(path, functor); in ForEachFileInPath()
407 functor); in ForEachFileInPath()
/frameworks/base/graphics/java/android/graphics/
DRecordingCanvas.java164 public void drawWebViewFunctor(int functor) { in drawWebViewFunctor() argument
165 nDrawWebViewFunctor(mNativeCanvasWrapper, functor); in drawWebViewFunctor()
301 private static native void nDrawWebViewFunctor(long canvas, int functor); in nDrawWebViewFunctor() argument
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobStore.java320 public void forEachJob(Consumer<JobStatus> functor) { in forEachJob() argument
321 mJobSet.forEachJob(null, functor); in forEachJob()
325 Consumer<JobStatus> functor) { in forEachJob() argument
326 mJobSet.forEachJob(filterPredicate, functor); in forEachJob()
329 public void forEachJob(int uid, Consumer<JobStatus> functor) { in forEachJob() argument
330 mJobSet.forEachJob(uid, functor); in forEachJob()
333 public void forEachJobForSourceUid(int sourceUid, Consumer<JobStatus> functor) { in forEachJobForSourceUid() argument
334 mJobSet.forEachJobForSourceUid(sourceUid, functor); in forEachJobForSourceUid()
1385 Consumer<JobStatus> functor) { in forEachJob() argument
1392 functor.accept(jobStatus); in forEachJob()
[all …]
/frameworks/base/libs/hwui/canvas/
DCanvasOpBuffer.h110 [[nodiscard]] bool hasFunctor() const { return mHas.functor; } in hasFunctor()
129 bool functor : 1 = false; member
/frameworks/base/core/java/android/webkit/
DWebViewDelegate.java122 public void drawWebViewFunctor(@NonNull Canvas canvas, int functor) { in drawWebViewFunctor() argument
128 ((RecordingCanvas) canvas).drawWebViewFunctor(functor); in drawWebViewFunctor()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_DisplayListCanvas.cpp166 …iew_DisplayListCanvas_drawWebViewFunctor(CRITICAL_JNI_PARAMS_COMMA jlong canvasPtr, jint functor) { in android_view_DisplayListCanvas_drawWebViewFunctor() argument
168 canvas->drawWebViewFunctor(functor); in android_view_DisplayListCanvas_drawWebViewFunctor()

12