/frameworks/base/media/mca/ |
structgen.py | 184 def parseTextFile(self, filepath): 194 txtfile = open(filepath) 337 filepath = argv[1] 340 structspec.parseTextFile(filepath) 348 rootdir = os.path.dirname(filepath)
|
/prebuilts/go/darwin-x86/misc/cgo/testcshared/ |
cshared_test.go | 15 "path/filepath" 121 cc = append(cc, "-I", filepath.Join("pkg", libgodir)) 241 filepath.Join("src", "libgo", "libgo.go")} 500 copyFile(t, filepath.Join(tmpdir, "src", "libgo", "libgo.go"), filepath.Join("src", "libgo", "libgo.go")) 501 copyFile(t, filepath.Join(tmpdir, "src", "p", "p.go"), filepath.Join("src", "p", "p.go")) 523 switch filepath.Base(path) { 538 if err := filepath.Walk(tmpdir, walker); err != nil { 580 if err := os.MkdirAll(filepath.Dir(dst), 0777); err != nil [all...] |
/prebuilts/go/linux-x86/misc/cgo/testcshared/ |
cshared_test.go | 15 "path/filepath" 121 cc = append(cc, "-I", filepath.Join("pkg", libgodir)) 241 filepath.Join("src", "libgo", "libgo.go")} 500 copyFile(t, filepath.Join(tmpdir, "src", "libgo", "libgo.go"), filepath.Join("src", "libgo", "libgo.go")) 501 copyFile(t, filepath.Join(tmpdir, "src", "p", "p.go"), filepath.Join("src", "p", "p.go")) 523 switch filepath.Base(path) { 538 if err := filepath.Walk(tmpdir, walker); err != nil { 580 if err := os.MkdirAll(filepath.Dir(dst), 0777); err != nil [all...] |
/prebuilts/go/darwin-x86/src/cmd/go/ |
go_test.go | 19 "path/filepath" 197 os.Setenv("CCACHE_DIR", filepath.Join(home, ".ccache")) 309 abs, err := filepath.Abs(dir) 351 return filepath.Join(tg.wd, "testgo"+exeSuffix) 583 if filepath.IsAbs(path) && !strings.HasPrefix(path, tg.tempdir) { 589 if tg.wd != "" && !filepath.IsAbs(path) { 590 path = filepath.Join(tg.pwd(), path) 611 tg.must(os.MkdirAll(filepath.Join(tg.tempdir, filepath.Dir(path)), 0755)) 619 tg.must(ioutil.WriteFile(filepath.Join(tg.tempdir, path), bytes, 0644) [all...] |
/prebuilts/go/linux-x86/src/cmd/go/ |
go_test.go | 19 "path/filepath" 197 os.Setenv("CCACHE_DIR", filepath.Join(home, ".ccache")) 309 abs, err := filepath.Abs(dir) 351 return filepath.Join(tg.wd, "testgo"+exeSuffix) 583 if filepath.IsAbs(path) && !strings.HasPrefix(path, tg.tempdir) { 589 if tg.wd != "" && !filepath.IsAbs(path) { 590 path = filepath.Join(tg.pwd(), path) 611 tg.must(os.MkdirAll(filepath.Join(tg.tempdir, filepath.Dir(path)), 0755)) 619 tg.must(ioutil.WriteFile(filepath.Join(tg.tempdir, path), bytes, 0644) [all...] |
/external/autotest/client/cros/ |
touch_playback_test_base.py | 106 filepath = self._download_remote_test_file(filename, input_type) 107 if not filepath: 111 filepaths[gesture] = filepath 180 def _playback(self, filepath, touch_type='touchpad'): 182 self.player.playback(filepath, touch_type) 185 def _blocking_playback(self, filepath, touch_type='touchpad'): 187 self.player.blocking_playback(filepath, touch_type)
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
input_data.py | 183 filepath = os.path.join(dest_directory, filename) 184 if not os.path.exists(filepath): 193 filepath, _ = urllib.request.urlretrieve(data_url, filepath, _progress) 196 filepath) 201 statinfo = os.stat(filepath) 204 tarfile.open(filepath, 'r:gz').extractall(dest_directory)
|
/prebuilts/go/darwin-x86/src/go/scanner/ |
scanner_test.go | 11 "path/filepath" 491 {" line1", filepath.Join("dir", "TestLineComments"), 1}, 492 {"\nline2", filepath.Join("dir", "TestLineComments"), 2}, 493 {"\nline3 //line File1.go:100", filepath.Join("dir", "TestLineComments"), 3}, // bad line comment, ignored 494 {"\nline4", filepath.Join("dir", "TestLineComments"), 4}, 495 {"\n//line File1.go:100\n line100", filepath.Join("dir", "File1.go"), 100}, 497 {"\n//line File2.go:200\n line200", filepath.Join("dir", "File2.go"), 200}, 498 {"\n//line foo\t:42\n line42", filepath.Join("dir", "foo"), 42}, 499 {"\n //line foo:42\n line44", filepath.Join("dir", "foo"), 44}, // bad line comment, ignored 500 {"\n//line foo 42\n line46", filepath.Join("dir", "foo"), 46}, // bad line comment, ignore [all...] |
/prebuilts/go/linux-x86/src/go/scanner/ |
scanner_test.go | 11 "path/filepath" 491 {" line1", filepath.Join("dir", "TestLineComments"), 1}, 492 {"\nline2", filepath.Join("dir", "TestLineComments"), 2}, 493 {"\nline3 //line File1.go:100", filepath.Join("dir", "TestLineComments"), 3}, // bad line comment, ignored 494 {"\nline4", filepath.Join("dir", "TestLineComments"), 4}, 495 {"\n//line File1.go:100\n line100", filepath.Join("dir", "File1.go"), 100}, 497 {"\n//line File2.go:200\n line200", filepath.Join("dir", "File2.go"), 200}, 498 {"\n//line foo\t:42\n line42", filepath.Join("dir", "foo"), 42}, 499 {"\n //line foo:42\n line44", filepath.Join("dir", "foo"), 44}, // bad line comment, ignored 500 {"\n//line foo 42\n line46", filepath.Join("dir", "foo"), 46}, // bad line comment, ignore [all...] |
/build/soong/cc/ |
cmakelists.go | 24 "path/filepath" 76 dir := filepath.Join(getAndroidSrcRootDirectory(ctx), cLionAggregateProjectsDirectory) 77 filepath.Walk(dir, linkAggregateCMakeListsFiles) 129 f, _ := os.Create(filepath.Join(projectDir, cMakeListsFilename)) 149 pathToCC := filepath.Join(root, "bin", triple+"-") 398 return filepath.Join(getAndroidSrcRootDirectory(ctx), 408 srcPath, _ := filepath.Abs(android.PathForSource(ctx).String())
|
llndk_library.go | 18 "path/filepath" 113 srcFiles := ctx.GlobFiles(filepath.Join(srcDir.String(), "**/*.h"), nil) 117 headerDir := filepath.Dir(header.String()) 118 relHeaderDir, err := filepath.Rel(srcDir.String(), headerDir) 120 ctx.ModuleErrorf("filepath.Rel(%q, %q) failed: %s",
|
/external/boringssl/src/util/ |
run_android_tests.go | 26 "path/filepath" 167 dir := filepath.Dir(dst) 234 if err := goTool("build", "-o", filepath.Join(tmpDir, "util/all_tests"), "util/all_tests.go"); err != nil { 265 if err := goTool("test", "-c", "-o", filepath.Join(tmpDir, "ssl/test/runner/runner"), "./ssl/test/runner/"); err != nil { 273 if err := copyFile(filepath.Join(tmpDir, "build", binary), filepath.Join(*buildDir, binary)); err != nil { 281 if err := copyFile(filepath.Join(tmpDir, file), file); err != nil {
|
/prebuilts/go/darwin-x86/src/html/template/ |
examplefiles_test.go | 12 "path/filepath" 28 f, err := os.Create(filepath.Join(dir, file.name)) 60 pattern := filepath.Join(dir, "*.tmpl") 100 filepath.Join(dir1, "T1.tmpl"), 101 filepath.Join(dir2, "T2.tmpl"), 132 pattern := filepath.Join(dir, "*.tmpl") 180 pattern := filepath.Join(dir, "*.tmpl")
|
/prebuilts/go/linux-x86/src/html/template/ |
examplefiles_test.go | 12 "path/filepath" 28 f, err := os.Create(filepath.Join(dir, file.name)) 60 pattern := filepath.Join(dir, "*.tmpl") 100 filepath.Join(dir1, "T1.tmpl"), 101 filepath.Join(dir2, "T2.tmpl"), 132 pattern := filepath.Join(dir, "*.tmpl") 180 pattern := filepath.Join(dir, "*.tmpl")
|
/build/soong/android/ |
paths.go | 19 "path/filepath" 233 prefix := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir()) + "/" 242 path := filepath.Clean(p) 260 path := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir(), def) 398 prefix := filepath.Clean(dir) + "/" 448 return filepath.Ext(p.path) 452 return filepath.Base(p.path) 467 p.path = filepath.Join(p.path, rel) 493 abs, err := filepath.Abs(ret.String()) 498 buildroot, err := filepath.Abs(ctx.Config().buildDir [all...] |
/prebuilts/go/darwin-x86/src/cmd/go/internal/load/ |
pkg.go | 15 "path/filepath" 211 pp.PkgObj = filepath.Join(cfg.BuildPkgdir, strings.TrimPrefix(pp.PkgObj, old)) 369 return pathpkg.Join("_", strings.Map(makeImportValid, filepath.ToSlash(dir))) 417 importPath = dirToImportPath(filepath.Join(srcDir, path)) 560 dir := filepath.Clean(parent.Dir) 561 root := filepath.Join(parent.Root, "src") 562 if !str.HasFilePathPrefix(dir, root) || parent.ImportPath != "command-line-arguments" && filepath.Join(root, parent.ImportPath) != dir { 568 if !str.HasFilePathPrefix(dir, root) || len(dir) <= len(root) || dir[len(root)] != filepath.Separator || parent.ImportPath != "command-line-arguments" && !parent.Internal.Local && filepath.Join(root, parent.ImportPath) != dir { 577 filepath.Join(parent.Root, "src") [all...] |
/prebuilts/go/linux-x86/src/cmd/go/internal/load/ |
pkg.go | 15 "path/filepath" 211 pp.PkgObj = filepath.Join(cfg.BuildPkgdir, strings.TrimPrefix(pp.PkgObj, old)) 369 return pathpkg.Join("_", strings.Map(makeImportValid, filepath.ToSlash(dir))) 417 importPath = dirToImportPath(filepath.Join(srcDir, path)) 560 dir := filepath.Clean(parent.Dir) 561 root := filepath.Join(parent.Root, "src") 562 if !str.HasFilePathPrefix(dir, root) || parent.ImportPath != "command-line-arguments" && filepath.Join(root, parent.ImportPath) != dir { 568 if !str.HasFilePathPrefix(dir, root) || len(dir) <= len(root) || dir[len(root)] != filepath.Separator || parent.ImportPath != "command-line-arguments" && !parent.Internal.Local && filepath.Join(root, parent.ImportPath) != dir { 577 filepath.Join(parent.Root, "src") [all...] |
/prebuilts/go/darwin-x86/src/cmd/go/internal/get/ |
get.go | 12 "path/filepath" 389 dir := filepath.Join(p.Internal.Build.SrcRoot, filepath.FromSlash(rootPath)) 425 list := filepath.SplitList(cfg.BuildContext.GOPATH) 430 if filepath.Clean(list[0]) == filepath.Clean(cfg.GOROOT) { 433 if _, err := os.Stat(filepath.Join(list[0], "src/cmd/go/alldocs.go")); err == nil { 437 p.Internal.Build.SrcRoot = filepath.Join(list[0], "src") 438 p.Internal.Build.PkgRoot = filepath.Join(list[0], "pkg") 440 root := filepath.Join(p.Internal.Build.SrcRoot, filepath.FromSlash(rootPath) [all...] |
/prebuilts/go/linux-x86/src/cmd/go/internal/get/ |
get.go | 12 "path/filepath" 389 dir := filepath.Join(p.Internal.Build.SrcRoot, filepath.FromSlash(rootPath)) 425 list := filepath.SplitList(cfg.BuildContext.GOPATH) 430 if filepath.Clean(list[0]) == filepath.Clean(cfg.GOROOT) { 433 if _, err := os.Stat(filepath.Join(list[0], "src/cmd/go/alldocs.go")); err == nil { 437 p.Internal.Build.SrcRoot = filepath.Join(list[0], "src") 438 p.Internal.Build.PkgRoot = filepath.Join(list[0], "pkg") 440 root := filepath.Join(p.Internal.Build.SrcRoot, filepath.FromSlash(rootPath) [all...] |
/prebuilts/go/darwin-x86/src/runtime/ |
runtime-gdb_test.go | 15 "path/filepath" 131 src := filepath.Join(dir, "main.go") 171 filepath.Join(dir, "a.exe"), 280 src := filepath.Join(dir, "main.go") 299 filepath.Join(dir, "a.exe"), 350 src := filepath.Join(dir, "main.go") 369 filepath.Join(dir, "a.exe"), 415 src := filepath.Join(dir, "main.go") 437 filepath.Join(dir, "a.exe"),
|
/prebuilts/go/linux-x86/src/runtime/ |
runtime-gdb_test.go | 15 "path/filepath" 131 src := filepath.Join(dir, "main.go") 171 filepath.Join(dir, "a.exe"), 280 src := filepath.Join(dir, "main.go") 299 filepath.Join(dir, "a.exe"), 350 src := filepath.Join(dir, "main.go") 369 filepath.Join(dir, "a.exe"), 415 src := filepath.Join(dir, "main.go") 437 filepath.Join(dir, "a.exe"),
|
/build/soong/python/ |
binary.go | 21 "path/filepath" 106 if filepath.Base(path) != initFileName { 122 if filepath.Base(path) == initFileName { 218 // filepath.Dir("abc") -> "." and filepath.Dir("/abc") -> "/". However,
|
/build/soong/ui/build/ |
proc_sync_test.go | 22 "path/filepath" 47 lockdir := filepath.Dir(fileLock.File.Name()) 135 lockdir := filepath.Dir(lockfile.File.Name()) 149 reacquired, message, err := forkAndGetLock(filepath.Dir(lockfile.File.Name())) 162 reacquired, message, err = forkAndGetLock(filepath.Dir(lockfile.File.Name()))
|
/prebuilts/go/darwin-x86/src/cmd/go/internal/bug/ |
bug.go | 15 "path/filepath" 86 printCmdOut(w, "GOROOT/bin/go version: ", filepath.Join(runtime.GOROOT(), "bin/go"), "version") 87 printCmdOut(w, "GOROOT/bin/go tool compile -V: ", filepath.Join(runtime.GOROOT(), "bin/go"), "tool", "compile", "-V") 184 srcfile := filepath.Join(tempdir, "go-bug.c") 185 outfile := filepath.Join(tempdir, "go-bug")
|
/prebuilts/go/darwin-x86/src/text/template/ |
examplefiles_test.go | 12 "path/filepath" 28 f, err := os.Create(filepath.Join(dir, file.name)) 58 pattern := filepath.Join(dir, "*.tmpl") 90 pattern := filepath.Join(dir, "*.tmpl") 136 pattern := filepath.Join(dir, "*.tmpl")
|