/build/make/tools/releasetools/ |
D | rangelib.py | 33 def __init__(self, data=None): argument 36 if isinstance(data, str): 37 self._parse_internal(data) 38 elif data: 39 assert len(data) % 2 == 0 40 self.data = tuple(self._remove_pairs(data)) 41 self.monotonic = all(x < y for x, y in zip(self.data, self.data[1:])) 43 self.data = () 46 for i in range(0, len(self.data), 2): 47 yield self.data[i:i+2] [all …]
|
D | sparse_img.py | 84 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks) 149 all_blocks = rangelib.RangeSet(data=(0, self.total_blocks)) 163 def AppendFillChunk(self, data, blocks): argument 168 f.write(struct.pack("<2H3I", 0xCAC2, 0, blocks, 16, data)) 179 for data in self._GetRangeData(ranges): 180 h.update(data) 197 for data in self._GetRangeData(ranges): 198 fd.write(data) 313 data = f.read(self.blocksize) 316 data = reference [all …]
|
D | test_blockimgdiff.py | 272 data = "file" + ('\0' * 4092) 273 image = DataImage(data) 274 self.assertEqual(data, "".join(image.ReadRangeSet(image.care_map))) 280 self.data = os.urandom(4096 * 4) 282 f.write(self.data) 286 self.assertEqual(sha1(self.data).hexdigest(), self.file.TotalSha1()) 292 expected_data = self.data[s * blocksize : e * blocksize] 295 data = "".join(self.file.ReadRangeSet(rs)) 296 self.assertEqual(expected_data, data) 308 data = "".join(self.file.ReadRangeSet(self.file.care_map)) [all …]
|
D | sign_target_files_apks.py | 323 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 326 unsigned.write(data) 367 data = None 375 data = compressed.read() 378 data = signed.read() 383 return data 406 data = input_tf_zip.read(filename) 416 common.ZipWriteStr(output_tf_zip, out_info, data) 427 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 435 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | sign_target_files_apks | 323 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 326 unsigned.write(data) 367 data = None 375 data = compressed.read() 378 data = signed.read() 383 return data 406 data = input_tf_zip.read(filename) 416 common.ZipWriteStr(output_tf_zip, out_info, data) 427 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 435 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | test_rangelib.py | 97 RangeSet(data=[0]) 122 self.assertTrue(RangeSet(data=[0, 10]).monotonic) 123 self.assertTrue(RangeSet(data=[0, 10, 15, 20]).monotonic) 124 self.assertTrue(RangeSet(data=[2, 9, 30, 31, 31, 32, 35, 36]).monotonic) 125 self.assertTrue(RangeSet(data=[0, 5, 5, 10]).monotonic) 126 self.assertFalse(RangeSet(data=[5, 10, 0, 5]).monotonic)
|
/build/soong/android/ |
D | androidmk.go | 49 Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) 126 if data, err := ioutil.ReadFile(mkFile); err == nil { 127 matches := buf.Len() == len(data) 131 if value != data[i] { 196 data := provider.AndroidMk() 198 if data.Include == "" { 199 data.Include = "$(BUILD_PREBUILT)" 202 data.Required = append(data.Required, amod.commonProperties.Required...) 227 distFile := data.DistFile 229 distFile = data.OutputFile [all …]
|
D | sh_binary.go | 141 data := s.ShBinary.AndroidMk() 142 data.Class = "NATIVE_TESTS" 143 data.Extra = append(data.Extra, func(w io.Writer, outputFile Path) { 148 return data
|
/build/soong/cc/ |
D | test_data_test.go | 34 data []dataFile 41 data: [ 46 data: []dataFile{ 64 data: [":fg"], 66 data: []dataFile{ 84 data: [":fg"], 86 data: []dataFile{ 103 data: [":fg"], 105 data: []dataFile{ 142 got := foo.Module().(*testDataTest).data [all …]
|
/build/soong/cmd/extract_jar_packages/ |
D | extract_jar_packages.go | 80 var data []byte 82 data = append(data, *prefix...) 83 data = append(data, pkg...) 84 data = append(data, "\n"...) 87 must(ioutil.WriteFile(*outputFile, data, 0666))
|
/build/kati/ |
D | parser.go | 148 w, data := firstWord(line) 150 d(p, data) 300 func (p *parser) parseIfdef(op string, data []byte) { 301 lhs, _, err := parseExpr(data, nil, parseOp{alloc: true}) 371 func (p *parser) parseIfeq(op string, data []byte) { 372 lhsBytes, rhsBytes, extra, ok := p.parseEq(data) 411 func (p *parser) parseElse(data []byte) { 425 nextIf := data 445 func (p *parser) parseEndif(data []byte) { 465 if len(trimSpaceBytes(data)) > 0 { [all …]
|
D | buf.go | 71 func (b *buffer) Write(data []byte) (int, error) { 72 b.buf = append(b.buf, data...) 73 return len(data), nil 149 func (wb *wordBuffer) Write(data []byte) (int, error) { 150 if len(data) == 0 { 155 if !isWhitespace(rune(data[0])) && len(wb.buf.buf) > 0 { 158 ws := newWordScanner(data) 173 if isWhitespace(rune(data[len(data)-1])) { 176 return len(data), nil
|
D | string_piece.h | 67 StringPiece(const std::string& str) : ptr_(str.data()), length_(str.size()) {} in StringPiece() 69 : ptr_(str.data()), length_(str.size()) {} in StringPiece() 76 const char* data() const { return ptr_; } in data() function 85 void set(const char* data, size_type len) { in set() argument 86 ptr_ = data; in set() 93 void set(const void* data, size_type len) { in set() argument 94 ptr_ = reinterpret_cast<const char*>(data); in set() 121 return std::string(!empty() ? data() : "", size()); in as_string() 192 x.data(), y.data(), (x.size() < y.size() ? x.size() : y.size())); 222 #define SPF(s) static_cast<int>((s).size()), (s).data()
|
D | string_piece.cc | 39 uint64_t xt = *reinterpret_cast<const uint64_t*>(x.data() + len); in operator ==() 40 uint64_t yt = *reinterpret_cast<const uint64_t*>(y.data() + len); in operator ==() 44 return StringPiece::wordmemcmp(x.data(), y.data(), len) == 0; in operator ==() 48 target->assign(!empty() ? data() : "", size()); in CopyToString() 53 target->append(data(), size()); in AppendToString() 116 const char* const data = characters_wanted.data(); in BuildLookupTable() local 118 table[static_cast<unsigned char>(data[i])] = true; in BuildLookupTable()
|
/build/soong/env/ |
D | env.go | 38 data, err := json.MarshalIndent(contents, "", " ") 43 data = append(data, '\n') 45 err = ioutil.WriteFile(filename, data, 0664) 54 data, err := ioutil.ReadFile(filename) 61 err = json.Unmarshal(data, &contents)
|
/build/soong/scripts/ |
D | mergenotice.py | 43 data = f.read().strip() 44 if data not in processed: 45 processed.add(data) 46 output.write('%s\n\n' % data)
|
/build/soong/java/ |
D | androidmk.go | 25 func (library *Library) AndroidMkHostDex(w io.Writer, name string, data android.AndroidMkData) { 41 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(data.Required, " ")) 98 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 99 android.WriteAndroidMkData(w, data) 100 library.AndroidMkHostDex(w, name, data) 117 data := j.Library.AndroidMk() 118 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) { 125 androidMkWriteTestData(j.data, &data) 127 return data 131 data := j.Library.AndroidMk() [all …]
|
D | android_resources.go | 77 for _, data := range overlayData { 78 files := data.paths.PathsInDirectory(filepath.Join(data.dir, dir.String())) 80 overlayModuleDir := android.PathForSource(ctx, data.dir, dir.String()) 86 rroDirs = append(rroDirs, rroDir{overlayModuleDir, data.overlayType})
|
/build/make/tools/ |
D | compare_fileslist.py | 33 data = {} 42 if not data.has_key(fn): 43 data[fn] = {} 44 data[fn][index] = sz 47 for fn,sizes in data.iteritems():
|
D | fileslist_util.py | 22 data = json.load(jf) 23 for line in data: 28 data = json.load(jf) 29 for line in data:
|
D | fat16copy.py | 126 def write(self, data): argument 128 self.fs.write_file(self.start_cluster, self.idx, data) 129 self.idx += len(data) 214 def new_file(self, name, data=None): argument 221 if data: 222 data.seek(0, os.SEEK_END) 223 size = data.tell() 230 if data is None: 234 data.seek(0) 235 data_file.write(data.read()) [all …]
|
D | event_log_tags.py | 119 def WriteOutput(output_file, data): argument 123 if not isinstance(data, str): 124 data = data.getvalue() 131 out.write(data)
|
/build/make/tools/droiddoc/templates-pdk/assets/ |
D | microtemplate.js | 6 this.tmpl = function tmpl(str, data){ argument 33 return data ? fn( data ) : fn;
|
/build/make/tools/droiddoc/templates-ndk/ |
D | head_tag.cs | 3 …####### If building devsite, add some meta data needed for when generating the top nav ######### ?> 63 data-helpouts-embed data-helpouts-vertical="programming" 64 data-helpouts-tags="<?cs var:page.tags ?>" data-helpouts-prefix="android" 65 data-helpouts-standalone="true"></script>
|
/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() 218 status_t addCommon(const char* fileName, const void* data, size_t size, 225 const void* data, size_t size, uint32_t* pCRC32); 233 const void* data, size_t size, uint32_t* pCRC32);
|