/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_hard_link/ |
create_hard_link.pass.cpp | 39 scoped_test_env env; local 40 const path file = env.create_file("file1", 42); 41 const path file2 = env.create_file("file2", 55); 42 const path sym = env.create_symlink(file, "sym"); 52 scoped_test_env env; local 53 const path file = env.create_file("file"); 54 const path dest = env.make_env_path("dest1"); 66 scoped_test_env env; local 67 const path dir = env.create_dir("dir"); 68 const path dest = env.make_env_path("dest2") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/ |
is_empty.pass.cpp | 54 scoped_test_env env; local 55 TEST_CHECK(is_empty(env.test_root)); 56 env.create_file("foo", 42); 57 TEST_CHECK(!is_empty(env.test_root)); 68 scoped_test_env env; local 69 const path dir = env.create_dir("dir"); 70 const path dir2 = env.create_dir("dir/dir2"); 82 scoped_test_env env; local 83 const path dir = env.create_dir("dir"); 84 const path file1 = env.create_file("dir/file", 42) 98 scoped_test_env env; local [all...] |
/prebuilts/ndk/r16/sources/third_party/shaderc/third_party/spirv-tools/source/ |
validate_capability.cpp | 115 const auto env = _.context()->target_env; local 116 if (env == SPV_ENV_VULKAN_1_0) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessBuilderTest.java | 99 Map<String, String> env = pb.environment(); local 100 assertEquals(System.getenv(), env); local 101 env.clear(); 102 env = pb.environment(); 103 assertTrue(env.isEmpty()); 105 env.put(null, ""); 111 env.put("", null); 117 env.get(null); 123 assertNull(env.get(new Object()));
|
/external/vogar/src/vogar/commands/ |
VmCommandBuilder.java | 52 private Map<String, String> env = new LinkedHashMap<String, String>(); field in class:VmCommandBuilder 103 public VmCommandBuilder env(String key, String value) { method in class:VmCommandBuilder 104 env.put(key, value); 151 builder.env(env);
|
/art/openjdkjvmti/ |
ti_breakpoint.cc | 66 void BreakpointUtil::RemoveBreakpointsInClass(ArtJvmTiEnv* env, art::mirror::Class* klass) { 69 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 70 for (const Breakpoint& b : env->breakpoints) { 76 auto it = env->breakpoints.find(b); 77 DCHECK(it != env->breakpoints.end()); 78 env->breakpoints.erase(it); 89 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); local 101 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 102 auto res_pair = env->breakpoints.insert(/* Breakpoint */ {art_method, location}); 113 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv) local [all...] |
ti_object.cc | 43 jvmtiError ObjectUtil::GetObjectSize(jvmtiEnv* env ATTRIBUTE_UNUSED, 60 jvmtiError ObjectUtil::GetObjectHashCode(jvmtiEnv* env ATTRIBUTE_UNUSED, 80 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(baseenv); local 120 jvmtiError ret = CopyDataIntoJvmtiBuffer(env, 127 return CopyDataIntoJvmtiBuffer(env,
|
/art/test/169-threadgroup-jni/ |
jni_daemon_thread.cc | 31 JNIEnv* env = nullptr; local 33 int attach_result = vm->AttachCurrentThread(&env, &args); 37 ScopedLocalRef<jclass> klass(env, env->FindClass("Main")); 40 jmethodID id = env->GetStaticMethodID(klass.get(), "runFromNative", "()V"); 43 env->CallStaticVoidMethod(klass.get(), id); 52 JNIEnv* env, jclass, jobject thread_group) { 53 CHECK_EQ(env->GetJavaVM(&vm), 0); 54 jobject global_thread_group = env->NewGlobalRef(thread_group); 62 env->DeleteGlobalRef(global_thread_group) [all...] |
/art/test/909-attach-agent/ |
attach.cc | 41 jvmtiEnv* env = nullptr; local 52 if (vm->GetEnv(reinterpret_cast<void**>(&env), kArtTiVersion) == JNI_OK) { 53 Println("Created env for kArtTiVersion"); 54 CHECK_CALL_SUCCESS(env->DisposeEnvironment()); 55 env = nullptr; 57 Println("Failed to create env for kArtTiVersion"); 60 if (vm->GetEnv(reinterpret_cast<void**>(&env), JVMTI_VERSION_1_0) != JNI_OK) { 61 Println("Unable to create env for JVMTI_VERSION_1_0"); 65 if (env == env2) { 70 CHECK_CALL_SUCCESS(env->Allocate(8, &local_data)) [all...] |
/bionic/tests/ |
dl_test.cpp | 135 std::string env = std::string("LD_PRELOAD=") + get_testlib_root() + "/ld_preload_test_helper_lib2.so"; local 139 eth.SetEnv({ env.c_str(), nullptr }); 206 std::string env = std::string("LD_CONFIG_FILE=") + config_file.filename; local 210 eth.SetEnv({ env.c_str(), nullptr }); 228 std::string env = std::string("LD_CONFIG_FILE=") + config_file.filename; local 233 eth.SetEnv({ env.c_str(), env2.c_str(), nullptr }); 238 // ensures that LD_CONFIG_FILE env var does not work for production builds. 258 std::string env = std::string("LD_CONFIG_FILE=") + config_file.filename; local 262 eth.SetEnv({ env.c_str(), nullptr });
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/jni/ |
com_android_cts_splitapp_Native.cpp | 28 static jint add(JNIEnv *env, jobject thiz, jint a, jint b) { 34 static jstring arch(JNIEnv *env, jobject thiz) { 35 return env->NewStringUTF(__ANDROID_ARCH__); 45 static int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int numMethods) { 48 clazz = env->FindClass(className); 53 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { 61 static int registerNatives(JNIEnv* env) { 62 if (!registerNativeMethods(env, classPathName, methods, sizeof(methods) / sizeof(methods[0]))) { 70 JNIEnv* env; member in union:__anon1546 78 JNIEnv* env = NULL local [all...] |
/cts/hostsidetests/jvmti/attaching/app/jni/ |
cts_agent.cpp | 52 static void EnableEvents(JNIEnv* env, 60 if (JvmtiErrorToException(env, jvmti_env, ret)) { 66 JvmtiErrorToException(env, jvmti_env, ret); 75 if (JvmtiErrorToException(env, jvmti_env, ret)) { 82 if (JvmtiErrorToException(env, jvmti_env, ret)) { 88 JvmtiErrorToException(env, jvmti_env, ret); 104 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring descriptor) { 106 ScopedUtfChars str(env, descriptor); 127 JNIEnv* env; local 128 CHECK_EQ(0, vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) [all...] |
/external/adhd/cras/src/tests/ |
expr_unittest.cc | 27 struct cras_expr_env env = CRAS_EXPR_ENV_INIT; local 37 cras_expr_expression_eval(expr, &env, &value); 41 EXPECT_EQ(0, cras_expr_expression_eval_int(expr, &env, &integer)); 52 cras_expr_expression_eval(expr, &env, &value); 58 cras_expr_env_free(&env); 64 struct cras_expr_env env = CRAS_EXPR_ENV_INIT; local 73 cras_expr_expression_eval(expr, &env, &value); 77 EXPECT_EQ(-1, cras_expr_expression_eval_int(expr, &env, &integer)); 80 cras_expr_env_set_variable_integer(&env, "a", 2); 83 EXPECT_EQ(0, cras_expr_expression_eval_int(expr, &env, &integer)) 94 struct cras_expr_env env = CRAS_EXPR_ENV_INIT; local 204 struct cras_expr_env env = CRAS_EXPR_ENV_INIT; local [all...] |
/external/boringssl/src/crypto/test/ |
malloc.cc | 83 const char *env = getenv("MALLOC_NUMBER_TO_FAIL"); local 84 if (env != NULL && env[0] != 0) { 86 malloc_number_to_fail = strtoull(env, &endptr, 10);
|
/external/conscrypt/common/src/jni/main/include/conscrypt/ |
bio_stream.h | 33 JNIEnv* env = jniutil::getJNIEnv(); local 34 mStream = env->NewGlobalRef(stream); 38 JNIEnv* env = jniutil::getJNIEnv(); local 40 env->DeleteGlobalRef(mStream); 49 JNIEnv* env = jniutil::getJNIEnv(); local 50 if (env == nullptr) { 54 if (env->ExceptionCheck()) { 59 env->CallVoidMethod(mStream, jniutil::outputStream_flushMethod); 60 if (env->ExceptionCheck()) {
|
/external/curl/src/ |
tool_main.c | 104 char *env; local 106 env = curlx_getenv("CURL_MEMDEBUG"); 107 if(env) { 110 if(strlen(env) >= CURL_MT_LOGFNAME_BUFSIZE) 111 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; 112 strcpy(fname, env); 113 curl_free(env); 120 env = curlx_getenv("CURL_MEMLIMIT"); 121 if(env) { 123 long num = strtol(env, &endptr, 10) [all...] |
/external/harfbuzz_ng/src/ |
hb-shaper.cc | 60 char *env = getenv ("HB_SHAPER_LIST"); local 61 if (!env || !*env) { 77 char *end, *p = env;
|
/external/libchrome/base/test/ |
multiprocess_test_android.cc | 32 JNIEnv* env = android::AttachCurrentThread(); local 33 DCHECK(env); 46 env, base::android::ToJavaIntArray(env, fd_keys), 47 base::android::ToJavaIntArray(env, fd_fds)); 55 android::ToJavaArrayOfStrings(env, command_line.argv()); 57 env, android::GetApplicationContext(), j_argv, fds); 67 JNIEnv* env = android::AttachCurrentThread(); local 68 DCHECK(env); 72 env, android::GetApplicationContext(), process.Pid() 87 JNIEnv* env = android::AttachCurrentThread(); local [all...] |
/external/libcxx/test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/ |
ctor.pass.cpp | 90 scoped_test_env env; 91 path const testDir = env.make_env_path("dir1"); 93 env.create_dir(testDir); 94 env.create_file(testFile, 42); 126 scoped_test_env env; 127 path const testFile = env.make_env_path("file1"); 128 env.create_file(testFile, 42); 153 scoped_test_env env; local 154 const path testDir = env.make_env_path("dir1"); 155 env.create_dir(testDir) [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_symlink/ |
copy_symlink.pass.cpp | 58 scoped_test_env env; local 59 const path file = env.create_file("file1", 42); 60 const path file2 = env.create_file("file2", 55); 61 const path sym = env.create_symlink(file, "sym"); 62 const path dir = env.create_dir("dir"); 63 const path dne = env.make_env_path("dne"); 85 scoped_test_env env; local 86 const path dir = env.create_dir("dir"); 87 const path dir_sym = env.create_symlink(dir, "dir_sym"); 88 const path file = env.create_file("file", 42) [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/ |
create_directory.pass.cpp | 58 scoped_test_env env; local 59 const path dir = env.create_dir("dir1"); 70 scoped_test_env env; local 71 const path dir = env.make_env_path("dir1"); 84 scoped_test_env env; local 85 const path dir = env.make_env_path("dir1/dir2"); 86 const path dir1 = env.make_env_path("dir1"); 96 scoped_test_env env; local 97 const path file = env.create_file("file", 42);
|
create_directory_with_attributes.pass.cpp | 42 scoped_test_env env; local 43 const path dir = env.create_dir("dir1"); 44 const path dir2 = env.create_dir("dir2"); 62 scoped_test_env env; local 64 permissions(env.test_root, perms::remove_perms | perms::set_gid); 66 const path dir = env.make_env_path("dir1"); 67 const path attr_dir = env.create_dir("dir2"); 82 scoped_test_env env; local 83 const path dir = env.make_env_path("dir1/dir2"); 84 const path dir1 = env.make_env_path("dir1") 95 scoped_test_env env; local [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_symlink/ |
create_symlink.pass.cpp | 40 scoped_test_env env; local 41 const path file = env.create_file("file1", 42); 42 const path file2 = env.create_file("file2", 55); 43 const path sym = env.create_symlink(file, "sym"); 53 scoped_test_env env; local 54 const path file = env.create_file("file", 42); 55 const path file_sym = env.create_symlink(file, "file_sym"); 56 const path dir = env.create_dir("dir"); 57 const path dir_sym = env.create_symlink(dir, "dir_sym"); 59 const path dest = env.make_env_path("dest1") [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/ |
equivalent.pass.cpp | 90 scoped_test_env env; local 91 path const file = env.create_file("file", 42); 92 const path hl1 = env.create_hardlink(file, "hl1"); 93 const path hl2 = env.create_hardlink(file, "hl2"); 100 scoped_test_env env; local 101 path const file = env.create_file("file", 42); 102 const path fifo1 = env.create_fifo("fifo1"); 103 const path fifo2 = env.create_fifo("fifo2");
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.exists/ |
exists.pass.cpp | 76 scoped_test_env env; local 77 const path dir = env.create_dir("dir"); 78 const path file = env.create_file("dir/file", 42);
|