Searched refs:open (Results 1 - 25 of 103) sorted by relevance

12345

/build/make/tools/
H A Dauto_gen_test_config_test.py131 with open(self.manifest_file, 'w') as f:
139 with open(self.config_file) as config_file:
140 with open(EMPTY_TEST_CONFIG) as empty_config:
146 with open(self.manifest_file, 'w') as f:
154 with open(self.config_file) as config_file:
160 with open(self.manifest_file, 'w') as f:
168 with open(self.config_file) as config_file:
H A Dfileslist_util.py21 with open(path) as jf:
27 with open(path) as jf:
H A Dgenerate-enforce-rro-android-manifest.py53 with open(args.package_info) as f:
59 with open(args.output, 'w+') as f:
H A Dcheck_radio_versions.py29 f = open(sys.argv[1])
47 f = open(fn, "rb")
53 f = open(fn + ".sha1")
H A Dauto_gen_test_config.py77 with open(instrumentation_test_config_template) as template:
84 with open(target_config, 'w') as config_file:
H A Dgenerate-notice-files.py52 f = open(filename, "rb")
91 output_file = open(output_filename, "wb")
122 print >> output_file, html_escape(open(value[0]).read())
138 output_file = open(output_filename, "wb")
146 print >> output_file, open(value[0]).read()
162 output_file = open(output_filename, "wb")
186 print >> output_file, '<file-content contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, html_escape(open(filename).read()))
H A Devent_log_tags.py57 file_object = open(filename, "rb")
130 out = open(output_file, "wb")
/build/tools/
H A Dauto_gen_test_config_test.py131 with open(self.manifest_file, 'w') as f:
139 with open(self.config_file) as config_file:
140 with open(EMPTY_TEST_CONFIG) as empty_config:
146 with open(self.manifest_file, 'w') as f:
154 with open(self.config_file) as config_file:
160 with open(self.manifest_file, 'w') as f:
168 with open(self.config_file) as config_file:
H A Dfileslist_util.py21 with open(path) as jf:
27 with open(path) as jf:
H A Dgenerate-enforce-rro-android-manifest.py53 with open(args.package_info) as f:
59 with open(args.output, 'w+') as f:
H A Dcheck_radio_versions.py29 f = open(sys.argv[1])
47 f = open(fn, "rb")
53 f = open(fn + ".sha1")
H A Dauto_gen_test_config.py77 with open(instrumentation_test_config_template) as template:
84 with open(target_config, 'w') as config_file:
H A Dgenerate-notice-files.py52 f = open(filename, "rb")
91 output_file = open(output_filename, "wb")
122 print >> output_file, html_escape(open(value[0]).read())
138 output_file = open(output_filename, "wb")
146 print >> output_file, open(value[0]).read()
162 output_file = open(output_filename, "wb")
186 print >> output_file, '<file-content contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, html_escape(open(filename).read()))
/build/make/tools/releasetools/
H A Dtest_sign_target_files_apks.py147 with open(cert1_path) as cert1_fp:
150 with open(cert2_path) as cert2_fp:
153 with open(cert3_path) as cert3_fp:
173 with open(cert1_path) as cert1_fp:
176 with open(cert2_path) as cert2_fp:
191 with open(cert1_path) as cert1_fp:
194 with open(cert2_path) as cert2_fp:
197 with open(cert3_path) as cert3_fp:
H A Dcheck_ota_package_signature.py71 with open(package) as package_file:
108 with open(sig_file, 'wb') as f:
120 with open(digest_file, 'wb') as f:
158 with open(pubkey, 'wb') as pubkey_fp:
H A Dmake_recovery_patch48 with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f:
H A Dmake_recovery_patch.py48 with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f:
/build/tools/releasetools/
H A Dtest_sign_target_files_apks.py147 with open(cert1_path) as cert1_fp:
150 with open(cert2_path) as cert2_fp:
153 with open(cert3_path) as cert3_fp:
173 with open(cert1_path) as cert1_fp:
176 with open(cert2_path) as cert2_fp:
191 with open(cert1_path) as cert1_fp:
194 with open(cert2_path) as cert2_fp:
197 with open(cert3_path) as cert3_fp:
H A Dcheck_ota_package_signature.py71 with open(package) as package_file:
108 with open(sig_file, 'wb') as f:
120 with open(digest_file, 'wb') as f:
158 with open(pubkey, 'wb') as pubkey_fp:
H A Dmake_recovery_patch48 with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f:
H A Dmake_recovery_patch.py48 with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f:
/build/kati/
H A Dfile.cc31 int fd = open(filename.c_str(), O_RDONLY);
H A Druntest.rb178 output.gsub!(/(: )open (\S+): n(o such file or directory)\nNOTE:.*/,
217 File.open("Makefile", 'w') do |ofile|
287 File.open('out.make', 'w'){|ofile|ofile.print(expected)}
288 File.open('out.kati', 'w'){|ofile|ofile.print(output)}
375 File.open('out.make', 'w'){|ofile|ofile.print(expected)}
376 File.open('out.kati', 'w'){|ofile|ofile.print(output)}
/build/make/tools/zipalign/
H A DZipAlign.cpp126 * Process a file. We open the input and output files, failing if the
149 if (zin.open(inFileName, ZipFile::kOpenReadOnly) != NO_ERROR) {
150 fprintf(stderr, "Unable to open '%s' as zip archive\n", inFileName);
153 if (zout.open(outFileName,
157 fprintf(stderr, "Unable to open '%s' as zip archive\n", outFileName);
181 if (zipFile.open(fileName, ZipFile::kOpenReadOnly) != NO_ERROR) {
182 fprintf(stderr, "Unable to open '%s' for verification\n", fileName);
/build/tools/zipalign/
H A DZipAlign.cpp126 * Process a file. We open the input and output files, failing if the
149 if (zin.open(inFileName, ZipFile::kOpenReadOnly) != NO_ERROR) {
150 fprintf(stderr, "Unable to open '%s' as zip archive\n", inFileName);
153 if (zout.open(outFileName,
157 fprintf(stderr, "Unable to open '%s' as zip archive\n", outFileName);
181 if (zipFile.open(fileName, ZipFile::kOpenReadOnly) != NO_ERROR) {
182 fprintf(stderr, "Unable to open '%s' for verification\n", fileName);

Completed in 115 milliseconds

12345