Searched refs:env_ (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tools/aapt2/jni/ |
D | ScopedUtfChars.h | 30 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 36 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars() 37 rhs.env_ = nullptr; in ScopedUtfChars() 44 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars() 54 env_ = rhs.env_; 57 rhs.env_ = nullptr; 77 JNIEnv* env_;
|
D | aapt2_jni.cpp | 81 : env_(env), diagnostics_obj_(diagnostics_obj) { in JniDiagnostics() 100 jstring message = env_->NewStringUTF(actual_msg.message.c_str()); in Log() 101 jstring path = env_->NewStringUTF(actual_msg.source.path.c_str()); in Log() 107 jclass diagnostics_cls = env_->GetObjectClass(diagnostics_obj_); in Log() 108 mid_ = env_->GetMethodID(diagnostics_cls, "log", "(ILjava/lang/String;JLjava/lang/String;)V"); in Log() 110 env_->CallVoidMethod(diagnostics_obj_, mid_, level_value, path, line, message); in Log() 114 JNIEnv* env_; member in JniDiagnostics
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_GnssLocationProvider.cpp | 284 JNIEnv* env_; member in android::JavaObject 289 JavaObject::JavaObject(JNIEnv* env, jclass clazz, jmethodID defaultCtor) : env_(env), in JavaObject() 291 object_ = env_->NewObject(clazz_, defaultCtor); in JavaObject() 296 : env_(env), clazz_(clazz) { in JavaObject() 298 object_ = env_->NewObject(clazz_, stringCtor, szArg); in JavaObject() 300 env_->DeleteLocalRef(szArg); in JavaObject() 306 : env_(env), clazz_(clazz), object_(object) { in JavaObject() 312 env_, clazz_, object_, method_name, value); in callSetter() 318 jbyteArray array = env_->NewByteArray(size); in callSetter() 319 env_->SetByteArrayRegion(array, 0, size, reinterpret_cast<jbyte*>(value)); in callSetter() [all …]
|