Home
last modified time | relevance | path

Searched refs:attach_current_thread (Results 1 – 25 of 36) sorted by relevance

12

/aosp_15_r20/external/rust/android-crates-io/crates/jni/tests/
Djni_api.rs18 use util::{attach_current_thread, unwrap};
36 let mut env = attach_current_thread(); in call_method_returning_null()
54 let mut env = attach_current_thread(); in is_instance_of_same_class()
64 let mut env = attach_current_thread(); in is_instance_of_superclass()
74 let mut env = attach_current_thread(); in is_instance_of_subclass()
87 let mut env = attach_current_thread(); in is_instance_of_not_superclass()
97 let mut env = attach_current_thread(); in is_instance_of_null()
109 let env = attach_current_thread(); in is_same_object_diff_references()
118 let env = attach_current_thread(); in is_same_object_same_reference()
125 let env = attach_current_thread(); in is_not_same_object()
[all …]
Djni_weak_refs.rs15 use util::{attach_current_thread, unwrap};
21 let mut env = attach_current_thread(); in weak_ref_works_in_other_threads()
47 let mut env = attach_current_thread(); in weak_ref_works_in_other_threads()
93 let mut env = attach_current_thread(); in weak_ref_is_actually_weak()
Dthreads_nested_attach_guard.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
12 let mut env = attach_current_thread(); in nested_attaches_should_not_detach_guarded_thread()
19 let mut env_nested = attach_current_thread(); in nested_attaches_should_not_detach_guarded_thread()
Djni_global_refs.rs14 use util::{attach_current_thread, unwrap};
20 let mut env = attach_current_thread(); in global_ref_works_in_other_threads()
47 let mut env = attach_current_thread(); in global_ref_works_in_other_threads()
Dthreads_attach_guard.rs4 use util::{attach_current_thread, call_java_abs, jvm};
10 let mut guard = attach_current_thread(); in thread_attach_guard_detaches_on_drop()
Dthreads_explicit_detach.rs4 use util::{attach_current_thread, call_java_abs, detach_current_thread, jvm};
9 let mut guard = attach_current_thread(); in explicit_detach_detaches_thread_attached_locally()
Djava_integers.rs6 use util::{attach_current_thread, print_exception};
10 let mut env = attach_current_thread(); in test_java_integers()
Dthreads_nested_attach_daemon.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
19 let mut env_nested = attach_current_thread(); in nested_attaches_should_not_detach_daemon_thread()
Dthreads_nested_attach_permanently.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
19 let mut env_nested = attach_current_thread(); in nested_attaches_should_not_detach_permanent_thread()
Djmap.rs6 use util::{attach_current_thread, unwrap};
10 let mut env = attach_current_thread(); in jmap_push_and_iterate()
/aosp_15_r20/external/rust/android-crates-io/extra_versions/crates/jni/tests/
Djni_api.rs18 use util::{attach_current_thread, unwrap};
36 let env = attach_current_thread(); in call_method_returning_null()
54 let env = attach_current_thread(); in is_instance_of_same_class()
64 let env = attach_current_thread(); in is_instance_of_superclass()
74 let env = attach_current_thread(); in is_instance_of_subclass()
87 let env = attach_current_thread(); in is_instance_of_not_superclass()
97 let env = attach_current_thread(); in is_instance_of_null()
109 let env = attach_current_thread(); in is_same_object_diff_references()
118 let env = attach_current_thread(); in is_same_object_same_reference()
125 let env = attach_current_thread(); in is_not_same_object()
[all …]
Dthreads_nested_attach_guard.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
12 let env = attach_current_thread(); in nested_attaches_should_not_detach_guarded_thread()
19 let env_nested = attach_current_thread(); in nested_attaches_should_not_detach_guarded_thread()
Djni_global_refs.rs14 use util::{attach_current_thread, unwrap};
20 let env = attach_current_thread(); in global_ref_works_in_other_threads()
47 let env = attach_current_thread(); in global_ref_works_in_other_threads()
Dthreads_attach_guard.rs4 use util::{attach_current_thread, call_java_abs, jvm};
10 let guard = attach_current_thread(); in thread_attach_guard_detaches_on_drop()
Dthreads_explicit_detach.rs4 use util::{attach_current_thread, call_java_abs, detach_current_thread, jvm};
9 let guard = attach_current_thread(); in explicit_detach_detaches_thread_attached_locally()
Djava_integers.rs6 use util::{attach_current_thread, print_exception};
10 let env = attach_current_thread(); in test_java_integers()
Dthreads_nested_attach_daemon.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
19 let env_nested = attach_current_thread(); in nested_attaches_should_not_detach_daemon_thread()
Dthreads_nested_attach_permanently.rs5 attach_current_thread, attach_current_thread_as_daemon, attach_current_thread_permanently,
19 let env_nested = attach_current_thread(); in nested_attaches_should_not_detach_permanent_thread()
Djmap.rs6 use util::{attach_current_thread, unwrap};
10 let env = attach_current_thread(); in jmap_push_and_iterate()
/aosp_15_r20/external/rust/android-crates-io/crates/jni/benches/
Dapi_calls.rs153 let mut env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_safe()
160 let mut env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_unchecked_str()
171 let mut env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_unchecked_jclass()
182 let mut env = VM.attach_current_thread().unwrap(); in jni_call_static_date_time_method_safe()
191 let mut env = VM.attach_current_thread().unwrap(); in jni_call_static_date_time_method_unchecked_jclass()
218 let mut env = VM.attach_current_thread().unwrap(); in jni_call_object_hash_method_safe()
227 let mut env = VM.attach_current_thread().unwrap(); in jni_call_object_hash_method_unchecked()
240 let mut env = VM.attach_current_thread().unwrap(); in jni_new_object_str()
251 let mut env = VM.attach_current_thread().unwrap(); in jni_new_object_by_id_str()
265 let mut env = VM.attach_current_thread().unwrap(); in jni_new_object_jclass()
[all …]
/aosp_15_r20/external/rust/android-crates-io/extra_versions/crates/jni/benches/
Dapi_calls.rs145 let env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_safe()
152 let env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_unchecked_str()
163 let env = VM.attach_current_thread().unwrap(); in jni_call_static_abs_method_unchecked_jclass()
174 let env = VM.attach_current_thread().unwrap(); in jni_call_static_date_time_method_safe()
183 let env = VM.attach_current_thread().unwrap(); in jni_call_static_date_time_method_unchecked_jclass()
210 let env = VM.attach_current_thread().unwrap(); in jni_call_object_hash_method_safe()
219 let env = VM.attach_current_thread().unwrap(); in jni_call_object_hash_method_unchecked()
231 let env = VM.attach_current_thread().unwrap(); in jni_new_object_str()
242 let env = VM.attach_current_thread().unwrap(); in jni_new_object_by_id_str()
256 let env = VM.attach_current_thread().unwrap(); in jni_new_object_jclass()
[all …]
/aosp_15_r20/external/rust/android-crates-io/extra_versions/crates/jni/src/wrapper/java_vm/
Dvm.rs216 pub fn attach_current_thread(&self) -> Result<AttachGuard> { in attach_current_thread() method
285 guard.attach_current_thread()? in attach_current_thread_impl()
384 unsafe fn attach_current_thread(&self) -> Result<*mut sys::JNIEnv> { in attach_current_thread() method
/aosp_15_r20/external/rust/android-crates-io/crates/jni/src/wrapper/java_vm/
Dvm.rs279 pub fn attach_current_thread(&self) -> Result<AttachGuard> { in attach_current_thread() method
366 guard.attach_current_thread()? in attach_current_thread_impl()
556 unsafe fn attach_current_thread(&self) -> Result<*mut sys::JNIEnv> { in attach_current_thread() method
/aosp_15_r20/external/rust/android-crates-io/extra_versions/crates/jni/tests/util/
Dmod.rs46 pub fn attach_current_thread() -> AttachGuard<'static> { in attach_current_thread() function
48 .attach_current_thread() in attach_current_thread()
/aosp_15_r20/external/rust/android-crates-io/crates/jni/tests/util/
Dmod.rs46 pub fn attach_current_thread() -> AttachGuard<'static> { in attach_current_thread() function
48 .attach_current_thread() in attach_current_thread()

12