Home
last modified time | relevance | path

Searched defs:string (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/build/soong/android/
Dtest_asserts.go28 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 …]
Dutil.go28 func CopyOf(s []string) []string {
34 func JoinWithPrefix(strs []string, prefix string) string {
52 func JoinWithSuffix(strs []string, suffix string, separator string) string {
115 func IndexList(s string, list []string) int {
126 func InList(s string, list []string) bool {
131 func HasAnyPrefix(s string, prefixList []string) bool {
141 func SubstringInList(list []string, substr string) bool {
151 func PrefixInList(list []string, prefix string) bool {
161 func SuffixInList(list []string, suffix string) bool {
171 func IndexListPred(pred func(s string) bool, list []string) int {
[all …]
Dexpand.go30 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) {
Dbazel_paths.go75 GetDirectDep(name string) (blueprint.Module, blueprint.DependencyTag)
85 func BazelLabelForModuleDeps(ctx BazelConversionPathContext, modules []string) bazel.LabelList {
103 func BazelLabelForModuleSrcSingle(ctx BazelConversionPathContext, path string) bazel.Label {
113 func BazelLabelForModuleSrc(ctx BazelConversionPathContext, paths []string) bazel.LabelList {
123 func BazelLabelForModuleSrcExcludes(ctx BazelConversionPathContext, paths, excludes []string) bazel…
137 func directoryHasBlueprint(fs pathtools.FileSystem, prefix string, components []string, componentIn…
243 func expandSrcsForBazel(ctx BazelConversionPathContext, paths, expandedExcludes []string) bazel.Lab…
291 func getOtherModuleLabel(ctx BazelConversionPathContext, dep, tag string) bazel.Label {
309 func bazelModuleLabel(ctx BazelConversionPathContext, module blueprint.Module, tag string) string {
319 func bazelShortLabel(label string) string {
[all …]
/build/soong/tradefed/
Dautogen.go29 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,
141testConfigTemplateProp *string, testSuites []string, config []Config, autoGenConfig *bool, testIns…
160 func AutoGenShellTestConfig(ctx android.ModuleContext, testConfigProp *string,
161testConfigTemplateProp *string, testSuites []string, config []Config, autoGenConfig *bool, outputF…
[all …]
/build/soong/ui/build/
Dutil.go26 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 …]
Denvironment.go52 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 {
Dbazel.go30 …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/
Dsymlink_forest.go25 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/finder/fs/
Dtest.go26 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 {
84 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time {
92 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) {
99 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) {
[all …]
/build/soong/cc/
Dcheck.go29 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) {
Dutil.go32 func ldDirsToFlags(dirs []string) string {
36 func libNamesToFlags(names []string) string {
48 func moduleToLibName(module string) (string, error) {
108 func addPrefix(list []string, prefix string) []string {
115 func addSuffix(list []string, suffix string) []string {
123 func makeSymlinkCmd(linkDirOnDevice string, linkName string, target string) string {
129 func copyFileRule(ctx android.SingletonContext, path android.Path, out string) android.OutputPath {
143 func combineNoticesRule(ctx android.SingletonContext, paths android.Paths, out string) android.Outp…
154 func writeStringToFileRule(ctx android.SingletonContext, content, out string) android.OutputPath {
165 func installMapListFileRule(ctx android.SingletonContext, m map[string]string, path string) android…
/build/soong/cmd/sbox/
Dsbox.go60 func usageViolation(violation string) {
86 func findAllFilesUnder(root string) (paths []string) {
198 func readManifest(file string) (*sbox_proto.Manifest, error) {
216 func runCommand(command *sbox_proto.Command, tempDir string) (depFile string, err error) {
344 func makeOutputDirs(copies []*sbox_proto.Copy, sandboxDir string) error {
357 func validateOutputFiles(copies []*sbox_proto.Copy, sandboxDir string) []error {
375 func copyFiles(copies []*sbox_proto.Copy, fromDir, toDir string, allowFromNotExists bool) error {
389 func copyOneFile(from string, to string, forceExecutable, allowFromNotExists bool) error {
451 func copyRspFiles(rspFiles []*sbox_proto.RspFile, toDir, toDirInSandbox string) error {
463 func copyOneRspFile(rspFile *sbox_proto.RspFile, toDir, toDirInSandbox string) error {
[all …]
/build/soong/java/
Dtesting.go121 func FixtureWithLastReleaseApis(moduleNames ...string) android.FixturePreparer {
148 func FixtureWithPrebuiltApis(release2Modules map[string][]string) android.FixturePreparer {
171 func prebuiltApisFilesForLibs(apiLevels []string, sdkLibs []string) map[string][]byte {
191 func FixtureConfigureBootJars(bootJars ...string) android.FixturePreparer {
220 func FixtureConfigureUpdatableBootJars(bootJars ...string) android.FixturePreparer {
344 …duleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected []string) {
360 …ormBootclasspathModules(t *testing.T, result *android.TestResult, name string, expected []string) {
391 …mBootclasspathFragments(t *testing.T, result *android.TestResult, name string, expected []string) {
398 func CheckHiddenAPIRuleInputs(t *testing.T, message string, expected string, hiddenAPIRule android.…
416 …atConfigInputs(t *testing.T, result *android.TestResult, message string, expectedPaths ...string) {
Dprebuilt_apis.go63 func parseJarPath(path string) (module string, apiver string, scope string) {
73 func parseApiFilePath(ctx android.LoadHookContext, path string) (module string, apiver string, scop…
88 func prebuiltApiModuleName(mctx android.LoadHookContext, module string, scope string, apiver string
92 func createImport(mctx android.LoadHookContext, module, scope, apiver, path, sdkVersion string, com…
109 func createApiModule(mctx android.LoadHookContext, name string, path string) {
123 func createEmptyFile(mctx android.LoadHookContext, name string) {
135 func getPrebuiltFiles(mctx android.LoadHookContext, p *prebuiltApis, name string) []string {
143 func getPrebuiltFilesInSubdir(mctx android.LoadHookContext, subdir string, name string) []string {
173 func createSystemModules(mctx android.LoadHookContext, apiver string) {
/build/blueprint/pathtools/
Dlists.go25 func PrefixPaths(paths []string, prefix string) []string {
33 func ReplaceExtensions(paths []string, extension string) []string {
43 func ReplaceExtension(path string, extension string) string {
Dglob.go92 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) {
96 func startGlob(fs FileSystem, pattern string, excludes []string,
153 func glob(fs FileSystem, pattern string, hasRecursive bool,
235 func saneSplit(path string) (dir, file string) {
251 func isWild(pattern string) bool {
257 func filterExcludes(matches []string, excludes []string) ([]string, error) {
281 func filterDotFiles(matches []string) []string {
297 func Match(pattern, name string) (bool, error) {
356 func IsGlob(pattern string) bool {
361 func HasGlob(in []string) bool {
[all …]
/build/soong/cmd/soong_ui/
Dmain.go105 func indexList(s string, list []string) int {
115 func inList(s string, list []string) bool {
292 func fixBadDanglingLink(ctx build.Context, name string) {
306 func dumpVar(ctx build.Context, config build.Config, args []string, _ string) {
356 func dumpVars(ctx build.Context, config build.Config, args []string, _ string) {
435 func dumpVarConfig(ctx build.Context, args ...string) build.Config {
439 func buildActionConfig(ctx build.Context, args ...string) build.Config {
519 func runMake(ctx build.Context, config build.Config, _ []string, logsDir string) {
552 func getCommand(args []string) (*command, []string, error) {
599 …irHelper(ctx build.Context, config build.Config, internalDistDirPath string, externalDistDirPath s…
/build/soong/cc/config/
Dclang.go232 func ClangFilterUnknownCflags(cflags []string) []string {
237 func clangTidyNegateChecks(checks []string) []string {
249 func ClangRewriteTidyChecks(checks []string) []string {
258 func ClangFilterUnknownLldflags(lldflags []string) []string {
263 func ClangLibToolingFilterUnknownCflags(libToolingFlags []string) []string {
267 func inListSorted(s string, list []string) bool {
278 func sorted(list []string) []string {
/build/soong/android/soongconfig/
Dconfig.go26 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/blueprint/proptools/
Descape.go24 func NinjaEscapeList(slice []string) []string {
37 func NinjaEscape(s string) string {
49 func ShellEscapeList(slice []string) []string {
81 func ShellEscape(s string) string {
96 func ShellEscapeIncludingSpaces(s string) string {
105 func NinjaAndShellEscapeList(slice []string) []string {
109 func NinjaAndShellEscape(s string) string {
/build/blueprint/
Dglob.go25 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/blueprint/bootstrap/
Dcleanup.go35 srcDir, buildDir string, under, exempt []string) error {
83 func parseNinjaLog(ninjaBuildDir string, under []string) ([]string, error) {
137 func removeFileAndEmptyDirs(path string) error {
/build/soong/cmd/soong_build/
Dmain.go93 func newConfig(srcDir, outDir string, availableEnv map[string]string) android.Config {
107 …nMixedModeBuild(configuration android.Config, firstCtx *android.Context, extraNinjaDeps []string) {
165 …leGraph(configuration android.Config, ctx *android.Context, path string, extraNinjaDeps []string) {
177 func doChosenActivity(configuration android.Config, extraNinjaDeps []string) string {
292 func writeUsedEnvironmentFile(configuration android.Config, finalOutputFile string) {
324 func writeFakeNinjaFile(extraNinjaDeps []string, buildDir string) {
339 func touch(path string) {
363 func runBp2Build(configuration android.Config, extraNinjaDeps []string) {
/build/soong/ui/build/paths/
Dlogs.go46 func procFallback(name string) (string, func(), error) {
57 func tmpFallback(name string) (addr string, cleanup func(), err error) {
84 func getSocketAddr(name string) (string, func(), error) {
112 func dial(name string, lookup socketAddrFunc, timeout time.Duration) (net.Conn, error) {
125 func listen(name string, lookup socketAddrFunc) (net.Listener, error) {
135 func SendLog(logSocket string, entry *LogEntry, done chan interface{}) {
139 func sendLog(logSocket string, lookup socketAddrFunc, timeout time.Duration, entry *LogEntry, done …
156 func LogListener(ctx context.Context, logSocket string) (chan *LogEntry, error) {
160 func logListener(ctx context.Context, logSocket string, lookup socketAddrFunc) (chan *LogEntry, err…

12345678910>>...13