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

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