Lines Matching refs:path
39 TEST_PRIVATE_KEY = os.path.join("testdata", "com.android.example.apex.pem")
40 TEST_X509_KEY = os.path.join("testdata", "com.android.example.apex.x509.pem")
41 TEST_PK8_KEY = os.path.join("testdata", "com.android.example.apex.pk8")
42 TEST_AVB_PUBLIC_KEY = os.path.join("testdata", "com.android.example.apex.avbpubkey")
77 host_command_dir = os.path.join(host_build_top, "out/soong/host/linux-x86/bin")
78 args[0] = os.path.join(host_command_dir, args[0])
130 current_dir = os.path.dirname(os.path.realpath(__file__))
165 self._get_host_tools(os.path.join(get_current_dir(), "apexer_test_host_tools.zip"))
170 if os.path.isdir(i):
181 if os.path.isfile(host_tools_file_path):
183 zip_obj.extractall(path=dir_name)
189 file_path = os.path.join(dir_name, "bin", i)
190 if os.path.exists(file_path):
196 self.host_tools_path = os.path.join(dir_name, "bin")
198 path = os.path.join(dir_name, "bin")
200 path += ":" + os.environ["PATH"]
201 os.environ["PATH"] = path
203 ld_library_path = os.path.join(dir_name, "lib64")
207 ld_library_path += ":" + os.path.join(os.environ["ANDROID_HOST_OUT"], "lib64")
214 zip_obj.extractall(path=dir_name)
219 file_path = os.path.join(dir_name, i)
220 if os.path.exists(file_path):
243 if os.path.exists(os.path.join(dir_name, i)):
244 os.remove(os.path.join(dir_name, i))
245 if os.path.isdir(os.path.join(dir_name, "lost+found")):
246 shutil.rmtree(os.path.join(dir_name, "lost+found"))
258 if os.path.exists(os.path.join(dir_name, i)):
259 os.remove(os.path.join(dir_name, i))
260 if os.path.isdir(os.path.join(dir_name, "lost+found")):
261 shutil.rmtree(os.path.join(dir_name, "lost+found"))
286 cmd.extend(["--key", os.path.join(get_current_dir(), TEST_PRIVATE_KEY)])
287 cmd.extend(["--pubkey", os.path.join(get_current_dir(), TEST_AVB_PUBLIC_KEY)])
304 if os.path.isfile("prebuilts/jdk/jdk11/linux-x86/bin/java"):
307 java_toolchain = os.path.join(os.environ["ANDROID_JAVA_TOOLCHAIN"], "java")
309 java_toolchain = os.path.join(os.environ["ANDROID_JAVA_HOME"], "bin", "java")
311 java_toolchain = os.path.join(os.environ["JAVA_HOME"], "bin", "java")
315 java_dep_lib += ":" + os.path.join(os.environ["ANDROID_HOST_OUT"], "lib64")
317 java_dep_lib += ":" + os.path.join(os.environ["ANDROID_BUILD_TOP"],
332 os.path.join(get_current_dir(), TEST_X509_KEY),
333 os.path.join(get_current_dir(), TEST_PK8_KEY),
350 cmd.extend(['--key', os.path.join(get_current_dir(), TEST_PRIVATE_KEY)])
369 apex_file_path = os.path.join(get_current_dir(), apex_name + ".apex")
391 apex_file_path = os.path.join(get_current_dir(), TEST_APEX + ".apex")
403 apex_file_path = os.path.join(get_current_dir(), TEST_APEX + ".apex")