/external/chromium_org/ui/message_center/views/ |
bounded_label.h | 28 // BoundedLabels display left aligned text up to a maximum number of lines, with 42 void SetLineLimit(int lines); // Pass in -1 for no limit. 49 gfx::Size GetSizeForWidthAndLines(int width, int lines); 67 string16 GetWrappedTextForTest(int width, int lines);
|
/external/chromium_org/v8/tools/ |
disasm.py | 79 lines = out.split("\n") 81 for i, line in enumerate(lines): 88 for line in lines[header_line + 1:]:
|
/external/chromium_org/v8/tools/testrunner/local/ |
utils.py | 45 lines = [] 53 lines.append(line) 54 return lines
|
/external/v8/tools/ |
disasm.py | 79 lines = out.split("\n") 81 for i, line in enumerate(lines): 88 for line in lines[header_line + 1:]:
|
/cts/tests/tests/security/src/android/security/cts/ |
ServicePermissionsTest.java | 116 final ArrayList<String> lines = new ArrayList<String>(); local 120 lines.add(line); 127 if (lines.size() > 1) { 128 fail("dump() for " + service + " produced several lines of output; this " 133 if (lines.size() == 1) { 134 String message = lines.get(0);
|
/external/chromium_org/chrome/browser/chromeos/ |
version_loader.cc | 82 // The file contains lines such as: 90 std::vector<std::string> lines; local 91 base::SplitString(contents, '\n', &lines); 92 for (size_t i = 0; i < lines.size(); ++i) { 93 if (StartsWithASCII(lines[i], kFirmwarePrefix, false)) { 94 std::string str = lines[i].substr(std::string(kFirmwarePrefix).size());
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
python.py | 38 """Processes text lines for checking style.""" 43 def check(self, lines): 44 self._check_pep8(lines) 45 self._check_pylint(lines) 47 def _check_pep8(self, lines): 68 def _check_pylint(self, lines):
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
misc.py | 22 def format_lines(statements, lines): 25 Format a list of line numbers for printing by coalescing groups of lines as 26 long as the lines represent consecutive statements. This will coalesce 30 `lines` is [1,2,5,10,11,13,14] then the result will be "1-2, 5-11, 13-14". 37 while i < len(statements) and j < len(lines): 38 if statements[i] == lines[j]: 40 start = lines[j] 41 end = lines[j]
|
/external/markdown/markdown/ |
blockprocessors.py | 42 lines = text.split('\n') 43 for line in lines: 50 return '\n'.join(newtext), '\n'.join(lines[len(newtext):]) 53 """ Remove a tab from front of lines but allowing dedented lines. """ 54 lines = text.split('\n') 55 for i in range(len(lines)): 56 if lines[i].startswith(' '*markdown.TAB_LENGTH*level): 57 lines[i] = lines[i][markdown.TAB_LENGTH*level: [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_dis.py | 95 lines = got.split('\n') 96 lines = [line.rstrip() for line in lines] 99 if expected != lines: 103 lines)))
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
token.py | 100 lines = fp.read().split("\n") 106 for line in lines: 128 lines = [] 130 lines.append("%s = %d" % (tokens[val], val)) 131 format[start:end] = lines
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_dis.py | 95 lines = got.split('\n') 96 lines = [line.rstrip() for line in lines] 99 if expected != lines: 103 lines)))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
token.py | 100 lines = fp.read().split("\n") 106 for line in lines: 128 lines = [] 130 lines.append("%s = %d" % (tokens[val], val)) 131 format[start:end] = lines
|
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_vms.cc | 183 const std::vector<string16>& lines, 190 for (size_t i = 0; i < lines.size(); i++) { 191 if (lines[i].empty()) 194 if (StartsWith(lines[i], ASCIIToUTF16("Total of "), true)) { 195 // After the "total" line, all following lines must be empty. 196 for (size_t j = i + 1; j < lines.size(); j++) 197 if (!lines[j].empty()) 208 if (LooksLikePermissionDeniedError(lines[i])) 212 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 216 if (i == lines.size() - 1 [all...] |
/frameworks/base/core/jni/ |
com_android_internal_net_NetworkStatsFactory.cpp | 75 Vector<stats_line> lines; local 92 lines.push_back(s); 100 int size = lines.size(); 122 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); 125 uid[i] = lines[i].uid; 126 set[i] = lines[i].set; 127 tag[i] = lines[i].tag; 128 rxBytes[i] = lines[i].rxBytes; 129 rxPackets[i] = lines[i].rxPackets; 130 txBytes[i] = lines[i].txBytes [all...] |
/external/chromium_org/build/android/ |
tombstones.py | 32 lines = adb.RunShellCommand('TZ=UTC su -c ls -a -l /data/tombstones') 33 for line in lines: 62 A list of lines 99 lines = [] 100 lines += [tombstone['file'] + ' created on ' + str(tombstone['time']) + 104 print '\n'.join(lines) 106 lines += _ResolveSymbols(tombstone['data'], tombstone['stack']) 107 return lines
|
/external/chromium_org/chrome/browser/resources/chromeos/ |
about_sys.js | 7 // Contents of lines that act as delimiters for multi-line values. 124 var lines = text.split('\n'); 125 for (var i = 0, len = lines.length; i < len; i++) { 126 // Skip empty lines. 127 if (!lines[i]) 130 var delimiter = lines[i].indexOf('='); 132 if (i == lines.length - 1) 138 var name = lines[i].substring(0, delimiter); 141 if (lines[i].length > delimiter + 1) 142 value = lines[i].substring(delimiter + 1) [all...] |
/external/chromium_org/net/ftp/ |
ftp_ctrl_response_buffer.cc | 44 response_buf_.lines.push_back(line_buf_); 50 response_buf_.lines.push_back(line_buf_); 53 // Prepare to handle following lines. 67 response_buf_.lines.push_back(line.status_text); 70 // Prepare to handle following lines. 84 base::ListValue* lines = new base::ListValue(); local 85 lines->AppendStrings(response->lines); 89 dict->Set("lines", lines); [all...] |
/external/chromium_org/third_party/WebKit/Source/build/scripts/ |
in_file.py | 56 def __init__(self, lines, defaults, valid_values=None, default_parameters=None): 61 self._parse(map(str.strip, lines)) 65 lines = [] 68 lines += in_file.readlines() 69 return InFile(lines, defaults, valid_values, default_parameters) 76 def _parse(self, lines): 79 for line in lines:
|
/external/markdown/markdown/extensions/ |
codehilite.py | 120 lines = txt.splitlines() 122 for line in lines: 130 Determines language of a code block from shebang lines and whether said 132 path (even a single /) then it is assumed to be a real shebang lines and 145 #split text into lines 146 lines = self.src.split("\n") 148 fl = lines.pop(0) 165 lines.insert(0, fl) 171 lines.insert(0, fl) 173 self.src = "\n".join(lines).strip("\n" [all...] |
/external/chromium_org/chrome/common/importer/ |
firefox_importer_utils.cc | 105 std::vector<std::string> lines; local 106 base::SplitString(content, '\n', &lines); 108 for (size_t i = 0; i < lines.size(); ++i) { 109 const std::string& line = lines[i]; 262 std::vector<std::string> lines; local 263 base::SplitString(content, '\n', &lines); 266 for (size_t i = 0; i < lines.size(); ++i) { 267 TrimWhitespace(lines[i], TRIM_ALL, &lines[i]); 268 if (lines[i] == "[App]") [all...] |
/external/chromium_org/tools/deep_memory_profiler/visualizer/static/ |
graph-view.js | 18 * Generate lines for flot plotting. 114 lines: { show: true, fill: true } 123 // area. It firstly checks x range which clicked point is in, and all lines 127 // Get newest lines data from graph. 128 var lines = self.graph_.getData(); 130 var right = binarySearch.call(lines[0].data.map(function(point) { 133 if (lines.length <= 1 || right === lines.length || right === 0) 137 for (var i = 0; i < lines.length; ++i) { 138 var line = lines[i].data [all...] |
/external/chromium_org/tools/gyp/pylib/gyp/ |
mac_tool.py | 138 lines = fd.read() 142 plist = plistlib.readPlistFromString(lines) 145 lines = plistlib.writePlistToString(plist) 155 lines = string.replace(lines, evar, evalue) 165 lines = string.replace(lines, evar, evalue) 169 lines = string.replace(lines, evar, evalue) 172 lines = lines.split('\n' [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/ |
BufferedLineReaderTest.cpp | 80 // No more lines returned. 93 // No more lines returned. 179 String MakeTestData(const char** lines, const LineBreakType* breaks, int count) 183 builder.append(lines[i]); 193 const char* lines[] = { local 203 const size_t numTestLines = WTF_ARRAY_LENGTH(lines); 205 String data = MakeTestData(lines, breaks, numTestLines); 217 ASSERT_EQ(line, lines[lineCount++]); 226 const char* lines[] = { local 236 const size_t numTestLines = WTF_ARRAY_LENGTH(lines); [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |