MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleMessageFromService

Function handleMessageFromService

syncthingwidgets/quick/android.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static void handleMessageFromService(JNIEnv *, jobject, jint what, jint arg1, jint arg2, jstring str, jbyteArray variantArray)
38{
39 auto env = QJniEnvironment();
40 auto variantSize = variantArray ? env->GetArrayLength(variantArray) : 0;
41 auto variant = QByteArray(variantSize, Qt::Initialization::Uninitialized);
42 if (variantArray) {
43 env->GetByteArrayRegion(variantArray, 0, variantSize, reinterpret_cast<jbyte *>(variant.data()));
44 }
45 appObjectForJava->handleMessageFromService(static_cast<ActivityAction>(what), arg1, arg2, QJniObject(str).toString(), variant);
46}
47
48static void broadcastLauncherStatus(JNIEnv *, jobject)
49{

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected