/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_substr/ |
substr.pass.cpp | 12 // basic_string substr(size_type pos = 0, size_type n = npos) const; 23 test(const S& s, typename S::size_type pos, typename S::size_type n) 27 S str = s.substr(pos, n); 29 assert(pos <= s.size()); 30 typename S::size_type rlen = std::min(n, s.size() - pos); 32 assert(S::traits_type::compare(s.data()+pos, str.data(), rlen) == 0); 36 assert(pos > s.size());
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
MoreContactUtils.java | 174 final int[] pos = new int[2]; local 175 view.getLocationOnScreen(pos); 178 rect.left = (int) (pos[0] * appScale + 0.5f); 179 rect.top = (int) (pos[1] * appScale + 0.5f); 180 rect.right = (int) ((pos[0] + view.getWidth()) * appScale + 0.5f); 181 rect.bottom = (int) ((pos[1] + view.getHeight()) * appScale + 0.5f);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
SparseLongArray.java | 202 int pos = mSize; local 203 if (pos >= mKeys.length) { 204 growKeyAndValueArrays(pos + 1); 207 mKeys[pos] = key; 208 mValues[pos] = value; 209 mSize = pos + 1;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/ |
conf.h | 157 * \param pos Iterator variable for the current node. 163 #define snd_config_for_each(pos, next, node) \ 164 for (pos = snd_config_iterator_first(node), next = snd_config_iterator_next(pos); pos != snd_config_iterator_end(node); pos = next, next = snd_config_iterator_next(pos))
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/alsa/ |
conf.h | 157 * \param pos Iterator variable for the current node. 163 #define snd_config_for_each(pos, next, node) \ 164 for (pos = snd_config_iterator_first(node), next = snd_config_iterator_next(pos); pos != snd_config_iterator_end(node); pos = next, next = snd_config_iterator_next(pos))
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/alsa/ |
conf.h | 157 * \param pos Iterator variable for the current node. 163 #define snd_config_for_each(pos, next, node) \ 164 for (pos = snd_config_iterator_first(node), next = snd_config_iterator_next(pos); pos != snd_config_iterator_end(node); pos = next, next = snd_config_iterator_next(pos))
|
/external/wpa_supplicant_8/src/ap/ |
ap_drv_ops.c | 46 u8 buf[200], *pos; local 50 pos = buf; 51 pos = hostapd_eid_time_adv(hapd, pos); 52 if (pos != buf) { 53 if (wpabuf_resize(&beacon, pos - buf) != 0) 55 wpabuf_put_data(beacon, buf, pos - buf); 57 pos = hostapd_eid_time_zone(hapd, pos); 58 if (pos != buf) [all...] |
/external/wpa_supplicant_8/src/p2p/ |
p2p_group.c | 175 const u8 *pos, *end; local 187 pos = wpabuf_head(subelems); 188 end = pos + wpabuf_len(subelems); 190 while (end > pos) { 191 size_t frag_len = end - pos; 197 wpabuf_put_data(ie, pos, frag_len); 198 pos += frag_len; 246 const u8 *pos, *end; local 255 pos = wpabuf_head(subelems); 256 end = pos + wpabuf_len(subelems) 276 const u8 *pos, *end; local 670 const u8 *pos, *end; local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
BlockAddresses.java | 137 SourcePosition pos = one.getLastInsn().getPosition(); local 139 lasts[label] = new CodeAddress(pos); 140 ends[label] = new CodeAddress(pos);
|
/dalvik/dx/src/com/android/dx/dex/code/ |
BlockAddresses.java | 137 SourcePosition pos = one.getLastInsn().getPosition(); local 139 lasts[label] = new CodeAddress(pos); 140 ends[label] = new CodeAddress(pos);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
UnicodeChart.java | 63 float[] pos = mPos; local 68 pos[index++] = x; 69 pos[index++] = row * YMUL + YBASE;
|
/external/chromium/chrome/browser/extensions/ |
external_policy_extension_loader.cc | 62 size_t pos = extension_desc.find(';'); local 63 std::string id = extension_desc.substr(0, pos); 64 std::string update_url = extension_desc.substr(pos+1);
|
/external/chromium/chrome/browser/policy/ |
enterprise_install_attributes.cc | 83 size_t pos = registration_user_.find('@'); local 84 if (pos != std::string::npos) 85 domain = registration_user_.substr(pos + 1);
|
/external/chromium/webkit/glue/ |
multipart_response_delegate.cc | 96 int pos = PushOverLine(data_, 0); local 97 if (pos) 98 data_ = data_.substr(pos); 116 int pos = PushOverLine(data_, 0); local 117 if (pos) 118 data_ = data_.substr(pos); 201 size_t pos) { 203 if (pos < data.length() && (data[pos] == '\r' || data[pos] == '\n')) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGDocument.cpp | 88 void SVGDocument::updatePan(const FloatPoint& pos) const 91 svg->setCurrentTranslate(FloatPoint(pos.x() - m_translate.x(), pos.y() - m_translate.y()));
|
/external/chromium_org/third_party/icu/source/i18n/ |
datefmt.cpp | 235 ParsePosition& pos) const 239 int32_t start = pos.getIndex(); 245 parse(text, *fCalendar, pos); 246 if (pos.getIndex() != start) { 253 pos.setIndex(start); 254 pos.setErrorIndex(start); 273 ParsePosition pos(0); 274 UDate result = parse(text, pos); 275 if (pos.getIndex() == 0) { 278 , __FILE__, __LINE__, pos.getErrorIndex() ) [all...] |
/external/chromium_org/webkit/child/ |
multipart_response_delegate.cc | 96 int pos = PushOverLine(data_, 0); local 97 if (pos) 98 data_ = data_.substr(pos); 116 int pos = PushOverLine(data_, 0); local 117 if (pos) 118 data_ = data_.substr(pos); 201 size_t pos) { 203 if (pos < data.length() && (data[pos] == '\r' || data[pos] == '\n')) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
BlockAddresses.java | 137 SourcePosition pos = one.getLastInsn().getPosition(); local 139 lasts[label] = new CodeAddress(pos); 140 ends[label] = new CodeAddress(pos);
|
/external/e2fsprogs/lib/ext2fs/ |
fileio.c | 27 __u64 pos; member in struct:ext2_file 145 b = file->pos / file->fs->blocksize; 220 while ((file->pos < EXT2_I_SIZE(&file->inode)) && (wanted > 0)) { 228 start = file->pos % fs->blocksize; 232 left = EXT2_I_SIZE(&file->inode) - file->pos ; 237 file->pos += c; 269 start = file->pos % fs->blocksize; 284 file->pos += c; 302 file->pos = offset; 304 file->pos += offset [all...] |
/external/icu4c/i18n/ |
datefmt.cpp | 243 ParsePosition& pos) const 249 int32_t start = pos.getIndex(); 251 parse(text, *calClone, pos); 252 if (pos.getIndex() != start) { 259 pos.setIndex(start); 260 pos.setErrorIndex(start); 278 ParsePosition pos(0); 279 UDate result = parse(text, pos); 280 if (pos.getIndex() == 0) { 283 , __FILE__, __LINE__, pos.getErrorIndex() ) [all...] |
nfrs.h | 51 void format(int64_t number, UnicodeString& toAppendTo, int32_t pos) const; 52 void format(double number, UnicodeString& toAppendTo, int32_t pos) const; 54 UBool parse(const UnicodeString& text, ParsePosition& pos, double upperBound, Formattable& result) const;
|
/external/javassist/src/main/javassist/expr/ |
Handler.java | 134 int pos = iterator.append(b.get()); local 135 iterator.append(b.getExceptionTable(), pos); local 136 etable.setHandlerPc(index, pos);
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_boolhuff.h | 29 unsigned int pos; member in struct:__anon21303 80 int x = br->pos - 1; 90 br->buffer[br->pos++] = (lowvalue >> (24 - offset));
|
/external/lzma/C/ |
XzIn.c | 19 #define READ_VARINT_AND_CHECK(buf, pos, size, res) \
20 { unsigned s = Xz_ReadVarInt(buf + pos, size - pos, res); \
21 if (s == 0) return SZ_ERROR_ARCHIVE; pos += s; }
73 size_t i, numBlocks, crcStartPos, pos = 1;
local 86 READ_VARINT_AND_CHECK(buf, pos, size, &numBlocks64);
92 crcStartPos = pos;
104 READ_VARINT_AND_CHECK(buf, pos, size, &block->totalSize);
105 READ_VARINT_AND_CHECK(buf, pos, size, &block->unpackSize);
110 while ((pos & 3) != 0) [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
PropIDUtils.cpp | 82 int pos = 0;
local 85 sz[pos++] = g_WinAttrib[i];
86 sz[pos] = '\0';
|