Home
last modified time | relevance | path

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

123456789

/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.go166 logger Logger, dbPath string) (f *Finder, err error) {
172 logger Logger, dbPath string, numThreads int) (f *Finder, err error) {
184 f = &Finder{
197 f.loadFromFilesystem()
200 err = f.getErr()
208 path = filepath.Join(f.cacheMetadata.Config.WorkingDirectory, path)
210 node := f.nodes.GetNode(filepath.Clean(path), false)
216 return f, nil
220 func (f *Finder) FindAll() []string {
221 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/scripts/
Dlint-project-xml.py96 def write_project_xml(f, args): argument
99 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
100 f.write("<project>\n")
102 f.write(" <root dir='%s' />\n" % args.root_dir)
103f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
105 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
107 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
110 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
113 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
116 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')
/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/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.go35 func NewSourceFinder(ctx Context, config Config) (f *finder.Finder) {
72 f, err = finder.New(cacheParams, filesystem, logger.New(ioutil.Discard),
77 return f
82 func FindSources(ctx Context, config Config, f *finder.Finder) {
88 androidMks := f.FindFirstNamedAt(".", "Android.mk")
94 androidProductsMks := f.FindNamedAt("device", "AndroidProducts.mk")
95 androidProductsMks = append(androidProductsMks, f.FindNamedAt("vendor", "AndroidProducts.mk")...)
96 androidProductsMks = append(androidProductsMks, f.FindNamedAt("product", "AndroidProducts.mk")...)
102 cleanSpecs := f.FindFirstNamedAt(".", "CleanSpec.mk")
108 owners := f.FindNamedAt(".", "OWNERS")
[all …]
/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 …]
Dreader_test.go112 f string
116 f: "github.com/google/blueprint/bootstrap.Main",
120 f: "android/soong/android.GenruleFactory",
124 f: "android/soong/android.ModuleFactoryAdapter.func1",
128 f: "main.Main",
133 t.Run(tt.f, func(t *testing.T) {
134 got, err := funcNameToPkgPath(tt.f)
139 t.Errorf("funcNameToPkgPath(%v) = %v, want %v", tt.f, got, tt.want)
/build/make/tools/droiddoc/templates-ndk/assets/js/
Dprettify.js2f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.…
3f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j)… argument
4 f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]…
5f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c…
6 {b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Er… property
7 …d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(…
8f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];br…
12 …]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(…
/build/soong/android/
Dregister.go132 PreArchMutators(f RegisterMutatorFunc)
137 HardCodedPreArchMutators(f RegisterMutatorFunc)
139 PreDepsMutators(f RegisterMutatorFunc)
140 PostDepsMutators(f RegisterMutatorFunc)
141 FinalDepsMutators(f RegisterMutatorFunc)
189 func (ctx *initRegistrationContext) PreArchMutators(f RegisterMutatorFunc) {
190 PreArchMutators(f)
193 func (ctx *initRegistrationContext) HardCodedPreArchMutators(f RegisterMutatorFunc) {
197 func (ctx *initRegistrationContext) PreDepsMutators(f RegisterMutatorFunc) {
198 PreDepsMutators(f)
[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/soong/cc/config/
Dclang.go206 for _, f := range cflags {
207 if !inListSorted(f, ClangUnknownCflags) {
208 ret = append(ret, f)
217 for _, f := range lldflags {
218 if !inListSorted(f, ClangUnknownLldflags) {
219 ret = append(ret, f)
/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/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.go35 f := filepath.Join(d, "s")
37 testSendLog(t, f, getSocketAddr)
46 f := filepath.Join(d, strings.Repeat("s", 10))
48 testSendLog(t, f, lookup)
121 f := filepath.Join(d, "file")
122 if fp, err := os.Create(f); err == nil {
128 sendLog(f, getSocketAddr, 0, &LogEntry{}, make(chan interface{}))
133 f := filepath.Join(d, "sock1")
135 ln, err := listen(f, getSocketAddr)
144 sendLog(f, getSocketAddr, timeoutDuration, &LogEntry{
/build/soong/bpfix/bpfix/
Dbpfix.go57 Fix func(f *Fixer) error
166 func (f Fixer) Tree() *parser.File {
167 return f.tree
181 func (f *Fixer) Fix(config FixRequest) (*parser.File, error) {
182 prevIdentifier, err := f.fingerprint()
190 err = f.fixTreeOnce(config)
191 newIdentifier, err := f.fingerprint()
207 return f.tree, err
211 func (f *Fixer) fingerprint() (fingerprint []byte, err error) {
212 bytes, err := parser.Print(f.tree)
[all …]
/build/blueprint/bootstrap/
Dcommand.go84 f, err := os.Create(absolutePath(cpuprofile))
88 pprof.StartCPUProfile(f)
89 defer f.Close()
94 f, err := os.Create(absolutePath(traceFile))
98 trace.Start(f)
99 defer f.Close()
184 var f *os.File
194f, err = os.OpenFile(absolutePath(outFile), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, outFilePermissions)
198 buf = bufio.NewWriter(f)
235 if f != nil {
[all …]
/build/soong/ui/terminal/
Dutil.go26 if f, ok := w.(*os.File); ok {
31 _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, f.Fd(),
42 if f, ok := w.(*os.File); ok {
47 _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, f.Fd(),
51 } else if f, ok := w.(*fakeSmartTerminal); ok {
52 return f.termWidth, f.termHeight, true

123456789