| /build/soong/android/ |
| D | test_asserts.go | 29 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) { 55 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) { 64 func AssertIntEquals(t *testing.T, message string, expected int, actual int) { 73 func AssertStringEquals(t *testing.T, message string, expected string, actual string) { 82 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) { 89 func AssertPathsRelativeToTopEquals(t *testing.T, message string, expected []string, actual Paths) { 96 …rtStringPathRelativeToTopEquals(t *testing.T, message string, config Config, expected string, actu… 103 …tringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []string, actu… 111 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) { 123 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) { [all …]
|
| D | util.go | 50 func JoinPathsWithPrefix(paths []Path, prefix string) string { 60 func JoinWithPrefix(strs []string, prefix string) string { 66 func JoinWithPrefixAndSeparator(strs []string, prefix string, sep string) string { 72 func JoinWithSuffixAndSeparator(strs []string, suffix string, sep string) string { 78 func JoinWithPrefixSuffixAndSeparator(strs []string, prefix, suffix, sep string) string { 174 func PrettyConcat(list []string, quote bool, lastSep string) string { 245 func HasAnyPrefix(s string, prefixList []string) bool { 255 func SubstringInList(list []string, substr string) bool { 265 func PrefixInList(list []string, prefix string) bool { 275 func SuffixInList(list []string, suffix string) bool { [all …]
|
| D | test_config.go | 26 func initTestConfig(buildDir string, env map[string]string) *config { 80 func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config { 143 func TestArchConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config… 150 func CreateTestConfiguredJarList(list []string) ConfiguredJarList {
|
| 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 | 65 ctx BuilderAndOtherModuleProviderContext, tool, ruleName string, outputFile WritablePath, 66 libraryName string, stripPrefix []string, modules ...ModuleProxy) { 101 ctx BuilderAndOtherModuleProviderContext, outputFile WritablePath, ruleName, libraryName string, 102 stripPrefix []string, modules ...ModuleProxy) { 111 ctx BuilderAndOtherModuleProviderContext, outputFile WritablePath, ruleName, libraryName string, 112 stripPrefix []string, modules ...ModuleProxy) { 121 ctx BuilderAndOtherModuleProviderContext, outputFile WritablePath, ruleName, libraryName string, 122 stripPrefix []string, modules ...ModuleProxy) {
|
| /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/cc/ |
| D | check.go | 29 func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) { 89 func CheckBadLinkerFlags(ctx BaseModuleContext, prop string, flags []string) { 123 func CheckBadHostLdlibs(ctx ModuleContext, prop string, flags []string) { 143 func CheckBadTidyFlags(ctx ModuleContext, prop string, flags []string) { 160 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/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 | 151 func FixtureWithLastReleaseApis(moduleNames ...string) android.FixturePreparer { 207 func FixtureWithPrebuiltApis(release2Modules map[string][]string) android.FixturePreparer { 211 …ixtureWithPrebuiltApisAndExtensions(apiLevel2Modules map[string][]string, extensionLevel2Modules m… 239 func prebuiltApisFilesForModules(apiLevels []string, modules []string) map[string][]byte { 270 func prebuiltExtensionApiFiles(extensionLevels []string, modules []string) map[string][]byte { 285 func FixtureConfigureBootJars(bootJars ...string) android.FixturePreparer { 314 func FixtureConfigureApexBootJars(bootJars ...string) android.FixturePreparer { 328 func FixtureUseLegacyCorePlatformApi(moduleNames ...string) android.FixturePreparer { 582 func getModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string) []string { 594 …duleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected []string) { [all …]
|
| D | prebuilt_apis.go | 76 func parsePrebuiltPath(ctx android.LoadHookContext, p string) (module string, version string, scope… 95 func parseFinalizedPrebuiltPath(ctx android.LoadHookContext, p string) (module string, version int,… 122 func prebuiltApiModuleName(moduleName, module, scope, version string) string { 125 func createImport(mctx android.LoadHookContext, module, scope, version, path, sdkVersion string, co… 142 func createApiModule(mctx android.LoadHookContext, name string, path string) { 156 func createCombinedApiFilegroupModule(mctx android.LoadHookContext, name string, srcs []string) { 171 …ateLatestApiModuleExtensionVersionFile(mctx android.LoadHookContext, name string, version string) { 184 func createEmptyFile(mctx android.LoadHookContext, name string) { 198 func globApiDirs(mctx android.LoadHookContext, p *prebuiltApis, api_dir_glob string) []string { 208 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 | 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 | 96 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) { 100 func startGlob(fs FileSystem, pattern string, excludes []string, 161 func glob(fs FileSystem, pattern string, hasRecursive bool, 243 func quickSplit(path string) (dir, file string) { 259 func isWild(pattern string) bool { 265 func filterExcludes(matches []string, excludes []string) ([]string, error) { 289 func filterDotFiles(matches []string) []string { 305 func Match(pattern, name string) (bool, error) { 364 func IsGlob(pattern string) bool { 369 func HasGlob(in []string) bool { [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/cmd/sbox/ |
| D | sbox.go | 70 func usageViolation(violation string) { 96 func findAllFilesUnder(root string) (paths []string) { 218 func createCommandScript(rawCommand, scriptPath, scriptPathInSandbox string) (*exec.Cmd, error) { 228 func readManifest(file string) (*sbox_proto.Manifest, error) { 291 func runCommand(command *sbox_proto.Command, tempDir string, commandIndex int) (depFile string, err… 415 func makeOutputDirs(copies []*sbox_proto.Copy, sandboxDir string) error { 428 func validateOutputFiles(copies []*sbox_proto.Copy, sandboxDir, outputDir, rawCommand string) error… 521 func copyFiles(copies []*sbox_proto.Copy, fromDir, toDir string, exists existsType, write writeType… 538 func copyOneFile(from string, to string, forceExecutable bool, exists existsType, 624 func copyRspFiles(rspFiles []*sbox_proto.RspFile, toDir, toDirInSandbox string) error { [all …]
|
| /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… 57 func fixtureAddPrebuiltApexForBootclasspathFragment(apex, fragment string) android.FixturePreparer { 273 …heckBootJarsPackageCheckRule(t *testing.T, result *android.TestResult, expectedModules ...string) { 282 func testSnapshotWithBootClasspathFragment_Contents(t *testing.T, sdk string, copyRules string) { 1061 func testSnapshotWithBootClasspathFragment_MinSdkVersion(t *testing.T, targetBuildRelease string, 1062 expectedSdkSnapshot string, 1063 expectedCopyRules string, 1064 expectedStubFlagsInputs []string, 1065 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/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/release_config/release_config_lib/ |
| D | util.go | 41 func (l *StringList) Set(v string) error { 63 func WriteMessage(path string, message proto.Message) (err error) { 86 func WriteFormattedMessage(path, format string, message proto.Message) (err error) { 121 func LoadMessage(path string, message proto.Message) error { 138 func WalkTextprotoFiles(root string, subdir string, Func fs.WalkDirFunc) error { 163 func warnf(format string, args ...any) (n int, err error) { 179 func validContainer(container string) bool { 183 func validReleaseConfigName(name string) bool {
|
| /build/soong/cmd/find_input_delta/find_input_delta_lib/ |
| D | internal_state.go | 32 func LoadState(filename string, fsys fs.ReadFileFS) (*fid_proto.PartialCompileInputs, error) { 48 func CreateState(inputs []string, inspect_contents bool, fsys StatReadFileFS) (*fid_proto.PartialCo… 84 func InspectFileContents(name string) ([]*fid_proto.PartialCompileInput, error) { 91 func inspectZipFileContents(name string) ([]*fid_proto.PartialCompileInput, error) { 114 func WriteState(s *fid_proto.PartialCompileInputs, path string) error { 122 func CompareInternalState(prior, other *fid_proto.PartialCompileInputs, target string) *FileList { 126 func CompareInputFiles(prior, other []*fid_proto.PartialCompileInput, name string) *FileList {
|
| /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 {
|
| /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 …]
|