/build/tools/releasetools/ |
D | edify_generator.py | 23 def __init__(self, version, info, fstab=None): argument 24 self.script = [] 25 self.mounts = set() 26 self.version = version 27 self.info = info 29 self.fstab = self.info.get("fstab", None) 31 self.fstab = fstab 33 def MakeTemporary(self): argument 37 x = EdifyGenerator(self.version, self.info) 38 x.mounts = self.mounts [all …]
|
D | blockimgdiff.py | 74 def ReadRangeSet(self, ranges): argument 77 def TotalSha1(self, include_clobbered_blocks=False): argument 89 def ReadRangeSet(self, ranges): argument 91 def TotalSha1(self, include_clobbered_blocks=False): argument 94 assert self.clobbered_blocks.size() == 0 101 def __init__(self, data, trim=False, pad=False): argument 102 self.data = data 103 self.blocksize = 4096 107 partial = len(self.data) % self.blocksize 110 self.data = self.data[:-partial] [all …]
|
D | rangelib.py | 26 def __init__(self, data=None): argument 27 self.monotonic = False 29 self._parse_internal(data) 31 self.data = tuple(self._remove_pairs(data)) 33 self.data = () 35 def __iter__(self): argument 36 for i in range(0, len(self.data), 2): 37 yield self.data[i:i+2] 39 def __eq__(self, other): argument 40 return self.data == other.data [all …]
|
D | sparse_img.py | 34 def __init__(self, simg_fn, file_map_fn=None, clobbered_blocks=None): argument 35 self.simg_f = f = open(simg_fn, "rb") 45 self.blocksize = blk_sz = header[5] 46 self.total_blocks = total_blks = header[6] 66 self.offset_map = offset_map = [] 67 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks) 110 self.care_map = rangelib.RangeSet(care_data) 111 self.offset_index = [i[0] for i in offset_map] 119 extended = self.care_map.extend(512) 120 all_blocks = rangelib.RangeSet(data=(0, self.total_blocks)) [all …]
|
D | check_target_files_signatures | 62 def _decodeExtra(self): argument 104 def __init__(self): argument 105 self.certs = {} 107 def Add(self, cert, name=None): argument 108 if cert in self.certs: 110 self.certs[cert] = self.certs[cert] + "," + name 115 self.certs[cert] = name 117 def Get(self, cert): argument 119 return self.certs.get(cert, None) 121 def FindLocalCerts(self): argument [all …]
|
D | check_target_files_signatures.py | 62 def _decodeExtra(self): argument 104 def __init__(self): argument 105 self.certs = {} 107 def Add(self, cert, name=None): argument 108 if cert in self.certs: 110 self.certs[cert] = self.certs[cert] + "," + name 115 self.certs[cert] = name 117 def Get(self, cert): argument 119 return self.certs.get(cert, None) 121 def FindLocalCerts(self): argument [all …]
|
D | test_common.py | 46 def _verify(self, zip_file, zip_file_name, arcname, contents, argument 52 self.assertEqual(int(expected_stat.st_mode), int(new_stat.st_mode)) 53 self.assertEqual(int(expected_stat.st_mtime), int(new_stat.st_mtime)) 60 self.assertEqual(info.date_time, (2009, 1, 1, 0, 0, 0)) 64 self.assertEqual(mode, expected_mode) 67 self.assertEqual(info.compress_type, expected_compress_type) 70 self.assertEqual(zip_file.read(arcname), contents) 71 self.assertIsNone(zip_file.testzip()) 73 def _test_ZipWrite(self, contents, extra_zipwrite_args=None): argument 103 self._verify(zip_file, zip_file_name, arcname, contents, test_file_name, [all …]
|
D | common.py | 39 def __init__(self): argument 45 self.search_path = platform_search_path.get(sys.platform, None) 46 self.signapk_path = "framework/signapk.jar" # Relative to search_path 47 self.extra_signapk_args = [] 48 self.java_path = "java" # Use the one on the path by default. 49 self.java_args = "-Xmx2048m" # JVM Args 50 self.public_key_suffix = ".x509.pem" 51 self.private_key_suffix = ".pk8" 53 self.boot_signer_path = "boot_signer" 54 self.boot_signer_args = [] [all …]
|
D | ota_from_target_files | 172 def __init__(self, partition, fs_config): argument 173 self.partition = partition 174 self.fs_config = fs_config 175 self.ITEMS = {} 177 def Get(self, name, is_dir=False): argument 178 if name not in self.ITEMS: 179 self.ITEMS[name] = Item(self, name, is_dir=is_dir) 180 return self.ITEMS[name] 182 def GetMetadata(self, input_zip): argument 185 output = input_zip.read(self.fs_config) [all …]
|
D | ota_from_target_files.py | 172 def __init__(self, partition, fs_config): argument 173 self.partition = partition 174 self.fs_config = fs_config 175 self.ITEMS = {} 177 def Get(self, name, is_dir=False): argument 178 if name not in self.ITEMS: 179 self.ITEMS[name] = Item(self, name, is_dir=is_dir) 180 return self.ITEMS[name] 182 def GetMetadata(self, input_zip): argument 185 output = input_zip.read(self.fs_config) [all …]
|
/build/tools/ |
D | event_log_tags.py | 23 def __init__(self, tagnum, tagname, description, filename, linenum): argument 24 self.tagnum = tagnum 25 self.tagname = tagname 26 self.description = description 27 self.filename = filename 28 self.linenum = linenum 33 def AddError(self, msg, linenum=None): argument 35 linenum = self.linenum 36 self.errors.append((self.filename, linenum, msg)) 38 def AddWarning(self, msg, linenum=None): argument [all …]
|
D | parsedeps.py | 10 def __init__(self, tgt): argument 11 self.tgt = tgt 12 self.pos = "" 13 self.prereqs = set() 14 self.visit = 0 16 def add(self, prereq): argument 17 self.prereqs.add(prereq) 21 def __init__(self): argument 22 self.lines = {} 23 self.__visit = 0 [all …]
|
D | post_process_props.py | 75 def __init__(self, lines): argument 76 self.lines = [s.strip() for s in lines] 78 def to_dict(self): argument 80 for line in self.lines: 88 def get(self, name): argument 90 for line in self.lines: 95 def put(self, name, value): argument 97 for i in range(0,len(self.lines)): 98 if self.lines[i].startswith(key): 99 self.lines[i] = key + value [all …]
|
D | java-layers.py | 38 def __init__(self, filename, lineno, lower, top, lowlevel, legacy): argument 39 self.filename = filename 40 self.lineno = lineno 41 self.lower = lower 42 self.top = top 43 self.lowlevel = lowlevel 44 self.legacy = legacy 45 self.uppers = [] 46 self.transitive = set() 48 def matches(self, imp): argument [all …]
|
/build/core/ |
D | checktree | 34 def __init__(self,value): argument 35 self.value = value 36 def __str__(self): argument 37 return repr(self.value)
|
/build/target/board/generic_x86/sepolicy/ |
D | zygote.te | 1 allow zygote self:process execmem; 2 allow zygote self:capability sys_nice;
|
D | healthd.te | 1 allow healthd self:capability sys_nice;
|
D | system_server.te | 1 allow system_server self:process execmem;
|
D | installd.te | 1 allow installd self:process execmem;
|
/build/target/board/generic/sepolicy/ |
D | goldfish_setup.te | 12 allow goldfish_setup self:capability { net_admin net_raw }; 13 allow goldfish_setup self:udp_socket create_socket_perms;
|
D | bootanim.te | 1 allow bootanim self:process execmem;
|
D | surfaceflinger.te | 1 allow surfaceflinger self:process execmem;
|
/build/tools/droiddoc/templates-sdk/assets/js/ |
D | prettify.js | 20 …efined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,und…
|
/build/tools/droiddoc/templates-sdk-dev/assets/js/ |
D | prettify.js | 20 …efined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,und…
|
/build/tools/droiddoc/templates-ndk/assets/js/ |
D | prettify.js | 20 …efined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,und…
|