Home
last modified time | relevance | path

Searched refs:GetEnv (Results 1 – 25 of 123) sorted by relevance

12345

/aosp12/bionic/tests/
H A Ddl_test.cpp120 eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
137 …eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, expected_output.c_str()… in TEST()
153 …eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, expected_output.c_str()… in TEST()
163 …eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_messag… in TEST()
175 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
187 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
202 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "12345"); in TEST()
220 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "54321"); in TEST()
300 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
338 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
[all …]
H A Dsys_thread_properties_test.cpp31 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out); in TEST()
44 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out); in TEST()
H A Dunistd_test.cpp1345 ASSERT_EQ(-1, execve("/", eth.GetArgs(), eth.GetEnv())); in TEST()
1369 eth.Run([&]() { execve(BIN_DIR "printenv", eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
1388 ASSERT_EQ(-1, execle("/", "/", nullptr, eth.GetEnv())); in TEST()
1400 eth.Run([&]() { execle(BIN_DIR "printenv", "printenv", nullptr, eth.GetEnv()); }, 0, in TEST()
1448 ASSERT_EQ(-1, execvpe("this-does-not-exist", eth.GetArgs(), eth.GetEnv())); in TEST()
1459 eth.Run([&]() { execvpe("echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1484 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1492 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1505 eth.Run([&]() { execvpe(tf.path, eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1530 ASSERT_EQ(-1, fexecve(fd, eth.GetArgs(), eth.GetEnv())); in TEST()
[all …]
H A Dcfi_test.cpp153 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
165 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
/aosp12/art/test/909-attach-agent/
H A Dattach.cc52 if (vm->GetEnv(reinterpret_cast<void**>(&env), kArtTiVersion) == JNI_OK) { in OnAttach()
60 if (vm->GetEnv(reinterpret_cast<void**>(&env), JVMTI_VERSION_1_0) != JNI_OK) { in OnAttach()
64 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&env2), JVMTI_VERSION_1_0)); in OnAttach()
/aosp12/art/test/904-object-allocation/
H A Dtracking.cc54 : obj_(GetEnv()->NewGlobalRef(src.obj_)) {} in ScopedGlobalRef()
60 GetEnv()->DeleteGlobalRef(obj_); in ~ScopedGlobalRef()
68 JNIEnv* GetEnv() const { in GetEnv() function in art::Test904ObjectAllocation::ScopedGlobalRef
70 CHECK_EQ(vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), 0); in GetEnv()
/aosp12/art/tools/jvmti-agents/jit-load/
H A Djitload.cc96 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_0) != JNI_OK && in SetupJvmti()
97 vm->GetEnv(reinterpret_cast<void**>(&jvmti), kArtTiVersion) != JNI_OK) { in SetupJvmti()
131 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_6)); in Agent_OnAttach()
/aosp12/frameworks/base/tools/bit/
H A Dcommand.cpp73 Command::GetEnv() const in GetEnv() function in Command
125 char* const* env = command.GetEnv(); in get_command_output()
173 char* const* env = command.GetEnv(); in run_command()
/aosp12/art/tools/jvmti-agents/field-null-percent/
H A Dfieldnull.cc79 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv()
83 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv()
94 CHECK_EQ(java_vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in DataDumpRequestCb()
193 CHECK_EQ(vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in AgentStart()
/aosp12/packages/services/Car/tests/CarEvsCameraPreviewApp/src/com/google/android/car/evs/jni/
H A DCarEvsCameraPreviewRenderer.cpp81 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
107 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnUnload()
/aosp12/art/test/901-hello-ti-agent/
H A Dbasics.cc101 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&env), JVMTI_VERSION_1_0)); in OnLoad()
102 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&env2), JVMTI_VERSION_1_0)); in OnLoad()
137 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad()
/aosp12/art/tools/jvmti-agents/field-counts/
H A Dfieldcount.cc81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv()
85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv()
96 CHECK_EQ(java_vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in DataDumpRequestCb()
251 CHECK_EQ(vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in AgentStart()
/aosp12/frameworks/base/libs/hwui/jni/
H A DUtils.cpp157 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in get_env_or_die()
165 if (jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in requireEnv()
/aosp12/art/tools/jvmti-agents/dump-jvmti-state/
H A Ddump-jvmti.cc49 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv()
53 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv()
/aosp12/art/tools/jvmti-agents/enable-vlog/
H A Denablevlog.cc81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv()
85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv()
/aosp12/art/benchmark/
H A Djni_loader.cc23 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
/aosp12/libnativehelper/tests_mts/jni/
H A Dlibnativehelper_test.cpp22 int result = GetJavaVM()->GetEnv(reinterpret_cast<void**>(&mEnv), JNI_VERSION_1_6); in SetUp()
/aosp12/frameworks/base/core/tests/coretests/apks/install_jni_lib/
H A Dcom_android_frameworks_coretests_JNITest.cpp31 if (jvm->GetEnv((void **) &e, JNI_VERSION_1_6)) { in JNI_OnLoad()
/aosp12/packages/modules/Connectivity/framework/jni/
H A Donload.cpp26 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
/aosp12/packages/modules/Connectivity/service/jni/
H A Donload.cpp26 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
/aosp12/packages/modules/ExtServices/jni/
H A DExtServicesJniOnLoad.cpp25 if (vm->GetEnv((void **)&env, JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
/aosp12/frameworks/opt/net/voip/src/jni/rtp/
H A Drtp_jni.cpp27 if (vm->GetEnv((void **)&env, JNI_VERSION_1_4) != JNI_OK || in JNI_OnLoad()
/aosp12/packages/modules/Connectivity/tests/unit/jni/
H A Dtest_onload.cpp37 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
/aosp12/frameworks/base/services/tests/mockingservicestests/jni/
H A Donload.cpp37 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
/aosp12/packages/providers/MediaProvider/jni/
H A Djni_init.cpp28 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()

12345