MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getViewNodeTree

Function getViewNodeTree

valdi/src/valdi/android/NativeBridge.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78 return nullptr;
79}
80
81static Valdi::SharedContext getContext(jlong contextHandle) {
82 return Valdi::unsafeBridge<Valdi::Context>(reinterpret_cast<void*>(contextHandle));
83}
84
85static Valdi::SharedViewNodeTree getViewNodeTree(jlong contextHandle) {
86 auto context = getContext(contextHandle);
87 if (context == nullptr) {
88 return nullptr;
89 }
90
91 auto* runtime = context->getRuntime();
92 if (runtime == nullptr) {
93 return nullptr;
94 }

Callers 15

setParentContextMethod · 0.85
doSetRootViewToContextFunction · 0.85
getViewInContextForIdMethod · 0.85
onNextLayoutMethod · 0.85
measureLayoutMethod · 0.85
setLayoutSpecsMethod · 0.85
setVisibleViewportMethod · 0.85

Calls 4

getContextFunction · 0.70
getRuntimeMethod · 0.45
getContextIdMethod · 0.45

Tested by

no test coverage detected