/external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/ |
properties.rb | 24 @properties << [$text, $type, $line, $pos, $index, $channel, $start, $stop] 35 text, type, line, pos, index, channel, start, stop = lexer.properties[ 0 ] 39 pos.should == 0 45 text, type, line, pos, index, channel, start, stop = lexer.properties[ 1 ] 49 pos.should == 7 56 text, type, line, pos, index, channel, start, stop = lexer.properties[ 2 ] 60 pos.should == 1
|
/external/chromium_org/third_party/WebKit/Source/platform/network/ |
HTTPRequest.cpp | 44 const char* pos = data; local 48 size_t requestLineLength = request->parseRequestLine(pos, remainingLength, failureReason); 51 pos += requestLineLength; 55 size_t headersLength = request->parseHeaders(pos, remainingLength, failureReason); 58 pos += headersLength; 62 size_t dataLength = request->parseRequestBody(pos, remainingLength); 63 pos += dataLength;
|
/external/libnl-headers/netlink/ |
msg.h | 118 * @arg pos loop counter, set to current attribute 123 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ 124 nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \ 129 * @arg pos loop counter, set to current message 134 #define nlmsg_for_each_msg(pos, head, len, rem) \ 135 for (pos = head, rem = len; \ 136 nlmsg_ok(pos, rem); \ 137 pos = nlmsg_next(pos, &(rem)))
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
trie-search.cc | 316 std::size_t pos = 0; local 320 const std::size_t prev_pos = pos; 322 trie_->trie_restore(get_link(node), key_buf, key_buf_size, pos); local 324 tail_restore(node, key_buf, key_buf_size, pos); 326 if (pos < key_buf_size) { 327 std::reverse(key_buf + prev_pos, key_buf + pos); 330 if (pos < key_buf_size) { 331 key_buf[pos] = labels_[node]; 333 ++pos; 337 if (pos < key_buf_size) 349 trie_->trie_restore(get_link(node), key_buf, key_buf_size, pos); local 390 std::size_t pos = 0; local 488 std::size_t pos = 0; local 512 std::size_t pos = 0; local 528 std::size_t pos = 0; local 552 std::size_t pos = 0; local 627 std::size_t pos = 0; local [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
patricia_trie_reading_utils.h | 30 static int getPtNodeArraySizeAndAdvancePosition(const uint8_t *const buffer, int *const pos); 32 static NodeFlags getFlagsAndAdvancePosition(const uint8_t *const buffer, int *const pos); 34 static int getCodePointAndAdvancePosition(const uint8_t *const buffer, int *const pos); 38 const int maxLength, int *const outBuffer, int *const pos); 42 const int maxLength, int *const pos); 44 static int readProbabilityAndAdvancePosition(const uint8_t *const buffer, int *const pos); 47 const NodeFlags flags, int *const pos);
|
/packages/inputmethods/PinyinIME/jni/share/ |
ngram.cpp | 64 for (size_t pos = 0; pos < num; pos++) { 66 idx = qsearch_nearest(code_book, freqs[pos], 0, kCodeBookSize - 1); 67 if (idx != code_idx[pos]) 69 code_idx[pos] = idx; 86 for (size_t pos = 0; pos < num; pos++) { 87 ret += distance(freqs[pos], code_book[code_idx[pos]]) [all...] |
/external/wpa_supplicant_8/src/ap/ |
wnm_ap.c | 57 u8 *pos; local 105 pos = (u8 *)mgmt->u.action.u.wnm_sleep_resp.variable; 111 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos); 112 pos += gtk_elem_len; 116 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos); 123 pos += igtk_elem_len; 132 os_memcpy(pos, &wnmsleep_ie, wnmsleep_ie_len); 134 pos += wnmsleep_ie_len; 136 os_memcpy(pos, wnmtfs_ie, wnmtfs_ie_len); 191 const u8 *pos = frm local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
tncc.c | 588 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos) 596 os_memcpy(pos, imc->imc_send, imc->imc_send_len); 597 pos += imc->imc_send_len; 603 return pos; 656 char *pos = os_strstr(start, "<Type>"); local 657 if (pos == NULL) 659 pos += 6; 660 *type = strtoul(pos, NULL, 16); 667 char *pos, *pos2; local 670 pos = os_strstr(start, "<Base64>") 693 char *pos, *pos2, saved; local 737 char *buf, *start, *end, *pos, *pos2, *payload; local 1054 char *pos, *pos2; local 1117 char *config, *end, *pos, *line_end; local 1329 const u8 *pos; local [all...] |
/external/chromium/crypto/ |
rsa_private_key.cc | 217 bool PrivateKeyInfoCodec::ReadInteger(uint8** pos, 220 return ReadIntegerImpl(pos, end, out, big_endian_); 223 bool PrivateKeyInfoCodec::ReadIntegerWithExpectedSize(uint8** pos, 228 if (!ReadIntegerImpl(pos, end, &temp, true)) // Big-Endian 253 bool PrivateKeyInfoCodec::ReadIntegerImpl(uint8** pos, 258 if (!ReadTypeHeaderAndLength(pos, end, kIntegerTag, &length) || !length) 262 if (**pos == 0x00) { 263 ++(*pos); 268 out->insert(out->end(), *pos, (*pos) + length) [all...] |
/external/chromium_org/crypto/ |
rsa_private_key.cc | 214 bool PrivateKeyInfoCodec::ReadInteger(uint8** pos, 217 return ReadIntegerImpl(pos, end, out, big_endian_); 220 bool PrivateKeyInfoCodec::ReadIntegerWithExpectedSize(uint8** pos, 225 if (!ReadIntegerImpl(pos, end, &temp, true)) // Big-Endian 247 bool PrivateKeyInfoCodec::ReadIntegerImpl(uint8** pos, 252 if (!ReadTypeHeaderAndLength(pos, end, kIntegerTag, &length) || !length) 256 if (**pos == 0x00) { 257 ++(*pos); 262 out->insert(out->end(), *pos, (*pos) + length) [all...] |
/external/smack/src/org/xbill/DNS/ |
Name.java | 104 int pos = offset(MAXOFFSETS - 1); local 106 pos += (name[pos] + 1); 107 return (pos); 143 for (int i = 0, pos = start; i < n; i++) { 144 int len = array[pos]; 148 pos += len; 163 for (int i = 0, pos = length; i < n; i++) { 164 setoffset(labels + i, pos); 165 pos += (newname[pos] + 1) 219 int pos = 1; local 345 int len, pos; local 620 int pos = offset(n); local 634 int pos = offset(n); local 657 int pos = -1; local [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
TreeWalker.java | 132 * @param pos Node in the tree where to start traversal 136 public void traverse(Node pos) throws org.xml.sax.SAXException 141 Node top = pos; 143 while (null != pos) 145 startNode(pos); 147 Node nextNode = pos.getFirstChild(); 151 endNode(pos); 153 if (top.equals(pos)) 156 nextNode = pos.getNextSibling(); 160 pos = pos.getParentNode() [all...] |
/external/wpa_supplicant_8/src/tls/ |
tlsv1_record.c | 154 u8 *pos, *ct_start, *length, *cpayload; local 159 pos = buf; 160 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size) 164 ct_start = pos; 165 *pos++ = content_type; 167 WPA_PUT_BE16(pos, rl->tls_version); 168 pos += 2; 170 length = pos; 172 pos += 2; 174 cpayload = pos; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TextAlign.java | 57 float[] pos = new float[n * 2]; local 60 pos[i*2 + 0] = accumulatedX; 61 pos[i*2 + 1] = y; 64 return pos; 93 float[] pos = mPos; local 118 for (int i = 0; i < pos.length/2; i++) { 119 canvas.drawLine(pos[i*2+0], pos[i*2+1]-DY, 120 pos[i*2+0], pos[i*2+1]+DY*2, p) [all...] |
/external/javassist/src/main/javassist/expr/ |
MethodCall.java | 29 protected MethodCall(int pos, CodeIterator i, CtClass declaring, 31 super(pos, i, declaring, m); 35 int pos = currentPos; local 36 int c = iterator.byteAt(pos); 37 int index = iterator.u16bitAt(pos + 1); 86 int pos = currentPos; local 87 int c = iterator.byteAt(pos); 88 int index = iterator.u16bitAt(pos + 1); 181 int pos = currentPos; local 182 int index = iterator.u16bitAt(pos + 1) [all...] |
/external/oprofile/libpp/ |
profile.cpp | 49 odb_node_nr_t node_nr, pos; local 51 for (pos = 0; pos < node_nr; ++pos) 52 count += node[pos].value; 109 odb_node_nr_t node_nr, pos; local 112 for (pos = 0; pos < node_nr; ++pos) { 114 ordered_samples.find(node[pos].key) [all...] |
/external/yaffs2/yaffs2/ |
devextras.h | 189 * @pos: the &struct list_head to use as a loop counter. 192 #define list_for_each(pos, head) \ 193 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 194 pos = pos->next, prefetch(pos->next)) 199 * @pos: the &struct list_head to use as a loop counter. 203 #define list_for_each_safe(pos, n, head) [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
set_sign.cpp | 178 Word16 pos = 0; //initialization only needed to keep gcc silent 211 pos = j; 215 dn2[pos] = -1; 253 Word16 pos = 0; /* initialization only needed to keep gcc silent */ local 288 pos = j; 292 dn2[pos] = -1; 369 Word16 pos = 0; // initialization only needed to keep gcc silent 428 pos = j; 432 pos_max[i] = pos; 447 pos = ipos[0] 504 Word16 pos = 0; \/* initialization only needed to keep gcc silent *\/ local [all...] |
/frameworks/ex/variablespeed/jni/ |
ring_buffer.cc | 102 int pos = Tell(reader) % size_; local 103 if (pos + num_frames <= size_) { 104 memcpy(destination, samples_ + pos * num_channels_, 107 int wrapped = size_ - pos; 108 memcpy(destination, samples_ + pos * num_channels_, 117 int pos = Tell(reader) % size_; local 118 if (pos + num_frames <= size_) { 119 return samples_ + pos * num_channels_; 137 int pos = Tell(reader) % size_; local 138 if (pos + num_frames <= size_) [all...] |
/external/chromium_org/v8/test/mjsunit/ |
array-functions-prototype-misc.js | 125 var pos = poses[pos_pos]; 126 if (pos > 100) { 127 var a = new_function(pos); 128 assertEquals(pos, a.length); 130 assertEquals(pos + 1, a.length); 133 var c = splice_function(a, 10, pos - 20); 134 assertEquals(pos - 20, c.length); 140 the_prototype["" + (pos + 1)] = 'baz'; 148 if (pos == 0) { 153 var a = new_function(pos); [all...] |
/external/v8/test/mjsunit/ |
array-functions-prototype-misc.js | 125 var pos = poses[pos_pos]; 126 if (pos > 100) { 127 var a = new_function(pos); 128 assertEquals(pos, a.length); 130 assertEquals(pos + 1, a.length); 133 var c = splice_function(a, 10, pos - 20); 134 assertEquals(pos - 20, c.length); 140 the_prototype["" + (pos + 1)] = 'baz'; 148 if (pos == 0) { 153 var a = new_function(pos); [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
stringutils.cc | 99 for (size_t pos = 0; pos < srclen; ++pos) 100 ASSERT(static_cast<unsigned char>(source[pos]) < 128); 114 size_t pos = 0; 115 while ((pos = s->find(search, pos, search_len)) != std::string::npos) { 116 s->replace(pos, search_len, replace, replace_len); 117 pos += replace_len;
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
AutoTableLayout.cpp | 349 for (unsigned pos = effCol; pos < lastCol; ++pos) { 350 if (!m_layoutStruct[pos].effectiveLogicalWidth.isPercent()) 351 totalWidth += m_layoutStruct[pos].effectiveMaxLogicalWidth; 354 for (unsigned pos = effCol; pos < lastCol && totalWidth > 0; ++pos) { 355 if (!m_layoutStruct[pos].effectiveLogicalWidth.isPercent()) { 356 float percent = percentMissing * static_cast<float>(m_layoutStruct[pos].effectiveMaxLogicalWidth) / totalWidth 466 unsigned pos = 0; local 710 int pos = 0; local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stringutils.cc | 99 for (size_t pos = 0; pos < srclen; ++pos) 100 ASSERT(static_cast<unsigned char>(source[pos]) < 128); 114 size_t pos = 0; 115 while ((pos = s->find(search, pos, search_len)) != std::string::npos) { 116 s->replace(pos, search_len, replace, replace_len); 117 pos += replace_len;
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/pgen2/ |
tokenize.py | 373 pos, max = 0, len(line) 380 pos = end = endmatch.end(0) 399 while pos < max: # measure leading whitespace 400 if line[pos] == ' ': column = column + 1 401 elif line[pos] == '\t': column = (column//tabsize + 1)*tabsize 402 elif line[pos] == '\f': column = 0 404 pos = pos + 1 405 if pos == max: break 407 if line[pos] in '#\r\n': # skip comments or blank line [all...] |