/external/openssh/openbsd-compat/ |
base64.c | 201 char *pos; local 213 pos = strchr(Base64, ch); 214 if (pos == 0) /* A non-base64 character. */ 222 target[tarindex] = (pos - Base64) << 2; 230 target[tarindex] |= (pos - Base64) >> 4; 231 target[tarindex+1] = ((pos - Base64) & 0x0f) 241 target[tarindex] |= (pos - Base64) >> 2; 242 target[tarindex+1] = ((pos - Base64) & 0x03) 252 target[tarindex] |= (pos - Base64);
|
/external/oprofile/daemon/ |
opd_cookie.c | 136 struct list_head * pos; local 142 list_for_each(pos, &hashes[hash]) { 143 entry = list_entry(pos, struct cookie_entry, list); 159 struct list_head * pos; local 165 list_for_each(pos, &hashes[hash]) { 166 entry = list_entry(pos, struct cookie_entry, list); 181 struct list_head * pos; local 190 list_for_each(pos, &hashes[hash]) { 191 entry = list_entry(pos, struct cookie_entry, list);
|
/frameworks/av/media/libstagefright/ |
VBRISeeker.cpp | 39 off64_t pos = post_id3_pos; local 42 ssize_t n = source->readAt(pos, header, sizeof(header)); 55 pos += sizeof(header) + 32; 58 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); 86 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); 148 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { 156 *pos = mBasePos; 160 *pos += mSegments.itemAt(segmentIndex++); 163 ALOGV("getOffsetForTime %lld us => 0x%08lx", *timeUs, *pos);
|
/frameworks/base/core/java/android/app/backup/ |
BackupHelperDispatcher.java | 87 int pos = allocateHeader_native(header, newStateFD); local 88 if (pos < 0) { 89 throw new IOException("allocateHeader_native failed (error " + pos + ")"); 97 // fill in the header (seeking back to pos). The file pointer will be returned to 99 err = writeHeader_native(header, newStateFD, pos); 114 int pos = rawKey.indexOf(':'); local 115 if (pos > 0) { 116 String prefix = rawKey.substring(0, pos); 120 stream.key = rawKey.substring(pos+1); 147 private static native int writeHeader_native(Header h, FileDescriptor fd, int pos); [all...] |
/frameworks/base/core/java/android/widget/ |
ExpandableListConnector.java | 96 * Translates a flat list position to either a) group pos if the specified 97 * flat list position corresponds to a group, or b) child pos if it 99 * groups list to find the flat list pos if it is an exp group, otherwise 100 * finds where the flat list pos fits in between the exp groups. 121 * either), so flPos must be a group and its group pos will be the 172 * specified flat list pos to get the child's position within 216 * one, and then adds it to the prior group's group pos 232 * Subtracts this group's flat list pos from the group after's flat 235 * pos to get this group's pos 376 final ExpandableListPosition pos = metadata.position; local 466 final ExpandableListPosition pos = metadata.position; local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
chunk.py | 96 def seek(self, pos, whence=0): 107 pos = pos + self.size_read 109 pos = pos + self.chunksize 110 if pos < 0 or pos > self.chunksize: 112 self.file.seek(self.offset + pos, 0) 113 self.size_read = pos
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
chunk.py | 96 def seek(self, pos, whence=0): 107 pos = pos + self.size_read 109 pos = pos + self.chunksize 110 if pos < 0 or pos > self.chunksize: 112 self.file.seek(self.offset + pos, 0) 113 self.size_read = pos
|
/sdk/emulator/qtools/ |
hash_table.h | 100 int pos = HashFunction(key) & mask_; local 103 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) { 119 ptr->next = table_[pos]; 120 table_[pos] = ptr; 129 int pos = HashFunction(key) & mask_; local 134 for (entry_type *ptr = table_[pos]; ptr; prev = ptr, ptr = ptr->next) { 137 table_[pos] = ptr->next; 153 int pos = HashFunction(key) & mask_; local 156 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) {
|
/external/chromium/third_party/libjingle/source/talk/xmllite/ |
xmlnsstack.cc | 76 std::vector<std::string>::iterator pos; local 77 for (pos = pxmlnsStack_->end(); pos > pxmlnsStack_->begin(); ) { 78 pos -= 2; 79 if (*pos == prefix) 80 return &(*(pos + 1)); 106 std::vector<std::string>::iterator pos; 107 for (pos = pxmlnsStack_->end(); pos > pxmlnsStack_->begin(); ) { 108 pos -= 2 [all...] |
/external/chromium_org/cc/ |
PRESUBMIT.py | 155 def FindUnquotedQuote(contents, pos): 156 match = re.search(r"(?<!\\)(?P<quote>\")", contents[pos:]) 157 return -1 if not match else match.start("quote") + pos 159 def FindNamespaceInBlock(pos, namespace, contents, whitelist=[]): 166 while pos < len(contents) and brace_count > 0: 167 if open_brace < pos: open_brace = contents.find("{", pos) 168 if close_brace < pos: close_brace = contents.find("}", pos) 169 if quote < pos: quote = FindUnquotedQuote(contents, pos [all...] |
/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
TextResourceDecoder.cpp | 154 int pos = find(str, len, "encoding"); local 155 if (pos == -1) 157 pos += 8; 160 while (pos < len && str[pos] <= ' ') 161 ++pos; 164 if (pos >= len || str[pos] != '=') 166 ++pos; 169 while (pos < len && str[pos] <= ' ' 257 const char* pos = dataStart; local 309 int pos = findXMLEncoding(ptr, xmlDeclarationEnd - ptr, len); local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
rbbiapts.cpp | 325 int32_t pos; local 326 pos = wordIter1->first(); 327 TEST_ASSERT(pos==0); 328 pos = wordIter1->next(); 329 TEST_ASSERT(pos==5); 330 pos = wordIter1->next(); 331 TEST_ASSERT(pos==6); 332 pos = wordIter1->next(); 333 TEST_ASSERT(pos==11); 334 pos = wordIter1->next() 671 int32_t pos, tag; local 704 int32_t pos, tag; local 754 int32_t pos; local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/xmllite/ |
xmlnsstack.cc | 73 std::vector<std::string>::iterator pos; local 74 for (pos = pxmlnsStack_->end(); pos > pxmlnsStack_->begin(); ) { 75 pos -= 2; 76 if (*pos == prefix) 77 return std::make_pair(*(pos + 1), true); 101 std::vector<std::string>::iterator pos; 102 for (pos = pxmlnsStack_->end(); pos > pxmlnsStack_->begin(); ) { 103 pos -= 2 [all...] |
/external/chromium_org/third_party/lzma_sdk/ |
7zStream.c | 73 size_t size2 = p->size - p->pos; 76 p->pos = 0; 83 *buf = p->buf + p->pos; 91 size_t size2 = p->size - p->pos; 94 p->pos = 0; 102 *buf = p->buf + p->pos; 109 p->pos += offset; 116 size_t rem = p->size - p->pos; 121 memcpy(buf, p->buf + p->pos, rem); 122 p->pos += rem [all...] |
/external/javassist/src/main/javassist/ |
CtConstructor.java | 159 int pos, desc; local 163 && it.byteAt(pos = it.next()) == Opcode.INVOKESPECIAL 165 it.u16bitAt(pos + 1))) != 0 264 int pos = iterator.insertEx(b.get()); local 265 iterator.insert(b.getExceptionTable(), pos); local 376 int pos = iterator.skipConstructor(); local 377 if (pos >= 0) { 378 int mref = iterator.u16bitAt(pos + 1); 382 pos = iterator.insertGapAt(pos, num - 3, false).position [all...] |
/external/lzma/C/ |
7zStream.c | 73 size_t size2 = p->size - p->pos;
76 p->pos = 0;
83 *buf = p->buf + p->pos;
91 size_t size2 = p->size - p->pos;
94 p->pos = 0;
102 *buf = p->buf + p->pos;
109 p->pos += offset;
116 size_t rem = p->size - p->pos;
121 memcpy(buf, p->buf + p->pos, rem);
122 p->pos += rem; [all...] |
/external/tremolo/Tremolo/ |
framing.c | 227 the buffer preceeding pos and 'head'/'tail' are the buffer past the 228 split. If pos is at or past the end of the passed in segment, 231 ogg_reference **head,long pos){ 239 while(or && pos>or->length){ 240 pos-=or->length; 244 if(!or || pos==0){ 250 if(pos>=or->length){ 267 long lengthA=pos; 268 long beginB=or->begin+pos; 269 long lengthB=or->length-pos; [all...] |
/external/wpa_supplicant_8/src/wps/ |
ndef.c | 37 const u8 *pos = data + 1; local 41 record->type_length = *pos++; 45 record->payload_length = *pos++; 49 record->payload_length = ntohl(*(u32 *)pos); 50 pos += sizeof(u32); 54 if ((int) size < pos - data + 1) 56 record->id_length = *pos++; 60 record->type = record->type_length == 0 ? NULL : pos; 61 pos += record->type_length; 63 record->id = record->id_length == 0 ? NULL : pos; [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
splparser.cpp | 148 for (uint16 pos = 0; pos < idx_num; pos++) { 149 if (spl_trie_->is_half_id_yunmu(spl_idx[pos])) { 150 spl_trie_->half_to_full(spl_idx[pos], spl_idx + pos); 151 if (pos == idx_num - 1) { 277 for (uint16 pos = 0; pos < idx_num; pos++) [all...] |
/external/wpa_supplicant_8/src/rsn_supp/ |
tdls.c | 81 static u8 * wpa_add_tdls_timeoutie(u8 *pos, u8 *ie, size_t ie_len, u32 tsecs); 153 static u8 * wpa_add_ie(u8 *pos, const u8 *ie, size_t ie_len) 155 os_memcpy(pos, ie, ie_len); 156 return pos + ie_len; 436 u8 *buf, *pos; local 448 pos = buf; 451 os_memcpy(pos, _lnkid->init_sta, ETH_ALEN); 452 pos += ETH_ALEN; 454 os_memcpy(pos, _lnkid->resp_sta, ETH_ALEN); 455 pos += ETH_ALEN 498 u8 *buf, *pos; local 667 u8 *rbuf, *pos; local 808 const u8 *pos; local 930 u8 *rbuf, *pos, *count_pos; local 1107 u8 *rbuf, *pos; local 1191 u8 *rbuf, *pos; local 1819 const u8 *pos; local 2063 const u8 *pos; local [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cdtdptst.c | 54 int32_t pos; local 74 pos=0; 75 d = udat_parse(fmt, s, u_strlen(s), &pos, &status); 113 int32_t pos; local 131 pos=0; 132 d = udat_parse(f, s, u_strlen(s), &pos, &status); 161 int32_t pos; local 169 pos=0; 170 date = udat_parse(format, str, u_strlen(str), &pos, &status); 196 int32_t pos; local 229 int32_t lneed, pos; local [all...] |
/external/icu4c/test/cintltst/ |
cdtdptst.c | 54 int32_t pos; local 74 pos=0; 75 d = udat_parse(fmt, s, u_strlen(s), &pos, &status); 113 int32_t pos; local 131 pos=0; 132 d = udat_parse(f, s, u_strlen(s), &pos, &status); 161 int32_t pos; local 169 pos=0; 170 date = udat_parse(format, str, u_strlen(str), &pos, &status); 196 int32_t pos; local 229 int32_t lneed, pos; local [all...] |
/frameworks/base/core/jni/ |
android_util_EventLog.cpp | 99 size_t pos = 2; // Save room for type tag & array count local 105 if (pos + 1 + sizeof(jint) > max) break; 108 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); 109 buf[pos++] = EVENT_TYPE_STRING; 110 memcpy(&buf[pos], &len, sizeof(len)); 111 memcpy(&buf[pos + sizeof(len)], str, len); 112 pos += sizeof(len) + len; 116 if (pos + 1 + sizeof(intVal) > max) break; 117 buf[pos++] = EVENT_TYPE_INT [all...] |
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
DictionaryBackupAgent.java | 210 int pos = 0; local 211 while (pos + 4 < dictionary.length) { 212 int length = readInt(dictionary, pos); 213 pos += 4; 214 if (pos + length > dictionary.length) { 217 String line = new String(dictionary, pos, length); 218 pos += length; 260 * @param pos current pos in array 264 private int writeInt(byte[] out, int pos, int value) [all...] |
/system/core/toolbox/ |
nandread.c | 33 loff_t pos, opos, end, bpos; local 189 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) { 192 printf("reading at %llx\n", pos); 193 lseek64(fd, pos, SEEK_SET); 196 fprintf(stderr, "short read at %llx, %d\n", pos, ret); 200 oobbuf.start = pos; 203 fprintf(stderr, "failed to read oob data at %llx, %d\n", pos, ret); 213 bpos = pos / mtdinfo.erasesize * mtdinfo.erasesize [all...] |