/build/soong/android/ |
D | test_asserts.go | 28 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) { 37 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) { 46 func AssertIntEquals(t *testing.T, message string, expected int, actual int) { 55 func AssertStringEquals(t *testing.T, message string, expected string, actual string) { 64 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) { 71 func AssertPathsRelativeToTopEquals(t *testing.T, message string, expected []string, actual Paths) { 78 …rtStringPathRelativeToTopEquals(t *testing.T, message string, config Config, expected string, actu… 85 …tringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []string, actu… 93 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) { 105 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) { [all …]
|
D | util.go | 28 func CopyOf(s []string) []string { 34 func JoinWithPrefix(strs []string, prefix string) string { 52 func JoinWithSuffix(strs []string, suffix string, separator string) string { 118 func IndexList(s string, list []string) int { 129 func InList(s string, list []string) bool { 134 func HasAnyPrefix(s string, prefixList []string) bool { 144 func SubstringInList(list []string, substr string) bool { 154 func PrefixInList(list []string, prefix string) bool { 164 func SuffixInList(list []string, suffix string) bool { 174 func IndexListPred(pred func(s string) bool, list []string) int { [all …]
|
D | bazel_paths.go | 82 ModuleErrorf(format string, args ...interface{}) 91 ModuleErrorf(fmt string, args ...interface{}) 92 PropertyErrorf(property, fmt string, args ...interface{}) 93 GetDirectDep(name string) (blueprint.Module, blueprint.DependencyTag) 94 ModuleFromName(name string) (blueprint.Module, bool) 95 AddUnconvertedBp2buildDep(string) argument 96 AddMissingBp2buildDep(dep string) 102 func BazelLabelForModuleDeps(ctx BazelConversionPathContext, modules []string) bazel.LabelList { 112 func BazelLabelForModuleDepsExcludes(ctx BazelConversionPathContext, modules, excludes []string) ba… 119 func BazelLabelForModuleDepsWithFn(ctx BazelConversionPathContext, modules []string, [all …]
|
D | expand.go | 30 func ExpandNinjaEscaped(s string, mapping func(string) (string, bool, error)) (string, error) { 37 func Expand(s string, mapping func(string) (string, error)) (string, error) { 44 func expand(s string, ninjaEscape bool, mapping func(string) (string, bool, error)) (string, error)… 69 func getMapping(s string, mapping func(string) (string, bool, error)) (string, bool, int, error) {
|
D | notices.go | 51 ctx BuilderContext, tool, ruleName string, outputFile WritablePath, 52 libraryName string, stripPrefix []string, modules ...Module) { 87 ctx BuilderContext, outputFile WritablePath, ruleName, libraryName string, 88 stripPrefix []string, modules ...Module) { 97 ctx BuilderContext, outputFile WritablePath, ruleName, libraryName string, 98 stripPrefix []string, modules ...Module) { 107 ctx BuilderContext, outputFile WritablePath, ruleName, libraryName string, 108 stripPrefix []string, modules ...Module) {
|
/build/soong/tradefed/ |
D | autogen.go | 29 func getTestConfigTemplate(ctx android.ModuleContext, prop *string) android.OptionalPath { 33 func getTestConfig(ctx android.ModuleContext, prop *string) android.Path { 47 …gPath(ctx android.ModuleContext, prop *string, testSuites []string, autoGenConfig *bool, testConfi… 110 …oid.ModuleContext, output android.WritablePath, template string, configs []Config, testInstallBase… 114 …ctx android.ModuleContext, name string, output android.WritablePath, template string, configs []Co… 118 …ModuleContext, name string, output android.WritablePath, template string, configs []Config, output… 140 func AutoGenNativeTestConfig(ctx android.ModuleContext, testConfigProp *string, 141 …testConfigTemplateProp *string, testSuites []string, config []Config, autoGenConfig *bool, testIns… 160 func AutoGenShellTestConfig(ctx android.ModuleContext, testConfigProp *string, 161 …testConfigTemplateProp *string, testSuites []string, config []Config, autoGenConfig *bool, outputF… [all …]
|
/build/soong/ui/build/ |
D | util.go | 26 func absPath(ctx Context, p string) string { 35 func indexList(s string, list []string) int { 46 func inList(s string, list []string) bool { 51 func removeFromList(s string, list []string) []string { 62 func ensureDirectoriesExist(ctx Context, dirs ...string) { 72 func ensureEmptyDirectoriesExist(ctx Context, dirs ...string) { 101 func ensureEmptyFileExists(ctx Context, file string) { 115 func singleUnquote(str string) (string, bool) { 123 func decodeKeyValue(str string) (string, string, bool) { 132 func copyFile(src, dst string) (int64, error) { [all …]
|
D | environment.go | 52 func (e *Environment) Get(key string) (string, bool) { 63 func (e *Environment) GetInt(key string) (int, bool) { 74 func (e *Environment) Set(key, value string) { 80 func (e *Environment) Unset(keys ...string) { 93 func (e *Environment) UnsetWithPrefix(prefix string) { 106 func (e *Environment) Allow(keys ...string) { 132 func (e *Environment) IsEnvTrue(key string) bool { 140 func (e *Environment) IsFalse(key string) bool { 149 func (e *Environment) AppendFromKati(filename string) error {
|
D | bazel.go | 30 …nc getBazelInfo(ctx Context, config Config, bazelExecutable string, bazelEnv map[string]string, qu… 207 func populateOutdir(ctx Context, config Config, rootPath string, relativePath string) {
|
/build/soong/bp2build/ |
D | symlink_forest.go | 25 func ensureNodeExists(root *node, path string) *node { 50 func treeFromExcludePathList(paths []string) *node { 62 func readdirToMap(dir string) map[string]os.FileInfo { 85 func symlinkIntoForest(topdir, dst, src string) { 97 …lantSymlinkForestRecursive(topdir string, forestDir string, buildFilesDir string, srcDir string, e… 189 func PlantSymlinkForest(topdir string, forest string, buildFiles string, srcDir string, exclude []s…
|
/build/soong/cc/ |
D | check.go | 29 func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) { 74 func CheckBadLinkerFlags(ctx BaseModuleContext, prop string, flags []string) { 106 func CheckBadHostLdlibs(ctx ModuleContext, prop string, flags []string) { 126 func CheckBadTidyFlags(ctx ModuleContext, prop string, flags []string) { 143 func CheckBadTidyChecks(ctx ModuleContext, prop string, checks []string) {
|
D | util.go | 33 func ldDirsToFlags(dirs []string) string { 37 func libNamesToFlags(names []string) string { 49 func moduleToLibName(module string) (string, error) { 109 func addPrefix(list []string, prefix string) []string { 116 func addSuffix(list []string, suffix string) []string { 124 func makeSymlinkCmd(linkDirOnDevice string, linkName string, target string) string { 130 func combineNoticesRule(ctx android.SingletonContext, paths android.Paths, out string) android.Outp… 146 func installMapListFileRule(ctx android.SingletonContext, m map[string]string, path string) android…
|
/build/soong/finder/fs/ |
D | test.go | 26 func Write(t *testing.T, path string, content string, filesystem *MockFs) { 35 func Create(t *testing.T, path string, filesystem *MockFs) { 39 func Delete(t *testing.T, path string, filesystem *MockFs) { 46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) { 53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) { 60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) { 72 func Read(t *testing.T, path string, filesystem *MockFs) string { 85 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time { 93 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) { 100 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) { [all …]
|
/build/soong/java/ |
D | testing.go | 127 func FixtureWithLastReleaseApis(moduleNames ...string) android.FixturePreparer { 154 func FixtureWithPrebuiltApis(release2Modules map[string][]string) android.FixturePreparer { 158 …ixtureWithPrebuiltApisAndExtensions(apiLevel2Modules map[string][]string, extensionLevel2Modules m… 186 func prebuiltApisFilesForModules(apiLevels []string, modules []string) map[string][]byte { 217 func prebuiltExtensionApiFiles(extensionLevels []string, modules []string) map[string][]byte { 232 func FixtureConfigureBootJars(bootJars ...string) android.FixturePreparer { 261 func FixtureConfigureApexBootJars(bootJars ...string) android.FixturePreparer { 275 func FixtureUseLegacyCorePlatformApi(moduleNames ...string) android.FixturePreparer { 406 …duleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected []string) { 422 …ormBootclasspathModules(t *testing.T, result *android.TestResult, name string, expected []string) { [all …]
|
/build/blueprint/proptools/ |
D | escape.go | 24 func NinjaEscapeList(slice []string) []string { 37 func NinjaEscape(s string) string { 49 func ShellEscapeList(slice []string) []string { 58 func ShellEscapeListIncludingSpaces(slice []string) []string { 89 func ShellEscape(s string) string { 104 func ShellEscapeIncludingSpaces(s string) string { 113 func NinjaAndShellEscapeList(slice []string) []string { 117 func NinjaAndShellEscapeListIncludingSpaces(slice []string) []string { 121 func NinjaAndShellEscape(s string) string {
|
/build/blueprint/pathtools/ |
D | lists.go | 25 func PrefixPaths(paths []string, prefix string) []string { 33 func ReplaceExtensions(paths []string, extension string) []string { 43 func ReplaceExtension(path string, extension string) string {
|
D | glob.go | 86 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) { 90 func startGlob(fs FileSystem, pattern string, excludes []string, 151 func glob(fs FileSystem, pattern string, hasRecursive bool, 233 func quickSplit(path string) (dir, file string) { 249 func isWild(pattern string) bool { 255 func filterExcludes(matches []string, excludes []string) ([]string, error) { 279 func filterDotFiles(matches []string) []string { 295 func Match(pattern, name string) (bool, error) { 354 func IsGlob(pattern string) bool { 359 func HasGlob(in []string) bool { [all …]
|
/build/soong/cmd/soong_ui/ |
D | main.go | 101 func indexList(s string, list []string) int { 111 func inList(s string, list []string) bool { 256 func fixBadDanglingLink(ctx build.Context, name string) { 270 func dumpVar(ctx build.Context, config build.Config, args []string, _ string) { 320 func dumpVars(ctx build.Context, config build.Config, args []string, _ string) { 399 func dumpVarConfig(ctx build.Context, args ...string) build.Config { 403 func buildActionConfig(ctx build.Context, args ...string) build.Config { 483 func runMake(ctx build.Context, config build.Config, _ []string, logsDir string) { 516 func getCommand(args []string) (*command, []string, error) { 567 …irHelper(ctx build.Context, config build.Config, internalDistDirPath string, externalDistDirPath s…
|
/build/soong/cmd/sbox/ |
D | sbox.go | 66 func usageViolation(violation string) { 92 func findAllFilesUnder(root string) (paths []string) { 212 func createCommandScript(rawCommand, scriptPath, scriptPathInSandbox string) (*exec.Cmd, error) { 222 func readManifest(file string) (*sbox_proto.Manifest, error) { 240 func runCommand(command *sbox_proto.Command, tempDir string, commandIndex int) (depFile string, err… 358 func makeOutputDirs(copies []*sbox_proto.Copy, sandboxDir string) error { 371 func validateOutputFiles(copies []*sbox_proto.Copy, sandboxDir, outputDir, rawCommand string) error… 464 func copyFiles(copies []*sbox_proto.Copy, fromDir, toDir string, exists existsType, write writeType… 480 func copyOneFile(from string, to string, forceExecutable bool, exists existsType, 547 func copyRspFiles(rspFiles []*sbox_proto.RspFile, toDir, toDirInSandbox string) error { [all …]
|
/build/soong/android/soongconfig/ |
D | config.go | 26 Bool(name string) bool 30 String(name string) string 33 IsSet(name string) bool 36 func Config(vars map[string]string) SoongConfig { 51 func (c soongConfig) Bool(name string) bool { 56 func (c soongConfig) String(name string) string { 60 func (c soongConfig) IsSet(name string) bool {
|
/build/soong/compliance/build_license_metadata/ |
D | build_license_metadata.go | 32 func newMultiString(flags *flag.FlagSet, name, usage string) *multiString { 41 func (ms *multiString) Set(s string) error { *ms = append(*ms, s); return nil } 106 func findGitRoots(dirs []string) []string { 119 func findGitRoot(dir string) string { 138 func convertInstalledMap(installMaps []string) []*license_metadata_proto.InstallMap { 157 func convertDependencies(deps []string) []*license_metadata_proto.AnnotatedDependency { 180 func writeMetadata(file string, metadata *license_metadata_proto.LicenseMetadata) error {
|
/build/soong/cmd/soong_build/ |
D | main.go | 124 func newConfig(availableEnv map[string]string) android.Config { 138 …nMixedModeBuild(configuration android.Config, firstCtx *android.Context, extraNinjaDeps []string) { 174 func runQueryView(queryviewDir, queryviewMarker string, configuration android.Config, ctx *android.… 201 func writeJsonModuleGraphAndActions(ctx *android.Context, graphPath string, actionsPath string) { 214 func writeBuildGlobsNinjaFile(ctx *android.Context, buildDir string, config interface{}) []string { 228 func writeDepFile(outputFile string, eventHandler metrics.EventHandler, ninjaDeps []string) { 242 func doChosenActivity(configuration android.Config, extraNinjaDeps []string) string { 367 func writeUsedEnvironmentFile(configuration android.Config, finalOutputFile string) { 391 func touch(path string) { 419 func getPathsToIgnoredBuildFiles(topDir string, generatedRoot string, srcDirBazelFiles []string, ve… [all …]
|
/build/blueprint/ |
D | glob.go | 25 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) { 40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) { 114 func globToKey(pattern string, excludes []string) globKey {
|
/build/soong/bpfix/bpfix/ |
D | bpfix.go | 37 func Reformat(input string) (string, error) { 288 func parse(name string, r io.Reader) (*parser.File, error) { 529 func getStringProperty(prop *parser.Property, fieldName string) string { 545 func indicateAttributeError(mod *parser.Module, attributeName string, format string, a ...interface… 908 func convertToSingleSource(mod *parser.Module, srcPropertyName string) { 1108 GetProperty(string) (*parser.Property, bool) argument 1109 RemoveProperty(string) bool argument 1112 func removeNestedProperty(mod *parser.Module, patchList *parser.PatchList, propName string) error { 1160 func removeObsoleteProperty(propName string) patchListModFunction { 1277 …perties(mod *parser.Module, patchList *parser.PatchList, canonicalName string, legacyName string) … [all …]
|
/build/soong/cc/config/ |
D | clang.go | 87 func ClangFilterUnknownCflags(cflags []string) []string { 92 func clangTidyNegateChecks(checks []string) []string { 104 func ClangRewriteTidyChecks(checks []string) []string { 113 func ClangLibToolingFilterUnknownCflags(libToolingFlags []string) []string { 117 func sorted(list []string) []string {
|