/system/sepolicy/tests/ |
D | policy.py | 135 def __TERuleMatch(self, Rule, **kwargs): argument 137 if ("scontext" in kwargs and 138 len(kwargs['scontext']) > 0 and 139 Rule.sctx not in kwargs['scontext']): 142 if ("tcontext" in kwargs and 143 len(kwargs['tcontext']) > 0 and 144 Rule.tctx not in kwargs['tcontext']): 147 if ("tclass" in kwargs and 148 len(kwargs['tclass']) > 0 and 149 not bool(set([Rule.tclass]) & kwargs['tclass'])): [all …]
|
/system/media/camera/docs/ |
D | metadata_model.py | 263 def insert_type(self, type_name, type_selector="typedef", **kwargs): argument 288 self._types.append(Typedef(type_name, self, kwargs.get('languages'))) 1153 def __init__(self, **kwargs): argument 1203 if kwargs.get('type') is None: 1205 %(kwargs.get('name'), kwargs.get('kind')) 1210 self._name = kwargs['name'] 1211 self._type = kwargs['type'] 1212 self._kind = kwargs['kind'] # static, dynamic, or controls 1214 self._init_common(**kwargs) 1366 def _init_common(self, **kwargs): argument [all …]
|
/system/update_engine/scripts/ |
D | payload_info_unittest.py | 48 def __init__(self, **kwargs): argument 52 for key, val in kwargs.items(): 61 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument 65 for key, val in kwargs.items(): 170 def _AddSignatureToProto(proto, **kwargs): argument 173 for key, val in kwargs.items(): 176 def AddPayloadSignature(self, **kwargs): argument 177 self._AddSignatureToProto(self._payload_signatures, **kwargs) 183 def AddMetadataSignature(self, **kwargs): argument 184 self._AddSignatureToProto(self._metadata_signatures, **kwargs)
|
/system/apex/apexer/ |
D | apexer_test.py | 44 def run(args, verbose=None, **kwargs): argument 60 if 'stdout' not in kwargs and 'stderr' not in kwargs: 61 kwargs['stdout'] = subprocess.PIPE 62 kwargs['stderr'] = subprocess.STDOUT 63 if 'universal_newlines' not in kwargs: 64 kwargs['universal_newlines'] = True 70 return subprocess.Popen(args, **kwargs) 73 def run_host_command(args, verbose=None, **kwargs): argument 78 return run_and_check_output(args, verbose, **kwargs) 81 def run_and_check_output(args, verbose=None, **kwargs): argument [all …]
|
/system/extras/tests/bootloader/ |
D | shelltest.py | 20 def __init__(self, *args, **kwargs): argument 21 super(ShellTest, self).__init__(*args, **kwargs)
|
D | haltest.py | 23 def __init__(self, *args, **kwargs): argument 24 super(HalTest, self).__init__(*args, **kwargs)
|
/system/bt/gd/cert/ |
D | metadata.py | 29 def fail(*args, **kwargs): argument 59 def fail(*args, **kwargs): argument
|
D | py_le_security.py | 63 def SetLeAuthRequirements(self, *args, **kwargs): argument 64 … return self._device.security.SetLeAuthRequirements(LeAuthRequirementsMessage(*args, **kwargs))
|
D | gd_base_test.py | 145 def __wrapped(*args, **kwargs): argument 147 return attr(*args, **kwargs)
|
/system/sepolicy/build/ |
D | build_sepolicy.py | 33 def run_host_command(args, **kwargs): argument 35 if kwargs.get('shell'): 41 subprocess.check_call(args, **kwargs)
|
/system/libufdt/utils/src/ |
D | mkdtboimg.py | 73 def __init__(self, **kwargs): argument 85 missing_keys = set(self.REQUIRED_KEYS) - set(kwargs) 90 self.__dt_file = kwargs['dt_file'] 91 self.__dt_offset = kwargs['dt_offset'] 92 self.__dt_size = kwargs['dt_size'] 93 self.__id = self.__get_number_or_prop(kwargs['id']) 94 self.__rev = self.__get_number_or_prop(kwargs['rev']) 95 self.__flags = self.__get_number_or_prop(kwargs['flags']) 96 self.__custom0 = self.__get_number_or_prop(kwargs['custom0']) 97 self.__custom1 = self.__get_number_or_prop(kwargs['custom1']) [all …]
|
/system/update_engine/scripts/update_payload/ |
D | checker_unittest.py | 122 def __init__(self, mock_fn, *args, **kwargs): argument 125 self.exp_kwargs = kwargs 127 def addPostCheckForMockFunction(self, mock_fn, *args, **kwargs): argument 135 self.mock_checks.append(self.MockChecksAtTearDown(mock_fn, *args, **kwargs)) 242 kwargs = {'convert': convert, 'linebreak': linebreak, 'indent': indent} 245 checker.PayloadChecker._CheckElem, *args, **kwargs) 248 **kwargs) 269 kwargs = {'convert': convert, 'linebreak': linebreak, 'indent': indent} 278 self.assertRaises(PayloadError, tested_func, *args, **kwargs) 280 ret_val = tested_func(*args, **kwargs) [all …]
|
/system/tools/mkbootimg/ |
D | mkbootimg.py | 174 def __init__(self, option_strings, dest, nargs=None, **kwargs): argument 175 if 'maxlen' not in kwargs: 177 self.maxlen = int(kwargs['maxlen']) 178 del kwargs['maxlen'] 179 super(ValidateStrLenAction, self).__init__(option_strings, dest, **kwargs)
|