Home
last modified time | relevance | path

Searched refs:kwargs (Results 1 – 9 of 9) sorted by relevance

/system/sepolicy/tests/
Dpolicy.py135 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/
Dmetadata_model.py263 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/
Dpayload_info_unittest.py41 def __init__(self, **kwargs): argument
45 for key, val in kwargs.iteritems():
53 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument
57 for key, val in kwargs.iteritems():
152 def _AddSignatureToProto(proto, **kwargs): argument
155 for key, val in kwargs.iteritems():
158 def AddPayloadSignature(self, **kwargs): argument
159 self._AddSignatureToProto(self._payload_signatures, **kwargs)
165 def AddMetadataSignature(self, **kwargs): argument
166 self._AddSignatureToProto(self._metadata_signatures, **kwargs)
/system/extras/tests/bootloader/
Dshelltest.py20 def __init__(self, *args, **kwargs): argument
21 super(ShellTest, self).__init__(*args, **kwargs)
Dhaltest.py23 def __init__(self, *args, **kwargs): argument
24 super(HalTest, self).__init__(*args, **kwargs)
/system/sepolicy/build/
Dbuild_sepolicy.py33 def run_host_command(args, **kwargs): argument
35 if kwargs.get('shell'):
41 subprocess.check_call(args, **kwargs)
/system/core/mkbootimg/
Dmkbootimg.py123 def __init__(self, option_strings, dest, nargs=None, **kwargs): argument
124 if 'maxlen' not in kwargs:
126 self.maxlen = int(kwargs['maxlen'])
127 del kwargs['maxlen']
128 super(ValidateStrLenAction, self).__init__(option_strings, dest, **kwargs)
/system/libufdt/utils/src/
Dmkdtboimg.py73 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/
Dchecker_unittest.py209 kwargs = {'convert': convert, 'linebreak': linebreak, 'indent': indent}
212 checker.PayloadChecker._CheckElem, *args, **kwargs)
215 **kwargs)
236 kwargs = {'convert': convert, 'linebreak': linebreak, 'indent': indent}
245 self.assertRaises(PayloadError, tested_func, *args, **kwargs)
247 ret_val = tested_func(*args, **kwargs)
1194 kwargs = {
1205 payload_gen.WriteToFileWithData, **kwargs)
1208 **kwargs)
1210 kwargs = {
[all …]