Home
last modified time | relevance | path

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

12345678910

/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.go169 logger Logger, dbPath string) (f *Finder, err error) {
175 logger Logger, dbPath string, numThreads int) (f *Finder, err error) {
187 f = &Finder{
200 f.loadFromFilesystem()
203 err = f.getErr()
211 path = filepath.Join(f.cacheMetadata.Config.WorkingDirectory, path)
213 node := f.nodes.GetNode(filepath.Clean(path), false)
219 return f, nil
223 func (f *Finder) FindAll() []string {
224 return f.FindAt("/")
[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 …]
Dcheck_radio_versions.py29 f = open(sys.argv[1]) variable
30 for line in f:
35 f.close()
47 f = open(fn, "rb") variable
48 digest = sha1(f.read()).hexdigest()
49 f.close()
53 f = open(fn + ".sha1") variable
59 for line in f:
Dgenerate-enforce-rro-android-manifest.py62 with open(args.package_info) as f:
63 data = f.read()
64 f.close()
68 with open(args.output, 'w+') as f:
69 f.write(ANDROID_MANIFEST_TEMPLATE % (package_name, partition, package_name, priority))
70 f.close()
/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 …]
Dreader_test.go366 func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File) {
367 if f.Name != ft.Name {
368 t.Errorf("%s: name=%q, want %q", zt.Name, f.Name, ft.Name)
377 if ft := f.ModTime(); !ft.Equal(mtime) {
378 t.Errorf("%s: %s: mtime=%s, want %s", zt.Name, f.Name, ft, mtime)
382 testFileMode(t, zt.Name, f, ft.Mode)
384 size := uint64(f.UncompressedSize)
386 size = f.UncompressedSize64
387 } else if size != f.UncompressedSize64 {
388 …t.Errorf("%v: UncompressedSize=%#x does not match UncompressedSize64=%#x", f.Name, size, f.Uncompr…
[all …]
/build/soong/filesystem/
Dfilesystem.go109 func (f *filesystem) DepsMutator(ctx android.BottomUpMutatorContext) {
110 f.AddDeps(ctx, dependencyTag)
122 func (f *filesystem) fsType(ctx android.ModuleContext) fsType {
123 typeStr := proptools.StringDefault(f.properties.Type, "ext4")
137 func (f *filesystem) installFileName() string {
138 return f.BaseModuleName() + ".img"
143 func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
144 switch f.fsType(ctx) {
146 f.output = f.buildImageUsingBuildImage(ctx)
148 f.output = f.buildCpioImage(ctx, true)
[all …]
/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):… field
/build/soong/scripts/
Dlint_project_xml.py101 def write_project_xml(f, args): argument
104 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
105 f.write("<project>\n")
107 f.write(" <root dir='%s' />\n" % args.root_dir)
108f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
110 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
112 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
115 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
118 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
121 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)
87 f.write(' <sources path="%s"/>\n' % path)
88 f.write(' <commonSources path="%s"/>\n' % path)
90 f.write(' </module>\n')
91 f.write('</modules>\n')
Dconv_linker_config.py31 with open(args.source) as f:
32 for line in f:
37 with open(args.output, 'wb') as f:
38 f.write(pb.SerializeToString())
42 with open(args.source, 'rb') as f:
44 pb.ParseFromString(f.read())
50 with open(args.source, 'rb') as f:
51 pb.ParseFromString(f.read())
63 with open(args.output, 'wb') as f:
64 f.write(pb.SerializeToString())
[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/soong/ui/build/
Dfinder.go37 func NewSourceFinder(ctx Context, config Config) (f *finder.Finder) {
93 f, err = finder.New(cacheParams, filesystem, logger.New(ioutil.Discard),
98 return f
114 func FindSources(ctx Context, config Config, f *finder.Finder) {
121 androidMks := f.FindFirstNamedAt(".", "Android.mk")
128 cleanSpecs := f.FindFirstNamedAt(".", "CleanSpec.mk")
135 androidProductsMks := f.FindNamedAt("device", "AndroidProducts.mk")
136 androidProductsMks = append(androidProductsMks, f.FindNamedAt("vendor", "AndroidProducts.mk")...)
137 androidProductsMks = append(androidProductsMks, f.FindNamedAt("product", "AndroidProducts.mk")...)
144 bazelFiles := f.FindMatching(".", findBazelFiles)
[all …]
/build/soong/android/
Dfixture.go211 return newSimpleFixturePreparer(func(f *fixture) {
212 mutator(f)
218 return newSimpleFixturePreparer(func(f *fixture) {
219 mutator(f.config)
225 return newSimpleFixturePreparer(func(f *fixture) {
226 mutator(f.config, f.ctx)
232 return newSimpleFixturePreparer(func(f *fixture) {
233 mutator(f.ctx)
243 return newSimpleFixturePreparer(func(f *fixture) {
244 mutator(f.mockFS)
[all …]
/build/soong/androidmk/parser/
Dscope.go25 SetFunc(name string, f func([]string) []string)
51 if f, ok := s.functions[name]; ok {
52 return f(args)
58 func (s *scope) SetFunc(name string, f func([]string) []string) {
59 s.functions[name] = f
78 f := v.Name.SplitN(" \t", 2)
79 if len(f) > 1 && f[0].Const() {
80 fname := f[0].Value(nil)
82 args := f[1].Split(",")
/build/blueprint/bootstrap/bpdoc/
Dproperties.go71 f := defaults.FieldByName(fieldName)
72 if (f == reflect.Value{}) {
76 if reflect.DeepEqual(f.Interface(), reflect.Zero(f.Type()).Interface()) {
80 if f.Kind() == reflect.Interface {
81 f = f.Elem()
84 if f.Kind() == reflect.Ptr {
85 if f.IsNil() {
88 f = f.Elem()
91 if f.Kind() == reflect.Struct {
92 setDefaults(prop.Properties, f)
[all …]
/build/soong/cmd/soong_build/
Dqueryview.go33 for _, f := range filesToWrite {
34 if err := writeReadOnlyFile(bazelQueryViewDir, f); err != nil {
44 func writeReadOnlyFile(dir string, f bp2build.BazelFile) error {
45 dir = filepath.Join(dir, f.Dir)
49 pathToFile := filepath.Join(dir, f.Basename)
52 err := ioutil.WriteFile(pathToFile, []byte(f.Contents), 0444)
/build/soong/symbol_inject/
Delf.go35 func (f elfFileWrapper) Sections() []elf.SectionHeader {
36 ret := make([]elf.SectionHeader, len(f.File.Sections))
37 for i, section := range f.File.Sections {
44 func (f elfFileWrapper) Type() elf.Type {
45 return f.File.Type
54 func (f mockElfFile) Sections() []elf.SectionHeader { return f.sections }
55 func (f mockElfFile) Symbols() ([]elf.Symbol, error) { return f.symbols, nil }
56 func (f mockElfFile) Type() elf.Type { return f.t }
/build/soong/ui/build/paths/
Dlogs_test.go38 f := filepath.Join(d, "s")
40 testSendLog(t, f, getSocketAddr)
49 f := filepath.Join(d, strings.Repeat("s", 10))
51 testSendLog(t, f, lookup)
124 f := filepath.Join(d, "file")
125 if fp, err := os.Create(f); err == nil {
131 sendLog(f, getSocketAddr, 0, &LogEntry{}, make(chan interface{}))
136 f := filepath.Join(d, "sock1")
138 ln, err := listen(f, getSocketAddr)
147 sendLog(f, getSocketAddr, timeoutDuration, &LogEntry{
/build/make/tools/releasetools/
Dsparse_img.py46 self.simg_f = f = open(simg_fn, mode)
48 header_bin = f.read(28)
87 header_bin = f.read(12)
102 offset_map.append((pos, chunk_sz, f.tell(), None))
104 f.seek(data_sz, os.SEEK_CUR)
107 fill_data = f.read(4)
164 f = self.simg_f
167 f.seek(0, os.SEEK_END)
168 f.write(struct.pack("<2H3I", 0xCAC2, 0, blocks, 16, data))
174 f.seek(16, os.SEEK_SET)
[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/bazel/json_module_graph/
Dlibrary.jq1 # Applies "f" to all variation maps in modules and deps
3 def transformModule(f):
4 .Variations = (.Variations | f) |
5 .DependencyVariations = (.DependencyVariations | f)
8 def transformModuleReferences(f):
9 transformModule(f) |
10 .Deps = [.Deps | .[] | transformModule(f)]
49 # Transforms the variation map of dependencies (as specified by f) to a delta
51 def depDelta(f):
52 f as $outer |
[all …]
/build/soong/bp2build/
Dbp2build.go50 for _, f := range files {
51 p := getOrCreateOutputDir(outputDir, ctx, f.Dir).Join(ctx, f.Basename)
52 if err := writeFile(ctx, p, f.Contents); err != nil {
53 panic(fmt.Errorf("Failed to write %q (dir %q) due to %q", f.Basename, f.Dir, err))

12345678910