Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 83) sorted by relevance

1234

/build/soong/symbol_inject/
Dmacho_test.go27 offset, size uint64
33 size: 128,
39 size: 128,
45 size: 128,
55 offset, size, err := findSymbol(file, testCase.symbol)
59 if offset != testCase.offset || size != testCase.size {
60 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
Delf_test.go26 offset, size uint64
32 size: 128,
38 size: 128,
44 size: 128,
54 offset, size, err := findSymbol(file, testCase.symbol)
58 if offset != testCase.offset || size != testCase.size {
59 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
Dsymbol_inject.go55 offset, size, err := findSymbol(file, symbol)
60 if uint64(len(value))+1 > size {
61 return fmt.Errorf("value length %d overflows symbol size %d", len(value), size)
66 expected := make([]byte, size)
67 existing := make([]byte, size)
79 buf := make([]byte, size)
86 offset, size, err := findSymbol(file, symbol)
91 if size != 8 {
92 return fmt.Errorf("symbol %q is not a uint64, it is %d bytes long", symbol, size)
138 size := symbol.Size
[all …]
Dpe_test.go27 offset, size uint64
33 size: 128,
39 size: 128,
45 size: 128,
65 size: 128,
83 size: 128,
103 size: 128,
122 size: 128,
132 offset, size, err := findSymbol(file, testCase.symbol)
136 if offset != testCase.offset || size != testCase.size {
[all …]
/build/make/tools/
Dfat16copy.py86 self.idx = self.size - amount
92 if self.idx > self.size:
93 self.idx = self.size
102 def __init__(self, fs, cluster, size=None): argument
111 self.size = size
113 if self.size is None:
114 self.size = fs.get_chain_size(cluster)
118 def read(self, size): argument
120 if self.idx + size > self.size:
121 size = self.size - self.idx
[all …]
/build/blueprint/proptools/
Dproptools.go30 r, size := utf8.DecodeRuneInString(fieldName)
32 if size == len(fieldName) {
35 if strings.IndexFunc(fieldName[size:], unicode.IsLower) == -1 &&
36 strings.IndexFunc(fieldName[size:], unicode.IsUpper) != -1 {
39 if len(fieldName) > size {
40 propertyName += fieldName[size:]
48 r, size := utf8.DecodeRuneInString(propertyName)
50 if len(propertyName) > size {
51 fieldName += propertyName[size:]
/build/soong/zip/
Drate_limit.go30 size int64 member
50 func (r *RateLimit) Request(size int64) {
52 size: size,
64 func (r *RateLimit) Finish(size int64) {
65 r.completions <- size
103 if capacity >= usedCapacity+currentRequest.size {
108 usedCapacity += currentRequest.size
/build/make/tools/product_config/test/com/android/build/config/
DCsvParserTest.java42 if (fields.length != actual.getFields().size()) { in assertLineEquals()
44 + " actual=" + actual.getFields().size() in assertLineEquals()
62 Assert.assertEquals(0, lines.size()); in testEmptyString()
70 Assert.assertEquals(1, lines.size()); in testLexerOneCharacter()
79 Assert.assertEquals(1, lines.size()); in testLexerTwoFieldsNoNewline()
88 Assert.assertEquals(1, lines.size()); in testLexerTwoFieldsNewline()
97 Assert.assertEquals(1, lines.size()); in testEndsWithTwoNewlines()
106 Assert.assertEquals(0, lines.size()); in testOnlyNewlines()
119 Assert.assertEquals(4, lines.size()); in testLexerComplex()
/build/soong/third_party/zip/
Dreader.go70 func NewReader(r io.ReaderAt, size int64) (*Reader, error) {
72 if err := zr.init(r, size); err != nil {
78 func (z *Reader) init(r io.ReaderAt, size int64) error {
79 end, err := readDirectoryEnd(r, size)
83 if end.directoryRecords > uint64(size)/fileHeaderLen {
84 ….Errorf("archive/zip: TOC declares impossible %d files in %d byte zip", end.directoryRecords, size)
89 rs := io.NewSectionReader(r, 0, size)
100 f := &File{zip: z, zipr: r, zipsize: size}
161 size := int64(f.CompressedSize64)
162 r := io.NewSectionReader(f.zipr, f.headerOffset+bodyOffset, size)
[all …]
Dandroid_test.go83 const size = uint32max + 1
89 UncompressedSize64: size,
90 CompressedSize64: size,
95 _, err = w.Write(make([]byte, size))
135 if g, w := toZipReader.File[0].CompressedSize64, uint64(size); g != w {
139 if g, w := toZipReader.File[0].UncompressedSize64, uint64(size); g != w {
150 const size = uint32max + 1
156 UncompressedSize64: size,
157 CompressedSize64: size,
162 _, err = f.Write(make([]byte, size))
Dzip_test.go234 const size = 1 << 32 // before the "END\n" part
235 buf := testZip64(t, size)
248 const size = 1<<32 - 1 - int64(len("END\n")) // before the "END\n" part
249 buf := testZip64(t, size)
253 func testZip64(t testing.TB, size int64) *rleBuffer {
255 chunks := int(size / chunkSize)
277 if frag := int(size % chunkSize); frag > 0 {
309 if frag := int(size % chunkSize); frag > 0 {
326 if size+int64(len("END\n")) >= 1<<32-1 {
332 if got, want := f0.UncompressedSize64, uint64(size)+uint64(len(end)); got != want {
[all …]
Dreader_test.go23 Source func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
311 rat, size := zt.Source()
312 z, err = NewReader(rat, size)
384 size := uint64(f.UncompressedSize)
385 if size == uint32max {
386 size = f.UncompressedSize64
387 } else if size != f.UncompressedSize64 {
388 …t.Errorf("%v: UncompressedSize=%#x does not match UncompressedSize64=%#x", f.Name, size, f.Uncompr…
401 if size != ft.Size {
402 t.Errorf("%v: uncompressed size %#x, want %#x", ft.Name, size, ft.Size)
[all …]
/build/make/tools/releasetools/
Dota_package_parser.py38 self.blocks_stashed += blocks.size()
39 self.current_stash_size += blocks.size()
45 self.current_stash_size -= self.stash_map[SHA1].size()
50 self.overlap_blocks_stashed += blocks.size()
65 def GetSizeString(size): argument
66 assert size >= 0
68 if size <= base:
69 return "{} bytes".format(size)
71 if size <= base * 1024 or units == 'G':
72 return "{:.1f}{}".format(size / base, units)
[all …]
Dbuild_image.py457 size = GetDiskUsage(out_file)
460 size = GetDiskUsage(in_dir)
462 "The tree size of %s is %d MB.", in_dir, size // BYTES_IN_MB)
468 size += reserved_size
470 size = common.RoundUpTo4K(size)
472 prop_dict["partition_size"] = str(size)
473 prop_dict["image_size"] = str(size)
478 size // BYTES_IN_MB, prop_dict["extfs_inode_count"])
495 size -= free_size
496 size += reserved_size
[all …]
Dblockimgdiff.py98 return (sum(sr.size() for (_, sr) in self.stash_before) -
99 sum(sr.size() for (_, sr) in self.use_stash))
392 total += blocks_to_write.size()
414 stashed_blocks += sr.size()
430 size = xf.src_ranges.size()
431 src_str_buffer = [str(size)]
445 free_size += sr.size()
454 self.AssertPartition(RangeSet(data=(0, size)), mapped_stashes)
457 self.AssertPartition(RangeSet(data=(0, size)), mapped_stashes)
469 tgt_size = xf.tgt_ranges.size()
[all …]
Dcheck_partition_sizes.py142 def _RoundPartitionSize(self, size): argument
145 return size
146 return (size + alignment - 1) // alignment * alignment
155 "+".join(str(size) for size in size_list),
166 "+".join(str(size) for size in partition_size_list),
255 "+".join(str(size) for size in group_size_list),
270 "+".join(str(size) for size in
/build/make/tools/product_config/src/com/android/build/config/
DMakeWriter.java79 final int size = values.size(); in writeAssign() local
82 if (size == 0) { in writeAssign()
84 } else if (size == 1) { in writeAssign()
89 } else if (size == 2 && values.get(0).toString().length() == 0) { in writeAssign()
97 for (int i = 1; i < size; i++) { in writeAssign()
148 final int size = list.size(); in writeFlat() local
149 for (int i = 0; i < size; i++) { in writeFlat()
151 if (i != size - 1) { in writeFlat()
DConvertMakeToGenericConfig.java57 if (blocks.size() < 2) { in convert()
59 + blocks.size()); in convert()
64 if (blocks.get(blocks.size() - 1).getBlockType() != MakeConfig.BlockType.AFTER) { in convert()
68 for (int index = 1; index < blocks.size() - 1; index++) { in convert()
81 for (int index = 1; index < blocks.size(); index++) { in convert()
193 if (words.size() == 0) { in convertInheritedVar()
198 if (words.size() > 2) { in convertInheritedVar()
DFlattenConfig.java70 if (rootNodes.size() == 0) { in flattenImpl()
73 } else if (rootNodes.size() != 1) { in flattenImpl()
270 if (valueList.size() != 1) { in flattenSingleVars()
277 + varName + " size=" + valueList.size() in flattenSingleVars()
342 if (children.size() > 0) { in flattenInheritsFrom()
388 if (items.size() > 0) { in assignToListVar()
389 for (int i = 0; i < items.size(); i++) { in assignToListVar()
435 final int size = list.size(); in flattenAssignList() local
436 for (int i = 0; i < size; i++) { in flattenAssignList()
439 if (i != size - 1) { in flattenAssignList()
/build/make/tools/zipalign/
DZipFile.h97 status_t add(const void* data, size_t size, const char* storageName, in add() argument
100 return addCommon(NULL, data, size, storageName, in add()
158 int getNumEntries(void) const { return mEntries.size(); } in getNumEntries()
220 status_t addCommon(const char* fileName, const void* data, size_t size,
227 const void* data, size_t size, uint32_t* pCRC32);
235 const void* data, size_t size, uint32_t* pCRC32);
DZipFile.cpp139 if (idx < 0 || idx >= (int) mEntries.size()) in getEntryByIndex()
162 for (idx = mEntries.size()-1; idx >= 0; idx--) { in getEntryByName()
179 int count = mEntries.size(); in discardEntries()
368 status_t ZipFile::addCommon(const char* fileName, const void* data, size_t size, in addCommon() argument
386 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addCommon()
425 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
435 long src = inputFp ? ftell(inputFp) : size; in addCommon()
456 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
466 uncompressedLen = inputFp ? ftell(inputFp) : size; in addCommon()
558 assert(mEntries.size() == mEOCD.mTotalNumEntries); in add()
[all …]
/build/make/tools/droiddoc/templates-pdk/assets/design/
Ddefault.css36 font-size: 48px;
63 font-size: 12px;
185 .vspace.size-1 {
188 .vspace.size-2 {
191 .vspace.size-3 {
194 .vspace.size-4 {
197 .vspace.size-5 {
200 .vspace.size-6 {
203 .vspace.size-7 {
206 .vspace.size-8 {
[all …]
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-docs.css18 font-size: 1em;
25 font-size: 13px;
34 font-size:12px;
77 font-size:12px;
219 font-size:10px;
243 font-size:1.7em;
247 font-size:.9em;
287 font-size:.9em;
303 font-size:0.9em;
338 font-size:.8em;
[all …]
Dyui-3.3.0-reset-min.css8size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:norm…
/build/soong/finder/fs/
Dreaddir.go146 func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
147 if len(b) < int(off+size) {
150 return readIntLE(b[off:], size), true
153 func readIntLE(b []byte, size uintptr) uint64 {
154 switch size {

1234