Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 43) sorted by relevance

12

/build/soong/cc/
Dandroidmk.go53 func (c *Module) subAndroidMk(entries *android.AndroidMkEntries, obj interface{}) {
60 androidmk.AndroidMkEntries(c, entries)
72 entries := android.AndroidMkEntries{
82 func(entries *android.AndroidMkEntries) {
84 entries.AddStrings("LOCAL_LOGTAGS_FILES", c.Properties.Logtags...)
87 entries.AddStrings("LOCAL_SHARED_LIBRARIES", c.Properties.AndroidMkSharedLibs...)
90 entries.AddStrings("LOCAL_STATIC_LIBRARIES", c.Properties.AndroidMkStaticLibs...)
93 entries.AddStrings("LOCAL_WHOLE_STATIC_LIBRARIES", c.Properties.AndroidMkWholeStaticLibs...)
96 entries.AddStrings("LOCAL_HEADER_LIBRARIES", c.Properties.AndroidMkHeaderLibs...)
98 entries.SetString("LOCAL_SOONG_LINK_TYPE", c.makeLinkType)
[all …]
/build/soong/java/
Dandroidmk.go45 func(entries *android.AndroidMkEntries) {
46 entries.SetBool("LOCAL_IS_HOST_MODULE", true)
47 entries.SetPath("LOCAL_PREBUILT_MODULE_FILE", output)
49 entries.SetPath("LOCAL_SOONG_DEX_JAR", library.dexJarFile)
51 entries.SetPath("LOCAL_SOONG_HEADER_JAR", library.headerJarFile)
52 entries.SetPath("LOCAL_SOONG_CLASSES_JAR", library.implementationAndResourcesJar)
53 entries.SetString("LOCAL_MODULE_STEM", library.Stem()+"-hostdex")
85 func(entries *android.AndroidMkEntries) {
86 entries.AddStrings("LOCAL_ADDITIONAL_CHECKED_MODULE", checkedModulePaths.Strings()...)
98 func(entries *android.AndroidMkEntries) {
[all …]
Dandroidmk_test.go35 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
38 actual := entries.EntryMap["LOCAL_REQUIRED_MODULES"]
188 entries := android.AndroidMkEntriesForTest(t, config, "", module)
189 if len(entries) != 2 {
190 t.Errorf("Expected 2 AndroidMk entries, got %d", len(entries))
193 distStrings := entries[0].GetDistForGoals(module)
232 entries := android.AndroidMkEntriesForTest(t, config, "", module)
233 if len(entries) != 2 {
234 t.Errorf("Expected 2 AndroidMk entries, got %d", len(entries))
237 distStrings := entries[0].GetDistForGoals(module)
[all …]
Dplatform_compat_config.go134 func(entries *android.AndroidMkEntries) {
135 entries.SetString("LOCAL_MODULE_PATH", p.installDirPath.ToMakePath().String())
136 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", p.configFile.Base())
/build/soong/ui/tracer/
Dmicrofactory.go31 func (t *tracerImpl) importEvents(entries []*eventEntry) {
32 sort.Slice(entries, func(i, j int) bool {
33 return entries[i].Begin < entries[j].Begin
37 for _, entry := range entries {
74 entries := []*eventEntry{}
91 entries = append(entries, &eventEntry{
100 t.importEvents(entries)
/build/make/tools/releasetools/
Dimg_from_target_files.py87 def CopyZipEntries(input_file, output_file, entries): argument
99 logger.info('Writing %d entries to archive...', len(entries))
101 cmd.extend(entries)
117 entries = [
135 entries.append('{}:{}'.format(image_path, image))
136 return entries
149 entries = []
153 entries.append('{}:{}'.format(image, os.path.basename(image)))
154 return entries
194 entries = EntriesForUserImages(input_file)
[all …]
Dimg_from_target_files87 def CopyZipEntries(input_file, output_file, entries): argument
99 logger.info('Writing %d entries to archive...', len(entries))
101 cmd.extend(entries)
117 entries = [
135 entries.append('{}:{}'.format(image_path, image))
136 return entries
149 entries = []
153 entries.append('{}:{}'.format(image, os.path.basename(image)))
154 return entries
194 entries = EntriesForUserImages(input_file)
[all …]
Dtest_ota_from_target_files.py466 entries = [
470 zip_file = PropertyFilesTest.construct_zip_package(entries)
508 entries = [
514 zip_file = PropertyFilesTest.construct_zip_package(entries)
608 def construct_zip_package(entries): argument
611 for entry in entries:
626 def _verify_entries(self, input_file, tokens, entries): argument
627 for entry in entries:
639 entries = (
643 zip_file = self.construct_zip_package(entries)
[all …]
Dtest_common.py648 entries = check_zip.namelist()
649 self.assertTrue('Test1' in entries)
650 self.assertFalse('Test2' in entries)
651 self.assertTrue('Test3' in entries)
656 entries = check_zip.namelist()
657 self.assertTrue('Test1' in entries)
658 self.assertFalse('Test2' in entries)
659 self.assertTrue('Test3' in entries)
663 entries = check_zip.namelist()
664 self.assertTrue('Test1' in entries)
[all …]
/build/soong/finder/fs/
Dreaddir.go44 entries := make([]*dirEntryInfo, 0, 100)
56 entries = parseDirent(buf[:n], entries)
59 ret := make([]DirEntryInfo, 0, len(entries))
61 for _, entry := range entries {
81 func parseDirent(buf []byte, entries []*dirEntryInfo) []*dirEntryInfo {
85 return entries
120 entries = append(entries, &dirEntryInfo{string(name), mode, modeExists})
122 return entries
Dreaddir_test.go306 entries := parseDirent(testCase.in, nil)
307 if !reflect.DeepEqual(testCase.out, entries) {
308 t.Fatalf("expected:\n %v\ngot:\n %v\n", testCase.out, entries)
/build/soong/sh/
Dsh_binary.go179 func(entries *android.AndroidMkEntries) {
180 s.customAndroidMkEntries(entries)
181 entries.SetString("LOCAL_MODULE_RELATIVE_PATH", proptools.String(s.properties.Sub_dir))
187 func (s *ShBinary) customAndroidMkEntries(entries *android.AndroidMkEntries) {
188 entries.SetString("LOCAL_MODULE_SUFFIX", "")
189 entries.SetString("LOCAL_MODULE_STEM", s.outputFilePath.Rel())
191 entries.SetString("LOCAL_MODULE_SYMLINKS", strings.Join(s.properties.Symlinks, " "))
238 func(entries *android.AndroidMkEntries) {
239 s.customAndroidMkEntries(entries)
240 entries.SetPath("LOCAL_MODULE_PATH", s.installDir.ToMakePath())
[all …]
Dsh_binary_test.go69 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
72 actualPath := entries.EntryMap["LOCAL_MODULE_PATH"][0]
93 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
96 actualPath := entries.EntryMap["LOCAL_MODULE_PATH"][0]
102 actualData := entries.EntryMap["LOCAL_TEST_DATA"]
/build/soong/apex/
Dprebuilt.go234 func(entries *android.AndroidMkEntries) {
235 entries.SetString("LOCAL_MODULE_PATH", p.installDir.ToMakePath().String())
236 entries.SetString("LOCAL_MODULE_STEM", p.installFilename)
237 entries.SetBoolIfTrue("LOCAL_UNINSTALLABLE_MODULE", !p.installable())
238 entries.AddStrings("LOCAL_OVERRIDES_MODULES", p.properties.Overrides...)
240 entries.SetString("LOCAL_POST_INSTALL_CMD", strings.Join(p.compatSymlinks, " && "))
354 func(entries *android.AndroidMkEntries) {
355 entries.SetString("LOCAL_MODULE_PATH", a.installDir.ToMakePath().String())
356 entries.SetString("LOCAL_MODULE_STEM", a.installFilename)
357 entries.SetBoolIfTrue("LOCAL_UNINSTALLABLE_MODULE", !a.installable())
[all …]
/build/soong/cmd/extract_apks/
Dmain.go52 entries map[string]*zip.File member
56 apkSet := &ApkSet{path: path, entries: make(map[string]*zip.File)}
62 apkSet.entries[f.Name] = f
69 tocFile, ok := apkSet.entries["toc.pb"]
320 entries []string member
336 result.entries = append(result.entries, apkdesc.GetPath())
394 for _, apk := range selected.entries {
395 apkFile, ok := apkSet.entries[apk]
422 if len(selected.entries) != 1 {
423 return fmt.Errorf("Too many matching entries for extract-single:\n%v", selected.entries)
[all …]
Dmain_test.go423 entries map[string]string member
427 if x, ok := w.entries[out]; ok {
430 w.entries[out] = file.Name
474 apkSet := ApkSet{entries: make(map[string]*zip.File)}
477 apkSet.entries[in] = &zip.File{FileHeader: zip.FileHeader{Name: in}}
478 sel.entries = append(sel.entries, in)
486 if !reflect.DeepEqual(testCase.expectedZipEntries, writer.entries) {
487 t.Errorf("expected zip entries %v, got %v", testCase.expectedZipEntries, writer.entries)
/build/soong/etc/
Dprebuilt_etc.go224 func(entries *android.AndroidMkEntries) {
225 entries.SetString("LOCAL_MODULE_TAGS", "optional")
226 entries.SetString("LOCAL_MODULE_PATH", p.installDirPath.ToMakePath().String())
227 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", p.outputFilePath.Base())
229 entries.AddStrings("LOCAL_MODULE_SYMLINKS", p.properties.Symlinks...)
231 entries.SetString("LOCAL_UNINSTALLABLE_MODULE", strconv.FormatBool(!p.Installable()))
234 entries.AddStrings("LOCAL_ADDITIONAL_DEPENDENCIES", path.String())
Dprebuilt_etc_test.go201 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
203 if value, ok := entries.EntryMap[k]; ok {
208 t.Errorf("No %s defined, saw %q", k, entries.EntryMap)
/build/soong/android/
Dandroidmk_test.go266 entries := AndroidMkEntriesForTest(t, config, "", module)
267 if len(entries) != 1 {
268 t.Errorf("Expected a single AndroidMk entry, got %d", len(entries))
270 androidMkLines := entries[0].GetDistForGoals(module)
Dmakefile_goal.go83 func(w io.Writer, name, prefix, moduleDir string, entries *AndroidMkEntries) {
/build/soong/cmd/merge_zips/
Dmerge_zips.go307 entries := make([]string, len(oz.sourceByDest))
310 entries[i] = entry
313 return entries
317 entries := oz.entriesArray()
318 …sort.SliceStable(entries, func(i, j int) bool { return jar.EntryNamesLess(entries[i], entries[j]) …
319 return entries
323 entries := oz.entriesArray()
324 sort.Strings(entries)
325 return entries
328 func (oz *OutputZip) writeEntries(entries []string) error {
[all …]
Dmerge_zips_test.go56 entries []testZipEntry member
66 tiz.reader = testZipEntriesToZipReader(tiz.entries)
245 inputZips[i] = &testInputZip{name: "in" + strconv.Itoa(i), entries: in}
280 func testZipEntriesToBuf(entries []testZipEntry) []byte {
284 for _, e := range entries {
309 func testZipEntriesToZipReader(entries []testZipEntry) *zip.Reader {
310 b := testZipEntriesToBuf(entries)
/build/soong/finder/
Dfinder.go226 filter := func(entries DirEntries) (dirNames []string, fileNames []string) {
227 return entries.DirNames, entries.FileNames
241 filter := func(entries DirEntries) (dirNames []string, fileNames []string) {
243 for _, foundName := range entries.FileNames {
248 return entries.DirNames, matches
263 filter := func(entries DirEntries) (dirNames []string, fileNames []string) {
265 for _, foundName := range entries.FileNames {
274 return entries.DirNames, matches
1455 entries := DirEntries{
1458 entries.DirNames = make([]string, 0, len(node.children))
[all …]
/build/make/tools/zipalign/
DREADME.txt28 Alterations to the archive, such as renaming or deleting entries, will
30 entries. Files added to an "aligned" archive will not be aligned.
/build/soong/ui/build/
Dpath.go129 entries, err := paths.LogListener(ctx.Context, interposer+"_log")
135 for log := range entries {

12