Home
last modified time | relevance | path

Searched +full:pkg +full:- +full:dir (Results 1 – 25 of 1123) sorted by relevance

12345678910>>...45

/aosp_15_r20/build/blueprint/microfactory/
H A Dmicrofactory_test.go7 // http://www.apache.org/licenses/LICENSE-2.0
35 "-m", "android/soong=build/soong/",
36 "-m", "github.com/google/blueprint/=build/blueprint",
100 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
102 out := filepath.Join(dir, "out", "test")
104 pkg := loadPkg()
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
110 if err := pkg.Link(config, out); err != nil {
125 modify func(config *Config, dir string, loadPkg loadPkgFunc),
126 after func(pkg *GoPackage)) {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/modload/
Dload.go2 // Use of this source code is governed by a BSD-style
7 // This file contains the module-mode package loader, as well as some accessory
15 // one key piece - the build list - is a global, so that it can be modified
19 // a buildList rather than hard-coding use of the global.
27 // arguments. However, for the "all" meta-pattern, the final set of packages is
35 // package is known to match the "all" meta-pattern.
37 // - it is in the main module, or
38 // - it is imported by any test in the main module, or
39 // - it is imported by another package in "all", or
40 // - the main module specifies a go version ≤ 1.15, and the package is imported
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/types/
Dstdlib_test.go2 // Use of this source code is governed by a BSD-style
35 …b.com/golang/build/blob/df58bbac082bc87c4a3cdfe336d1ffe60bbaa916/cmd/release/release.go#L533-L545.)
48 // Collect non-test files.
51 walkPkgDirs(root, func(dir string, filenames []string) {
52 dirFiles[dir] = filenames
62 // Though we read files while parsing, type-checking is otherwise CPU bound.
65 // waiting for a common import, but in combination with the non-deterministic
67 // type-checking (see golang/go#47729).
71 for dir := range dirFiles {
72 dir := dir
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/compile/internal/types2/
Dstdlib_test.go2 // Use of this source code is governed by a BSD-style
37 // Collect non-test files.
40 walkPkgDirs(root, func(dir string, filenames []string) {
41 dirFiles[dir] = filenames
51 // Though we read files while parsing, type-checking is otherwise CPU bound.
54 // waiting for a common import, but in combination with the non-deterministic
56 // type-checking (see golang/go#47729).
60 for dir := range dirFiles {
61 dir := dir
63 cpulimit <- struct{}{}
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/load/
Dpkg.go2 // Use of this source code is governed by a BSD-style
63 Dir string `json:",omitempty"` // directory containing package sources member
64 ImportPath string `json:",omitempty"` // import path of package in dir
69 … `json:",omitempty"` // the shared library that contains this package (only set when -linkshared)
70 … string `json:",omitempty"` // Go root, Go path dir, or module root dir containin…
71 ConflictDir string `json:",omitempty"` // Dir is hidden by this other directory
73 … string `json:",omitempty"` // file containing export data (set by go list -export)
74 …ing `json:",omitempty"` // build ID of the compiled package (set by go list -export)
76 …Match []string `json:",omitempty"` // command-line patterns matching this pac…
99 …IgnoredOtherFiles []string `json:",omitempty"` // non-.go source files ignored due to build constr…
[all …]
/aosp_15_r20/external/pciutils/maint/
H A Drelease.pm3 # (c) 2003--2011 Martin Mares <[email protected]>
17 # p=preprocess, s=subst, -=discard
18 '(^|/)(CVS|\.arch-ids|{arch}|\.git|tmp)/' => '-',
19 '\.sw[a-z]$' => '-',
27 "DATE" => `date '+%Y-%m-%d' | tr -d '\n'`,
28 "LSMDATE" => `date '+%y%m%d' | tr -d '\n'`,
51 $s->{"VERSION"} = $1;
57 if (!defined $s->{"VERSION"}) { die "Failed to auto-detect version"; }
58 return $s->{"VERSION"};
67 if (!defined $s->{"VERSION"}) {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/api/
Dmain_test.go2 // Use of this source code is governed by a BSD-style
88 s := c.GOOS + "-" + c.GOARCH
90 s += "-cgo"
92 if c.Dir != "" {
93 s += fmt.Sprintf(" [%s]", c.Dir)
133 var featureCtx = make(map[string]map[string]bool) // feature -> context name -> true
136 pkg, err := w.import_(name)
143 w.export(pkg)
189 func (w *Walker) export(pkg *apiPackage) {
191 log.Println(pkg)
[all …]
/aosp_15_r20/external/doclava/src/com/google/doclava/
H A DNavTree.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 public static void writeNavTree(String dir, String refPrefix) { in writeNavTree() argument
32 for (PackageInfo pkg : Doclava.choosePackages()) { in writeNavTree()
33 children.add(makePackageNode(pkg)); in writeNavTree()
35 Node node = new Node("Reference", dir + refPrefix + "packages.html", children, null); in writeNavTree()
50 if (refPrefix == "gms-"){ in writeNavTree()
52 } else if (refPrefix == "gcm-"){ in writeNavTree()
55 ClearPage.write(data, "navtree_data.cs", dir + Doclava.libraryRoot in writeNavTree()
64 * This is intended to replace writeYamlTree(), but for now requires an explicit opt-in via
68 public static void writeYamlTree2(String dir, String fileName){ in writeYamlTree2() argument
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/testdata/script/
Dmod_dot.txt7 cd dir
13 …('$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]subdir\) is not a package in module rooted at '$WORK'[/\\]…
16 stderr '^no Go files in '$WORK'[/\\]gopath[/\\]src[/\\]dir$'
21 stderr '^no Go files in '$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]subdir$'
35 stderr '^no Go files in '$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]subdir$'
37 # golang.org/issue/29280: 'go list -e' for a nonexistent directory should
39 go list -e -json ./subdir
49 stderr '^no Go files in '$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]vendor[/\\]nonexist$'
51 ! go list ./vendor/pkg
52 stderr '^without -mod=vendor, directory '$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]vendor[/\\]pkg has n…
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/pm/permission/
H A DDefaultPermissionGrantPolicy.java8 * http://www.apache.org/licenses/LICENSE-2.0
69 import com.android.internal.pm.pkg.parsing.ParsingPackageUtils;
99 * that the device is usable out-of-the-box. For example, the
277 public int getPermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg,
279 return mContext.getPackageManager().getPermissionFlags(permission, pkg.packageName,
284 public void updatePermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg,
286 mContext.getPackageManager().updatePermissionFlags(permission, pkg.packageName,
291 public void grantPermission(@NonNull String permission, @NonNull PackageInfo pkg,
293 mContext.getPackageManager().grantRuntimePermission(pkg.packageName, permission,
298 public void revokePermission(@NonNull String permission, @NonNull PackageInfo pkg,
[all …]
/aosp_15_r20/external/bazelbuild-rules_go/tests/core/go_path/
H A Dgo_path_test.go7 http://www.apache.org/licenses/LICENSE-2.0
39 "-src/example.com/repo/cmd/bin/bin",
40 "-src/testmain/testmain.go",
42 "src/example.com/repo/pkg/lib/lib.go",
43 "src/example.com/repo/pkg/lib/embedded_src.txt",
44 "src/example.com/repo/pkg/lib/template/index.html.tmpl",
45 "src/example.com/repo/pkg/lib/embed_test.go",
46 "src/example.com/repo/pkg/lib/internal_test.go",
47 "src/example.com/repo/pkg/lib/external_test.go",
48 "-src/example.com/repo/pkg/lib_test/embed_test.go",
[all …]
/aosp_15_r20/development/build/tools/
H A Dsdk_repo.mk14 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
17 define sdk-repo-pkg-zip
18 $(dir $(2))/sdk-repo-$(1)-$(3).zip
23 # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/tools
24 # this generates an sdk-repo-linux-tools that contains tools/*
28 # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
33 define mk-sdk-repo-pkg-1
34 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3)
36 $(hide) rm -f $$@ && \
37 $(SOONG_ZIP) -o $$@ -C $(basename $(3)) -D $(basename $(3))/$(4)
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/
Dcmp.bash4 # Use of this source code is governed by a BSD-style
14 # "go build <pkg>" assembly output for each package
20 FLAGS1="-newexport=0"
21 FLAGS2="-newexport=1"
31 for pkg in `go list std`; do
32 echo $pkg
33 DIR=$GOROOT/src/$pkg
34 go build -gcflags "$FLAGS1 -S" -o /dev/null $pkg &> $DIR/old.txt
45 for pkg in `go list std`; do
46 echo $pkg
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/dist/
Dbuild.go2 // Use of this source code is governed by a BSD-style
105 // find reports the first index of p in l[0:n], or else -1.
112 return -1
229 b = "pkg-config"
270 tooldir = pathf("%s/pkg/tool/%s_%s", goroot, gohostos, gohostarch)
353 errprintf("rm -rf %s\n", workdir)
402 // Only use the VERSION file if it is non-empty.
435 version := fmt.Sprintf("devel go1.%s-", m[1])
436 version += chomp(run(goroot, CheckExit, "git", "log", "-n", "1", "--format=format:%h %cd", "HEAD"))
446 // NB: simply checking the exit code of `git rev-parse --git-dir` would
[all …]
/aosp_15_r20/frameworks/base/cmds/incidentd/src/
H A DWorkDirectory.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
80 return -errno; in read_proto()
86 if (!msg->ParseFromZeroCopyStream(&stream)) { in read_proto()
99 return -errno; in write_proto()
119 return str.compare(str.length()-ending.length(), ending.length(), ending) == 0; in ends_with()
145 char* dir = strdup(directory); in create_directory() local
148 char* d = dir + 1; in create_directory()
159 if (stat(dir, &st) == 0) { in create_directory()
165 ALOGE("No such directory %s, something wrong.", dir); in create_directory()
166 err = -1; in create_directory()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/compile/internal/test/
Dpgo_devirtualize_test.go2 // Use of this source code is governed by a BSD-style
26 func testPGODevirtualize(t *testing.T, dir string, want []devirtualization, pgoProfileName string) {
30 const pkg = "example.com/pgo/devirtualize"
32 // Add a go.mod so we have a consistent symbol names in this temp dir.
35 `, pkg)
36 if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
41 // correct even in the non-optimized version.
43 cmd.Dir = dir
51 pprof := filepath.Join(dir, pgoProfileName)
52 gcflag := fmt.Sprintf("-gcflags=-m=2 -pgoprofile=%s -d=pgodebug=3", pprof)
[all …]
Dpgo_inl_test.go2 // Use of this source code is governed by a BSD-style
24 func buildPGOInliningTest(t *testing.T, dir string, gcflag string) []byte {
25 const pkg = "example.com/pgo/inline"
27 // Add a go.mod so we have a consistent symbol names in this temp dir.
30 `, pkg)
31 if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
35 exe := filepath.Join(dir, "test.exe")
36 args := []string{"test", "-c", "-o", exe, "-gcflags=" + gcflag}
38 cmd.Dir = dir
49 func testPGOIntendedInlining(t *testing.T, dir string, profFile string) {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/distpack/
Dpack.go2 // Use of this source code is governed by a BSD-style
6 // It writes into GOROOT/pkg/distpack:
8 // - a binary distribution (tgz or zip) for the current GOOS and GOARCH
9 // - a source distribution that is independent of GOOS/GOARCH
10 // - the module mod, info, and zip files for a distribution in module form
13 // Distpack is typically invoked by the -distpack flag to make.bash.
14 // A cross-compiled distribution for goos/goarch can be built using:
16 // GOOS=goos GOARCH=goarch ./make.bash -distpack
20 // ./make.bash -distpack
21 // mkdir -p /tmp/goproxy/golang.org/toolchain/
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/doc/
Dpkg.go2 // Use of this source code is governed by a BSD-style
36 pkg *ast.Package // Parsed package. member
46 func (pkg *Package) ToText(w io.Writer, text, prefix, codePrefix string) {
47 d := pkg.doc.Parser().Parse(text)
48 pr := pkg.doc.Printer()
57 pkg *Package member
71 if pb.pkg.pkg.Name != "main" || showCmd {
72 pb.pkg.packageClause()
77 type PackageError string // type returned by pkg.Fatalf.
85 // pkg.build.ImportPath is sometimes the unhelpful "" or ".", it looks for a
[all …]
/aosp_15_r20/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
H A DRmTypeDefsTest.java30 File dir = Files.createTempDir(); in test() local
32 + "package test.pkg;\n" in test()
104 File srcDir = new File(dir, "test" + File.separator + "pkg"); in test()
110 srcDir = new File(dir, "android" + File.separator + "annotation"); in test()
117 " -source 1.6 -target 1.6 -nowarn", in test()
129 + " testDir/test/pkg/\n" in test()
130 + " testDir/test/pkg/TestClass$DisplayOptions.class\n" in test()
131 + " testDir/test/pkg/TestClass$Inherits.class\n" in test()
132 + " testDir/test/pkg/TestClass$StaticInnerClass$Visibility.class\n" in test()
133 + " testDir/test/pkg/TestClass$StaticInnerClass.class\n" in test()
[all …]
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/builders/
H A Dstdliblist.go7 // http://www.apache.org/licenses/LICENSE-2.0
30 Pos string // "file:line:col" or "file:line" or "" or "-"
47 pos = "-" // like token.Position{}.String()
68 Dir string // directory containing package sources member
69 ImportPath string // import path of package in dir
74 Root string // Go root or Go path dir containing this package
75 Export string // file containing export data (when using -export)
79 CompiledGoFiles []string // .go files presented to compiler (when using -compiled)
81 IgnoredOtherFiles []string // non-.go source files ignored due to build constraints
115 dir, _ := filepath.Rel(cloneBase, p)
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/modcmd/
Dvendor.go2 // Use of this source code is governed by a BSD-style
34 UsageLine: "go mod vendor [-e] [-v] [-o outdir]",
41 The -v flag causes vendor to print the names of vendored
44 The -e flag causes vendor to attempt to proceed despite errors
47 The -o flag causes vendor to create the vendor directory at the given
52 See https://golang.org/ref/mod#go-mod-vendor for more about 'go mod vendor'.
107 for _, pkg := range pkgs {
108 m := modload.PackageModule(pkg)
112 modpkgs[m] = append(modpkgs[m], pkg)
123 // stronger consistency check when -mod=vendor is set.
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/modindex/
Dread.go2 // Use of this source code is governed by a BSD-style
59 // the cost to detect changes and re-index whenever they occur, so just
62 // Note that this is true even for modules in GOROOT/src: non-release builds
66 // "gomote push" as of 2022-06-15). (Release builds shouldn't have
94 cutoff := time.Now().Add(-modTimeCutoff)
150 dir, _ := cache.DefaultDir()
151 if !enabled || dir == "off" {
220 pkg, err := packageFromBytes(modroot, data)
224 return pkg, nil
302 if len(d.str) == 0 || d.str[0] != 0 || d.str[len(d.str)-1] != 0xFF {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/
Dgo_test.go2 // Use of this source code is governed by a BSD-style
51 // which breaks many tests here - they can't use non-git, non-hg VCS at all!
69 // external network in parallel. If non-nil, it contains one buffer slot per
84 t.Skipf("skipping test in -short mode: %s", reason)
179 topTmpdir, err := os.MkdirTemp("", "cmd-go-test-")
190 dir, err := os.MkdirTemp(topTmpdir, "tmpdir")
194 testTmpDir = dir
224 // The whole GOROOT/pkg tree was installed using the GOHOSTOS/GOHOSTARCH
225 // toolchain (installed in GOROOT/pkg/tool/GOHOSTOS_GOHOSTARCH).
228 // (installed in GOROOT/pkg/tool/GOOS_GOARCH).
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/build/
Dbuild.go2 // Use of this source code is governed by a BSD-style
42 // Dir is the caller's working directory, or the empty string to use
46 // If Dir is non-empty, directories passed to Import and ImportDir must
48 Dir string member
98 // HasSubdir reports whether dir is lexically a subdirectory of
100 // whether dir exists.
101 // If so, HasSubdir sets rel to a slash-separated path that
102 // can be joined to root to produce a path equivalent to dir.
105 HasSubdir func(root, dir string) (rel string, ok bool)
110 ReadDir func(dir string) ([]fs.FileInfo, error)
[all …]

12345678910>>...45