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.h37 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
47 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars()
48 rhs.env_ = nullptr; in ScopedUtfChars()
55 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars()
65 env_ = rhs.env_;
68 rhs.env_ = nullptr;
88 JNIEnv* env_;
Dscoped_string_chars.h36 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
50 env_->ReleaseStringChars(string_, chars_); in ~ScopedStringChars()
67 JNIEnv* const env_;
/libnativehelper/tests/jni_gtest/base/nativehelper/
Djni_gtest.h60 JNITestBase() : provider_(), env_(nullptr), java_vm_(nullptr) { in JNITestBase()
66 env_ = provider_.CreateJNIEnv(); in SetUp()
67 ASSERT_TRUE(env_ != nullptr); in SetUp()
71 provider_->DestroyJNIEnv(env_); in TearDown()
79 JNIEnv* env_; variable