Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 96) sorted by relevance

1234

/tools/test/graphicsbenchmark/benchmark_libs/
Dagq.cpp54 JNIEnv* env = getJniEnv(); in createIntent() local
55 jclass intentClass = env->FindClass("android/content/Intent"); in createIntent()
56 jmethodID constructor = env->GetMethodID(intentClass, "<init>", "(Ljava/lang/String;)V"); in createIntent()
57 jobject intent = env->NewObject(intentClass, constructor, env->NewStringUTF(INTENT_START)); in createIntent()
59 env->GetMethodID( in createIntent()
63 env->CallObjectMethod(intent, set_type, env->NewStringUTF("text/plain")); in createIntent()
65 env->GetMethodID( in createIntent()
71 env->CallObjectMethod(intent, put_extra, env->NewStringUTF("timestamp"), timestamp); in createIntent()
87 JNIEnv* env = getJniEnv(); in startLoop() local
88 jclass contextClass = env->FindClass("android/content/Context"); in startLoop()
[all …]
/tools/netsim/scripts/
Dserver_config.py60 self.env = get_default_environment(AOSP_ROOT)
73 return self.env
82 self.env["SCCACHE_GCS_BUCKET"] = "emu-dev-sccache"
83 self.env["SCCACHE_GCS_OAUTH_URL"] = (
86 self.env["SCCACHE_GCS_RW_MODE"] = "READ_WRITE"
89 self.env["SCCACHE_REDIS"] = "redis//{}:{}/1".format(
95 self.env["SCCACHE_LOG"] = "info"
96 self.env["SCCACHE_ERROR_LOG"] = os.path.join(
101 self.env["SCCACHE_IDLE_TIMEOUT"] = "0"
104 run([self.sccache, "--stop-server"], self.env, "scc", AOSP_ROOT, False)
[all …]
/tools/treble/build/sandbox/
Drbe_action.py37 env = []
38 cleanup = rbe.setup(env, sys.stdout if args.print else subprocess.DEVNULL)
41 env = rbe.env_array_to_dict(rbe.prepare_env(env))
42 env['PATH'] = os.getenv('PATH')
44 env[d] = '/tmp' # We want the logs in /tmp instead of out.
49 shell_env = ' '.join(['%s=%s' % (k,v) for k, v in env.items()])
55 bootstrap_cmd, env=env, cwd=src_root, stdout=subprocess.DEVNULL)
69 subprocess.check_call(rewrapper_cmd, env=env, cwd=src_root)
Drbe_test.py27 env = rbe.prepare_env(env=["RBE_instance=test_instance", "RBE_service=test_service"])
28 self.assertIn('USE_RBE=true', env)
29 self.assertIn('RBE_instance=test_instance', env)
30 self.assertIn('RBE_JAVAC=true', env)
31 self.assertIn('RBE_D8=true', env)
32 self.assertIn('RBE_R8=true', env)
Dbuild_android_sandboxed.py39 env=[]): argument
88 cleanup = rbe.setup(env)
89 env = rbe.prepare_env(env)
106 env=env,
215 env=args['env'],
Drbe.py72 def prepare_env(env): argument
94 prepared_env.update(env_array_to_dict(env))
124 def setup(env, build_log=subprocess.DEVNULL): argument
136 env_dict = env_array_to_dict(env)
168 env.append("RBE_HTTP_PROXY=10.1.2.1:%i" % port)
Dnsjail.py67 env=[], argument
129 env=env,
160 env=[], argument
300 for var in env:
499 env=args.env,
/tools/netsim/rust/common/src/system/
Dmod.rs17 use std::env;
39 let mut path = match env::var("ANDROID_TMP") { in netsimd_temp_dir_pathbuf()
41 _ => env::temp_dir(), in netsimd_temp_dir_pathbuf()
48 let user = match env::var("USER") { in netsimd_temp_dir_pathbuf()
63 use std::env;
71 env::set_var("ANDROID_TMP", "/tmp/forge"); in test_forge()
72 env::set_var("USER", "ryle"); in test_forge()
80 let temp_dir = env::temp_dir(); in test_non_forge()
81 env::remove_var("ANDROID_TMP"); in test_non_forge()
82 env::set_var("USER", "ryle"); in test_non_forge()
/tools/test/graphicsbenchmark/functional_tests/java/src/cpp/
Dnative_choreo_activity.cpp143 Java_com_android_game_qualification_tests_ChoreoTestActivity_runTheTest(JNIEnv* env, jobject, jobje… in Java_com_android_game_qualification_tests_ChoreoTestActivity_runTheTest() argument
144 theWindow = ANativeWindow_fromSurface(env, surface); in Java_com_android_game_qualification_tests_ChoreoTestActivity_runTheTest()
182 Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals(JNIEnv* env, jobject… in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals() argument
183 jclass arrayListClass = env->FindClass("java/util/ArrayList"); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
184 jmethodID arrayListConstructor = env->GetMethodID(arrayListClass, "<init>", "()V"); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
185 jmethodID addMethod = env->GetMethodID(arrayListClass, "add", "(Ljava/lang/Object;)Z"); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
187 jclass longClass = env->FindClass("java/lang/Long"); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
188 jmethodID longValueOf = env->GetStaticMethodID(longClass, "valueOf", "(J)Ljava/lang/Long;"); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
190 jobject list = env->NewObject(arrayListClass, arrayListConstructor); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
196 jobject javaInterval = env->CallStaticObjectMethod(longClass, longValueOf, interval); in Java_com_android_game_qualification_tests_ChoreoTestActivity_getFrameIntervals()
[all …]
Dsurface_flinger_test_activity.cpp46 Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_initDisplay(JNIEnv* env, jobje… in Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_initDisplay() argument
66 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_initDisplay()
119 Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_getFrameData(JNIEnv* env, jobj… in Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_getFrameData() argument
124 jlongArray result = env->NewLongArray(2); in Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_getFrameData()
125 env->SetLongArrayRegion(result, 0, 2, buffer); in Java_com_android_game_qualification_tests_SurfaceFlingerTestActivity_getFrameData()
/tools/netsim/rust/common/src/util/
Dos_utils.rs52 if let Ok(test_env_p) = std::env::var("TMPDIR") { in get_discovery_directory()
55 let mut path = match std::env::var(DISCOVERY.root_env) { in get_discovery_directory()
121 std::env::var("NETSIM_INSTANCE").ok().and_then(|i| i.parse().ok()); in get_instance()
138 } else if let Ok(netsim_hci_port) = std::env::var("NETSIM_HCI_PORT") { in get_hci_port()
219 std::env::remove_var(DISCOVERY.root_env); in test_get_discovery_directory()
220 std::env::remove_var("TMPDIR"); in test_get_discovery_directory()
229 std::env::set_var(DISCOVERY.root_env, "/netsim-test"); in test_get_discovery_directory()
236 std::env::set_var("TMPDIR", "/tmpdir"); in test_get_discovery_directory()
247 std::env::set_var("NETSIM_INSTANCE", "100"); in test_get_instance_and_instance_name()
252 std::env::remove_var("NETSIM_INSTANCE"); in test_get_instance_and_instance_name()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dformatter.py164 def format_remote_command(self, command, env): argument
177 if not env:
181 for name in env:
182 value = env[name]
191 env, argument
208 remote_command = self.format_remote_command(command, env)
Dconnection.py157 env=None, argument
186 if env is None:
187 env = {}
203 full_command, env, self._settings, extra_options=extra_options)
276 self.run(command, timeout, ignore_status, env, io_encoding,
280 def run_async(self, command, env=None): argument
302 result = self.run(command, env=env)
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustTestBase.java51 public ArrayList<EnvPair> env; field in RustTestBase.Invocation
54 public Invocation(String[] command, ArrayList<EnvPair> env, File workingDir) { in Invocation() argument
56 this.env = env; in Invocation()
257 ArrayList<EnvPair> env = new ArrayList<>(); in generateInvocations() local
258 env.add(new EnvPair("RUST_BACKTRACE", "full")); in generateInvocations()
260 env.add(new EnvPair("LD_LIBRARY_PATH", ldLibraryPath())); in generateInvocations()
262 out.add(new Invocation(command.toArray(new String[0]), env, workingDir)); in generateInvocations()
/tools/ndkports/openssl/
Dbuild.gradle.kts35 env("ANDROID_NDK", toolchain.ndk.path.absolutePath) in <lambda>()
36 env("PATH", "${toolchain.binDir}:${System.getenv("PATH")}") in <lambda>()
42 env("ANDROID_NDK", toolchain.ndk.path.absolutePath) in <lambda>()
43 env("PATH", "${toolchain.binDir}:${System.getenv("PATH")}") in <lambda>()
49 env("ANDROID_NDK", toolchain.ndk.path.absolutePath) in <lambda>()
50 env("PATH", "${toolchain.binDir}:${System.getenv("PATH")}") in <lambda>()
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py111 env=None, argument
137 env=env,
172 def run_async(command, env=None): argument
191 env=env,
/tools/netsim/scripts/tasks/
Dcompile_task.py25 def __init__(self, args, env): argument
28 self.env = env
34 self.env,
Dcompile_install_task.py26 def __init__(self, args, env): argument
29 self.env = env
40 self.env,
Dconfigure_task.py30 def __init__(self, args, env): argument
33 self.env = env
63 run(launcher, self.env, "bld")
D__init__.py46 def get_tasks(args, env) -> Mapping[str, Task]: argument
51 "Configure": ConfigureTask(args, env),
52 "Compile": CompileTask(args, env),
53 "CompileInstall": CompileInstallTask(args, env),
/tools/asuite/atest/integration_tests/
Dadevice_command_success_tests.py98 env=step_in.get_env(),
104 env=step_in.get_env(),
116 env=step_in.get_env(),
124 env=step_in.get_env(),
131 env=step_in.get_env(),
Dsnapshot.py85 env: Optional[dict[str, str]] = None,
103 name, root_path, include_paths, exclude_paths, env
124 env = self._env_snapshot.restore_snapshot(name, root_path)
127 self._dir_snapshot.restore_snapshot(name, root_path, exclude_paths, env)
128 return env, objs
324 env: Optional[dict[str, str]] = None,
337 self._expand_vars_paths(paths, env),
371 env: Optional[dict[str, str]] = None,
388 self._expand_wildcard_paths(root_path, include_paths, env)
393 self._expand_wildcard_paths(root_path, exclude_paths, env)
[all …]
/tools/netsim/rust/frontend/src/
Dnetsim_test_client.rs3 use std::env;
11 let args: Vec<String> = env::args().collect(); in main()
23 let env = Arc::new(EnvBuilder::new().build()); in main() localVariable
25 let ch = ChannelBuilder::new(env).connect(&server_addr); in main()
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DAdHocPortTask.kt28 val env = mutableMapOf<String, String>() in arg() constant in com.android.ndkports.RunBuilder
29 fun env(key: String, value: String) = env.set(key, value) in arg() method in com.android.ndkports.RunBuilder
73 run.cmd, buildDirectory, additionalEnvironment = run.env in builder()
/tools/repohooks/rh/
Dutils.py252 shell=False, env=None, extra_env=None, combine_stdout_stderr=False, argument
352 env = env.copy() if env is not None else os.environ.copy()
353 env.update(extra_env if extra_env else {})
366 stderr=popen_stderr, shell=False, env=env,

1234