/frameworks/native/cmds/ip-up-vpn/ |
ip-up-vpn.c | 36 static const char *env(const char *name) { function 80 fprintf(state, "%s %s\n", env("DNS1"), env("DNS2")); 85 const char *interface = env("INTERFACE"); 86 const char *address = env("INTERNAL_ADDR4"); 87 const char *routes = env("SPLIT_INCLUDE_CIDR"); 109 if (set_address(&ifr.ifr_netmask, env("INTERNAL_NETMASK4"))) { 119 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4")); 121 fprintf(state, "%s\n", env("INTERNAL_DNS4_LIST")); 122 fprintf(state, "%s\n", env("DEFAULT_DOMAIN")) [all...] |
/frameworks/native/libs/graphicsenv/ |
GraphicsEnv.cpp | 45 static GraphicsEnv env; local 46 return env;
|
/frameworks/native/services/surfaceflinger/ |
DdmConnection.cpp | 35 JNIEnv* env; local 68 jint (*registerNatives)(JNIEnv* env, jclass clazz); 78 if (JNI_CreateJavaVM(&vm, &env, &args) == 0) { 83 if (registerNatives(env, 0) == 0) { 85 startClass = env->FindClass("android/ddm/DdmHandleAppName"); 87 startMeth = env->GetStaticMethodID(startClass, 90 jstring str = env->NewStringUTF(name); 91 env->CallStaticVoidMethod(startClass, startMeth, str, getuid()); 92 env->DeleteLocalRef(str); 98 startClass = env->FindClass("android/ddm/DdmRegister") [all...] |
/hardware/intel/common/libmix/mix_audio/src/ |
amhelper.c | 21 const gchar* env = g_getenv("MIX_AM"); local 22 if (env && env[0] == '1') {
|
/libcore/luni/src/test/native/ |
libcore_java_lang_ThreadTest.cpp | 33 JNIEnv* env; local 43 if (javaVm->AttachCurrentThread(&env, &args) != JNI_OK) { 81 JNIEnv* env, jobject /* object */) { 89 jniThrowException(env, "java/lang/IllegalStateException", "Attach failed"); 94 jniThrowException(env, "java/lang/IllegalStateException", "Join failed"); 108 jniThrowException(env, "java/lang/IllegalStateException", "Attach failed"); 113 jniThrowException(env, "java/lang/IllegalStateException", "Join failed"); 124 resultJString = env->NewStringUTF(result.c_str());
|
/packages/apps/Bluetooth/jni/ |
com_android_bluetooth.h | 49 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 50 if (!mCallbackEnv || (mCallbackEnv != env)) { 51 ALOGE("%s: Callback env fail: env: %p, callback: %p", mName, env, mCallbackEnv); 74 int register_com_android_bluetooth_hfp(JNIEnv* env); 76 int register_com_android_bluetooth_hfpclient(JNIEnv* env); 78 int register_com_android_bluetooth_a2dp(JNIEnv* env); 80 int register_com_android_bluetooth_a2dp_sink(JNIEnv* env); 82 int register_com_android_bluetooth_avrcp(JNIEnv* env); [all...] |
/prebuilts/go/darwin-x86/src/syscall/ |
env_unix.go | 14 // envOnce guards initialization by copyenv, which populates env. 17 // envLock guards env and envs. 20 // env maps from an environment variable to its first occurrence in envs. 21 env map[string]int 37 env = make(map[string]int) 42 if _, ok := env[key]; !ok { 43 env[key] = i // first mention of key 63 if i, ok := env[key]; ok { 65 delete(env, key) 80 i, ok := env[key 18 env map[string]int var [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
env_unix.go | 14 // envOnce guards initialization by copyenv, which populates env. 17 // envLock guards env and envs. 20 // env maps from an environment variable to its first occurrence in envs. 21 env map[string]int 37 env = make(map[string]int) 42 if _, ok := env[key]; !ok { 43 env[key] = i // first mention of key 63 if i, ok := env[key]; ok { 65 delete(env, key) 80 i, ok := env[key 18 env map[string]int var [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/ |
ctor.pass.cpp | 83 scoped_test_env env; 84 path const testDir = env.make_env_path("dir1"); 86 env.create_dir(testDir); 87 env.create_file(testFile, 42); 119 scoped_test_env env; 120 path const testFile = env.make_env_path("file1"); 121 env.create_file(testFile, 42); 146 scoped_test_env env; local 147 const path testDir = env.make_env_path("dir1"); 148 env.create_dir(testDir) [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_file/ |
copy_file.pass.cpp | 70 scoped_test_env env; local 71 const path file = env.create_file("file1", 42); 72 const path file2 = env.create_file("file2", 55); 73 const path dne = env.make_env_path("dne"); 90 scoped_test_env env; local 91 const path file = env.create_file("file1", 42); 94 const path dest = env.make_env_path("dest1"); 101 const path dest = env.create_file("dest2", 55); 110 const path older = env.create_file("older_file", 1); 113 const path from = env.create_file("update_from", 55) 138 scoped_test_env env; local 153 scoped_test_env env; local 168 scoped_test_env env; local [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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");
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/ |
hard_link_count.pass.cpp | 76 scoped_test_env env; local 77 const path file = env.create_file("file", 42); 80 env.create_hardlink(file, "file_hl");
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_block_file/ |
is_block_file.pass.cpp | 72 scoped_test_env env; local 73 const path dir = env.create_dir("dir"); 74 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_char_file/ |
is_character_file.pass.cpp | 72 scoped_test_env env; local 73 const path dir = env.create_dir("dir"); 74 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_directory/ |
is_directory.pass.cpp | 79 scoped_test_env env; local 80 const path dir = env.create_dir("dir"); 81 const path dir2 = env.create_dir("dir/dir2");
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_fifo/ |
is_fifo.pass.cpp | 72 scoped_test_env env; local 73 const path dir = env.create_dir("dir"); 74 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_other/ |
is_other.pass.cpp | 72 scoped_test_env env; local 73 const path dir = env.create_dir("dir"); 74 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_regular_file/ |
is_regular_file.pass.cpp | 75 scoped_test_env env; local 76 const path dir = env.create_dir("dir"); 77 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_socket/ |
is_socket.pass.cpp | 72 scoped_test_env env; local 73 const path dir = env.create_dir("dir"); 74 const path file = env.create_file("dir/file", 42);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_symlink/ |
is_symlink.pass.cpp | 93 scoped_test_env env; local 94 const path dir = env.create_dir("dir"); 95 const path file = env.create_file("dir/file", 42);
|