• Home
  • Raw
  • Download

Lines Matching refs:os

20 import os
29 TEST_PRIVATE_KEY = os.path.join('testdata', 'com.android.example.apex.pem')
45 current_dir = os.path.dirname(os.path.realpath(__file__))
68 tool_binary = os.path.join(get_current_dir(), 'apexer_with_DCLA_preprocessing')
69 if not os.path.isfile(tool_binary):
72 os.chmod(tool_binary, stat.S_IRUSR | stat.S_IXUSR);
77 tool_binary = os.path.join(get_current_dir(), 'bin', tool_name)
78 if not os.path.isfile(tool_binary):
79 host_build_top = os.environ.get('ANDROID_BUILD_TOP')
81 host_command_dir = os.path.join(host_build_top, 'out/host/linux-x86/bin')
82 tool_binary = os.path.join(host_command_dir, tool_name)
83 if not os.path.isfile(tool_binary):
84 host_command_dir = os.path.join(host_build_top, 'prebuilts/sdk/current/public')
85 tool_binary = os.path.join(host_command_dir, tool_name)
89 if not tool_binary or not os.path.isfile(tool_binary):
106 tools_zip_file = os.path.join(get_current_dir(), 'apexer_test_host_tools.zip')
112 if os.path.isdir(i):
115 os.remove(i)
130 payload_img = os.path.join(apex_dir, 'apex_payload.img')
131 extract_dir = os.path.join(apex_dir, 'payload_extract')
132 os.mkdir(extract_dir)
137 lost_and_found = os.path.join(extract_dir, 'lost+found')
138 etc_dir = os.path.join(extract_dir, 'etc')
139 os.remove(os.path.join(extract_dir, 'apex_manifest.pb'))
140 if os.path.isdir(lost_and_found):
142 if os.path.isdir(etc_dir):
149 if os.path.isfile(host_tools_file_path):
156 file_path = os.path.join(dir_name, "bin", i)
157 if os.path.exists(file_path):
158 os.chmod(file_path, stat.S_IRUSR | stat.S_IXUSR);
162 apex_file = os.path.join(get_current_dir(), TEST_APEX + '.apex')
166 canned_fs_config_file = os.path.join(apex_dir, 'canned_fs_config')
169 lib_dir = os.path.join(apex_dir, 'payload_extract', 'lib')
170 os.makedirs(lib_dir)
171 foo_file = os.path.join(lib_dir, 'foo.so')
181 lib_dir = os.path.join(apex_dir, 'payload_extract', 'lib64')
182 os.makedirs(lib_dir)
183 bar_file = os.path.join(lib_dir, 'bar.so')
196 manifest_file = os.path.join(apex_dir, 'apex_manifest.pb')
197 build_info_file = os.path.join(apex_dir, 'apex_build_info.pb')
198 key_file = os.path.join(get_current_dir(), TEST_PRIVATE_KEY)
202 apex_out = os.path.join(apex_dir, 'DCLA_preprocessed_output.apex')
206 os.path.join(apex_dir, 'payload_extract'),
210 '--apexer_tool_path', os.path.dirname(apexer),
220 updated_canned_fs_config = os.path.join(apex_dir, 'updated_canned_fs_config')
222 os.path.isfile(updated_canned_fs_config),
228 replaced_foo = os.path.join(
230 replaced_bar = os.path.join(
233 os.path.isfile(replaced_foo),
236 os.path.isfile(replaced_bar),