Home
last modified time | relevance | path

Searched refs:ifilter (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_future_builtins.py24 from itertools import imap, izip, ifilter
29 self.assertEqual(filter, ifilter)
Dtest_itertools.py541 self.assertEqual(list(ifilter(isEven, range(6))), [0,2,4])
542 self.assertEqual(list(ifilter(None, [0,1,0,2,0])), [1,2])
543 self.assertEqual(list(ifilter(bool, [0,1,0,2,0])), [1,2])
544 self.assertEqual(take(4, ifilter(isEven, count())), [0,2,4,6])
545 self.assertRaises(TypeError, ifilter)
546 self.assertRaises(TypeError, ifilter, lambda x:x)
547 self.assertRaises(TypeError, ifilter, lambda x:x, range(6), 7)
548 self.assertRaises(TypeError, ifilter, isEven, 3)
549 self.assertRaises(TypeError, ifilter(range(6), range(6)).next)
1006 for f in (ifilter, ifilterfalse, imap, takewhile, dropwhile, starmap):
[all …]
/external/libchrome/base/android/java/src/org/chromium/base/
DPowerMonitor.java42 IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in create() local
43 Intent batteryStatusIntent = context.registerReceiver(null, ifilter); in create()
/external/yapf/yapf/yapflib/
Dpy3compat.py36 ifilter = filter variable
64 from itertools import ifilter
/external/libchrome/third_party/jinja2/
D_compat.py40 ifilter = filter variable
66 from itertools import imap, izip, ifilter
Denvironment.py31 from jinja2._compat import imap, ifilter, string_types, iteritems, \
757 x = list(ifilter(filter_func, x))
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py7 from itertools import ifilter
17 field = next(ifilter(lambda field: field.name == named_value.name,
/external/python/cpython2/Lib/
Dsets.py57 from itertools import ifilter, ifilterfalse
216 common = ifilter(big._data.__contains__, little)
484 for elt in ifilter(data.__contains__, other):
Dfilecmp.py14 from itertools import ifilter, ifilterfalse, imap, izip
134 self.common = map(a.__getitem__, ifilter(b.__contains__, a))
/external/python/google-api-python-client/
Dsamples-index.py80 matches = itertools.ifilter(lambda x: x.startswith(name + ":"), lines)
/external/python/cpython2/Doc/library/
Dfuture_builtins.rst41 Works like :func:`itertools.ifilter`.
Ditertools.rst55 :func:`ifilter` pred, seq elements of seq where pred(elem) is true …
344 .. function:: ifilter(predicate, iterable)
350 def ifilter(predicate, iterable):
351 # ifilter(lambda x: x%2, range(10)) --> 1 3 5 7 9
D2to3.rst295 Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and
301 Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and
Dfunctions.rst496 See :func:`itertools.ifilter` and :func:`itertools.ifilterfalse` for iterator
/external/yapf/yapftests/
Dcomment_splicer_test.py41 py3compat.ifilter(lambda c: pytree_utils.NodeName(c) == name,
/external/libaom/libaom/av1/encoder/
Dencoder.c5187 InterpFilter ifilter) { in get_interp_filter_selected() argument
5190 return buf->interp_filter_selected[ifilter]; in get_interp_filter_selected()
5202 for (InterpFilter ifilter = EIGHTTAP_REGULAR; ifilter <= MULTITAP_SHARP; in setup_interp_filter_search_mask() local
5203 ++ifilter) { in setup_interp_filter_search_mask()
5204 ref_total[ref] += get_interp_filter_selected(cm, ref, ifilter); in setup_interp_filter_search_mask()
5211 for (InterpFilter ifilter = EIGHTTAP_REGULAR; ifilter <= MULTITAP_SHARP; in setup_interp_filter_search_mask() local
5212 ++ifilter) { in setup_interp_filter_search_mask()
5213 int last_score = get_interp_filter_selected(cm, LAST_FRAME, ifilter) * 30; in setup_interp_filter_search_mask()
5216 get_interp_filter_selected(cm, LAST2_FRAME, ifilter) * 20 + in setup_interp_filter_search_mask()
5217 get_interp_filter_selected(cm, LAST3_FRAME, ifilter) * 20 + in setup_interp_filter_search_mask()
[all …]
/external/python/cpython3/Doc/library/
D2to3.rst294 Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and
300 Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c4670 INTERP_FILTER ifilter; local
4677 for (ifilter = EIGHTTAP; ifilter <= EIGHTTAP_SHARP; ++ifilter)
4678 ref_total[ref] += cpi->interp_filter_selected[ref][ifilter];
4680 for (ifilter = EIGHTTAP; ifilter <= EIGHTTAP_SHARP; ++ifilter) {
4682 cpi->interp_filter_selected[LAST_FRAME][ifilter] == 0) &&
4684 cpi->interp_filter_selected[GOLDEN_FRAME][ifilter] * 50 <
4687 cpi->interp_filter_selected[ALTREF_FRAME][ifilter] * 50 <
4689 mask |= 1 << ifilter;
/external/python/cpython2/Doc/howto/
Dfunctional.rst661 :func:`itertools.ifilter`, that returns an iterator and can therefore handle
983 ``itertools.ifilter(predicate, iter)`` returns all the elements for which the
989 itertools.ifilter(is_even, itertools.count()) =>
/external/python/six/documentation/
Dindex.rst580 | ``filter`` | :func:`py2:itertools.ifilter` | :func:`py3:filter` …
/external/python/cpython3/Doc/whatsnew/
D2.3.rst1345 languages. For example, ``itertools.ifilter(predicate, iterator)`` returns all
/external/python/cpython2/Doc/whatsnew/
D2.3.rst1345 languages. For example, ``itertools.ifilter(predicate, iterator)`` returns all
/external/python/cpython3/Misc/
DHISTORY17027 - Code for itertools ifilter(), imap(), and izip() moved to bultins