/frameworks/base/libs/hwui/tests/unit/ |
D | WebViewFunctorManagerTests.cpp | 35 int functor = WebViewFunctor_create( in TEST() local 38 ASSERT_NE(-1, functor); in TEST() 39 WebViewFunctor_release(functor); in TEST() 43 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 51 int functor = WebViewFunctor_create( in TEST() local 54 ASSERT_NE(-1, functor); in TEST() 55 auto handle = WebViewFunctorManager::instance().handleFor(functor); in TEST() 57 WebViewFunctor_release(functor); in TEST() 58 EXPECT_FALSE(WebViewFunctorManager::instance().handleFor(functor)); in TEST() 62 auto& counts = TestUtils::countsForFunctor(functor); in TEST() [all …]
|
D | UnderlineTest.cpp | 120 DrawTextFunctor functor = processFunctor({0x0061, 0x0062, 0x0063}, &paint); in TEST_WITH_FLAGS() local 122 EXPECT_EQ(ROBOTO_POSITION_EM * textSize, functor.getUnderlinePosition()); in TEST_WITH_FLAGS() 123 EXPECT_EQ(ROBOTO_THICKNESS_EM * textSize, functor.getUnderlineThickness()); in TEST_WITH_FLAGS() 134 DrawTextFunctor functor = processFunctor({0x3042, 0x3044, 0x3046}, &paint); in TEST_WITH_FLAGS() local 136 EXPECT_EQ(NOTO_CJK_POSITION_EM * textSize, functor.getUnderlinePosition()); in TEST_WITH_FLAGS() 137 EXPECT_EQ(NOTO_CJK_THICKNESS_EM * textSize, functor.getUnderlineThickness()); in TEST_WITH_FLAGS() 148 DrawTextFunctor functor = processFunctor({0x0061, 0x3044, 0x0063}, &paint); in TEST_WITH_FLAGS() local 151 EXPECT_EQ(NOTO_CJK_POSITION_EM * textSize, functor.getUnderlinePosition()); in TEST_WITH_FLAGS() 152 EXPECT_EQ(NOTO_CJK_THICKNESS_EM * textSize, functor.getUnderlineThickness()); in TEST_WITH_FLAGS()
|
D | RenderNodeTests.cpp | 234 int functor = TestUtils::createMockFunctor(); in TEST() local 237 canvas.drawWebViewFunctor(functor); in TEST() 242 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 247 canvas.drawWebViewFunctor(functor); in TEST() 258 WebViewFunctor_release(functor); in TEST()
|
/frameworks/base/libs/hwui/private/hwui/ |
D | WebViewFunctor.h | 66 void (*onSync)(int functor, void* data, const WebViewSyncData& syncData); 70 void (*onContextDestroyed)(int functor, void* data); 75 void (*onDestroyed)(int functor, void* data); 80 void (*removeOverlays)(int functor, void* data, void (*mergeTransaction)(ASurfaceTransaction*)); 85 void (*draw)(int functor, void* data, const DrawGlInfo& params, 91 void (*initialize)(int functor, void* data, const VkFunctorInitParams& params); 92 void (*draw)(int functor, void* data, const VkFunctorDrawParams& params, 94 void (*postDraw)(int functor, void*); 107 ANDROID_API void WebViewFunctor_release(int functor); 111 ANDROID_API void WebViewFunctor_reportRenderingThreads(int functor, const int32_t* thread_ids,
|
/frameworks/base/native/webview/plat_support/ |
D | draw_functor.cpp | 44 void onSync(int functor, void* data, in onSync() argument 51 support->callbacks.on_sync(functor, support->data, ¶ms); 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, ¶ms); in removeOverlays() 76 void draw_gl(int functor, void* data, in draw_gl() argument 129 support->callbacks.draw_gl(functor, support->data, ¶ms); in draw_gl() [all …]
|
D | draw_fn.h | 193 typedef void AwDrawFn_OnSync(int functor, 200 typedef void AwDrawFn_OnContextDestroyed(int functor, void* data); 206 typedef void AwDrawFn_OnDestroyed(int functor, void* data); 209 typedef void AwDrawFn_DrawGL(int functor, 215 typedef void AwDrawFn_InitVk(int functor, 220 typedef void AwDrawFn_DrawVk(int functor, 225 typedef void AwDrawFn_PostDrawVk(int functor, 232 typedef void AwDrawFn_RemoveOverlays(int functor, 270 typedef void AwDrawFn_ReleaseFunctor(int functor); 274 typedef void AwDrawFn_ReportRenderingThreads(int functor, const int32_t* thread_ids, size_t size);
|
D | draw_gl_functor.cpp | 104 void DestroyGLFunctor(JNIEnv*, jclass, jlong functor) { in DestroyGLFunctor() argument 105 delete reinterpret_cast<DrawGLFunctor*>(functor); in DestroyGLFunctor()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.h | 306 [](int functor, void* client_data, const WebViewSyncData& data) { in createMockFunctorCallbacks() 308 sMockFunctorCounts[functor].sync++; in createMockFunctorCallbacks() 311 [](int functor, void* client_data) { in createMockFunctorCallbacks() 313 sMockFunctorCounts[functor].contextDestroyed++; in createMockFunctorCallbacks() 316 [](int functor, void* client_data) { in createMockFunctorCallbacks() 318 sMockFunctorCounts[functor].destroyed++; in createMockFunctorCallbacks() 321 [](int functor, void* data, in createMockFunctorCallbacks() 324 sMockFunctorCounts[functor].removeOverlays++; in createMockFunctorCallbacks() 329 callbacks.gles.draw = [](int functor, void* client_data, const DrawGlInfo& params, in createMockFunctorCallbacks() 332 sMockFunctorCounts[functor].glesDraw++; in createMockFunctorCallbacks() [all …]
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 34 ScopedCurrentFunctor(WebViewFunctor* functor) { in ScopedCurrentFunctor() argument 36 ALOG_ASSERT(functor); in ScopedCurrentFunctor() 37 sCurrentFunctor = functor; in ScopedCurrentFunctor() 86 void WebViewFunctor_release(int functor) { in WebViewFunctor_release() argument 87 WebViewFunctorManager::instance().releaseFunctor(functor); in WebViewFunctor_release() 90 void WebViewFunctor_reportRenderingThreads(int functor, const pid_t* thread_ids, size_t size) { in WebViewFunctor_reportRenderingThreads() argument 91 WebViewFunctorManager::instance().reportRenderingThreads(functor, thread_ids, size); in WebViewFunctor_reportRenderingThreads() 312 void WebViewFunctorManager::releaseFunctor(int functor) { in releaseFunctor() argument 317 if ((*iter)->id() == functor) { in releaseFunctor() 344 void WebViewFunctorManager::destroyFunctor(int functor) { in destroyFunctor() argument [all …]
|
D | WebViewFunctorManager.h | 112 void releaseFunctor(int functor); 114 void destroyFunctor(int functor); 115 void reportRenderingThreads(int functor, const pid_t* thread_ids, size_t size); 118 sp<WebViewFunctor::Handle> handleFor(int functor);
|
D | AnimatorManager.cpp | 160 AnimateFunctor functor(info, mAnimationHandle->context(), &dirtyMask); in animateCommon() local 161 auto newEnd = std::remove_if(mAnimators.begin(), mAnimators.end(), functor); in animateCommon() 196 EndActiveAnimatorsFunctor functor(mAnimationHandle->context()); in endAllActiveAnimators() local 197 for_each(mAnimators.begin(), mAnimators.end(), functor); in endAllActiveAnimators()
|
/frameworks/base/libs/hwui/platform/host/ |
D | WebViewFunctorManager.cpp | 67 void WebViewFunctorManager::releaseFunctor(int functor) {} in releaseFunctor() argument 71 void WebViewFunctorManager::destroyFunctor(int functor) {} in destroyFunctor() argument 73 void WebViewFunctorManager::reportRenderingThreads(int functor, const pid_t* thread_ids, in reportRenderingThreads() argument 80 sp<WebViewFunctor::Handle> WebViewFunctorManager::handleFor(int functor) { in handleFor() argument
|
/frameworks/base/core/jni/ |
D | android_os_SystemProperties.cpp | 47 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/ |
D | FunctorDrawable.h | 39 FunctorDrawable(int functor, SkCanvas* canvas) in FunctorDrawable() argument 41 , mWebViewHandle(WebViewFunctorManager::instance().handleFor(functor)) {} in FunctorDrawable()
|
D | SkiaDisplayList.cpp | 36 for (auto& functor : mChildFunctors) { in syncContents() local 37 functor->syncFunctor(data); in syncContents() 48 for (auto& functor : mChildFunctors) { in onRemovedFromTree() local 49 functor->onRemovedFromTree(); in onRemovedFromTree()
|
D | VkInteropFunctorDrawable.h | 40 static void vkInvokeFunctor(Functor* functor);
|
D | VkInteropFunctorDrawable.cpp | 60 void VkInteropFunctorDrawable::vkInvokeFunctor(Functor* functor) { in vkInvokeFunctor() argument 67 (*functor)(mode, nullptr); in vkInvokeFunctor()
|
D | SkiaVulkanPipeline.cpp | 199 void SkiaVulkanPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument 200 VkInteropFunctorDrawable::vkInvokeFunctor(functor); in invokeFunctor()
|
/frameworks/native/vulkan/libvulkan/ |
D | layers_extensions.cpp | 360 void ForEachFileInDir(const std::string& dirname, Functor functor) { in ForEachFileInDir() argument 375 functor(entry->d_name); in ForEachFileInDir() 381 Functor functor) { in ForEachFileInZip() argument 412 functor(filename); in ForEachFileInZip() 419 void ForEachFileInPath(const std::string& path, Functor functor) { in ForEachFileInPath() argument 422 ForEachFileInDir(path, functor); in ForEachFileInPath() 425 functor); in ForEachFileInPath()
|
/frameworks/base/graphics/java/android/graphics/ |
D | RecordingCanvas.java | 164 public void drawWebViewFunctor(int functor) { in drawWebViewFunctor() argument 165 nDrawWebViewFunctor(mNativeCanvasWrapper, functor); in drawWebViewFunctor() 299 private static native void nDrawWebViewFunctor(long canvas, int functor); in nDrawWebViewFunctor() argument
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasOpBuffer.h | 110 [[nodiscard]] bool hasFunctor() const { return mHas.functor; } in hasFunctor() 129 bool functor : 1 = false; member
|
/frameworks/base/libs/hwui/platform/host/pipeline/skia/ |
D | SkiaOpenGLPipeline.h | 30 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor) {} in invokeFunctor() argument
|
D | SkiaVulkanPipeline.h | 30 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor) {} in invokeFunctor() argument
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewDelegate.java | 122 public void drawWebViewFunctor(@NonNull Canvas canvas, int functor) { in drawWebViewFunctor() argument 128 ((RecordingCanvas) canvas).drawWebViewFunctor(functor); in drawWebViewFunctor()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobStore.java | 473 public void forEachJob(Consumer<JobStatus> functor) { in forEachJob() argument 474 mJobSet.forEachJob(null, functor); in forEachJob() 478 Consumer<JobStatus> functor) { in forEachJob() argument 479 mJobSet.forEachJob(filterPredicate, functor); in forEachJob() 482 public void forEachJob(int uid, Consumer<JobStatus> functor) { in forEachJob() argument 483 mJobSet.forEachJob(uid, functor); in forEachJob() 486 public void forEachJobForSourceUid(int sourceUid, Consumer<JobStatus> functor) { in forEachJobForSourceUid() argument 487 mJobSet.forEachJobForSourceUid(sourceUid, functor); in forEachJobForSourceUid() 1970 @NonNull Consumer<JobStatus> functor) { in forEachJob() argument 1977 functor.accept(jobStatus); in forEachJob() [all …]
|