/build/soong/android/ |
D | test_asserts.go | 29 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) { 38 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) { 47 func AssertIntEquals(t *testing.T, message string, expected int, actual int) { 56 func AssertStringEquals(t *testing.T, message string, expected string, actual string) { 65 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) { 72 func AssertPathsRelativeToTopEquals(t *testing.T, message string, expected []string, actual Paths) { 79 …rtStringPathRelativeToTopEquals(t *testing.T, message string, config Config, expected string, actu… 86 …tringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []string, actu… 94 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) { 106 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) { [all …]
|
D | util.go | 51 func JoinPathsWithPrefix(paths []Path, prefix string) string { 61 func JoinWithPrefix(strs []string, prefix string) string { 67 func JoinWithPrefixAndSeparator(strs []string, prefix string, sep string) string { 73 func JoinWithSuffixAndSeparator(strs []string, suffix string, sep string) string { 79 func JoinWithPrefixSuffixAndSeparator(strs []string, prefix, suffix, sep string) string { 205 func HasAnyPrefix(s string, prefixList []string) bool { 215 func SubstringInList(list []string, substr string) bool { 225 func PrefixInList(list []string, prefix string) bool { 235 func SuffixInList(list []string, suffix string) bool { 245 func IndexListPred(pred func(s string) bool, list []string) int { [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 | test_config.go | 27 func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config { 131 func TestArchConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config… 138 func CreateTestConfiguredJarList(list []string) ConfiguredJarList {
|
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/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 {
|
/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/cc/ |
D | check.go | 29 func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) { 85 func CheckBadLinkerFlags(ctx BaseModuleContext, prop string, flags []string) { 119 func CheckBadHostLdlibs(ctx ModuleContext, prop string, flags []string) { 139 func CheckBadTidyFlags(ctx ModuleContext, prop string, flags []string) { 156 func CheckBadTidyChecks(ctx ModuleContext, prop string, checks []string) {
|
D | util.go | 90 func addPrefix(list []string, prefix string) []string { 98 func makeSymlinkCmd(linkDirOnDevice string, linkName string, target string) string { 104 func WriteStringToFileRule(ctx android.SingletonContext, content, out string) android.OutputPath { 115 func installMapListFileRule(ctx android.SingletonContext, m map[string]string, path string) android…
|
/build/soong/java/ |
D | testing.go | 148 func FixtureWithLastReleaseApis(moduleNames ...string) android.FixturePreparer { 199 func FixtureWithPrebuiltApis(release2Modules map[string][]string) android.FixturePreparer { 203 …ixtureWithPrebuiltApisAndExtensions(apiLevel2Modules map[string][]string, extensionLevel2Modules m… 231 func FixtureWithPrebuiltIncrementalApis(apiLevel2Modules map[string][]string) android.FixturePrepar… 254 func prebuiltApisFilesForModules(apiLevels []string, modules []string) map[string][]byte { 285 func prebuiltExtensionApiFiles(extensionLevels []string, modules []string) map[string][]byte { 300 func FixtureConfigureBootJars(bootJars ...string) android.FixturePreparer { 329 func FixtureConfigureApexBootJars(bootJars ...string) android.FixturePreparer { 343 func FixtureUseLegacyCorePlatformApi(moduleNames ...string) android.FixturePreparer { 591 func getModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string) []string { [all …]
|
D | prebuilt_apis.go | 81 func parsePrebuiltPath(ctx android.LoadHookContext, p string) (module string, version string, scope… 100 func parseFinalizedPrebuiltPath(ctx android.LoadHookContext, p string, allowIncremental bool) (modu… 127 func prebuiltApiModuleName(mctx android.LoadHookContext, module, scope, version string) string { 130 func createImport(mctx android.LoadHookContext, module, scope, version, path, sdkVersion string, co… 147 func createApiModule(mctx android.LoadHookContext, name string, path string) { 161 func createCombinedApiFilegroupModule(mctx android.LoadHookContext, name string, srcs []string) { 176 …ateLatestApiModuleExtensionVersionFile(mctx android.LoadHookContext, name string, version string) { 189 func createEmptyFile(mctx android.LoadHookContext, name string) { 203 func globApiDirs(mctx android.LoadHookContext, p *prebuiltApis, api_dir_glob string) []string { 213 func globExtensionDirs(mctx android.LoadHookContext, p *prebuiltApis, extension_dir_glob string) []… [all …]
|
/build/blueprint/proptools/ |
D | escape.go | 29 func NinjaEscapeList(slice []string) []string { 50 func NinjaEscape(s string) string { 62 func ShellEscapeList(slice []string) []string { 79 func ShellEscapeListIncludingSpaces(slice []string) []string { 118 func ShellEscape(s string) string { 133 func ShellEscapeIncludingSpaces(s string) string { 142 func NinjaAndShellEscapeList(slice []string) []string { 146 func NinjaAndShellEscapeListIncludingSpaces(slice []string) []string { 150 func NinjaAndShellEscape(s string) string { 154 func NinjaAndShellEscapeIncludingSpaces(s string) string {
|
/build/blueprint/pathtools/ |
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 …]
|
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 {
|
/build/soong/cmd/sbox/ |
D | sbox.go | 67 func usageViolation(violation string) { 93 func findAllFilesUnder(root string) (paths []string) { 215 func createCommandScript(rawCommand, scriptPath, scriptPathInSandbox string) (*exec.Cmd, error) { 225 func readManifest(file string) (*sbox_proto.Manifest, error) { 243 func runCommand(command *sbox_proto.Command, tempDir string, commandIndex int) (depFile string, err… 361 func makeOutputDirs(copies []*sbox_proto.Copy, sandboxDir string) error { 374 func validateOutputFiles(copies []*sbox_proto.Copy, sandboxDir, outputDir, rawCommand string) error… 467 func copyFiles(copies []*sbox_proto.Copy, fromDir, toDir string, exists existsType, write writeType… 484 func copyOneFile(from string, to string, forceExecutable bool, exists existsType, 570 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/cmd/release_config/crunch_flags/ |
D | main.go | 39 func RenameNext(name string) string { 46 func WriteFile(path string, message proto.Message) error { 59 func WalkValueFiles(dir string, Func fs.WalkDirFunc) error { 77 func ProcessBuildFlags(dir string, namespaceMap map[string]string) error { 182 func ProcessBuildConfigs(dir, name string, paths []string, releaseProto *rc_proto.ReleaseConfig) er… 242 func ProcessReleaseConfigMap(dir string, descriptionMap map[string]string) error {
|
/build/soong/sdk/ |
D | bootclasspath_fragment_sdk_test.go | 29 func fixtureAddPlatformBootclasspathForBootclasspathFragment(apex, fragment string) android.Fixture… 34 …ormBootclasspathForBootclasspathFragmentWithExtra(apex, fragment, extraFragments string) android.F… 56 func fixtureAddPrebuiltApexForBootclasspathFragment(apex, fragment string) android.FixturePreparer { 258 …heckBootJarsPackageCheckRule(t *testing.T, result *android.TestResult, expectedModules ...string) { 267 func testSnapshotWithBootClasspathFragment_Contents(t *testing.T, sdk string, copyRules string) { 1032 func testSnapshotWithBootClasspathFragment_MinSdkVersion(t *testing.T, targetBuildRelease string, 1033 expectedSdkSnapshot string, 1034 expectedCopyRules string, 1035 expectedStubFlagsInputs []string, 1036 suffix string) {
|
/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 } 108 func findGitRoots(dirs []string) []string { 121 func findGitRoot(dir string) string { 140 func convertInstalledMap(installMaps []string) []*license_metadata_proto.InstallMap { 159 func convertDependencies(deps []string) []*license_metadata_proto.AnnotatedDependency { 182 func writeMetadata(file string, metadata *license_metadata_proto.LicenseMetadata) error {
|
/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… 910 func convertToSingleSource(mod *parser.Module, srcPropertyName string) { 1110 GetProperty(string) (*parser.Property, bool) argument 1111 RemoveProperty(string) bool argument 1114 func removeNestedProperty(mod *parser.Module, patchList *parser.PatchList, propName string) error { 1162 func removeObsoleteProperty(propName string) patchListModFunction { 1279 …perties(mod *parser.Module, patchList *parser.PatchList, canonicalName string, legacyName string) … [all …]
|
/build/blueprint/ |
D | glob.go | 26 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) { 41 func (c *Context) glob(pattern string, excludes []string) ([]string, error) { 115 func globToKey(pattern string, excludes []string) globKey {
|
/build/soong/cmd/soong_ui/ |
D | main.go | 98 func indexList(s string, list []string) int { 108 func inList(s string, list []string) bool { 112 func deleteStaleMetrics(metricsFilePathSlice []string) error { 303 func dumpVar(ctx build.Context, config build.Config, args []string) { 355 func dumpVars(ctx build.Context, config build.Config, args []string) { 437 func dumpVarConfig(ctx build.Context, args ...string) build.Config { 441 func buildActionConfig(ctx build.Context, args ...string) build.Config { 534 func runMake(ctx build.Context, config build.Config, _ []string) { 564 func getCommand(args []string) (*command, []string, error) {
|
/build/soong/cmd/release_config/release_config_lib/ |
D | util.go | 40 func (l *StringList) Set(v string) error { 62 func WriteMessage(path string, message proto.Message) (err error) { 85 func WriteFormattedMessage(path, format string, message proto.Message) (err error) { 120 func LoadMessage(path string, message proto.Message) error { 137 func WalkTextprotoFiles(root string, subdir string, Func fs.WalkDirFunc) error { 162 func warnf(format string, args ...any) (n int, err error) { 178 func validContainer(container string) bool {
|
/build/soong/dexpreopt/ |
D | testing.go | 117 func FixtureSetArtBootJars(bootJars ...string) android.FixturePreparer { 124 func FixtureSetTestOnlyArtBootImageJars(bootJars ...string) android.FixturePreparer { 131 func FixtureSetBootJars(bootJars ...string) android.FixturePreparer { 138 func FixtureSetApexBootJars(bootJars ...string) android.FixturePreparer { 145 func FixtureSetStandaloneSystemServerJars(jars ...string) android.FixturePreparer { 152 func FixtureSetSystemServerJars(jars ...string) android.FixturePreparer { 159 func FixtureSetApexSystemServerJars(jars ...string) android.FixturePreparer { 167 func FixtureSetApexStandaloneSystemServerJars(jars ...string) android.FixturePreparer { 181 func FixtureSetBootImageProfiles(profiles ...string) android.FixturePreparer { 209 func FixtureSetEnableUffdGc(value string) android.FixturePreparer {
|