Lines Matching refs:f
66 f"USING {target_product}-{variant} INSTEAD OF {default_product}-eng"
95 def _recompact_ninja_log(f: TextIO):
102 util.get_out_dir().joinpath(f"combined-{target_product}.ninja"),
110 stdout=f,
111 stderr=f,
117 build_file = util.get_out_dir().joinpath(f"soong/build.{target_product}.ninja")
120 with open(build_file, mode="rb") as f:
122 for block in iter(lambda: f.read(4096), b""):
128 build_file = util.get_out_dir().joinpath(f"soong/build.{target_product}.ninja")
133 env_copy = [f"{k}={v}" for (k, v) in env.items()]
143 ignore_out = f'-not -path "{out}" ' if out.is_relative_to(top) else ""
144 cmd = f'find {top} -name Android.bp {ignore_out} | xargs stat -L -c "%s"'
147 cmd = f'find {ws} -name BUILD.bazel | xargs stat -L -c "%s"'
149 raise RuntimeError(f"Android.bp or BUILD.bazel expected: {filetype}")
150 logging.debug(f"Running {cmd}")
180 with open(logfile, mode="wt") as f:
183 _recompact_ninja_log(f)
184 f.flush()
186 f.write(
187 f"Command: {cmd}\n"
188 f"Environment Variables:\n"
189 f'{textwrap.indent(_pretty_env(env), " ")}\n\n\n'
191 f.flush() # because we pass f to a subprocess, we want to flush now
201 stdout=f,
202 stderr=f,
224 product=f'{target_product}-{env["TARGET_BUILD_VARIANT"]}',
275 f"""\
297 desc = f"{desc} {cuj_group.description}".strip()
314 desc if run == 0 else f"rebuild-{run} after {desc}"
330 logging.critical(f"Failed cuj run! Please see logs in: {run_dir}")
333 logging.critical(f"Build did not stabilize in {run} attempts")
370 logging.DEBUG: f"{YELLOW}%(asctime)s %(levelname)s:{RESET} %(message)s",
371 logging.INFO: f"{GREEN}%(asctime)s %(levelname)s:{RESET} %(message)s",
372 logging.WARNING: f"{PURPLE}{BASIC}{RESET}",
373 logging.ERROR: f"{RED}{BASIC}{RESET}",
374 logging.CRITICAL: f"{RED}{BASIC}{RESET}",
378 f = self.FORMATS.get(record.levelno, ColoredLoggingFormatter.BASIC)
379 formatter = logging.Formatter(fmt=f, datefmt="%H:%M:%S")