Home
last modified time | relevance | path

Searched refs:ScopedJavaLocalRef (Results 1 – 25 of 28) sorted by relevance

12

/external/libchrome/base/android/
Djni_array.cc28 ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(JNIEnv* env, in ToJavaByteArray()
39 return ScopedJavaLocalRef<jbyteArray>(env, byte_array); in ToJavaByteArray()
42 ScopedJavaLocalRef<jbyteArray> ToJavaByteArray( in ToJavaByteArray()
48 ScopedJavaLocalRef<jbooleanArray> ToJavaBooleanArray(JNIEnv* env, in ToJavaBooleanArray()
59 return ScopedJavaLocalRef<jbooleanArray>(env, boolean_array); in ToJavaBooleanArray()
62 ScopedJavaLocalRef<jintArray> ToJavaIntArray( in ToJavaIntArray()
72 return ScopedJavaLocalRef<jintArray>(env, int_array); in ToJavaIntArray()
75 ScopedJavaLocalRef<jintArray> ToJavaIntArray( in ToJavaIntArray()
80 ScopedJavaLocalRef<jlongArray> ToJavaLongArray(JNIEnv* env, in ToJavaLongArray()
91 return ScopedJavaLocalRef<jlongArray>(env, long_array); in ToJavaLongArray()
[all …]
Djni_array.h21 BASE_EXPORT ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(JNIEnv* env,
25 BASE_EXPORT ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(
30 BASE_EXPORT ScopedJavaLocalRef<jbooleanArray>
34 BASE_EXPORT ScopedJavaLocalRef<jintArray> ToJavaIntArray(
37 BASE_EXPORT ScopedJavaLocalRef<jintArray> ToJavaIntArray(
41 BASE_EXPORT ScopedJavaLocalRef<jlongArray> ToJavaLongArray(JNIEnv* env,
45 BASE_EXPORT ScopedJavaLocalRef<jlongArray> ToJavaLongArray(
50 BASE_EXPORT ScopedJavaLocalRef<jfloatArray> ToJavaFloatArray(
53 BASE_EXPORT ScopedJavaLocalRef<jfloatArray> ToJavaFloatArray(
58 BASE_EXPORT ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfByteArray(
[all …]
Dscoped_java_ref.h147 class ScopedJavaLocalRef : public JavaRef<T> {
149 constexpr ScopedJavaLocalRef() : env_(nullptr) {} in ScopedJavaLocalRef() function
150 constexpr ScopedJavaLocalRef(std::nullptr_t) : env_(nullptr) {} in ScopedJavaLocalRef() function
154 ScopedJavaLocalRef(const ScopedJavaLocalRef<T>& other) in ScopedJavaLocalRef() function
159 ScopedJavaLocalRef(ScopedJavaLocalRef<T>&& other) : env_(other.env_) { in ScopedJavaLocalRef() function
163 explicit ScopedJavaLocalRef(const JavaRef<T>& other) : env_(nullptr) { in ScopedJavaLocalRef() function
171 ScopedJavaLocalRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj), env_(env) {} in ScopedJavaLocalRef() function
173 ~ScopedJavaLocalRef() { in ~ScopedJavaLocalRef()
179 void operator=(const ScopedJavaLocalRef<T>& other) {
183 void operator=(ScopedJavaLocalRef<T>&& other) {
[all …]
Dscoped_java_ref_unittest.cc70 ScopedJavaLocalRef<jstring> str = ConvertUTF8ToJavaString(env, "string"); in TEST_F()
74 ScopedJavaLocalRef<jobject> local_obj(global); in TEST_F()
88 ScopedJavaLocalRef<jstring> str; in TEST_F()
102 ScopedJavaLocalRef<jstring> str2(env, str.Release()); in TEST_F()
105 ScopedJavaLocalRef<jstring> str3(str2); in TEST_F()
110 ScopedJavaLocalRef<jstring> str4((ScopedJavaLocalRef<jstring>(str2))); in TEST_F()
115 ScopedJavaLocalRef<jstring> str5; in TEST_F()
116 str5 = ScopedJavaLocalRef<jstring>(str2); in TEST_F()
Djni_android.cc22 using base::android::ScopedJavaLocalRef;
99 ScopedJavaLocalRef<jclass> class_loader_clazz = in InitReplacementClassLoader()
112 ScopedJavaLocalRef<jclass> GetClass(JNIEnv* env, const char* class_name) { in GetClass()
140 return ScopedJavaLocalRef<jclass>(env, clazz); in GetClass()
264 ScopedJavaLocalRef<jclass> throwable_clazz = in GetJavaExceptionInfo()
272 ScopedJavaLocalRef<jclass> bytearray_output_stream_clazz = in GetJavaExceptionInfo()
281 ScopedJavaLocalRef<jobject> bytearray_output_stream(env, in GetJavaExceptionInfo()
287 ScopedJavaLocalRef<jclass> printstream_clazz = in GetJavaExceptionInfo()
293 ScopedJavaLocalRef<jobject> printstream(env, in GetJavaExceptionInfo()
304 ScopedJavaLocalRef<jstring> exception_string( in GetJavaExceptionInfo()
Djni_string.cc63 ScopedJavaLocalRef<jstring> ConvertUTF8ToJavaString( in ConvertUTF8ToJavaString()
73 return ScopedJavaLocalRef<jstring>(env, ConvertUTF16ToJavaStringImpl( in ConvertUTF8ToJavaString()
113 ScopedJavaLocalRef<jstring> ConvertUTF16ToJavaString( in ConvertUTF16ToJavaString()
116 return ScopedJavaLocalRef<jstring>(env, in ConvertUTF16ToJavaString()
Djni_string.h28 BASE_EXPORT ScopedJavaLocalRef<jstring> ConvertUTF8ToJavaString(
42 BASE_EXPORT ScopedJavaLocalRef<jstring> ConvertUTF16ToJavaString(
Dtimezone_utils.cc17 ScopedJavaLocalRef<jstring> timezone_id = in GetDefaultTimeZoneId()
Djava_runtime.cc14 base::android::ScopedJavaLocalRef<jobject> runtime = in GetMemoryUsage()
Djni_android_unittest.cc36 ScopedJavaLocalRef<jclass> clazz(GetClass(env, "java/lang/Math")); in TEST()
Djni_android.h97 BASE_EXPORT ScopedJavaLocalRef<jclass> GetClass(JNIEnv* env,
/external/libchrome/base/android/jni_generator/
DtestCalledByNatives.golden52 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_showConfirmInfoBar(JNIEnv* env, const
72 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
76 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_showAutoLoginInfoBar(JNIEnv* env,
94 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
136 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_openUrl(JNIEnv* env, const
151 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
211 static base::android::ScopedJavaLocalRef<jbyteArray> Java_TestJni_returnByteArray(JNIEnv* env, const
226 return base::android::ScopedJavaLocalRef<jbyteArray>(env, ret);
230 static base::android::ScopedJavaLocalRef<jbooleanArray> Java_TestJni_returnBooleanArray(JNIEnv* env,
245 return base::android::ScopedJavaLocalRef<jbooleanArray>(env, ret);
[all …]
Dsample_for_tests.cc20 using base::android::ScopedJavaLocalRef;
68 ScopedJavaLocalRef<jstring> CPPClass::ReturnAString( in ReturnAString()
97 static ScopedJavaLocalRef<jobject> JNI_SampleForTests_GetNonPODDatatype( in JNI_SampleForTests_GetNonPODDatatype()
100 return ScopedJavaLocalRef<jobject>(); in JNI_SampleForTests_GetNonPODDatatype()
121 ScopedJavaLocalRef<jobject> my_java_object; in main()
129 ScopedJavaLocalRef<jobject> my_created_object = in main()
136 ScopedJavaLocalRef<jobject> struct_a = in main()
DtestFromJavaPGenerics.golden59 static base::android::ScopedJavaLocalRef<jclass> Java_HashSet_getClass(JNIEnv* env, const
61 static base::android::ScopedJavaLocalRef<jclass> Java_HashSet_getClass(JNIEnv* env, const
76 return base::android::ScopedJavaLocalRef<jclass>(env, ret);
DtestNatives.golden72 static base::android::ScopedJavaLocalRef<jstring> JNI_TestJni_GetDomainAndRegistry(JNIEnv* env,
98 static base::android::ScopedJavaLocalRef<jbyteArray> JNI_TestJni_GetStateAsByteArray(JNIEnv* env,
110 static base::android::ScopedJavaLocalRef<jobjectArray> JNI_TestJni_GetAutofillProfileGUIDs(JNIEnv*
167 static base::android::ScopedJavaLocalRef<jobject> JNI_TestJni_GetInnerClass(JNIEnv* env, const
209 static base::android::ScopedJavaLocalRef<jthrowable> JNI_TestJni_MessWithJavaException(JNIEnv* env,
DtestConstantsFromJavaP.golden147 static base::android::ScopedJavaLocalRef<jobject>
162 static base::android::ScopedJavaLocalRef<jobject>
191 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
196 static base::android::ScopedJavaLocalRef<jobject>
210 static base::android::ScopedJavaLocalRef<jobject>
238 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
242 static base::android::ScopedJavaLocalRef<jobject>
255 static base::android::ScopedJavaLocalRef<jobject>
282 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
286 static base::android::ScopedJavaLocalRef<jobject>
[all …]
DtestTracing.golden62 static base::android::ScopedJavaLocalRef<jobject> Java_Foo_Constructor(JNIEnv* env) {
76 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
DtestFromJavaP.golden225 static base::android::ScopedJavaLocalRef<jobject> Java_InputStream_Constructor(JNIEnv* env)
227 static base::android::ScopedJavaLocalRef<jobject> Java_InputStream_Constructor(JNIEnv* env) {
241 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
Dsample_for_tests.h101 base::android::ScopedJavaLocalRef<jstring> ReturnAString(
/external/libchrome/mojo/public/java/system/
Dcore_impl.cc19 using base::android::ScopedJavaLocalRef;
27 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_CreateMessagePipe( in JNI_CoreImpl_CreateMessagePipe()
47 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_CreateDataPipe( in JNI_CoreImpl_CreateDataPipe()
67 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_CreateSharedBuffer( in JNI_CoreImpl_CreateSharedBuffer()
135 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_ReadMessage( in JNI_CoreImpl_ReadMessage()
176 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_ReadData( in JNI_CoreImpl_ReadData()
199 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_BeginReadData( in JNI_CoreImpl_BeginReadData()
214 ScopedJavaLocalRef<jobject> byte_buffer( in JNI_CoreImpl_BeginReadData()
229 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_WriteData( in JNI_CoreImpl_WriteData()
250 static ScopedJavaLocalRef<jobject> JNI_CoreImpl_BeginWriteData( in JNI_CoreImpl_BeginWriteData()
[all …]
/external/libchrome/mojo/public/java/system/javatests/
Dvalidation_test_util.cc16 using base::android::ScopedJavaLocalRef;
21 ScopedJavaLocalRef<jobject> JNI_ValidationTestUtil_ParseData( in JNI_ValidationTestUtil_ParseData()
32 ScopedJavaLocalRef<jstring> j_error_message = in JNI_ValidationTestUtil_ParseData()
41 ScopedJavaLocalRef<jobject> byte_buffer( in JNI_ValidationTestUtil_ParseData()
/external/libchrome/base/test/
Dmultiprocess_test_android.cc40 android::ScopedJavaLocalRef<jobjectArray> fds = in SpawnMultiProcessTestChild()
50 android::ScopedJavaLocalRef<jobjectArray> j_argv = in SpawnMultiProcessTestChild()
63 base::android::ScopedJavaLocalRef<jobject> result_code = in WaitForMultiprocessTestChildExit()
/external/libchrome/base/test/android/
Durl_utils.cc16 ScopedJavaLocalRef<jstring> jtest_data_dir = in GetIsolatedTestRoot()
Djava_handler_thread_helpers.h32 ScopedJavaLocalRef<jthrowable> exception);
Djava_handler_thread_helpers.cc33 ScopedJavaLocalRef<jthrowable> exception) { in IsExceptionTestException()

12