Lines Matching refs:get

50     T get() const {  in get()  function in scoped_local_ref
74 ALOG_ALWAYS_FATAL_IF(c.get() == NULL, in jniRegisterNativeMethods()
78 int result = e->RegisterNatives(c.get(), gMethods, numMethods); in jniRegisterNativeMethods()
96 (*env)->GetObjectClass(e, exceptionClass.get())); // java.lang.Class, can't fail in getExceptionSummary()
98 (*env)->GetMethodID(e, classClass.get(), "getName", "()Ljava/lang/String;"); in getExceptionSummary()
100 (jstring) (*env)->CallObjectMethod(e, exceptionClass.get(), classGetNameMethod)); in getExceptionSummary()
101 if (classNameStr.get() == NULL) { in getExceptionSummary()
106 const char* classNameChars = (*env)->GetStringUTFChars(e, classNameStr.get(), NULL); in getExceptionSummary()
113 (*env)->ReleaseStringUTFChars(e, classNameStr.get(), classNameChars); in getExceptionSummary()
117 (*env)->GetMethodID(e, exceptionClass.get(), "getMessage", "()Ljava/lang/String;"); in getExceptionSummary()
120 if (messageStr.get() == NULL) { in getExceptionSummary()
126 const char* messageChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL); in getExceptionSummary()
129 (*env)->ReleaseStringUTFChars(e, messageStr.get(), messageChars); in getExceptionSummary()
145 if (stringWriterClass.get() == NULL) { in getStackTrace()
149 jmethodID stringWriterCtor = (*env)->GetMethodID(e, stringWriterClass.get(), "<init>", "()V"); in getStackTrace()
151 (*env)->GetMethodID(e, stringWriterClass.get(), "toString", "()Ljava/lang/String;"); in getStackTrace()
154 if (printWriterClass.get() == NULL) { in getStackTrace()
159 (*env)->GetMethodID(e, printWriterClass.get(), "<init>", "(Ljava/io/Writer;)V"); in getStackTrace()
162 (*env)->NewObject(e, stringWriterClass.get(), stringWriterCtor)); in getStackTrace()
163 if (stringWriter.get() == NULL) { in getStackTrace()
168 (*env)->NewObject(e, printWriterClass.get(), printWriterCtor, stringWriter.get())); in getStackTrace()
169 if (printWriter.get() == NULL) { in getStackTrace()
175 … (*env)->GetMethodID(e, exceptionClass.get(), "printStackTrace", "(Ljava/io/PrintWriter;)V"); in getStackTrace()
176 (*env)->CallVoidMethod(e, exception, printStackTraceMethod, printWriter.get()); in getStackTrace()
183 (jstring) (*env)->CallObjectMethod(e, stringWriter.get(), stringWriterToStringMethod)); in getStackTrace()
184 if (messageStr.get() == NULL) { in getStackTrace()
188 const char* utfChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL); in getStackTrace()
195 (*env)->ReleaseStringUTFChars(e, messageStr.get(), utfChars); in getStackTrace()
207 if (exception.get() != NULL) { in jniThrowException()
209 getExceptionSummary(env, exception.get(), text); in jniThrowException()
215 if (exceptionClass.get() == NULL) { in jniThrowException()
221 if ((*env)->ThrowNew(e, exceptionClass.get(), msg) != JNI_OK) { in jniThrowException()
255 exception = currentException.get(); in jniGetStackTrace()
261 if (currentException.get() != NULL) { in jniGetStackTrace()
271 if (currentException.get() != NULL) { in jniGetStackTrace()
272 (*env)->Throw(e, currentException.get()); // rethrow in jniGetStackTrace()