Home
last modified time | relevance | path

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

/system/sepolicy/tests/
Dpolicy.py150 def __TERuleMatch(self, Rule, **kwargs): argument
152 if ("scontext" in kwargs and
153 len(kwargs['scontext']) > 0 and
154 Rule.sctx not in kwargs['scontext']):
157 if ("tcontext" in kwargs and
158 len(kwargs['tcontext']) > 0 and
159 Rule.tctx not in kwargs['tcontext']):
162 if ("tclass" in kwargs and
163 len(kwargs['tclass']) > 0 and
164 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')))
1163 def __init__(self, **kwargs): argument
1213 if kwargs.get('type') is None:
1215 % (kwargs.get('name'), kwargs.get('kind')), file=sys.stderr)
1220 self._name = kwargs['name']
1221 self._type = kwargs['type']
1222 self._kind = kwargs['kind'] # static, dynamic, or controls
1224 self._init_common(**kwargs)
1383 def _init_common(self, **kwargs): argument
[all …]
/system/apex/tools/
Dapex_compression_test.py44 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
79 return run_and_check_output(args, verbose, **kwargs)
82 def run_and_check_output(args, verbose=None, **kwargs): argument
[all …]
/system/update_engine/scripts/
Dpayload_info_unittest.py48 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/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/apex/tests/testdata/sharedlibs/build/
Dshared_libs_repack.py77 def run(args, verbose=None, **kwargs): argument
93 if 'stdout' not in kwargs and 'stderr' not in kwargs:
94 kwargs['stdout'] = subprocess.PIPE
95 kwargs['stderr'] = subprocess.STDOUT
96 if 'universal_newlines' not in kwargs:
97 kwargs['universal_newlines'] = True
100 return subprocess.Popen(args, **kwargs)
103 def run_and_check_output(args, verbose=None, **kwargs): argument
120 proc = run(args, verbose=verbose, **kwargs)
/system/apex/apexer/
Dapexer_test.py45 def run(args, verbose=None, **kwargs): argument
61 if 'stdout' not in kwargs and 'stderr' not in kwargs:
62 kwargs['stdout'] = subprocess.PIPE
63 kwargs['stderr'] = subprocess.STDOUT
64 if 'universal_newlines' not in kwargs:
65 kwargs['universal_newlines'] = True
71 return subprocess.Popen(args, **kwargs)
74 def run_host_command(args, verbose=None, **kwargs): argument
79 return run_and_check_output(args, verbose, **kwargs)
82 def run_and_check_output(args, verbose=None, **kwargs): argument
[all …]
/system/bt/gd/cert/
Dmetadata.py29 def fail(*args, **kwargs): argument
59 def fail(*args, **kwargs): argument
Dpy_le_security.py70 def SetLeAuthRequirements(self, *args, **kwargs): argument
71 … return self._device.security.SetLeAuthRequirements(LeAuthRequirementsMessage(*args, **kwargs))
Dgd_base_test.py107 def __wrapped(*args, **kwargs): argument
109 return attr(*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/libufdt/utils/src/
Dmkdtboimg.py78 def __init__(self, **kwargs): argument
90 self.__version = kwargs['version']
97 missing_keys = set(required_keys) - set(kwargs)
102 self.__dt_file = kwargs['dt_file']
103 self.__dt_offset = kwargs['dt_offset']
104 self.__dt_size = kwargs['dt_size']
105 self.__id = self.__get_number_or_prop(kwargs['id'])
106 self.__rev = self.__get_number_or_prop(kwargs['rev'])
108 self.__flags = self.__get_number_or_prop(kwargs['flags'])
109 self.__custom0 = self.__get_number_or_prop(kwargs['custom0'])
[all …]
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py122 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 …]