Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/build/soong/scripts/
Dbuildinfo.py72 date = subprocess.check_output(["date", "-d", f"@{raw_date}"], text=True).strip()
73 date_utc = subprocess.check_output(["date", "-d", f"@{raw_date}", "+%s"], text=True).strip()
78 build_desc = f"{option.product}-{option.build_variant} {option.platform_version} " \
79 f"{option.build_id} {build_number} {build_version_tags}"
89 print(f"ro.build.legacy.id={option.build_id}")
91 print(f"ro.build.id?={option.build_id}")
100 print(f"ro.build.display.id?={option.build_id}.{build_number} {option.build_keys}")
102 print(f"ro.build.display.id?={option.build_id} {option.build_keys}")
105 print(f"ro.build.display.id?={build_desc}")
106 print(f"ro.build.version.incremental={build_number}")
[all …]
Dlint_project_xml.py102 def write_project_xml(f, args): argument
105 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
106 f.write("<project>\n")
108 f.write(" <root dir='%s' />\n" % args.root_dir)
109f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
111 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
113 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
116 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
119 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
122 f.write(" <resource file='%s' %s/>\n" % (res, test_attr))
[all …]
Dgen-kotlin-build-file.py62 with open(args.out, 'w') as f:
64 f.write('<modules>\n')
65f.write(' <module name="%s" type="java-production" outputDir="%s">\n' % (args.name, args.out_dir …
71 f.write(' <classpath path="%s"/>\n' % path)
78 f.write(' <javaSourceRoots path="%s"/>\n' % path)
80 f.write(' <sources path="%s"/>\n' % path)
82 raise RuntimeError(f'unknown source file type {src} from rspfile {rsp_file}')
87 f.write(' <sources path="%s"/>\n' % path)
88 f.write(' <commonSources path="%s"/>\n' % path)
90 f.write(' </module>\n')
[all …]
Dmerge_directories.py28 sys.exit(f"error: {args.out_dir} must be a directory")
30 sys.exit(f"error: {args.in_dir} must be a directory")
34 with open(file_list_file, "r") as f:
35 file_list = f.read().strip().splitlines()
42 for f in files:
43 src = os.path.join(root, f)
44 dst = os.path.join(dst_root, f)
45 p = os.path.normpath(os.path.join(rel_root, f))
51 sys.exit(f"error: {p} exists in both {args.out_dir} and {in_dir}")
/build/bazel/tests/apex/
Dadbd_aab_zipinfo.golden1 f 777 BundleConfig.pb
2 f 777 base/apex.pb
3 f 777 base/apex/arm64-v8a.armeabi-v7a.build_info.pb
4 f 777 base/apex/arm64-v8a.armeabi-v7a.img
5 f 777 base/apex/arm64-v8a.build_info.pb
6 f 777 base/apex/arm64-v8a.img
7 f 777 base/apex/armeabi-v7a.build_info.pb
8 f 777 base/apex/armeabi-v7a.img
9 f 777 base/apex/x86.build_info.pb
10 f 777 base/apex/x86.img
[all …]
Dadbd_apks_zipinfo.golden1 f 666 standalones/standalone-arm64_v8a.apex
2 f 666 standalones/standalone-armeabi_v7a.apex
3 f 666 standalones/standalone-armeabi_v7a.arm64_v8a.apex
4 f 666 standalones/standalone-x86.apex
5 f 666 standalones/standalone-x86.x86_64.apex
6 f 666 standalones/standalone-x86_64.apex
7 f 666 toc.pb
Dapks_binary_arches.py54 for f in files:
55 if f == 'libcutils.so':
56 all_files.append(os.path.join(root, f))
58 for f in all_files:
62 f,
66 sys.exit(f"Expected 1 arch, got {arch}")
67 rel = os.path.relpath(f, extractedDir)
68 result += f' {rel}: {arch[0]}\n'
70 with open(args.output, 'w') as f:
71 f.write(result)
/build/soong/cc/
Dcmakelists.go140 f, _ := os.Create(filepath.Join(projectDir, cMakeListsFilename))
141 defer f.Close()
144 f.WriteString("# THIS FILE WAS AUTOMATICALY GENERATED!\n")
145 f.WriteString("# ANY MODIFICATION WILL BE OVERWRITTEN!\n\n")
146 f.WriteString("# To improve project view in Clion :\n")
147 f.WriteString("# Tools > CMake > Change Project Root \n\n")
148 f.WriteString(fmt.Sprintf("cmake_minimum_required(VERSION %s)\n", minimumCMakeVersionSupported))
149 f.WriteString(fmt.Sprintf("project(%s)\n", ccModule.ModuleBase.Name()))
150 f.WriteString(fmt.Sprintf("set(ANDROID_ROOT %s)\n\n", android.AbsSrcDirForExistingUseCases()))
153 f.WriteString(fmt.Sprintf("set(CMAKE_C_COMPILER \"%s%s\")\n", buildCMakePath(pathToCC), "clang"))
[all …]
/build/soong/finder/
Dfinder.go173 logger Logger, dbPath string) (f *Finder, err error) {
179 logger Logger, dbPath string, numThreads int) (f *Finder, err error) {
191 f = &Finder{
204 f.loadFromFilesystem()
207 err = f.getErr()
215 path = filepath.Join(f.cacheMetadata.Config.WorkingDirectory, path)
217 node := f.nodes.GetNode(filepath.Clean(path), false)
223 return f, nil
227 func (f *Finder) FindAll() []string {
228 return f.FindAt("/")
[all …]
/build/soong/filesystem/
Dfilesystem.go165 func (f *filesystem) DepsMutator(ctx android.BottomUpMutatorContext) {
166 f.AddDeps(ctx, dependencyTag)
178 func (f *filesystem) fsType(ctx android.ModuleContext) fsType {
179 typeStr := proptools.StringDefault(f.properties.Type, "ext4")
193 func (f *filesystem) installFileName() string {
194 return f.BaseModuleName() + ".img"
197 func (f *filesystem) partitionName() string {
198 return proptools.StringDefault(f.properties.Partition_name, f.Name())
201 func (f *filesystem) filterInstallablePackagingSpec(ps android.PackagingSpec) bool {
209 func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
[all …]
/build/make/tools/
Dfat16copy.py42 def read_le_short(f): argument
44 return struct.unpack("<H", f.read(2))[0]
46 def read_le_long(f): argument
48 return struct.unpack("<L", f.read(4))[0]
50 def read_byte(f): argument
52 return struct.unpack("B", f.read(1))[0]
54 def skip_bytes(f, n): argument
56 f.seek(n, os.SEEK_CUR)
58 def skip_short(f): argument
60 skip_bytes(f, 2)
[all …]
Dcharacteristics_rro_generator.py6 sys.exit(f"usage: {sys_argv[0]} target_package_name output\n")
7 with open(sys.argv[2], "w") as f:
8 f.write(f'''<?xml version="1.0" encoding="utf-8"?>
/build/make/tools/compliance/testfs/
Dtestfs.go105 func (f *TestFile) Stat() (fs.FileInfo, error) {
106 return f.fs.Stat(f.name)
110 func (f *TestFile) Read(b []byte) (int, error) {
111 if f.posn < 0 {
112 return 0, fmt.Errorf("file not open: %q", f.name)
114 if f.posn >= len((*f.fs)[f.name]) {
117 n := copy(b, (*f.fs)[f.name][f.posn:])
118 f.posn += n
123 func (f *TestFile) Close() error {
124 if f.posn < 0 {
[all …]
/build/soong/third_party/zip/
Dreader.go32 f *os.File member
44 func (f *File) hasDataDescriptor() bool {
45 return f.Flags&0x8 != 0
50 f, err := os.Open(name)
54 fi, err := f.Stat()
56 f.Close()
60 if err := r.init(f, fi.Size()); err != nil {
61 f.Close()
64 r.f = f
100 f := &File{zip: z, zipr: r, zipsize: size}
[all …]
/build/soong/cmd/diff_target_files/
Dtarget_files.go49 for _, f := range files {
50 if f.FileInfo().IsDir() {
57 if strings.HasPrefix(f.Name, p) {
58 f.Name = strings.ToLower(p) + strings.TrimPrefix(f.Name, p)
63 if strings.HasPrefix(f.Name, filter) {
69 return nil, fmt.Errorf("unmatched prefix for %s", f.Name)
75 match, _ := Match(pattern, f.Name)
77 ret = append(ret, f)
81 ret = append(ret, f)
Dcompare.go71 for _, f := range d.modified {
72 …must(fmt.Fprintf(buf, " %v (%v bytes -> %v bytes)\n", f[0].Name, f[0].UncompressedSize64, f[1].U…
73 sizeChange += int64(f[1].UncompressedSize64) - int64(f[0].UncompressedSize64)
79 for _, f := range d.onlyInA {
80 must(fmt.Fprintf(buf, " - %v (%v bytes)\n", f.Name, f.UncompressedSize64))
81 sizeChange -= int64(f.UncompressedSize64)
87 for _, f := range d.onlyInB {
88 must(fmt.Fprintf(buf, " + %v (%v bytes)\n", f.Name, f.UncompressedSize64))
89 sizeChange += int64(f.UncompressedSize64)
/build/make/tools/droiddoc/templates-pdk/assets/
Djquery-1.6.2.min.js16f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.… argument
17f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):… argument
/build/bazel/scripts/incremental_build/
Dclone.py76 def f(t: ModuleType, _: ModuleName) -> bool: function
79 return f
83 def f(_: ModuleType, n: ModuleName) -> bool: function
86 return f
98 return f"{module_def[: index]}-${{suffix}}{module_def[index:]}"
102 src_lines: TextIO, f: Filter
119 f"{module_name} already exists thus " f"ignoring {module_type}"
122 if not f(module_type, module_name):
125 module_def = f"{module_def[: i]}-${{suffix}}{module_def[i:]}"
180 f"{_back_up_path()} already exists. "
[all …]
Dcuj_catalog.py78 super().__init__(f"modify {de_src(file)}")
80 raise RuntimeError(f"{file} does not exist")
86 self.text = f"//BOGUS {uuid.uuid4()}\n"
89 with open(self.file, mode="a") as f:
90 f.write(self.text)
93 with open(self.file, mode="rb+") as f:
95 f.seek(-len(self.text), io.SEEK_END)
96 f.truncate()
113 super().__init__(f"create {de_src(file)}")
116 f"File {file} already exists. Interrupted an earlier run?\n"
[all …]
Dincremental_build.py66 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()]
[all …]
/build/soong/snapshot/
Dhost_snapshot.go87 func (f *hostSnapshot) DepsMutator(ctx android.BottomUpMutatorContext) {
88 f.AddDeps(ctx, dependencyTag)
90 func (f *hostSnapshot) installFileName() string {
91 return f.Name() + ".zip"
95 func (f *hostSnapshot) CreateMetaData(ctx android.ModuleContext, fileName string) android.OutputPat…
149 func (f *hostSnapshot) GenerateAndroidBuildActions(ctx android.ModuleContext) {
151 depsZipFile := android.PathForModuleOut(ctx, f.Name()+"_deps.zip").OutputPath
152 modsZipFile := android.PathForModuleOut(ctx, f.Name()+"_mods.zip").OutputPath
153 f.outputFile = android.PathForModuleOut(ctx, f.installFileName()).OutputPath
155 f.installDir = android.PathForModuleInstall(ctx)
[all …]
/build/bazel/ci/
Drbc_dashboard.py38 raise ValueError(f'Invalid product name: {self}')
91 with open(os.path.join(out_dir, 'build.log'), 'wb') as f:
101 f'{os.path.abspath(out_dir)}:{os.path.abspath("out")}',
122 *args, stdout=f, stderr=subprocess.STDOUT, env=env)
163 with open(os.path.join(results_folder, name)+'.diff', 'wb') as f:
168 stdout=f, stderr=subprocess.STDOUT)).wait())
183 …return f'<td style="background-color: {"lightgreen" if success and not diffs else "salmon"}">{mess…
186 return f'''
219 with open(path, 'r') as f:
220 print(f'{path}:', file=sys.stderr)
[all …]
/build/soong/cc/ndkstubgen/
Dtest_ndkstubgen.py272 f = copy(self.filter)
273 f.api = 9001
274 parser = symbolfile.SymbolFileParser(input_file, api_map, f)
280 f = copy(self.filter)
281 f.api = 9001
283 version_file, symbol_list_file, f)
333 f = copy(self.filter)
334 f.api = 16
335 parser = symbolfile.SymbolFileParser(input_file, {}, f)
382 f = copy(self.filter)
[all …]
/build/bazel/examples/queryview/
Drun_all_queries.sh20 local f=$1; shift;
21 bazel query --config=queryview --query_file="${f}"
25 for f in $(ls -1 | grep .txt); do
26 run_query "${f}"
/build/soong/tests/
Drun_tool_with_logging_test.py61 self._run_script_and_wait(f"""
71 self._run_script_and_wait(f"""
82 self._run_script_and_wait(f"""
99 self._run_script_and_wait(f"""
106 self._run_script_and_wait(f"""
123 run_tool_with_logging_output, _ = self._run_script_and_wait(f"""
136 _, err = self._run_script_and_wait(f"""
147 process = self._run_script(f"""
171 self._run_script_and_wait(f"""
183 self._run_script_and_wait(f"""
[all …]

12345678910>>...18