/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 | images.py | 68 def __init__(self, data, trim=False, pad=False): argument 69 self.data = data 74 partial = len(self.data) % self.blocksize 78 self.data = self.data[:-partial] 80 self.data += '\0' * (self.blocksize - partial) 87 assert len(self.data) % self.blocksize == 0 89 self.total_blocks = len(self.data) // self.blocksize 90 self.care_map = RangeSet(data=(0, self.total_blocks)) 108 d = self.data[i*self.blocksize : (i+1)*self.blocksize] 120 self.file_map["__ZERO"] = RangeSet(data=zero_blocks) [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) 321 data = f.read(self.blocksize) 324 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))) 281 self.data = os.urandom(4096 * 4) 283 f.write(self.data) 287 self.assertEqual(sha1(self.data).hexdigest(), self.file.TotalSha1()) 293 expected_data = self.data[s * blocksize : e * blocksize] 296 data = b''.join(self.file.ReadRangeSet(rs)) 297 self.assertEqual(expected_data, data) 309 data = b''.join(self.file.ReadRangeSet(self.file.care_map)) [all …]
|
D | sign_target_files_apks.py | 422 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 425 unsigned.write(data) 466 data = None 474 data = compressed.read() 477 data = signed.read() 482 return data 525 data = input_tf_zip.read(filename) 535 common.ZipWriteStr(output_tf_zip, out_info, data) 546 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 554 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | sign_target_files_apks | 422 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 425 unsigned.write(data) 466 data = None 474 data = compressed.read() 477 data = signed.read() 482 return data 525 data = input_tf_zip.read(filename) 535 common.ZipWriteStr(output_tf_zip, out_info, data) 546 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 554 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/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{ 137 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/soong/shared/ |
D | env.go | 47 data, err := json.MarshalIndent(contents, "", " ") 52 data = append(data, '\n') 54 return data, nil 61 data, err := ioutil.ReadFile(filepath) 68 err = json.Unmarshal(data, &contents) 98 data, err := ioutil.ReadFile(envFile) 104 err = json.Unmarshal(data, &contents)
|
/build/soong/android/ |
D | androidmk.go | 73 Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) 712 if data, err := ioutil.ReadFile(absolutePath(mkFile)); err == nil { 713 matches := buf.Len() == len(data) 717 if value != data[i] { 772 func (data *AndroidMkData) fillInData(ctx fillInEntriesContext, mod blueprint.Module) { 774 data.Entries = AndroidMkEntries{ 775 Class: data.Class, 776 SubName: data.SubName, 777 DistFiles: data.DistFiles, 778 OutputFile: data.OutputFile, [all …]
|
/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/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/soong/ui/build/ |
D | util_test.go | 61 data := []byte("fake data") 63 if err := ioutil.WriteFile(src, data, 0755); err != nil { 74 if l != int64(len(data)) { 75 t.Errorf("got %d, expecting %d for copied bytes", l, len(data)) 83 if bytes.Compare(data, dstData) != 0 { 84 t.Errorf("got %q, expecting data %q from dst %q text file", string(data), string(dstData), dst)
|
/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/zipalign/ |
D | Android.bp | 72 data: [ 73 "tests/data/diffOrders.zip", 74 "tests/data/holes.zip", 75 "tests/data/unaligned.zip",
|
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() 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/soong/python/ |
D | test.go | 66 data []android.DataPath member 88 test.data = append(test.data, android.DataPath{SrcPath: dataSrcPath}) 94 test.data = append(test.data, android.DataPath{SrcPath: javaDataSrcPath})
|
/build/soong/dexpreopt/ |
D | config.go | 189 func ParseGlobalConfig(ctx android.PathContext, data []byte) (*GlobalConfig, error) { 199 err := json.Unmarshal(data, &config) 212 data []byte member 227 return getGlobalConfigRaw(ctx).data 235 if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil { 237 } else if data != nil { 238 globalConfig, err := ParseGlobalConfig(ctx, data) 242 return globalConfigAndRaw{globalConfig, data} 290 func ParseModuleConfig(ctx android.PathContext, data []byte) (*ModuleConfig, error) { 293 err := json.Unmarshal(data, &config) [all …]
|
/build/soong/java/ |
D | android_resources.go | 92 for _, data := range overlayData { 93 files := data.paths.PathsInDirectory(filepath.Join(data.dir, dir.String())) 95 overlayModuleDir := android.PathForSource(ctx, data.dir, dir.String()) 101 rroDirs = append(rroDirs, rroDir{overlayModuleDir, data.overlayType})
|
/build/make/core/ |
D | autogen_test_config.mk | 26 autogen_test_install_base := /data/local/tmp 30 autogen_test_install_base = /data/local/tests/vendor 33 autogen_test_install_base = /data/local/tests/vendor
|
/build/soong/ui/logger/ |
D | logger_test.go | 40 writeFile := func(name string, data string) { 45 if n, err := io.WriteString(f, data); err == nil && n < len(data) { 79 data, err := ioutil.ReadFile(filepath.Join(dir, name)) 84 str := string(data) 87 t.Errorf(" got: %v", data)
|