Home
last modified time | relevance | path

Searched full:jvm (Results 1 – 25 of 2218) sorted by relevance

12345678910>>...89

/external/webrtc/modules/utility/source/
Djvm_android.cc23 JVM* g_jvm;
73 JavaVM* jvm = JVM::GetInstance()->jvm(); in JvmThreadConnector() local
74 RTC_CHECK(jvm); in JvmThreadConnector()
75 JNIEnv* jni = GetEnv(jvm); in JvmThreadConnector()
77 RTC_LOG(LS_INFO) << "Attaching thread to JVM"; in JvmThreadConnector()
79 jint ret = jvm->AttachCurrentThread(&env, nullptr); in JvmThreadConnector()
88 RTC_LOG(LS_INFO) << "Detaching thread from JVM"; in ~JvmThreadConnector()
89 jint res = JVM::GetInstance()->jvm()->DetachCurrentThread(); in ~JvmThreadConnector()
218 void JVM::Initialize(JavaVM* jvm) { in Initialize() argument
219 RTC_LOG(LS_INFO) << "JVM::Initialize"; in Initialize()
[all …]
/external/kotlinx.atomicfu/atomicfu-gradle-plugin/src/test/kotlin/kotlinx/atomicfu/plugin/gradle/test/
DJvmProjectTest.kt8 * Test that ensures correctness of `atomicfu-gradle-plugin` application to the JVM project:
14 class JvmLegacyTransformationTest : BaseKotlinGradleTest("jvm-simple") {
18 resolve("projects/jvm-simple/jvm-simple.gradle.kts") in createProject()
21 resolve("projects/jvm-simple/settings.gradle.kts") in createProject()
25 resolve("projects/jvm-simple/src/main/kotlin/IntArithmetic.kt") in createProject()
29 resolve("projects/jvm-simple/src/test/kotlin/ArithmeticTest.kt") in createProject()
62 * Test that ensures correctness of `atomicfu-gradle-plugin` application to the JVM project,
63 * - JVM IR compiler plugin transformation (kotlinx.atomicfu.enableJvmIrTransformation=true)
67 class JvmIrTransformationTest : BaseKotlinGradleTest("jvm-simple") {
71 resolve("projects/jvm-simple/jvm-simple.gradle.kts") in createProject()
[all …]
/external/ow2-asm/benchmarks/src/jmh/java/org/objectweb/asm/benchmarks/
DCsgBytecodeGenerator.java30 import com.claritysys.jvm.builder.CodeBuilder;
31 import com.claritysys.jvm.classfile.CfMethod;
32 import com.claritysys.jvm.classfile.ClassFile;
33 import com.claritysys.jvm.classfile.ConstantPool;
34 import com.claritysys.jvm.classfile.JVM;
48 CfMethod method = classFile.addMethod(JVM.ACC_PUBLIC, "<init>", "()V"); in generateClass()
50 code.add(JVM.ALOAD_0); in generateClass()
52 JVM.INVOKESPECIAL, constantPool.addMethodRef(false, "java/lang/Object", "<init>", "()V")); in generateClass()
53 code.add(JVM.RETURN); in generateClass()
56 method = classFile.addMethod(JVM.ACC_PUBLIC + JVM.ACC_STATIC, "main", "([Ljava/lang/String;)V"); in generateClass()
[all …]
/external/accompanist/insets-ui/api/
Dcurrent.api5 …kgroundColor, optional long contentColor, optional float elevation, kotlin.jvm.functions.Function1…
6 …omNavigationContent(optional androidx.compose.ui.Modifier modifier, kotlin.jvm.functions.Function1…
7 …kgroundColor, optional long contentColor, optional float elevation, kotlin.jvm.functions.Function0…
11jvm.functions.Function0<kotlin.Unit> topBar, optional kotlin.jvm.functions.Function0<kotlin.Unit> …
17jvm.functions.Function0<kotlin.Unit> title, optional androidx.compose.ui.Modifier modifier, option…
18jvm.functions.Function0<kotlin.Unit> title, optional androidx.compose.ui.Modifier modifier, option…
19 …kgroundColor, optional long contentColor, optional float elevation, kotlin.jvm.functions.Function0…
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api12 …public final fun start (Lkotlinx/coroutines/CoroutineStart;Ljava/lang/Object;Lkotlin/jvm/functions…
23 …lin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2…
24 …lin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2…
25 …public static final fun invoke (Lkotlinx/coroutines/CoroutineDispatcher;Lkotlin/jvm/functions/Func…
26 …lin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2…
27 …lin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2…
28 …public static final fun runBlocking (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Fun…
29 …public static synthetic fun runBlocking$default (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/f…
30 …public static final fun withContext (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Fun…
37 public abstract fun invokeOnCancellation (Lkotlin/jvm/functions/Function1;)V
[all …]
/external/accompanist/navigation-animation/api/
Dcurrent.api14 …ccompanist.navigation.animation.AnimatedComposeNavigator navigator, kotlin.jvm.functions.Function2…
18jvm.functions.Function1<? super androidx.compose.animation.AnimatedContentTransitionScope<androidx…
19jvm.functions.Function1<? super androidx.compose.animation.AnimatedContentTransitionScope<androidx…
23jvm.functions.Function1<? super androidx.compose.animation.AnimatedContentTransitionScope<androidx…
24jvm.functions.Function1<? super androidx.compose.animation.AnimatedContentTransitionScope<androidx…
/external/webrtc/modules/utility/include/
Djvm_android.h43 // C++ in to Java. See example in JVM for more details.
77 // See example in JVM for more details on how to use it.
91 // This class is created by the JVM class and is used to expose methods that
94 // methods. See example in JVM for more details.
122 // // At initialization (e.g. in JNI_OnLoad), call JVM::Initialize.
124 // JavaVM* jvm = NULL;
125 // jni->GetJavaVM(&jvm);
126 // webrtc::JVM::Initialize(jvm);
135 // // Calling thread must be attached to the JVM.
136 // env = JVM::GetInstance()->environment();
[all …]
/external/aws-crt-java/src/native/
Devent_stream_rpc_server.c34 JavaVM *jvm; member
57 JavaVM *jvm; member
91 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_server_listener_shutdown_complete()
93 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_server_listener_shutdown_complete()
104 JavaVM *jvm = callback_data->jvm; in s_server_listener_shutdown_complete() local
106 aws_jni_release_thread_env(jvm, env); in s_server_listener_shutdown_complete()
111 JavaVM *jvm; member
141 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_stream_continuation_fn()
143 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_stream_continuation_fn()
162 /* don't really care if they threw here, but we want to make the jvm happy that we checked */ in s_stream_continuation_fn()
[all …]
Devent_stream_rpc_client.c34 JavaVM *jvm; member
58 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_on_connection_setup()
60 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_on_connection_setup()
75 JavaVM *jvm = callback_data->jvm; in s_on_connection_setup() local
80 aws_jni_release_thread_env(jvm, env); in s_on_connection_setup()
93 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_on_connection_shutdown()
95 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_on_connection_shutdown()
106 JavaVM *jvm = callback_data->jvm; in s_on_connection_shutdown() local
109 aws_jni_release_thread_env(jvm, env); in s_on_connection_shutdown()
122 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_connection_protocol_message()
[all …]
Dcrt.c54 JavaVM *jvm = user_data; in s_detach_jvm_from_thread() local
56 /* we don't need this JNIEnv, but this is an easy way to verify the JVM is still valid to use */ in s_detach_jvm_from_thread()
58 JNIEnv *env = aws_jni_acquire_thread_env(jvm); in s_detach_jvm_from_thread()
60 (*jvm)->DetachCurrentThread(jvm); in s_detach_jvm_from_thread()
62 aws_jni_release_thread_env(jvm, env); in s_detach_jvm_from_thread()
67 static JNIEnv *s_aws_jni_get_thread_env(JavaVM *jvm) { in s_aws_jni_get_thread_env() argument
73 if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_6) == JNI_EDETACHED) { in s_aws_jni_get_thread_env()
94 jint result = (*jvm)->AttachCurrentThreadAsDaemon(jvm, &env, &attach_args); in s_aws_jni_get_thread_env()
96 jint result = (*jvm)->AttachCurrentThreadAsDaemon(jvm, (void **)&env, &attach_args); in s_aws_jni_get_thread_env()
107 /* This should only happen in event loop threads, the JVM main thread attachment is in s_aws_jni_get_thread_env()
[all …]
/external/kotlinpoet/interop/kotlin-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/
DKotlinPoetMetadataSpecsTest.kt375 @kotlin.jvm.JvmInline in <lambda>()
815 …* Note: Since this is a synthetic function, some JVM information (annotations, modifiers) may be m… in <lambda>()
885 @kotlin.jvm.JvmField in <lambda>()
976 @kotlin.jvm.JvmStatic in <lambda>()
979 @kotlin.jvm.JvmStatic in <lambda>()
982 @kotlin.jvm.JvmStatic in <lambda>()
985 @kotlin.jvm.JvmStatic in <lambda>()
988 @kotlin.jvm.JvmStatic in <lambda>()
991 @kotlin.jvm.JvmStatic in <lambda>()
994 @kotlin.jvm.JvmStatic in <lambda>()
[all …]
/external/rust/android-crates-io/extra_versions/crates/jni/tests/util/
Dmod.rs11 pub fn jvm() -> &'static Arc<JavaVM> { in jvm() function
12 static mut JVM: Option<Arc<JavaVM>> = None; in jvm() constant
22 let jvm = JavaVM::new(jvm_args).unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() localVariable
25 JVM = Some(Arc::new(jvm)); in jvm()
29 unsafe { JVM.as_ref().unwrap() } in jvm()
47 jvm() in attach_current_thread()
49 .expect("failed to attach jvm thread") in attach_current_thread()
54 jvm() in attach_current_thread_as_daemon()
56 .expect("failed to attach jvm daemon thread") in attach_current_thread_as_daemon()
61 jvm() in attach_current_thread_permanently()
[all …]
/external/rust/android-crates-io/crates/jni/tests/util/
Dmod.rs11 pub fn jvm() -> &'static Arc<JavaVM> { in jvm() function
12 static mut JVM: Option<Arc<JavaVM>> = None; in jvm() constant
22 let jvm = JavaVM::new(jvm_args).unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() localVariable
25 JVM = Some(Arc::new(jvm)); in jvm()
29 unsafe { JVM.as_ref().unwrap() } in jvm()
47 jvm() in attach_current_thread()
49 .expect("failed to attach jvm thread") in attach_current_thread()
54 jvm() in attach_current_thread_as_daemon()
56 .expect("failed to attach jvm daemon thread") in attach_current_thread_as_daemon()
61 jvm() in attach_current_thread_permanently()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api2 …public static final fun runBlockingTest (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions…
3 … runBlockingTest (Lkotlinx/coroutines/test/TestCoroutineDispatcher;Lkotlin/jvm/functions/Function2…
4 …public static final fun runBlockingTest (Lkotlinx/coroutines/test/TestCoroutineScope;Lkotlin/jvm/f…
5 …public static final fun runBlockingTest (Lkotlinx/coroutines/test/TestScope;Lkotlin/jvm/functions/…
6 …c fun runBlockingTest$default (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
7 …un runBlockingTestOnTestScope (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
8 …ockingTestOnTestScope$default (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
9 …public static final fun runTest (Lkotlin/coroutines/CoroutineContext;JLkotlin/jvm/functions/Functi…
10 …public static final fun runTest (Lkotlinx/coroutines/test/TestCoroutineScope;JLkotlin/jvm/function…
11 …public static final fun runTest (Lkotlinx/coroutines/test/TestScope;JLkotlin/jvm/functions/Functio…
[all …]
/external/rust/android-crates-io/crates/jni/tests/
Dexecutor.rs17 use util::{jvm, AtomicIntegerProxy};
21 let executor = Executor::new(jvm().clone()); in single_thread()
27 let executor = Executor::new(jvm().clone()); in serialized_threads()
33 let executor = Executor::new(jvm().clone()); in concurrent_threads()
95 let jvm = jvm().clone(); localVariable
105 let jvm = jvm.clone(); localVariable
108 let mut env = jvm.attach_current_thread().unwrap();
128 let jvm = jvm.clone(); localVariable
135 let mut env = jvm.attach_current_thread_as_daemon().unwrap();
140 println!("daemon JVM use before destroy...");
[all …]
Dthreads_nested_attach_guard.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_guarded_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
52 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_guarded_thread()
[all …]
Dthreads_nested_attach_permanently.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_permanent_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
48 assert!(jvm().get_env().is_ok()); in nested_attaches_should_not_detach_permanent_thread()
Dthreads_nested_attach_daemon.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_daemon_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/api/
Dkotlinx-coroutines-rx2.api7 …public static final fun awaitFirstOrElse (Lio/reactivex/ObservableSource;Lkotlin/jvm/functions/Fun…
17 …public static final fun collect (Lio/reactivex/MaybeSource;Lkotlin/jvm/functions/Function1;Lkotlin…
18 …public static final fun collect (Lio/reactivex/ObservableSource;Lkotlin/jvm/functions/Function1;Lk…
26 …public static final fun rxCompletable (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/F…
27 …linx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
28 …public static synthetic fun rxCompletable$default (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm
29 …linx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
51 …public static final fun rxFlowable (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Func…
52 …linx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2…
53 …public static synthetic fun rxFlowable$default (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/fu…
[all …]
/external/libtextclassifier/native/utils/java/
Djni-cache.cc26 JniCache::JniCache(JavaVM* jvm) in JniCache() argument
27 : jvm(jvm), in JniCache()
28 string_class(nullptr, jvm), in JniCache()
29 string_utf8(nullptr, jvm), in JniCache()
30 pattern_class(nullptr, jvm), in JniCache()
31 matcher_class(nullptr, jvm), in JniCache()
32 locale_class(nullptr, jvm), in JniCache()
33 locale_us(nullptr, jvm), in JniCache()
34 breakiterator_class(nullptr, jvm), in JniCache()
35 integer_class(nullptr, jvm), in JniCache()
[all …]
/external/rust/android-crates-io/extra_versions/crates/jni/tests/
Dthreads_nested_attach_guard.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_guarded_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_guarded_thread()
52 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_guarded_thread()
[all …]
Dthreads_nested_attach_permanently.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_permanent_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_permanent_thread()
48 assert!(jvm().get_env().is_ok()); in nested_attaches_should_not_detach_permanent_thread()
Dthreads_nested_attach_daemon.rs6 call_java_abs, jvm,
11 assert_eq!(jvm().threads_attached(), 0); in nested_attaches_should_not_detach_daemon_thread()
15 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
22 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
29 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
36 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
38 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
45 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
47 assert_eq!(jvm().threads_attached(), 1); in nested_attaches_should_not_detach_daemon_thread()
/external/dokka/core/testdata/format/multiplatform/mergeMembers/
Dfoo.md7 **Platform and version requirements:** JVM, JS
18 | [propJvm](prop-jvm.md)<br>(JVM) | `val propJvm: String` |
19 | [propJvmAndJs](prop-jvm-and-js.md) | `val propJvmAndJs: Int` |
23 | [bothJvmAndJs](both-jvm-and-js.md) | `fun bothJvmAndJs(): Unit` |
25 | [jvm](jvm.md)<br>(JVM) | `fun jvm(): Unit` |
/external/dokka/core/testdata/format/multiplatform/implied/
Dfoo.md16 | [propJvm](prop-jvm.md)<br>(JVM) | `val propJvm: String` |
17 | [propJvmAndJs](prop-jvm-and-js.md) | `val propJvmAndJs: Int` |
21 | [bothJvmAndJs](both-jvm-and-js.md) | `fun bothJvmAndJs(): Unit` |
23 | [jvm](jvm.md)<br>(JVM) | `fun jvm(): Unit` |

12345678910>>...89