/aosp12/build/make/tools/releasetools/ |
H A D | img_from_target_files | 69 def LoadOptions(input_file): argument 75 with zipfile.ZipFile(input_file) as input_zip: 107 def EntriesForUserImages(input_file): argument 122 with zipfile.ZipFile(input_file) as input_zip: 143 def EntriesForSplitSuperImages(input_file): argument 151 with zipfile.ZipFile(input_file) as input_zip: 168 input_tmp = common.UnzipTemp(input_file) 190 if not os.path.exists(input_file): 193 if not zipfile.is_zipfile(input_file): 198 LoadOptions(input_file) [all …]
|
H A D | img_from_target_files.py | 69 def LoadOptions(input_file): argument 75 with zipfile.ZipFile(input_file) as input_zip: 107 def EntriesForUserImages(input_file): argument 122 with zipfile.ZipFile(input_file) as input_zip: 143 def EntriesForSplitSuperImages(input_file): argument 151 with zipfile.ZipFile(input_file) as input_zip: 168 input_tmp = common.UnzipTemp(input_file) 190 if not os.path.exists(input_file): 193 if not zipfile.is_zipfile(input_file): 198 LoadOptions(input_file) [all …]
|
H A D | ota_utils.py | 45 def FinalizeMetadata(metadata, input_file, output_file, needed_property_files): argument 66 def ComputeAllPropertyFiles(input_file, needed_property_files): argument 68 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: 75 ZipDelete(input_file, [METADATA_NAME, METADATA_PROTO_NAME]) 76 output_zip = zipfile.ZipFile(input_file, 'a', allowZip64=True) 81 return input_file 84 SignOutput(input_file, prelim_signing) 99 prelim_signing = ComputeAllPropertyFiles(input_file, needed_property_files) 372 input_file = info_dict[partition_prop_key].input_file 373 if isinstance(input_file, zipfile.ZipFile): [all …]
|
H A D | test_ota_from_target_files.py | 395 input_file, skip_postinstall=True) 481 input_file = construct_target_files() 504 input_file = construct_target_files() 506 input_file, ['product']) 561 input_file = construct_target_files() 568 input_file = construct_target_files() 576 input_file = construct_target_files() 582 input_file, {'oem': 'oem.img'}) 596 input_file = construct_target_files() 602 input_file, {'oem': 'oem_test.img'}) [all …]
|
H A D | test_sign_target_files_apks.py | 166 input_file = common.MakeTempFile(suffix='.zip') 167 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 174 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip, \ 197 input_file = common.MakeTempFile(suffix='.zip') 198 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 296 input_file = common.MakeTempFile(suffix='.zip') 297 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 306 with zipfile.ZipFile(input_file) as input_zip: 320 input_file = common.MakeTempFile(suffix='.zip') 321 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: [all …]
|
H A D | ota_from_target_files | 704 input_tmp = common.UnzipTemp(input_file, UNZIP_PATTERN) 749 def GetTargetFilesZipWithoutPostinstallConfig(input_file): argument 766 return input_file 769 shutil.copyfile(input_file, target_file) 807 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: 826 cmd = ['zip2zip', '-i', input_file, '-o', partial_target_file] 832 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: 850 def GetTargetFilesZipForRetrofitDynamicPartitions(input_file, argument 873 shutil.copyfile(input_file, target_file) 875 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: [all …]
|
H A D | ota_from_target_files.py | 704 input_tmp = common.UnzipTemp(input_file, UNZIP_PATTERN) 749 def GetTargetFilesZipWithoutPostinstallConfig(input_file): argument 766 return input_file 769 shutil.copyfile(input_file, target_file) 807 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: 826 cmd = ['zip2zip', '-i', input_file, '-o', partial_target_file] 832 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: 850 def GetTargetFilesZipForRetrofitDynamicPartitions(input_file, argument 873 shutil.copyfile(input_file, target_file) 875 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip: [all …]
|
H A D | common.py | 683 def ReadFromInputFile(input_file, fn): argument 685 if isinstance(input_file, zipfile.ZipFile): 686 return input_file.read(fn).decode() 697 def ExtractFromInputFile(input_file, fn): argument 699 if isinstance(input_file, zipfile.ZipFile): 702 f.write(input_file.read(fn)) 724 def LoadInfoDict(input_file, repacking=False): argument 757 assert isinstance(input_file, str), \ 761 return ReadFromInputFile(input_file, fn) 904 self.input_file = input_file [all …]
|
H A D | test_validate_target_files.py | 272 input_file = common.MakeTempFile() 275 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 281 with zipfile.ZipFile(input_file) as input_zip: 321 input_file = common.MakeTempFile() 324 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 328 with zipfile.ZipFile(input_file) as input_zip:
|
/aosp12/build/soong/cc/symbolfile/ |
H A D | test_symbolfile.py | 338 input_file = io.StringIO(textwrap.dedent("""\ 363 input_file = io.StringIO(textwrap.dedent("""\ 394 input_file = io.StringIO(textwrap.dedent("""\ 404 input_file = io.StringIO(textwrap.dedent("""\ 416 input_file = io.StringIO(textwrap.dedent("""\ 434 input_file = io.StringIO(textwrap.dedent("""\ 446 input_file = io.StringIO(textwrap.dedent("""\ 459 input_file = io.StringIO(textwrap.dedent("""\ 472 input_file = io.StringIO('foo') 478 input_file = io.StringIO(textwrap.dedent("""\ [all …]
|
H A D | __init__.py | 272 def __init__(self, input_file: TextIO, api_map: ApiMap, arch: Arch, 274 self.input_file = input_file 385 line = self.input_file.readline() 387 line = self.input_file.readline()
|
/aosp12/system/extras/simpleperf/ |
H A D | cmd_merge_test.cpp | 53 std::string input_file = GetTestData("perf.data"); in TEST() local 54 ASSERT_FALSE(MergeCmd()->Run({"-i", input_file})); in TEST() 59 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file, "-o", tmpfile.path})); in TEST() 61 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file + "," + input_file, "-o", tmpfile.path})); in TEST() 63 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file, "-i", input_file, "-o", tmpfile.path})); in TEST()
|
/aosp12/frameworks/base/startop/scripts/app_startup/ |
H A D | analyze_metrics.py | 100 def read_headers(input_file: TextIO) -> Tuple[List[str], List[str]]: 101 _debug_print("read_headers for file: ", input_file.name) 102 csv_reader = csv.reader(input_file) 120 def read_labels_and_data(input_file: TextIO) -> Iterable[Tuple[List[str], List[int]]]: 121 _debug_print("print_analysis for file: ", input_file.name) 122 csv_reader = csv.reader(input_file) 222 def from_file_group_by_labels(input_file): argument 223 (label_header, data_header) = read_headers(input_file) 224 label_data_iter = read_labels_and_data(input_file) 441 with open(file_name, 'r') as input_file: [all …]
|
H A D | run_app_with_prefetch | 40 input_file="" 64 input_file="$2" 150 if [[ -z "$input_file" ]] || ! [[ -f $input_file ]]; then 198 if ! iorapd_compiler_install_trace_file "$package" "$activity" "$input_file"; then 209 verbose_print adb push "$input_file" "$trace_file_directory/TraceFile.pb" 210 adb push "$input_file" "$trace_file_directory/TraceFile.pb"
|
/aosp12/build/soong/cc/ndkstubgen/ |
H A D | test_ndkstubgen.py | 152 input_file = io.StringIO(textwrap.dedent("""\ 183 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'), 225 input_file = io.StringIO(textwrap.dedent("""\ 235 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'), 261 input_file = io.StringIO(textwrap.dedent("""\ 285 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16, 300 input_file = io.StringIO(textwrap.dedent("""\ 333 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'),
|
/aosp12/frameworks/base/startop/scripts/iorap/ |
H A D | common | 208 local input_file="$3" # local path 213 if ! [[ -f $input_file ]]; then 214 echo "Error: File '$input_file' does not exist." >&2 220 verbose_print adb push "$input_file" "$compiled_path" 221 adb push "$input_file" "$compiled_path" 227 local input_file="$3" # local path
|
/aosp12/system/bt/gd/packet/parser/ |
H A D | gen_rust.cc | 64 const std::filesystem::path& input_file, in generate_rust_source_one_file() argument 68 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_rust_source_one_file() 70 …auto input_filename = input_file.filename().string().substr(0, input_file.filename().string().find… in generate_rust_source_one_file() 86 out_file << "// @generated rust packets from " << input_file.filename().string() << "\n\n"; in generate_rust_source_one_file()
|
H A D | main.cc | 42 const std::filesystem::path& input_file, 49 const std::filesystem::path& input_file, 57 const std::filesystem::path& input_file, 62 bool parse_declarations_one_file(const std::filesystem::path& input_file, Declarations* declaration… in parse_declarations_one_file() argument 66 FILE* in_file = fopen(input_file.string().c_str(), "r"); in parse_declarations_one_file() 68 std::cerr << "can't open " << input_file << ": " << strerror(errno) << std::endl; in parse_declarations_one_file()
|
H A D | gen_cpp.cc | 59 const std::filesystem::path& input_file, in generate_cpp_headers_one_file() argument 63 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_cpp_headers_one_file() 65 …auto input_filename = input_file.filename().string().substr(0, input_file.filename().string().find… in generate_cpp_headers_one_file() 259 const std::filesystem::path& input_file, in generate_pybind11_sources_one_file() argument 264 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_pybind11_sources_one_file() 266 …auto input_filename = input_file.filename().string().substr(0, input_file.filename().string().find… in generate_pybind11_sources_one_file()
|
/aosp12/system/sepolicy/build/ |
H A D | file_utils.py | 33 def filter_out(pattern_files, input_file): argument 43 with open(input_file, 'r') as in_file: 52 shutil.copyfile(tmp_output.name, input_file)
|
/aosp12/frameworks/base/startop/scripts/iorap/lib/ |
H A D | iorapd_utils.py | 58 input_file: str) -> bool: 68 if not os.path.exists(input_file): 69 print('Error: File {} does not exist'.format(input_file)) 78 input_file, compiled_path))
|
/aosp12/art/tools/jvmti-agents/chain-agents/ |
H A D | chainagents.cc | 98 std::string input_file(options); in AgentStart() local 99 input_file = input_file + "/" + kChainFile; in AgentStart() 100 std::ifstream input(input_file); in AgentStart()
|
/aosp12/art/tools/create_minidebuginfo/ |
H A D | create_minidebuginfo.cc | 150 std::unique_ptr<File> input_file(OS::OpenFileForReading(input_filename)); in Main() local 151 CHECK(input_file.get() != nullptr) << "Failed to open input file"; in Main() 152 std::vector<uint8_t> elf(input_file->GetLength()); in Main() 153 CHECK(input_file->ReadFully(elf.data(), elf.size())) << "Failed to read input file"; in Main()
|
/aosp12/frameworks/base/tools/localedata/ |
H A D | extract_icu_data.py | 43 with open(input_file_name) as input_file: 63 for line in input_file: 189 with open(data_file) as input_file: 190 for line in input_file:
|
/aosp12/build/soong/cc/ndk_api_coverage_parser/ |
H A D | test_ndk_api_coverage_parser.py | 56 input_file = io.StringIO(textwrap.dedent(u"""\ 77 parser = SymbolFileParser(input_file, {}, "", FUTURE_API_LEVEL, True, True)
|