Home
last modified time | relevance | path

Searched refs:jvm (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/libs/hwui/jni/
DByteBufferStreamAdaptor.cpp14 ByteBufferStream(JavaVM* jvm, jobject jbyteBuffer, size_t initialPosition, size_t length, in ByteBufferStream() argument
16 : mJvm(jvm) in ByteBufferStream()
24 static ByteBufferStream* Create(JavaVM* jvm, JNIEnv* env, jobject jbyteBuffer, in Create() argument
45 return new ByteBufferStream(jvm, jbyteBuffer, position, length, storage); in Create()
173 ByteArrayStream(JavaVM* jvm, jbyteArray jarray, size_t offset, size_t length) in ByteArrayStream() argument
174 : mJvm(jvm), mByteArray(jarray), mOffset(offset), mPosition(0), mLength(length) {} in ByteArrayStream()
177 static ByteArrayStream* Create(JavaVM* jvm, JNIEnv* env, jbyteArray jarray, size_t offset, in Create() argument
184 return new ByteArrayStream(jvm, jarray, offset, length); in Create()
268 JavaVM* jvm; member
274 JavaVM* jvm; in CreateByteBufferStreamAdaptor() local
[all …]
DUtils.cpp156 JNIEnv* android::get_env_or_die(JavaVM* jvm) { in get_env_or_die() argument
158 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in get_env_or_die()
159 LOG_ALWAYS_FATAL("Failed to get JNIEnv for JavaVM: %p", jvm); in get_env_or_die()
164 JNIEnv* android::requireEnv(JavaVM* jvm) { in requireEnv() argument
166 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in requireEnv()
167 if (jvm->AttachCurrentThreadAsDaemon(&env, nullptr) != JNI_OK) { in requireEnv()
DCreateJavaOutputStreamAdaptor.cpp20 JavaInputStreamAdaptor(JavaVM* jvm, jobject js, jbyteArray ar, jint capacity, in JavaInputStreamAdaptor() argument
22 : fJvm(jvm) in JavaInputStreamAdaptor()
33 JavaVM* jvm; in Create() local
34 LOG_ALWAYS_FATAL_IF(env->GetJavaVM(&jvm) != JNI_OK); in Create()
48 return new JavaInputStreamAdaptor(jvm, js, ar, capacity, swallowExceptions); in Create()
DUtils.h78 JNIEnv* get_env_or_die(JavaVM* jvm);
88 JNIEnv* requireEnv(JavaVM* jvm);
/frameworks/base/services/incremental/
DServiceWrappers.cpp114 RealJniWrapper(JavaVM* jvm);
275 static JNIEnv* getOrAttachJniEnv(JavaVM* jvm);
279 RealTimedQueueWrapper(JavaVM* jvm) { in RealTimedQueueWrapper() argument
280 mThread = std::thread([this, jvm]() { in RealTimedQueueWrapper()
281 (void)getOrAttachJniEnv(jvm); in RealTimedQueueWrapper()
445 JavaVM* jvm = nullptr; in getJavaVm() local
446 env->GetJavaVM(&jvm); in getJavaVm()
447 CHECK(jvm); in getJavaVm()
448 return jvm; in getJavaVm()
459 static JNIEnv* getOrAttachJniEnv(JavaVM* jvm) { in getOrAttachJniEnv() argument
[all …]
/frameworks/base/core/tests/coretests/apks/install_jni_lib/
Dcom_android_frameworks_coretests_JNITest.cpp27 jint JNI_OnLoad(JavaVM *jvm, void */* reserved */) { in JNI_OnLoad() argument
31 if (jvm->GetEnv((void **) &e, JNI_VERSION_1_6)) { in JNI_OnLoad()
/frameworks/base/core/jni/
Dcore_jni_helpers.h121 static inline JNIEnv* GetOrAttachJNIEnvironment(JavaVM* jvm, jint version = JNI_VERSION_1_4) {
122 JNIEnv* env = GetJNIEnvironment(jvm, version);
124 int result = jvm->AttachCurrentThread(&env, nullptr);
133 static thread_local VmDetacher detacher(jvm);
/frameworks/base/apct-tests/perftests/core/jni/
DSystemPerfTest.cpp70 jint JNI_OnLoad(JavaVM* jvm, void*) { in JNI_OnLoad() argument
72 if (jvm->GetEnv((void**) &env, JNI_VERSION_1_6)) { in JNI_OnLoad()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp183 jint JNI_OnLoad(JavaVM* jvm, void*) { in JNI_OnLoad() argument
185 if (jvm->GetEnv((void**) &env, JNI_VERSION_1_6)) { in JNI_OnLoad()
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DPackageInstallerSessionTest.kt26 import kotlin.jvm.JvmField
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorManagerService.cpp172 int register_android_server_vibrator_VibratorManagerService(JavaVM* jvm, JNIEnv* env) { in register_android_server_vibrator_VibratorManagerService() argument
173 sJvm = jvm; in register_android_server_vibrator_VibratorManagerService()
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp362 PMSCDataLoader(JavaVM* jvm) : mJvm(jvm) { CHECK(mJvm); } in PMSCDataLoader() argument
989 [](auto jvm, const auto& params) -> android::dataloader::DataLoaderPtr { in register_android_server_com_android_server_pm_PackageManagerShellCommandDataLoader() argument
992 return std::make_unique<PMSCDataLoader>(jvm); in register_android_server_com_android_server_pm_PackageManagerShellCommandDataLoader()
Dcom_android_server_vibrator_VibratorController.cpp469 int register_android_server_vibrator_VibratorController(JavaVM* jvm, JNIEnv* env) { in register_android_server_vibrator_VibratorController() argument
470 sJvm = jvm; in register_android_server_vibrator_VibratorController()
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp37 JavaVM* jvm = nullptr; member
49 if (gJni.jvm == nullptr) { in getJniEnv()
55 if (gJni.jvm->GetEnv((void**)&env, JNI_VERSION_1_4) != JNI_OK) { in getJniEnv()
58 jint attachResult = gJni.jvm->AttachCurrentThreadAsDaemon(&env, (void*)&args); in getJniEnv()
500 env->GetJavaVM(&gJni.jvm); in AChoreographer_initJVM()
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DDevSdkIgnoreRunner.kt30 import kotlin.jvm.Throws
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceActivity.java37 import kotlin.jvm.functions.Function1;
/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/src/com/android/server/pm/
DPackageInstallerSessionTest.kt34 import kotlin.jvm.JvmField in <lambda>()
/frameworks/base/cmds/uinput/jni/
Dcom_android_commands_uinput_Device.cpp340 jint JNI_OnLoad(JavaVM* jvm, void*) { in JNI_OnLoad() argument
342 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6)) { in JNI_OnLoad()
/frameworks/base/tools/dump-coverage/
Ddump_coverage.cc198 Agent_OnLoad(JavaVM* jvm ATTRIBUTE_UNUSED, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE… in Agent_OnLoad()
/frameworks/base/cmds/hid/jni/
Dcom_android_commands_hid_Device.cpp396 jint JNI_OnLoad(JavaVM* jvm, void*) { in JNI_OnLoad() argument
398 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6)) { in JNI_OnLoad()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricDisplayListenerTest.java55 import kotlin.jvm.functions.Function0;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java39 import kotlin.jvm.functions.Function4;
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DParcelableComponentTest.kt41 import kotlin.reflect.jvm.jvmErasure in <lambda>()
/frameworks/base/packages/SystemUI/
Dproguard.flags118 -assumenosideeffects class kotlin.jvm.internal.Intrinsics {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanelControllerBase.java57 import kotlin.jvm.functions.Function1;

12