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

Method destroyContext

valdi/src/valdi/android/NativeBridge.cpp:466–476  ·  view source on GitHub ↗

* Class: snapchat_valdi_nativebridge_ValdiNativeBridge * Method: destroyContext * Signature: (JJ)V */

Source from the content-addressed store, hash-verified

464 * Signature: (JJ)V
465 */
466void ValdiAndroid::NativeBridge::destroyContext( // NOLINT
467 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT
468 jlong handle,
469 jlong contextHandle) {
470 auto* runtime = getRuntime(handle);
471 auto context = getContext(contextHandle);
472
473 if (runtime != nullptr && context != nullptr) {
474 runtime->destroyContext(context);
475 }
476}
477
478void ValdiAndroid::NativeBridge::setParentContext( // NOLINT
479 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT

Callers

nothing calls this directly

Calls 3

getRuntimeFunction · 0.85
getContextFunction · 0.70
destroyContextMethod · 0.65

Tested by

no test coverage detected