Home
last modified time | relevance | path

Searched refs:result (Results 1 – 6 of 6) sorted by relevance

/libnativehelper/tests/
DJniInvocation_test.cpp53 const char* result = in TEST() local
55 EXPECT_FALSE(result == NULL); in TEST()
56 if (result != NULL) { in TEST()
57 EXPECT_TRUE(strcmp(result, kTestNonNull2) == 0); in TEST()
58 EXPECT_FALSE(strcmp(result, kExpected) == 0); in TEST()
61 result = in TEST()
63 EXPECT_FALSE(result == NULL); in TEST()
64 if (result != NULL) { in TEST()
65 EXPECT_TRUE(strcmp(result, kTestNonNull) == 0); in TEST()
66 EXPECT_FALSE(strcmp(result, kTestNonNull2) == 0); in TEST()
[all …]
/libnativehelper/include/nativehelper/
DtoStringArray.h38 jobjectArray result = newStringArray(env, count); in toStringArray() local
39 if (result == NULL) { in toStringArray()
47 env->SetObjectArrayElement(result, i, s.get()); in toStringArray()
52 return result; in toStringArray()
/libnativehelper/
DJniConstants.cpp92 jfieldID result = env->GetFieldID(klass, name, desc); in FindField() local
93 ALOG_ALWAYS_FATAL_IF(result == nullptr, "failed to find field '%s:%s'", name, desc); in FindField()
94 return result; in FindField()
98 jmethodID result = env->GetMethodID(klass, name, signature); in FindMethod() local
99 ALOG_ALWAYS_FATAL_IF(result == nullptr, "failed to find method '%s%s'", name, signature); in FindMethod()
100 return result; in FindMethod()
104 jmethodID result = env->GetStaticMethodID(klass, name, signature); in FindStaticMethod() local
105 ALOG_ALWAYS_FATAL_IF(result == nullptr, "failed to find static method '%s%s'", name, signature); in FindStaticMethod()
106 return result; in FindStaticMethod()
DJNIHelp.cpp78 int result = e->RegisterNatives(c.get(), gMethods, numMethods); in jniRegisterNativeMethods() local
79 ALOG_ALWAYS_FATAL_IF(result < 0, "RegisterNatives failed for '%s'; aborting...", in jniRegisterNativeMethods()
90 static bool getExceptionSummary(C_JNIEnv* env, jthrowable exception, std::string& result) { in getExceptionSummary() argument
103 result = "<error getting class name>"; in getExceptionSummary()
109 result = "<error getting class name UTF-8>"; in getExceptionSummary()
112 result += classNameChars; in getExceptionSummary()
124 result += ": "; in getExceptionSummary()
128 result += messageChars; in getExceptionSummary()
131 result += "<error getting message>"; in getExceptionSummary()
141 static bool getStackTrace(C_JNIEnv* env, jthrowable exception, std::string& result) { in getStackTrace() argument
[all …]
DNOTICE172 result of this License or out of the use or inability to use the
/libnativehelper/include_jni/
Djni.h545 jobject PopLocalFrame(jobject result) in PopLocalFrame()
546 { return functions->PopLocalFrame(this, result); } in PopLocalFrame()
573 jobject result = functions->NewObjectV(this, clazz, methodID, args); in NewObject() local
575 return result; in NewObject()
596 _jtype result; \
599 result = functions->Call##_jname##MethodV(this, obj, methodID, \
602 return result; \
644 _jtype result; \
647 result = functions->CallNonvirtual##_jname##MethodV(this, obj, \
650 return result; \
[all …]