/build/soong/symbol_inject/ |
D | macho_test.go | 27 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)
|
D | elf_test.go | 26 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)
|
D | symbol_inject.go | 55 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 …]
|
D | pe_test.go | 27 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/soong/zip/ |
D | rate_limit.go | 30 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/ |
D | fat16copy.py | 86 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/ |
D | proptools.go | 30 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/make/tools/product_config/test/com/android/build/config/ |
D | CsvParserTest.java | 42 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/ |
D | android_test.go | 83 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))
|
D | reader.go | 70 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 …]
|
/build/make/tools/compliance/ |
D | policy_shareprivacyconflicts.go | 51 size := 0 57 size += cs.Intersection(ImpliesShared).Len() * cs.Intersection(ImpliesPrivate).Len() 59 if size == 0 { 62 result := make([]SourceSharePrivacyConflict, 0, size)
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | MakeWriter.java | 79 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()
|
D | ConvertMakeToGenericConfig.java | 57 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()
|
/build/make/tools/releasetools/ |
D | ota_package_parser.py | 38 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 …]
|
D | blockimgdiff.py | 98 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 …]
|
D | build_image.py | 247 def CalculateSizeAndReserved(prop_dict, size): argument 258 return max(size * 1003 // 1000, 256 * 1024) 263 return int(size * 1.1) + reserved_size 562 size = GetDiskUsage(image_path) 565 size = GetDiskUsage(out_file) 567 size = GetDiskUsage(in_dir) 569 "The tree size of %s is %d MB.", in_dir, size // BYTES_IN_MB) 570 size = CalculateSizeAndReserved(prop_dict, size) 572 size = common.RoundUpTo4K(size) 574 prop_dict["partition_size"] = str(size) [all …]
|
D | check_partition_sizes.py | 142 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
|
D | test_ota_utils.py | 54 (offset, size) = ota_utils.GetZipEntryOffset(zfp, zinfo) 55 self.assertEqual(size, zinfo.file_size)
|
/build/bazel/toolchains/clang/host/linux-x86/ |
D | cc_toolchain_features_linker_alignment_test.bzl | 123 """ Checks that max-page-size flag is not present for arm targets. 140 "-Wl,-z,max-page-size=4096", 141 "-Wl,-z,max-page-size=16384", 142 "-Wl,-z,max-page-size=65536", 148 """ Checks that max-page-size flag is present for arm64 targets. 164 "-Wl,-z,max-page-size=4096", 171 """ Checks that max-page-size flag has the custom alignment for arm64. 187 "-Wl,-z,max-page-size=16384", 194 """ Checks that max-page-size flag is not present for x86. 211 "-Wl,-z,max-page-size=4096", [all …]
|
/build/soong/android/ |
D | soong_config_modules_test.go | 124 size: { 179 size: { 518 value_variables: ["size", "unused_size"], 528 value_variables: ["size", "unused_size"], 585 name: "size", 644 "size": "42", 674 size := result.ModuleForTests("size", "").Module().(*soongConfigTestModule) 684 AssertDeepEquals(t, "size hash calc", sizeHash, size.base().commonProperties.SoongConfigTraceHash) 685 …AssertDeepEquals(t, "size hash path", sizeOutput, filepath.Join("out/soong/.intermediates/size", s… 692 …AssertBoolEquals(t, "board hash not equal to size hash", board1.base().commonProperties.SoongConfi…
|
/build/make/tools/zipalign/ |
D | ZipFile.h | 97 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);
|
/build/bazel/rules/partitions/diff/ |
D | partition_inspector.py | 44 _, _ino, mode, uid, gid, name, size, _ = line.split('/') 47 is_dir = not size 56 if not size:
|
/build/make/tools/droiddoc/templates-pdk/assets/design/ |
D | default.css | 36 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/ |
D | yui-3.3.0-reset-min.css | 8 …size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:norm…
|
/build/soong/finder/fs/ |
D | readdir.go | 146 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 {
|