Searched refs:ScopedUtfChars (Results 1 – 6 of 6) sorted by relevance
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_utf_chars.h | 42 class ScopedUtfChars { 44 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() function 53 ScopedUtfChars(ScopedUtfChars&& rhs) noexcept : in ScopedUtfChars() function 60 ~ScopedUtfChars() { in ~ScopedUtfChars() 66 ScopedUtfChars& operator=(ScopedUtfChars&& rhs) noexcept { 69 this->~ScopedUtfChars(); 103 DISALLOW_COPY_AND_ASSIGN(ScopedUtfChars);
|
D | utils.h | 106 ScopedUtfChars __or_return_scoped_utf_chars(env, expr); \
|
/libnativehelper/tests/ |
D | libnativehelper_test.cpp | 43 std::unique_ptr<ScopedUtfChars> result; in TEST_F() 46 ScopedUtfChars str = GET_UTF_OR_RETURN(env, j_str.get()); in TEST_F() 47 result.reset(new ScopedUtfChars(std::move(str))); in TEST_F() 58 std::unique_ptr<ScopedUtfChars> result; in TEST_F() 61 ScopedUtfChars str = GET_UTF_OR_RETURN_VOID(env, j_str.get()); in TEST_F() 62 result.reset(new ScopedUtfChars(std::move(str))); in TEST_F() 71 ScopedUtfChars str = GET_UTF_OR_RETURN(env, nullptr); in TEST_F() 85 ScopedUtfChars str = GET_UTF_OR_RETURN_VOID(env, nullptr); in TEST_F() 104 ScopedUtfChars str(mEnv, result->get()); in TEST_F() 128 ScopedUtfChars str(mEnv, result->get()); in TEST_F() [all …]
|
D | scoped_utf_chars_test.cpp | 22 ScopedUtfChars suc(env, s); in TestCompilationScopedUtfChars()
|
/libnativehelper/tests_mts/jni/ |
D | jni_helper_jni.cpp | 34 ScopedUtfChars c(env, className); in throwException() 35 ScopedUtfChars m(env, message); in throwException() 44 ScopedUtfChars c(env, className); in throwExceptionWithIntFormat() 45 ScopedUtfChars f(env, format); in throwExceptionWithIntFormat() 52 ScopedUtfChars m(env, message); in throwNullPointerException() 57 ScopedUtfChars m(env, message); in throwRuntimeException() 66 ScopedUtfChars m(env, functionName); in throwErrnoException()
|
/libnativehelper/ |
D | README.md | 29 `ScopedUtfChars` to manage the lifetime of Java strings in native code and 78 * [nativehelper/ScopedUtfChars.h](include/nativehelper/ScopedUtfChars.h)
|