/external/fonttools/Lib/fontTools/ |
D | merge.py | 35 def equal(lst): argument 36 lst = list(lst) 37 t = iter(lst) 39 assert all(item == first for item in t), "Expected all items to be equal: %s" % lst 42 def first(lst): argument 43 return next(iter(lst)) 45 def recalculate(lst): argument 48 def current_time(lst): argument 51 def bitwise_and(lst): argument 52 return reduce(operator.and_, lst) [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python3/crcmod/ |
D | crcmod.py | 110 lst = [] 111 lst.append('poly = 0x%X' % self.poly) 112 lst.append('reverse = %s' % self.reverse) 114 lst.append('initCrc = %s' % (fmt % self.initCrc)) 115 lst.append('xorOut = %s' % (fmt % self.xorOut)) 116 lst.append('crcValue = %s' % (fmt % self.crcValue)) 117 return '\n'.join(lst) 160 lst = [] 162 lst.append(crc & 0xFF) 165 lst.reverse() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python2/crcmod/ |
D | crcmod.py | 109 lst = [] 110 lst.append('poly = 0x%X' % self.poly) 111 lst.append('reverse = %s' % self.reverse) 113 lst.append('initCrc = %s' % (fmt % self.initCrc)) 114 lst.append('xorOut = %s' % (fmt % self.xorOut)) 115 lst.append('crcValue = %s' % (fmt % self.crcValue)) 116 return '\n'.join(lst) 159 lst = [] 161 lst.append(chr(crc & 0xFF)) 164 lst.reverse() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod_osx/crcmod/ |
D | crcmod.py | 109 lst = [] 110 lst.append('poly = 0x%X' % self.poly) 111 lst.append('reverse = %s' % self.reverse) 113 lst.append('initCrc = %s' % (fmt % self.initCrc)) 114 lst.append('xorOut = %s' % (fmt % self.xorOut)) 115 lst.append('crcValue = %s' % (fmt % self.crcValue)) 116 return '\n'.join(lst) 159 lst = [] 161 lst.append(chr(crc & 0xFF)) 164 lst.reverse() [all …]
|
/external/deqp/modules/gles3/scripts/ |
D | genutil.py | 83 def shuffled(lst): argument 84 tmp = lst[:] 88 def repeatToLength(lst, toLength): argument 89 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)] 93 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument 94 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument 95 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument 96 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument 97 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument 98 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument [all …]
|
/external/deqp/modules/gles31/scripts/ |
D | genutil.py | 83 def shuffled(lst): argument 84 tmp = lst[:] 88 def repeatToLength(lst, toLength): argument 89 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)] 93 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument 94 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument 95 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument 96 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument 97 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument 98 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument [all …]
|
/external/deqp/modules/gles2/scripts/ |
D | genutil.py | 83 def shuffled(lst): argument 84 tmp = lst[:] 88 def repeatToLength(lst, toLength): argument 89 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)] 93 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument 94 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument 95 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument 96 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument 97 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument 98 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument [all …]
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | firmware_log.py | 167 average = lambda lst: float(sum(lst)) / len(lst) argument 168 get_sums = lambda lst: [sum(count) for count in zip(*lst)] argument 169 _pct = lambda lst: float(lst[0]) / lst[1] * 100 argument 177 _missed_pct = lambda lst: (float(lst[1] - lst[0]) / lst[1] * 100 argument 178 if lst[1] != 0 else 0) 183 pct_by_numbers = lambda lst: _pct(get_sums(lst)) argument 192 pct_by_missed_numbers = lambda lst: _missed_pct(get_sums(lst)) argument 198 pct_by_cases_neq = lambda lst: _pct( argument 199 [len([pair for pair in lst if pair[0] != pair[1]]), len(lst)]) 207 pct_by_cases_less = lambda lst: _pct( argument [all …]
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
D | converters.py | 21 lst = obj.split(sep) 23 lst = [v.strip() for v in lst] 24 return lst
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
D | peers.cpp | 428 QModelIndexList lst = model.match(model.index(0, 0), in add_station() local 431 for (int i = 0; i < lst.size(); i++) { in add_station() 433 item = model.itemFromIndex(lst[i]); in add_station() 438 model.removeRow(lst[i].row()); in add_station() 564 QModelIndexList lst = model.match(model.index(0, 0), peer_role_bss_id, in remove_bss() local 566 if (lst.size() == 0) in remove_bss() 568 model.removeRow(lst[0].row()); in remove_bss() 784 QModelIndexList lst = model.match(model.index(0, 0), peer_role_address, in find_addr() local 786 if (lst.size() == 0) in find_addr() 788 return model.itemFromIndex(lst[0]); in find_addr() [all …]
|
/external/markdown/markdown/ |
D | blockprocessors.py | 274 lst = sibling 276 if len(lst) and lst[-1].text and not len(lst[-1]): 277 p = markdown.etree.SubElement(lst[-1], 'p') 278 p.text = lst[-1].text 279 lst[-1].text = '' 281 li = markdown.etree.SubElement(lst, 'li') 288 lst = markdown.etree.SubElement(parent, self.TAG) 295 self.parser.parseBlocks(lst[-1], [item]) 298 li = markdown.etree.SubElement(lst, 'li')
|
D | treeprocessors.py | 270 lst = self.__processPlaceholders(self.__handleInline( 272 stack += lst 273 insertQueue.append((child, lst)) 278 for element, lst in insertQueue: 284 for newChild in lst:
|
/external/libxml2/ |
D | gentest.py | 942 lst = open("missing.lst", "w") variable 943 lst.write("Missing support for %d types" % (len(missing_list))) 944 lst.write("\n") 946 lst.write("%s: %d :" % (miss[1], miss[0])) 951 lst.write(" ...") 953 lst.write(" %s" % (n)) 954 lst.write("\n") 955 lst.write("\n") 956 lst.write("\n") 957 lst.write("Missing support per module"); [all …]
|
D | genChRanges.py | 27 def makeRange(lst): argument 30 while pos < len(lst): 32 s = lst[pos:].index(1) # look for start of next range 37 e = lst[pos:].index(0) # look for end of range 40 e = len(lst)
|
/external/icu/icu4c/source/extra/uconv/ |
D | Makefile.in | 151 $(RESFILES) $(RESDIR)/$(RESDIR).lst: | build-dir 154 $(UCONVMSG_LIB): $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc 155 …GNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst 157 $(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk 165 install-resfiles: $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc 167 …DIR) -O pkgdata.inc -m $(PKGMODE) -d $(RESDIR) -I $(INSTALLTO) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/ |
D | cwutil | 84 def simplify(lst): argument 85 return lst[0] if len(lst) == 1 else lst
|
/external/bison/djgpp/ |
D | djunpack.bat | 54 sed "1{s/^.*bison-/djtar -x -p -o bison-/;s|$|djgpp/fnchange.lst %%1 > fnchange.tmp|};2,$d" top_src… 59 Rem Extract fnchange.lst from archive. 63 sed -f version.sed < fnchange.tmp > fnchange.lst 68 djtar -x -n fnchange.lst %1 69 del fnchange.lst 78 echo FAIL: DJTAR is not available or no fnchange.lst file in %1.
|
/external/zlib/src/contrib/masmx86/ |
D | bld_ml32.bat | 1 ml /coff /Zi /c /Flmatch686.lst match686.asm 2 ml /coff /Zi /c /Flinffas32.lst inffas32.asm
|
/external/autotest/contrib/ |
D | db_cleanup.py | 117 lst = [] 120 lst.append(next(itr)) 121 yield lst 123 if lst: 124 yield lst
|
/external/iproute2/ip/ |
D | ipmaddr.c | 74 static void maddr_ins(struct ma_info **lst, struct ma_info *m) in maddr_ins() argument 78 for (; (mp = *lst) != NULL; lst = &mp->next) { in maddr_ins() 82 m->next = *lst; in maddr_ins() 83 *lst = m; in maddr_ins()
|
/external/chromium-trace/catapult/third_party/WebOb/webob/ |
D | multidict.py | 46 def view_list(cls, lst): argument 50 if not isinstance(lst, list): 53 % (cls.__name__, lst)) 55 obj._items = lst 214 lst = args[0] 215 if len(lst) != len(dict(lst)):
|
/external/autotest/client/site_tests/kernel_Lmbench/ |
D | kernel_Lmbench.py | 107 lst = out.split() 111 useconds = float(lst[idx])
|
/external/opencv3/cmake/ |
D | OpenCVGenPkgconfig.cmake | 12 macro(fix_prefix lst isown) 14 foreach(item ${${lst}}) 33 set(${lst} ${_lst})
|
/external/chromium-trace/catapult/third_party/Paste/paste/ |
D | config.py | 61 def _pop_from(self, lst, conf): argument 62 popped = lst.pop()
|
/external/opencv3/modules/imgproc/src/ |
D | hough.cpp | 222 std::vector<hough_index> lst; in HoughLinesSDiv() local 244 lst.push_back(hough_index(threshold, -1.f, 0.f)); in HoughLinesSDiv() 379 int pos = (int)(lst.size() - 1); in HoughLinesSDiv() 380 if( pos < 0 || lst[pos].value < mcaccum[index] ) in HoughLinesSDiv() 385 lst.push_back(vi); in HoughLinesSDiv() 388 if( lst[pos].value > vi.value ) in HoughLinesSDiv() 390 lst[pos+1] = lst[pos]; in HoughLinesSDiv() 392 lst[pos+1] = vi; in HoughLinesSDiv() 393 if( (int)lst.size() > linesMax ) in HoughLinesSDiv() 394 lst.pop_back(); in HoughLinesSDiv() [all …]
|