Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 44) sorted by relevance

12

/build/blueprint/microfactory/
Dmicrofactory_test.go104 pkg := loadPkg()
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
110 if err := pkg.Link(config, out); err != nil {
126 after func(pkg *GoPackage)) {
134 pkg := loadPkg()
136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
140 if err := pkg.Link(config, out); err != nil {
160 pkg = loadPkg()
162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
166 if !pkg.rebuilt {
[all …]
Dmicrofactory.go132 func (c *Config) Path(pkg string) (string, bool, error) {
138 if pkg == pkgPrefix {
140 } else if strings.HasPrefix(pkg, pkgPrefix+"/") {
141 return filepath.Join(c.paths[pkgPrefix], strings.TrimPrefix(pkg, pkgPrefix+"/")), true, nil
190 pkg, contained := s.packageSet[name]
191 return pkg, contained
194 pkg, _ := s.tryGetByName(name)
195 return pkg
305 for _, pkg := range foundPkgs {
306 foundPkg = pkg
[all …]
Dmicrofactory.bash64 -pkg-path "github.com/google/blueprint=${BLUEPRINTDIR}" \
/build/soong/scripts/hiddenapi/
Dsignature_patterns.py33 def dot_package_to_slash_package(pkg): argument
34 return pkg.replace('.', '/')
41 def slash_package_to_dot_package(pkg): argument
42 return pkg.replace('/', '.')
49 def is_split_package(split_packages, pkg): argument
50 return split_packages and (pkg in split_packages or '*' in split_packages)
63 def validate_package_is_not_matched_by_package_prefix(package_type, pkg, argument
65 package_prefix = matched_by_package_prefix_pattern(package_prefixes, pkg)
68 package_for_output = slash_package_to_dot_package(pkg)
160 pkg = pieces[0]
[all …]
/build/make/tools/aconfig/aconfig/src/storage/
Dflag_value.rs36 let num_flags = packages.iter().map(|pkg| pkg.boolean_flags.len() as u32).sum(); in create_flag_value()
43 for pkg in packages.iter() { in create_flag_value()
44 let start_index = pkg.boolean_start_index as usize; in create_flag_value()
45 let flag_ids = assign_flag_ids(pkg.package_name, pkg.boolean_flags.iter().copied())?; in create_flag_value()
46 for pf in pkg.boolean_flags.iter() { in create_flag_value()
Dmod.rs144 .map(|(pkg, aconfig_file, aconfig_content, value_file, value_content)| { in parse_all_test_flags()
146 pkg, in parse_all_test_flags()
169 for pkg in packages.iter() { in test_flag_package()
170 let pkg_name = pkg.package_name; in test_flag_package()
171 assert_eq!(pkg.flag_names.len(), pkg.boolean_flags.len()); in test_flag_package()
172 for pf in pkg.boolean_flags.iter() { in test_flag_package()
173 assert!(pkg.flag_names.contains(pf.name())); in test_flag_package()
Dflag_table.rs91 let num_flags = packages.iter().map(|pkg| pkg.boolean_flags.len() as u32).sum(); in create_flag_table()
98 .map(|pkg| FlagTableNodeWrapper::create_nodes(pkg, num_buckets)) in create_flag_table()
Dpackage_table.rs66 packages.iter().map(|pkg| PackageTableNodeWrapper::new(pkg, num_buckets)).collect(); in create_package_table()
/build/soong/cmd/go2bp/
Dgo2bp.go281 Usage: %s [--rewrite <pkg-prefix>=<replace>] [-exclude <package>] [-regen <file>]
283 -rewrite <pkg-prefix>=<replace>
286 … package, mappings are searched in the order they were specified. The first <pkg-prefix> matching
351 pkg := GoPackage{}
352 err := decoder.Decode(&pkg)
358 pkg.ExportToAndroid = true
361 pkg.TestGoFiles = nil
362 pkg.TestImports = nil
364 pkgs = append(pkgs, &pkg)
365 pkgMap[pkg.ImportPath] = &pkg
[all …]
/build/blueprint/bootstrap/bpdoc/
Dreader.go92 pkg, err := r.goPkg(pkgPath)
97 for _, t := range pkg.Types {
204 pkg := r.getGoPkg(pkgPath)
205 if pkg == nil {
212 pkg = doc.New(pkgAST, pkgPath, doc.AllDecls)
213 pkg = r.putGoPkg(pkgPath, pkg)
218 return pkg, nil
228 func (r *Reader) putGoPkg(pkgPath string, pkg *doc.Package) *doc.Package {
235 r.goPkgs[pkgPath] = pkg
236 return pkg
[all …]
Dbpdoc.go86 pkg := pkgMap[mtInfo.PkgPath]
87 if pkg == nil {
89 pkg, err = r.Package(mtInfo.PkgPath)
93 pkgMap[mtInfo.PkgPath] = pkg
94 pkgs = append(pkgs, pkg)
96 pkg.ModuleTypes = append(pkg.ModuleTypes, mtInfo)
100 for _, pkg := range pkgs {
101 …sort.Slice(pkg.ModuleTypes, func(i, j int) bool { return pkg.ModuleTypes[i].Name < pkg.ModuleTypes…
Dreader_test.go179 pkg, err := r.Package(pkgPath)
184 if pkg.Text != "bpdoc docs.\n" {
185 t.Errorf("unexpected docs %q", pkg.Text)
Dbpdoc_test.go67 pkg := packages[0]
140 for _, m := range pkg.ModuleTypes {
/build/soong/android/
Dvisibility.go149 pkg string member
155 return m.name.pkg == r.pkg
159 return fmt.Sprintf("//%s", r.pkg) // :__pkg__ is the default, so skip it.
171 return isAncestor(r.pkgPrefix, m.name.pkg)
310 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
315 if pkg == "visibility" {
345 if !isAllowedFromOutsideVendor(pkg, name) {
363 currentPkg := qualifiedModuleId.pkg
389 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
396 if pkg == "visibility" {
[all …]
Dfilegroup_test.go70 rules := effectiveVisibilityRules(result.Config, qualifiedModuleName{pkg: "p", name: "foo"})
/build/blueprint/gotestmain/
Dgotestmain.go36 pkg = flag.String("pkg", "", "test package") var
90 Package: *pkg,
121 pkg "{{.Package}}"
126 {"{{.}}", pkg.{{.}}},
133 {"{{.Name}}", pkg.Example{{.Name}}, {{.Output | printf "%q" }}, {{.Unordered}}},
229 pkg.TestMain(m)
/build/soong/jar/
Djar.go212 var pkg string
219 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText())
221 pkg += s.TokenText()
228 return pkg, nil
230 pkg += "."
232 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText())
/build/blueprint/loadplugins/
Dloadplugins.go29 pkg = flag.String("p", "main", "package name") var
46 filepath.Base(*pkg),
/build/soong/bp2build/
Dbzl_conversion.go61 for pkg, rules := range generateRules(moduleTypeFactories) {
67 bzlFileName := strings.ReplaceAll(pkg, "android/soong/", "")
110 pkg := strings.Split(factoryName, ".")[0]
124 rules[pkg] = append(rules[pkg], r)
/build/soong/cmd/extract_jar_packages/
Dextract_jar_packages.go81 for _, pkg := range pkgs {
83 data = append(data, pkg...)
/build/release/aconfig/ap3a/com.android.internal.pm.pkg.component.flags/
Denable_per_process_use_embedded_dex_attr_flag_values.textproto2 package: "com.android.internal.pm.pkg.component.flags"
DAndroid.bp16 …name: "aconfig-values-platform_build_release-ap3a-com.android.internal.pm.pkg.component.flags-all",
17 package: "com.android.internal.pm.pkg.component.flags",
/build/release/aconfig/trunk_staging/com.android.internal.pm.pkg.component.flags/
Denable_per_process_use_embedded_dex_attr_flag_values.textproto2 package: "com.android.internal.pm.pkg.component.flags"
DAndroid.bp16 …name: "aconfig-values-platform_build_release-trunk_staging-com.android.internal.pm.pkg.component.f…
17 package: "com.android.internal.pm.pkg.component.flags",
/build/soong/aconfig/
Dall_aconfig_declarations.go52 for pkg, cnt := range packages {
54 fmt.Printf("%d aconfig_declarations found for package %s\n", cnt, pkg)

12