Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 41) sorted by relevance

12

/build/soong/shared/
Denv.go40 contents := make(envFileData, 0, len(envDeps))
42 contents = append(contents, envFileEntry{key, value})
45 sort.Sort(contents)
47 data, err := json.MarshalIndent(contents, "", " ")
66 var contents envFileData
68 err = json.Unmarshal(data, &contents)
74 for _, entry := range contents {
103 var contents envFileData
104 err = json.Unmarshal(data, &contents)
109 for _, entry := range contents {
/build/soong/bloaty/
Dbloaty_merger_test.py29 self.fs.create_file("file1.bloaty.csv", contents=csv_content)
44 self.fs.create_file("file1.bloaty.csv", contents=csv_content)
53 self.fs.create_file("files.lst", contents=file_list)
54 self.fs.create_file("file1.bloaty.csv", contents=file1_content)
55 self.fs.create_file("file2.bloaty.csv", contents=file2_content)
/build/soong/jar/
Djar.go87 func ManifestFileContents(contents []byte) (*zip.FileHeader, []byte, error) {
88 b, err := manifestContents(contents)
105 func manifestContents(contents []byte) ([]byte, error) {
110 if !bytes.Contains(contents, manifestMarker) {
111 finalBytes = append(append(header, contents...), byte('\n'))
113 finalBytes = contents
/build/soong/java/
Dbootclasspath_fragment_test.go40 contents: ["foo"],
53 contents: ["foo"],
69 contents: ["foo", "bar"],
88 contents: ["foo", "bar"],
106 contents: [
115 contents: [
192 contents: ["mysdklibrary"],
Dbootclasspath_fragment.go160 …produceHiddenAPIOutput(ctx android.ModuleContext, contents []android.Module, input HiddenAPIFlagIn…
206 contents := m.properties.Contents
207 if len(contents) == 0 {
297 contents := b.properties.Contents
298 if !reflect.DeepEqual(configuredJars, contents) {
300 configuredJars, contents)
426 var contents []android.Module
430 contents = append(contents, module)
446 hiddenAPIOutput := b.generateHiddenAPIBuildActions(ctx, contents, fragments)
570 …ragmentModule) generateHiddenAPIBuildActions(ctx android.ModuleContext, contents []android.Module,…
[all …]
Dclasspath_element.go49 contents := []string{}
51 contents = append(contents, module.String())
53 return fmt.Sprintf("fragment(%s, %s)", b.Fragment, strings.Join(contents, ", "))
Dhiddenapi_modular.go718 func (i *HiddenAPIFlagInput) gatherStubLibInfo(ctx android.ModuleContext, contents []android.Module…
733 for _, module := range contents {
935 func hiddenAPIRulesForBootclasspathFragment(ctx android.ModuleContext, contents []android.Module, i…
939 bootDexInfoByModule := extractBootDexInfoFromModules(ctx, contents)
946 classesJars := extractClassesJarsFromModules(contents)
1015 func extractBootDexJarsFromModules(ctx android.ModuleContext, contents []android.Module) bootDexJar…
1017 for _, module := range contents {
1064 func extractBootDexInfoFromModules(ctx android.ModuleContext, contents []android.Module) bootDexInf…
1066 for _, module := range contents {
1095 func extractClassesJarsFromModules(contents []android.Module) android.Paths {
[all …]
Dclasspath_fragment.go101 func gatherPossibleUpdatableModuleNamesAndStems(ctx android.ModuleContext, contents []string, tag b…
103 for _, name := range contents {
Dsystemserver_classpath_fragment_test.go102 `\Qempty contents are not allowed\E`)).
/build/soong/apex/
Dbootclasspath_fragment_test.go103 contents: ["baz", "quuz"],
201 contents: ["baz", "quuz"],
209 contents: ["foo", "bar"],
340 contentsInsert := func(contents []string) string {
342 if contents != nil {
343 insert = fmt.Sprintf(`contents: ["%s"],`, strings.Join(contents, `", "`))
348 addSource := func(contents ...string) android.FixturePreparer {
358 `, contentsInsert(contents))
363 addPrebuilt := func(prefer bool, contents ...string) android.FixturePreparer {
387 `, contentsInsert(contents), prefer)
[all …]
Dclasspath_element_test.go85 contents: [
132 contents: [
162 contents: ["othersdklibrary"],
227 …expectFragmentElement := func(module android.Module, contents ...android.Module) java.ClasspathEle…
228 return &java.ClasspathFragmentElement{module, contents}
Dplatform_bootclasspath_test.go97 contents: ["bar"],
200 contents: [
245 contents: ["bar"],
419 contents: [
Dsystemserver_classpath_fragment_test.go60 contents: [
/build/soong/sdk/
Dupdate.go403 contents := bp.content.String()
404 syntaxCheckSnapshotBpFile(ctx, contents)
571 func syntaxCheckSnapshotBpFile(ctx android.ModuleContext, contents string) {
572 errs := android.CheckBlueprintSyntax(ctx, "Android.bp", contents)
577 Generated Android.bp contents
580 for i, line := range strings.Split(contents, "\n") {
805 func generateBpContents(contents *generatedContents, bpFile *bpFile) {
806 generateFilteredBpContents(contents, bpFile, func(*bpModule) bool {
811 func generateFilteredBpContents(contents *generatedContents, bpFile *bpFile, moduleFilter func(modu…
812 contents.Printfln("// This is auto-generated. DO NOT EDIT.")
[all …]
Dbp_test.go185 contents := &generatedContents{}
186 outputPropertySet(contents, set)
187 …android.AssertTrimmedStringEquals(t, "removing property failed", "name: \"name\",\n", contents.con…
197 contents := &generatedContents{}
198 outputPropertySet(contents, set)
199 …android.AssertTrimmedStringEquals(t, "removing property set failed", "name: \"name\",\n", contents
Dbootclasspath_fragment_sdk_test.go101 contents: ["mybootlib"],
135 contents: ["mybootlib"],
162 contents: ["mysdk_mybootlib@current"],
256 contents: [
324 contents: [
408 contents: [
562 contents: ["mybootlib"],
590 contents: ["mysdk_mybootlib@1"],
642 contents: ["mybootlib"],
707 contents: ["mybootlib"],
/build/soong/android/
Dfixture.go265 func FixtureAddFile(path string, contents []byte) FixturePreparer {
271 fs[path] = contents
278 func FixtureAddTextFile(path string, contents string) FixturePreparer {
279 return FixtureAddFile(path, []byte(contents))
285 func FixtureOverrideFile(path string, contents []byte) FixturePreparer {
287 fs[path] = contents
294 func FixtureOverrideTextFile(path string, contents string) FixturePreparer {
295 return FixtureOverrideFile(path, []byte(contents))
299 func FixtureWithRootAndroidBp(contents string) FixturePreparer {
300 return FixtureAddTextFile("Android.bp", contents)
[all …]
Dapex.go573 inApex = inApex.merge(apexContents.contents[mctx.ModuleName()])
695 contents map[string]ApexMembership member
702 func NewApexContents(contents map[string]ApexMembership) *ApexContents {
704 contents: contents,
734 return ac.contents[moduleName] == directlyInApex
740 return ac.contents[moduleName] != notInApex
745 for _, contents := range apexInfo.ApexContents {
746 if !contents.DirectlyInApex(moduleName) {
/build/soong/zip/
Dzip_test.go59 func fh(name string, contents []byte, method uint16) zip.FileHeader {
63 CRC32: crc32.ChecksumIEEE(contents),
64 UncompressedSize64: uint64(len(contents)),
69 func fhManifest(contents []byte) zip.FileHeader {
73 CRC32: crc32.ChecksumIEEE(contents),
74 UncompressedSize64: uint64(len(contents)),
/build/soong/scripts/
Dmanifest_check.py256 contents = json.load(f)
257 module_to_libname[contents['Name']] = contents['ProvidesUsesLibrary']
/build/blueprint/pathtools/
Dfs.go227 contents, err := dir.Readdirnames(-1)
232 sort.Strings(contents)
233 return contents, nil
530 contents, err := fs.ReadDirNames(name)
536 for _, f := range contents {
/build/soong/finder/fs/
Dfs.go55 ReadDir(path string) (contents []DirEntryInfo, err error)
107 func (osFs) ReadDir(path string) (contents []DirEntryInfo, err error) {
113 contents = append(contents, entry)
116 return contents, nil
526 func (m *MockFs) ReadDir(path string) (contents []DirEntryInfo, err error) {
/build/soong/cmd/extract_apks/bundle_proto/
Dconfig.proto1 // Messages describing APK Set's table of contents (toc.pb entry).
115 // would be outputted to "assets/level1_textures". File contents are
/build/blueprint/microfactory/
Dmicrofactory_test.go391 writeFile := func(name, contents string) {
392 if err := ioutil.WriteFile(filepath.Join(dir, name), []byte(contents), 0666); err != nil {
/build/soong/cmd/zip2zip/
Dzip2zip_test.go215 err: fmt.Errorf(`multiple entries for "a/a" with different contents`),

12