Home
last modified time | relevance | path

Searched refs:env_ (Results 1 – 3 of 3) sorted by relevance

/libnativehelper/header_only_include/nativehelper/
Dscoped_utf_chars.h36 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
46 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars()
47 rhs.env_ = nullptr; in ScopedUtfChars()
54 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars()
64 env_ = rhs.env_;
67 rhs.env_ = nullptr;
87 JNIEnv* env_;
Dscoped_string_chars.h34 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
48 env_->ReleaseStringChars(string_, chars_); in ~ScopedStringChars()
65 JNIEnv* const env_;
/libnativehelper/tests/jni_gtest/base/nativehelper/
Djni_gtest.h61 JNITestBase() : provider_(), env_(nullptr), java_vm_(nullptr) { in JNITestBase()
67 env_ = provider_.CreateJNIEnv(); in SetUp()
68 ASSERT_TRUE(env_ != nullptr); in SetUp()
72 provider_->DestroyJNIEnv(env_); in TearDown()
80 JNIEnv* env_; variable