| /external/chromium-trace/catapult/common/battor/battor/ |
| battor_wrapper_unittest.py | 49 serial.tools.list_ports.comports = lambda: self._serial_tools_return 55 lambda: self._generate_serial_map_return) 60 lambda f: self._read_serial_map_file_return) 64 find_usb_devices.GetBusNumberToDeviceTreeMap = lambda fast=None: {} 68 battor_device_mapping.GetBattOrList = lambda x: self._get_battor_list_return 158 lambda x, serial_map_file=None, serial_map=None: x + '_battor') 159 find_usb_devices.GetBusNumberToDeviceTreeMap = lambda fast=False: True 161 battor_device_mapping.GetBattOrList = lambda x: self._battor_list 162 battor_device_mapping.IsBattOr = lambda x, y: self._is_battor 163 battor_device_mapping.GenerateSerialMap = lambda: self._fake_ma [all...] |
| /external/python/cpython3/Lib/test/ |
| test_compare.py | 94 ('__eq__', lambda a, b: a == b), 95 ('__lt__', lambda a, b: a < b), 96 ('__le__', lambda a, b: a <= b), 97 ('__gt__', lambda a, b: a > b), 98 ('__ge__', lambda a, b: a >= b), 115 x = lambda: None
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/ |
| test_decode.py | 36 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
38 object_pairs_hook=lambda x: x), p)
45 object_hook=lambda x: None),
|
| /external/autotest/client/cros/a11y/ |
| a11y_test_base.py | 78 lambda: self._extension.EvaluateJavaScript(poll_cmd), 102 lambda: self._extension.EvaluateJavaScript(poll_cmd), 119 lambda: self._get_chromevox_state() == value,
|
| /external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
| format_conversion.h | 42 auto lambda = [&](int comp) local 49 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); 53 auto lambda = [&](int comp) local 73 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); 167 auto lambda = [&](int comp) local 195 UnrollerL<0, FormatTraits<DstFormat>::numComps, 1>::step(lambda); 210 auto lambda = [&](int comp) local 217 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); 221 auto lambda = [&](int comp) local 241 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); 335 auto lambda = [&](int comp) local [all...] |
| /external/python/cpython3/Lib/ |
| signal.py | 10 lambda name: 17 lambda name: name in ('SIG_DFL', 'SIG_IGN')) 22 lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK'))
|
| /external/tensorflow/tensorflow/contrib/predictor/ |
| contrib_estimator_predictor_test.py | 30 KEYS_AND_OPS = (('sum', lambda x, y: x + y), 31 ('product', lambda x, y: x * y,), 32 ('difference', lambda x, y: x - y))
|
| /frameworks/base/tools/aapt2/tools/ |
| fix_resources.py | 18 eligible_consumers = filter(lambda c: c.matches(file_path), consumers) 32 values_directories = map(lambda f: os.path.join(res_path, f), values_directories) 36 files = map(lambda f: os.path.join(dir, f), files)
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
| test_contains.py | 27 self.assertRaises(TypeError, lambda: 1 in a)
28 self.assertRaises(TypeError, lambda: 1 not in a)
37 self.assertRaises(TypeError, lambda: None in 'abc')
51 self.assertRaises(TypeError, lambda: None in unicode('abc'))
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
| test_functiontestcase.py | 11 test = unittest.FunctionTestCase(lambda: None)
125 test = unittest.FunctionTestCase(lambda: None)
133 test = unittest.FunctionTestCase(lambda: None)
142 test = unittest.FunctionTestCase(lambda: None, description=desc)
|
| /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
| templates.cpp | 20 auto lambda = [=, &y] () -> T { local 25 return lambda(); 40 auto lambda = [=](bool b) { return x + y; }; local 41 return lambda(true); // expected-error{{no viable conversion from returned value of type 'X' to function return type 'int'}} 47 // Make sure that lambda's operator() can be used from templates. 80 = typeid([=,&r] () -> R& { // expected-error{{lambda expression in an unevaluated operand}}
|
| /external/python/cpython2/Lib/test/ |
| test_contains.py | 27 self.assertRaises(TypeError, lambda: 1 in a) 28 self.assertRaises(TypeError, lambda: 1 not in a) 37 self.assertRaises(TypeError, lambda: None in 'abc') 51 self.assertRaises(TypeError, lambda: None in unicode('abc'))
|
| /external/python/cpython2/Lib/unittest/test/ |
| test_functiontestcase.py | 11 test = unittest.FunctionTestCase(lambda: None) 125 test = unittest.FunctionTestCase(lambda: None) 133 test = unittest.FunctionTestCase(lambda: None) 142 test = unittest.FunctionTestCase(lambda: None, description=desc)
|
| /external/python/cpython3/Doc/includes/sqlite3/ |
| text_factory.py | 24 con.text_factory = lambda x: x.decode("utf-8") + "foo"
|
| /external/python/cpython3/Lib/unittest/test/ |
| test_functiontestcase.py | 11 test = unittest.FunctionTestCase(lambda: None) 125 test = unittest.FunctionTestCase(lambda: None) 133 test = unittest.FunctionTestCase(lambda: None) 142 test = unittest.FunctionTestCase(lambda: None, description=desc)
|
| /external/python/cpython3/Lib/unittest/test/testmock/ |
| testsentinel.py | 24 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
|
| /external/scapy/scapy/contrib/ |
| eigrp.py | 67 self.length_from = lambda pkt,length=length: length 135 self.length_from = lambda pkt,length=length: length 189 FieldLenField("len", None, "value", "!H", adjust=lambda pkt,x: x + 4), 190 StrLenField("value", b"\x00", length_from=lambda pkt: pkt.len - 4)] 216 FieldLenField("len", None, "authdata", "!H", adjust=lambda pkt,x: x + 24), 221 StrLenField("authdata", RandString(16), length_from=lambda pkt: pkt.keysize) 239 lambda pkt:pkt.addrlen == 4), 241 lambda pkt:pkt.addrlen == 16) 317 FieldLenField("len", None, "dst", "!H", adjust=lambda pkt,x: x + 25), 327 EigrpIPField("dst", "192.168.1.0", length_from=lambda pkt: pkt.prefixlen) [all...] |
| ppi.py | 47 FieldLenField('pfh_length', None, length_of="value", fmt='<H', adjust=lambda p,x:x+4), 48 StrLenField("value", "", length_from=lambda p:p.pfh_length) ] 88 FieldLenField('pph_len', None, length_of="PPIFieldHeaders", fmt="<H", adjust=lambda p,x:x+8 ), 90 PacketListField("PPIFieldHeaders", [], _PPIGuessPayloadClass, length_from=lambda p:p.pph_len-8,) ]
|
| /external/scapy/scapy/layers/ |
| can.py | 32 StrLenField("data", "", length_from=lambda pkt: pkt.length),
|
| /external/tensorflow/tensorflow/contrib/data/python/kernel_tests/ |
| unique_dataset_op_test.py | 44 dataset = dataset_ops.Dataset.from_generator(lambda: current_test_case, 89 lambda x: x % unique_elem_range).apply(unique.unique()) 91 self.run_core_tests(lambda: build_dataset(200, 100), 92 lambda: build_dataset(40, 100), 100)
|
| /external/tensorflow/tensorflow/examples/get_started/regression/ |
| test.py | 71 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 78 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 85 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 91 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)})
|
| /external/v8/tools/testrunner/network/ |
| distro.py | 40 self.tests.sort(cmp=lambda x, y: cmp(x.duration, y.duration)) 63 shells.sort(cmp=lambda x, y: cmp(x.total_duration, y.total_duration)) 68 peers.sort(cmp=lambda x, y: cmp(x.needed_work, y.needed_work)) 79 peers.sort(cmp=lambda x, y: cmp(x.needed_work, y.needed_work))
|
| /external/vixl/tools/ |
| git.py | 49 files_in_watched_folder = lambda n: untracked_regexp.search(n) != None
|
| /frameworks/ml/nn/runtime/test/specs/V1_0/ |
| logistic_float_2.mod.py | 33 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 % 512 for x in range(r)])()
|
| relu1_float_2.mod.py | 33 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
|