/external/chromium_org/third_party/flot/ |
jquery.flot.canvas.min.js | 28 */(function(e){function o(t,o){var u=o.Canvas;n==null&&(r=u.prototype.getTextInfo,i=u.prototype.addText,n=u.prototype.render),u.prototype.render=function(){if(!t.getOptions().canvas)return n.call(this);var e=this.context,r=this._textCache;e.save(),e.textBaseline="middle";for(var i in r)if(s.call(r,i)){var o=r[i];for(var u in o)if(s.call(o,u)){var a=o[u],f=!0;for(var l in a)if(s.call(a,l)){var c=a[l],h=c.positions,p=c.lines;f&&(e.fillStyle=c.font.color,e.font=c.font.definition,f=!1);for(var d=0,v;v=h[d];d++)if(v.active)for(var m=0,g;g=v.lines[m];m++)e.fillText(p[m].text,g[0],g[1]);else h.splice(d--,1);h.length==0&&delete a[l]}}}e.restore()},u.prototype.getTextInfo=function(n,i,s,o,u){if(!t.getOptions().canvas)return r.call(this,n,i,s,o,u);var a,f,l,c;i=""+i,typeof s=="object"?a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family:a=s,f=this._textCache[n],f==null&&(f=this._textCache[n]={}),l=f[a],l==null&&(l=f[a]={}),c=l[i];if(c==null){var h=this.context;if(typeof s!="object"){var p=e("<div> </div>").css("position","absolute").addClass(typeof s=="string"?s:null).appendTo(this.getTextLayer(n));s={lineHeight:p.height(),style:p.css("font-style"),variant:p.css("font-variant"),weight:p.css("font-weight"),family:p.css("font-family"),color:p.css("color")},s.size=p.css("line-height",1).height(),p.remove()}a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family,c=l[i]={width:0,height:0,positions:[],lines:[],font:{definition:a,color:s.color}},h.save(),h.font=a;var d=(i+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n");for(var v=0;v<d.length;++v){var m=d[v],g=h.measureText(m);c.width=Math.max(g.width,c.width),c.height+=s.lineHeight,c.lines.push({text:m,width:g.width,height:s.lineHeight})}h.restore()}return c},u.prototype.addText=function(e,n,r,s,o,u,a,f,l){if(!t.getOptions().canvas)return i.call(this,e,n,r,s,o,u,a,f,l);var c=this.getTextInfo(e,s,o,u,a),h=c.positions,p=c.lines;r+=c.height/p.length/2,l=="middle"?r=Math.round(r-c.height/2):l=="bottom"?r=Math.round(r-c.height):r=Math.round(r),!(window.opera&&window.opera.version().split(".")[0]<12)||(r-=2);for(var d=0,v;v=h[d];d++)if(v.x==n&&v.y==r){v.active=!0;return}v={active:!0,lines:[],x:n,y:r},h.push(v);for(var d=0,m;m=p[d];d++)f=="center"?v.lines.push([Math.round(n-m.width/2),r]):f=="right"?v.lines.push([Math.round(n-m.width),r]):v.lines.push([Math.round(n),r]),r+=m.height}}var t={canvas:!0},n,r,i,s=Object.prototype.hasOwnProperty;e.p (…)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitruby/PrettyPatch/ |
PrettyPatch.rb | 85 # We won't search for intra-line diffs in lines longer than this length, to avoid hangs. See <http://webkit.org/b/56109>. 522 def initialize(lines) 523 @filename = PrettyPatch.filename_from_diff_header(lines[0].chomp) 525 for i in 0...lines.length 526 case lines[i] 528 @from = PrettyPatch.revisionOrDescription(lines[i]) 530 @filename = PrettyPatch.filename_from_diff_header(lines[i].chomp) if @filename.nil? 531 @to = PrettyPatch.revisionOrDescription(lines[i]) 536 if (IMAGE_FILE_MARKER_FORMAT.match(lines[i + 1]) or PrettyPatch.has_image_suffix(@filename)) then 539 for x in startOfSections...lines.lengt [all...] |
/external/icu4c/tools/ctestfw/ |
uperf.cpp | 86 lines(NULL), numLines(0), line_mode(TRUE), 102 lines(NULL), numLines(0), line_mode(TRUE), 213 if (lines != NULL) { 214 return lines; // don't do it again 216 lines = new ULine[MAXLINES]; 226 lines[numLines].name = new UChar[len]; 227 lines[numLines].len = len; 228 memcpy(lines[numLines].name, line, len * U_SIZEOF_UCHAR); 238 delete []lines; 242 memcpy(newLines, lines, numLines*sizeof(ULine)) [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_stereo_proc.cpp | 355 sfbNo = mp3_sfBandIndex[sfreq].l[sfbTemp+1] - mp3_sfBandIndex[sfreq].l[sfbTemp]; /* No of lines to process */ 373 sfbNo = mp3_sfBandIndex[sfreq].s[sfbTemp+1] - mp3_sfBandIndex[sfreq].s[sfbTemp]; /* No of lines to process */ 405 int32 lines; local 406 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; 407 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; 409 while (lines > 0) 415 lines = -10; 417 lines--; 449 sfbNo = mp3_sfBandIndex[sfreq].s[sfbTemp+1] - mp3_sfBandIndex[sfreq].s[sfbTemp]; /* No of lines to process */ 488 int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb] local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/ |
fancy_getopt.py | 346 # - 2 spaces before option block start lines 351 # Now generate lines of help text. (If 80 columns were good enough 357 lines = [header] 359 lines = ['Option summary:'] 370 lines.append(" --%-*s %s" % (max_opt, long, text[0])) 372 lines.append(" --%-*s " % (max_opt, long)) 379 lines.append(" --%-*s %s" % 382 lines.append(" --%-*s" % opt_names) 385 lines.append(big_indent + l) 389 return lines [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/ |
fancy_getopt.py | 346 # - 2 spaces before option block start lines 351 # Now generate lines of help text. (If 80 columns were good enough 357 lines = [header] 359 lines = ['Option summary:'] 370 lines.append(" --%-*s %s" % (max_opt, long, text[0])) 372 lines.append(" --%-*s " % (max_opt, long)) 379 lines.append(" --%-*s %s" % 382 lines.append(" --%-*s" % opt_names) 385 lines.append(big_indent + l) 389 return lines [all...] |
/dalvik/dx/tests/069-dex-source-position/ |
run | 22 dx --debug --dex --no-optimize --positions=lines --no-locals \
|
/external/chromium_org/courgette/ |
analyze_mem_test | 16 local lines=$(cat ${1} | wc -l) 18 local count="$(echo "${lines} * $p" | bc -lq | cut -d. -f1)"
|
/external/chromium_org/media/tools/layout_tests/ |
test_expectations_history_unittest.py | 24 (old_rev, new_rev, author, date, message, lines) where 25 |lines| are the entries in the test expectation file. 31 for (_, _, _, _, _, lines) in result_list: 32 if any([testname in line for line in lines]):
|
/external/chromium_org/ppapi/native_client/tools/browser_tester/browsertester/ |
rpclistener.py | 23 lines = [line.rstrip() for line in message.split('\n')] 24 text = ''.join(['%s%s\n' % (prefix, line) for line in lines])
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/test/ |
printer.py | 129 lines = failures[0].splitlines() + [''] 133 lines = errors[0].splitlines() + [''] 138 lines = [] 149 self.completed_tests.insert(0, [test_name, suffix, lines]) 151 self.completed_tests.append([test_name, suffix, lines]) 154 for test_name, msg, lines in self.completed_tests: 155 if lines: 157 for line in lines:
|
/external/chromium_org/tools/git/ |
git-diff-ide.py | 10 This is useful from an IDE that allows you to double-click lines that begin 27 output as list of lines, raises exception on error. 42 """Outputs git diff extra_args with file:line inserted into relevant lines.""" 45 lines = GitShell('git diff %s' % ' '.join(extra_args)) 46 for line in lines: 47 # Pass-through lines: 66 # Update line number from the @@ lines: 76 # Increment line number for lines that start with ' ' or '+':
|
/external/chromium_org/tools/win/split_link/ |
graph_dependencies.py | 40 lines = out.splitlines()[2:-1] 41 for line in lines:
|
/external/markdown/markdown/ |
blockparser.py | 48 def parseDocument(self, lines): 51 Given a list of lines, an ElementTree object (not just a parent Element) 58 # Create a ElementTree from the lines 60 self.parseChunk(self.root, '\n'.join(lines)) 67 blocks which will be split on blank lines, it could contain only one
|
/external/markdown/markdown/extensions/ |
abbr.py | 43 def run(self, lines): 50 for line in lines:
|
fenced_code.py | 26 Include tilde's in a code block and wrap with blank lines: 86 def run(self, lines): 88 text = "\n".join(lines)
|
/frameworks/av/services/camera/libcameraservice/device3/ |
Camera3ZslStream.cpp | 267 String8 lines; local 268 lines.appendFormat(" Stream[%d]: ZSL\n", mId); 269 write(fd, lines.string(), lines.size()); 273 lines = String8(); 274 lines.appendFormat(" Input buffers pending: %d, in flight %d\n", 276 write(fd, lines.string(), lines.size());
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
ArrayInitializerFormatter.java | 62 public void outCommentLines(String lines) { 64 mOut.print(lines);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
StringIO.py | 170 lines thus read. 173 to EOF, whole lines totalling approximately sizehint bytes (or more 177 lines = [] 180 lines.append(line) 185 return lines 284 lines = open(file, 'r').readlines() 287 for line in lines[:-2]: 289 f.writelines(lines[-2:]) 294 f.seek(len(lines[0])) 295 f.write(lines[1] [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
StringIO.py | 170 lines thus read. 173 to EOF, whole lines totalling approximately sizehint bytes (or more 177 lines = [] 180 lines.append(line) 185 return lines 284 lines = open(file, 'r').readlines() 287 for line in lines[:-2]: 289 f.writelines(lines[-2:]) 294 f.seek(len(lines[0])) 295 f.write(lines[1] [all...] |
/external/chromium_org/ppapi/generators/ |
idl_c_proto.py | 28 def CommentLines(lines, tabs=0): 33 out = '%s/*' % tab + ('\n%s *' % tab).join(lines) 37 if not lines[-1]: 46 lines = comment.split('\n') 54 if prefix_lines[0] == '*' and lines[0] == '*': 55 lines = prefix_lines + lines[1:] 57 lines = prefix_lines + lines; 58 return CommentLines(lines, tabs [all...] |
/external/chromium_org/tools/telemetry/telemetry/page/ |
csv_page_measurement_results_unittest.py | 35 def lines(self): member in class:CsvPageMeasurementResultsTest 36 lines = StringIO.StringIO(self._output.getvalue()).readlines() 37 return lines 41 rows = list(csv.reader(self.lines)) 46 rows = list(csv.reader(self.lines))
|
/external/elfutils/libdwfl/ |
dwfl_module_getsrc_file.c | 87 return &dwfl_linecu (line)->die.cu->lines->info[line->idx]; 99 for (size_t cnt = 0; cnt < cu->die.cu->lines->nlines; ++cnt) 101 Dwarf_Line *line = &cu->die.cu->lines->info[cnt]; 148 match[inner] = &cu->lines->idx[cnt]; 170 match[cur_match++] = &cu->lines->idx[cnt];
|
/build/tools/ |
java-layers.py | 20 sys.stderr.write(" - Lines consisting of two java package names: The\n") 24 sys.stderr.write(" - Lines consisting of one java package name: The\n") 27 sys.stderr.write(" - Lines consisting of a dash (+) followed by one java\n") 31 sys.stderr.write(" - Lines consisting of a plus (-) followed by one java\n") 121 lines = f.readlines() 127 lines = [lineno(x,n) for x in lines] 128 lines = [(n,s.split("#")[0].strip()) for (n,s) in lines] 129 lines = [(n,s) for (n,s) in lines if len(s) > 0 [all...] |
/ndk/sources/host-tools/sed-4.2.1/doc/ |
sed.x | 124 Replace the selected lines with 197 case the command will be executed for all input lines; 199 for input lines which match that address; or with two 201 for all input lines which match the inclusive range of 202 lines starting from the first address and continuing to 242 For example, ``sed -n 1~2p'' will print all the odd-numbered lines in 254 Match lines matching the regular expression 258 Match lines matching the regular expression 288 lines following 294 and the lines followin [all...] |