Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 590) sorted by relevance

12345678910>>...24

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pow.py7 for i in range(-1000, 1000):
13 for i in range(-100, 100):
17 for i in range(0,31):
22 for i in range(-10, 0) + range(1, 10):
24 for j in range(1, 11):
29 for i in range(1, 100):
47 for i in range(il, ih+1):
48 for j in range(jl, jh+1):
49 for k in range(kl, kh+1):
84 for i in range(-10, 11):
[all …]
Dtest_itertools.py53 return prod(range(1, n+1))
84 self.assertEqual(list(combinations(range(4), 3)),
93 indices = range(r)
96 for i in reversed(range(r)):
102 for j in range(i+1, r):
110 for indices in permutations(range(n), r):
118 for indices in combinations_with_replacement(range(n), r):
122 for n in range(7):
123 values = [5*x-12 for x in range(n)]
124 for r in range(n+2):
[all …]
Dtest_iter.py72 self.check_iterator(iter(range(10)), range(10))
76 seq = range(10)
83 self.check_for_loop(iter(range(10)), range(10))
87 seq = range(3)
97 seq = range(3)
104 seq = range(3)
110 self.check_for_loop(IteratingSequenceClass(10), range(10))
114 self.check_iterator(iter(IteratingSequenceClass(10)), range(10))
118 self.check_for_loop(SequenceClass(10), range(10))
122 self.check_iterator(iter(SequenceClass(10)), range(10))
[all …]
Dtest_sort.py45 for power in range(1, 10):
47 sizes.extend(range(n-1, n+2))
79 x = range(n)
142 L = [C() for i in range(50)]
148 L = range(50)
151 self.assertEqual(L, range(50))
156 for i in range(20):
208 data = range(-2,2)
214 data = range(10)
217 data[:] = range(20)
[all …]
Dtest_mhlib.py124 for i in range(5, 101)+range(101, 201, 2):
206 eq(all, range(5, 101)+range(101, 201, 2))
215 seqeq('5-55', range(5, 56))
216 seqeq('90-108', range(90, 101)+range(101, 109, 2))
217 seqeq('90-108', range(90, 101)+range(101, 109, 2))
219 seqeq('10:10', range(10, 20))
220 seqeq('10:+10', range(10, 20))
221 seqeq('101:10', range(101, 121, 2))
228 seqeq('first-cur', range(5, 100))
229 seqeq('150-last', range(151, 201, 2))
[all …]
Dtest_grammar.py836 self.assertEqual([(lambda a:[a**i for i in range(a+1)])(j) for j in range(5)],
882 g = ([x for x in range(10)] for x in range(1))
883 self.assertEqual(g.next(), [x for x in range(10)])
901 a = [x for x in range(10)]
903 self.assertEqual(sum(b), sum([x for x in range(10)]))
905 self.assertEqual(sum(x**2 for x in range(10)), sum([x**2 for x in range(10)]))
906 self.assertEqual(sum(x*x for x in range(10) if x%2), sum([x*x for x in range(10) if x%2]))
907 self.assertEqual(sum(x for x in (y for y in range(10))), sum([x for x in range(10)]))
908 … self.assertEqual(sum(x for x in (y for y in (z for z in range(10)))), sum([x for x in range(10)]))
909 … self.assertEqual(sum(x for x in [y for y in (z for z in range(10))]), sum([x for x in range(10)]))
[all …]
Dtest_pprint.py37 self.a = range(100)
38 self.b = range(200)
121 tuple2((1,2)), tuple3((1,2)), tuple3(range(100)),
122 [3,4], list2([3,4]), list3([3,4]), list3(range(100)),
124 range(10, -11, -1)
154 o = range(100)
159 o = tuple(range(100))
165 o = range(100)
171 o1 = list(range(10))
209 self.assertEqual(pprint.pformat(set(range(3))), 'set([0, 1, 2])')
[all …]
Dtest_deque.py37 self.assertEqual(list(d), range(-200, 400))
41 self.assertEqual(left, range(-200, 50))
42 self.assertEqual(list(d), range(50, 400))
46 self.assertEqual(right, range(150, 400))
47 self.assertEqual(list(d), range(50, 150))
52 it = iter(range(10))
56 self.assertEqual(list(d), range(7, 10))
57 self.assertEqual(d, deque(range(10), 3))
59 self.assertEqual(list(d), range(8, 11))
61 self.assertEqual(list(d), range(7, 10))
[all …]
Dsortperf.py46 for i in range(10):
99 for dummy in range(3):
107 L[-10:] = [random.random() for dummy in range(10)]
134 L = range(half - 1, -1, -1)
135 L.extend(range(half))
165 r = range(k1, k2+1) # include the end point
Dtest_iterlen.py163 self.it = iter(range(n))
166 d = range(n)
182 self.it = reversed(range(n))
185 d = range(n)
202 def __iter__(self): return iter(range(10))
207 def __iter__(self): return iter(range(10))
212 def __iter__(self): return iter(range(10))
229 b = bytearray(range(10))
235 self.assertEqual(list(NoneLengthHint()), list(range(10)))
Dtest_long_future.py148 for exp in range(base - 15, base + 15):
155 for n in range(-10, 10):
160 for n in range(250):
178 for i in range(1000):
185 for n in range(-10, 10):
189 for n in range(-20, 20):
197 for i in range(1000):
206 for _ in range(10000):
Dtest_builtin.py519 self.assertRaises(TypeError, filter, badfunc, range(5))
783 map(None, range(10)),
787 map(lambda x: x*x, range(1,4)),
845 self.assertRaises(RuntimeError, map, badfunc, range(5))
875 data = [random.randrange(200) for i in range(100)]
921 data = [random.randrange(200) for i in range(100)]
928 it = iter(range(2))
1066 self.assertEqual(range(3), [0, 1, 2])
1067 self.assertEqual(range(1, 5), [1, 2, 3, 4])
1068 self.assertEqual(range(0), [])
[all …]
Dtest_heapq.py36 for i in range(256):
67 for size in range(30):
68 heap = [random.random() for dummy in range(size)]
75 data = [random.randrange(2000) for i in range(1000)]
98 data = [random.randrange(2000) for i in range(1000)]
111 data = [random.randrange(2000) for i in range(1000)]
142 data = [random.randrange(25) for i in range(size)]
150 heap_sorted = [self.module.heappop(heap) for i in range(size)]
156 row = sorted(random.randrange(1000) for j in range(random.randrange(10)))
165 for i in range(20000):
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DStrings.py13 s = join(map(str,range(100)))
14 t = join(map(str,range(1,101)))
79 s = join(map(str,range(100)))
80 t = join(map(str,range(1,101)))
95 s = join(map(str,range(10)))
96 t = join(map(str,range(10))) + "abc"
161 s = join(map(str,range(10)))
162 t = join(map(str,range(10))) + "abc"
177 s = intern(join(map(str,range(10))))
243 s = intern(join(map(str,range(10))))
[all …]
DLists.py141 n = range(100)
142 r = range(25)
160 n = range(100)
161 r = range(25)
305 n = range(10) * 10
318 n = range(10) * 10
331 m = range(10)
332 n = range(10)
346 m = range(10)
347 n = range(10)
DUnicode.py18 s = unicode(join(map(str,range(100))))
19 t = unicode(join(map(str,range(1,101))))
84 s = unicode(join(map(str,range(100))))
85 t = unicode(join(map(str,range(1,101))))
100 s = unicode(join(map(str,range(10))))
101 t = unicode(join(map(str,range(10))) + "abc")
166 s = unicode(join(map(str,range(10))))
167 t = unicode(join(map(str,range(10))) + "abc")
256 s = unicode(join(map(str,range(100))))
302 s = unicode(join(map(str,range(100))))
[all …]
DConstructs.py478 l1 = range(1000)
479 l2 = range(10)
480 l3 = range(5)
489 l1 = range(1000)
490 l2 = range(10)
491 l3 = range(5)
503 l1 = range(100)
562 l1 = range(1000)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/
Dmkstringprep.py7 for i in range(0, 0x110000):
12 for i in range(0, 0x110000):
30 for i in range(prev, prev+span+1):
95 for i in range(start, end+1):
130 Cn -= set(range(0xFDD0, 0xFDF0))
132 Cn -= set(range(0xFFFE, 0x110000, 0x10000))
133 Cn -= set(range(0xFFFF, 0x110000, 0x10000))
269 Cc_ascii = Cc & set(range(128))
322 nonchar = set(range(0xFDD0,0xFDF0) +
323 range(0xFFFE,0x110000,0x10000) +
[all …]
/device/linaro/bootloader/edk2/QuarkPlatformPkg/
DQuarkPlatformPkg.dec117 …# Legacy Bridge protected BIOS range register configs, if == 0 then do nothing since register defa…
370 # Identifies the number of Contained Element records that follow, in the range 0 to 255.
374 # Identifies the byte length of each Contained Element record that follow, in the range 0 to 255.
380 # The valid range is between 0 and 16
388 # The valid range is between 0 to 0xFF, and 0 here means EfiPortConnectorTypeNone
391 # The valid range is between 0 to 0xFF, and 0x0F here means EfiPortConnectorTypePS2
394 # The valid range is between 0 to 0xFF, and 0x0D here means EfiPortTypeKeyboard
402 # The valid range is between 0 to 0xFF, and 0 here means EfiPortConnectorTypeNone
405 # The valid range is between 0 to 0xFF, and 0x0F here means EfiPortConnectorTypePS2
408 # The valid range is between 0 to 0xFF, and 0x0E here means EfiPortTypeMouse
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/data/
Dpy2_test_grammar.py825 self.assertEqual([(lambda a:[a**i for i in range(a+1)])(j) for j in range(5)],
871 g = ([x for x in range(10)] for x in range(1))
872 self.assertEqual(g.next(), [x for x in range(10)])
890 a = [x for x in range(10)]
892 self.assertEqual(sum(b), sum([x for x in range(10)]))
894 self.assertEqual(sum(x**2 for x in range(10)), sum([x**2 for x in range(10)]))
895 self.assertEqual(sum(x*x for x in range(10) if x%2), sum([x*x for x in range(10) if x%2]))
896 self.assertEqual(sum(x for x in (y for y in range(10))), sum([x for x in range(10)]))
897 … self.assertEqual(sum(x for x in (y for y in (z for z in range(10)))), sum([x for x in range(10)]))
898 … self.assertEqual(sum(x for x in [y for y in (z for z in range(10))]), sum([x for x in range(10)]))
[all …]
Dpy3_test_grammar.py773 self.assertEqual([(lambda a:[a**i for i in range(a+1)])(j) for j in range(5)],
819 g = ([x for x in range(10)] for x in range(1))
820 self.assertEqual(next(g), [x for x in range(10)])
838 a = [x for x in range(10)]
840 self.assertEqual(sum(b), sum([x for x in range(10)]))
842 self.assertEqual(sum(x**2 for x in range(10)), sum([x**2 for x in range(10)]))
843 self.assertEqual(sum(x*x for x in range(10) if x%2), sum([x*x for x in range(10) if x%2]))
844 self.assertEqual(sum(x for x in (y for y in range(10))), sum([x for x in range(10)]))
845 … self.assertEqual(sum(x for x in (y for y in (z for z in range(10)))), sum([x for x in range(10)]))
846 … self.assertEqual(sum(x for x in [y for y in (z for z in range(10))]), sum([x for x in range(10)]))
[all …]
/device/google/crosshatch/audio/
Dconvert_config_string.py11 for i in range(len(inlist)-1):
13 for j in range(4*8):
52 for i in range(21,len(binarydata)-1):
106 for i in range(21,len(binarydata)-1):
177 for i in range(len(binarydata)-1):
184 for i in range(len(binarydata1)-1):
227 for r in range(2,len(sline)-1,1):
232 for r in range(2,len(sline)-1,1):
264 for i in range(len(RX)-1):
272 for i in range(len(TX)-1):
/device/google/bonito/audio/
Dconvert_config_string.py11 for i in range(len(inlist)-1):
13 for j in range(4*8):
52 for i in range(21,len(binarydata)-1):
106 for i in range(21,len(binarydata)-1):
177 for i in range(len(binarydata)-1):
184 for i in range(len(binarydata1)-1):
227 for r in range(2,len(sline)-1,1):
232 for r in range(2,len(sline)-1,1):
264 for i in range(len(RX)-1):
272 for i in range(len(TX)-1):
/device/google/cuttlefish_common/common/vsoc/lib/
Dcircqueue_impl.h135 Range range; in Write() local
137 intptr_t rval = this->WriteReserveLocked(r, bytes, &range, non_blocking); in Write()
142 this->CopyInRange(buffer_in, range); in Write()
145 this->w_pub_ = range.end_idx; in Write()
203 Range range; in Writev() local
207 this->WriteReserveLocked(r, buffered_size, &range, non_blocking); in Writev()
212 Range header = range; in Writev()
215 static_cast<uint32_t>(range.start_idx + sizeof(uint32_t)), in Writev()
216 static_cast<uint32_t>(range.start_idx + sizeof(uint32_t) + bytes)}; in Writev()
227 this->w_pub_ = range.end_idx; in Writev()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/
DGenericMemoryTestDxe.uni2 // This driver first constructs the non-tested memory range, then performs the R/W/V memory test.
4 // This driver first constructs the non-tested memory range, then performs the R/W/V memory test.
19 #string STR_MODULE_ABSTRACT #language en-US "Constructs the non-tested memory range, th…
21 … #language en-US "This driver first constructs the non-tested memory range, then performs the…

12345678910>>...24