/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 | 385 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 388 unsigned.write(data) 429 data = None 437 data = compressed.read() 440 data = signed.read() 445 return data 469 data = input_tf_zip.read(filename) 479 common.ZipWriteStr(output_tf_zip, out_info, data) 490 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 498 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | sign_target_files_apks | 385 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument 388 unsigned.write(data) 429 data = None 437 data = compressed.read() 440 data = signed.read() 445 return data 469 data = input_tf_zip.read(filename) 479 common.ZipWriteStr(output_tf_zip, out_info, data) 490 signed_data = SignApk(data, key, key_passwords[key], platform_api_level, 498 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/android/ |
D | androidmk.go | 57 Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) 471 if data, err := ioutil.ReadFile(absolutePath(mkFile)); err == nil { 472 matches := buf.Len() == len(data) 476 if value != data[i] { 523 func (data *AndroidMkData) fillInData(config Config, bpPath string, mod blueprint.Module) { 525 data.Entries = AndroidMkEntries{ 526 Class: data.Class, 527 SubName: data.SubName, 528 DistFiles: data.DistFiles, 529 OutputFile: data.OutputFile, [all …]
|
D | androidmk_test.go | 26 data AndroidMkData member 36 Custom: func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) { 37 m.data = data 100 assertEqual([]string{"bar"}, m.data.Required) 101 assertEqual([]string{"baz"}, m.data.Host_required) 102 assertEqual([]string{"qux"}, m.data.Target_required)
|
/build/soong/env/ |
D | env.go | 38 data, err := json.MarshalIndent(contents, "", " ") 43 data = append(data, '\n') 45 return data, nil 49 data, err := ioutil.ReadFile(filename) 56 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/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-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/droiddoc/templates-pdk/assets/ |
D | microtemplate.js | 6 this.tmpl = function tmpl(str, data){ argument 33 return data ? fn( data ) : fn;
|
/build/soong/java/ |
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/soong/dexpreopt/ |
D | config.go | 186 func ParseGlobalConfig(ctx android.PathContext, data []byte) (*GlobalConfig, error) { 197 err := json.Unmarshal(data, &config) 211 data []byte member 226 return getGlobalConfigRaw(ctx).data 234 if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil { 236 } else if data != nil { 237 globalConfig, err := ParseGlobalConfig(ctx, data) 241 return globalConfigAndRaw{globalConfig, data} 267 func ParseModuleConfig(ctx android.PathContext, data []byte) (*ModuleConfig, error) { 304 err := json.Unmarshal(data, &config) [all …]
|
/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);
|
/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)
|
/build/make/target/board/ |
D | BoardConfigGsiCommon.mk | 39 BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem 46 BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem 57 BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|