Searched refs:pos (Results 26 - 50 of 80) sorted by relevance

1234

/system/core/libutils/
H A DString16.cpp266 status_t String16::insert(size_t pos, const char16_t* chrs) argument
268 return insert(pos, chrs, strlen16(chrs));
271 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) argument
281 if (pos > myLen) pos = myLen;
284 printf("Insert in to %s: pos=%d, len=%d, myLen=%d, chrs=%s\n",
285 String8(*this).string(), pos,
293 if (pos < myLen) {
294 memmove(str+pos+len, str+pos, (myLe
[all...]
/system/extras/simpleperf/
H A Devent_attr.cpp173 uint64_t pos = sizeof(perf_event_header); local
177 pos += 8;
179 *event_id_pos_in_sample_records = pos;
210 uint64_t pos = 8; local
214 pos += 8;
216 *event_id_reverse_pos_in_non_sample_records = pos;
H A Dtracing.cpp298 size_t pos = value.find_first_of('['); local
299 if (pos == std::string::npos) {
303 field.name = value.substr(0, pos);
305 static_cast<size_t>(strtoull(&value[pos + 1], nullptr, 10));
333 size_t pos = s.find_first_of("name:"); local
334 if (pos != std::string::npos) {
335 format.name = android::base::Trim(s.substr(pos + strlen("name:")));
339 size_t pos = s.find_first_of("ID:"); local
340 if (pos != std::string::npos) {
342 strtoull(s.substr(pos
346 size_t pos = s.find_first_of("field:"); local
405 size_t pos = type->name.find(':'); local
[all...]
H A Dread_apk.cpp167 size_t pos = path.find("!/"); local
168 if (pos == std::string::npos) {
171 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2));
H A Dcmd_report_test.cpp325 size_t pos = 0; local
326 ASSERT_NE(pos = content.find("cpu-cycles", pos), std::string::npos);
327 ASSERT_NE(pos = content.find("Samples:", pos), std::string::npos);
328 ASSERT_NE(pos = content.find("cpu-clock", pos), std::string::npos);
329 ASSERT_NE(pos = content.find("Samples:", pos), std::string::npos);
/system/netd/server/
H A DIptablesRestoreController.cpp311 size_t pos = output->find(PING); local
312 if (pos != std::string::npos) {
313 if (output->size() > pos + PING_SIZE) {
314 size_t extra = output->size() - (pos + PING_SIZE);
316 extra, output->substr(pos + PING_SIZE, 128).c_str());
318 output->resize(pos);
/system/core/libbacktrace/
H A Dbacktrace_offline_test.cpp247 int pos; local
251 &map.start, &map.end, &map.offset, &map.load_bias, &map.flags, &pos);
252 map.name = android::base::Trim(line.substr(pos));
255 int pos; local
256 sscanf(line.c_str(), "registers: %zu %n", &size, &pos);
260 HexStringToRawData(&line[pos], &testdata->unw_context, size);
263 int pos; local
266 &testdata->stack_info.start, &testdata->stack_info.end, &size, &pos);
268 HexStringToRawData(&line[pos], &testdata->stack[0], size);
273 int pos; local
[all...]
/system/security/keystore/
H A Dkeymaster_enforcement.cpp147 for (size_t pos = 0; pos < auth_set.size(); ++pos) {
148 switch (auth_set[pos].tag) {
155 auth_type_index = pos;
196 for (size_t pos = 0; pos < auth_set.size(); ++pos) {
197 switch (auth_set[pos].tag) {
199 auth_timeout_index = pos;
[all...]
/system/core/logcat/
H A Dgetopt_long.cpp97 int pos = cstart; local
99 if (pos >= context->nonopt_end) {
100 pos -= nnonopts;
102 pos += nopts;
104 char* swap = nargv[pos];
105 const_cast<char**>(nargv)[pos] = nargv[cstart];
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp473 size_t pos = kTagLength; local
478 buf[pos++] = ',';
480 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos);
481 pos += strlen(buf + pos);
483 buf[pos++] = '%';
484 pos += strlcpy(buf + pos, ifname, bufsize - pos);
[all...]
/system/tools/hidl/utils/
H A DFQName.cpp468 size_t pos = s1.rfind(s2); local
469 if (pos == std::string::npos || pos + s2.size() != s1.size()) {
477 if (pos == 0) {
482 if (s1[pos - 1] == '.') {
487 if (s1[pos - 1] == ':') {
492 if (s1[pos] == '@') {
/system/tpm/tpm_manager/client/
H A Dmain.cc384 std::string::size_type pos = 0; local
387 next_pos = attributes.find('|', pos);
390 attribute_str = attributes.substr(pos);
392 attribute_str = attributes.substr(pos, next_pos - pos);
402 pos = next_pos + 1;
/system/extras/libfec/
H A Dfec_read.cpp414 f->pos = offset;
416 if (offset < 0 && f->pos < (uint64_t)-offset) {
419 } else if (offset > 0 && (uint64_t)offset > UINT64_MAX - f->pos) {
424 f->pos += offset;
434 f->pos = f->size + offset;
447 ssize_t rc = fec_pread(f, buf, count, f->pos);
450 check(f->pos < UINT64_MAX - rc);
451 f->pos += rc;
/system/nvram/messages/tests/
H A Dnvram_messages_test.cpp407 for (size_t pos = 0; pos < sizeof(random_data); ++pos) {
408 for (size_t end = pos; end < sizeof(random_data); ++end) {
410 Decode(random_data + pos, end - pos, &request);
413 Decode(random_data + pos, end - pos, &response);
H A Dio_test.cpp67 // with consecutive values starting at |pos|.
68 void CheckRead(InputStreamBuffer* buffer, size_t size, size_t pos) {
73 EXPECT_EQ(pos++ % 256, *p);
237 // value starting at pos.
238 void WriteBuf(OutputStreamBuffer* buffer, size_t size, size_t pos) {
242 *p = pos++ % 256;
/system/extras/bootctl/
H A Dbootctl.cpp157 static uint32_t parse_slot(int pos, int argc, char *argv[])
159 if (pos > argc - 1) {
165 uint64_t ret = strtoul(argv[pos], NULL, 10);
/system/chre/host/msm/daemon/
H A Dchre_daemon.cc126 char *pos = tabs; local
128 *pos++ = '\t';
131 *pos = '\0';
/system/core/init/
H A Ddevices.cpp293 std::string::size_type pos = 0;
294 while ((pos = string->find_first_not_of(accept, pos)) != std::string::npos) {
295 (*string)[pos] = '_';
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp159 std::size_t pos = std::string::npos; local
162 pos = ctrl_data.find(buff);
163 if (pos != std::string::npos) {
180 return pos != std::string::npos;
/system/extras/verity/fec/
H A Dimage.h58 uint64_t pos; member in struct:image
/system/libvintf/
H A Dparse_string.cpp144 auto pos = s.find('-'); local
145 if (pos == std::string::npos) {
148 return parseKernelConfigInt(s.substr(0, pos), &range->first)
149 && parseKernelConfigInt(s.substr(pos + 1), &range->second);
/system/core/include/utils/
H A DString16.h90 status_t insert(size_t pos, const char16_t* chrs);
91 status_t insert(size_t pos,
/system/core/libutils/include/utils/
H A DString16.h90 status_t insert(size_t pos, const char16_t* chrs);
91 status_t insert(size_t pos,
/system/netd/tests/dns_responder/
H A Ddns_responder.cpp172 for (size_t pos = 0 ; pos < name.size() ; ) {
173 size_t dot_pos = name.find('.', pos);
179 size_t len = dot_pos - pos;
182 name.substr(pos, dot_pos - pos).c_str(), len);
190 buffer_cur = std::copy(std::next(name.begin(), pos),
193 pos = dot_pos + 1;
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.c488 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) { argument
558 int copy_used(u64 pos, void *data) argument
562 int pdone = (pos * 100) / d->info->total_blocks;
570 if(read_structure_blk(d->infd, (unsigned long long)pos, d->buf, 1)) {
576 ret = lseek64(d->outfd, pos * F2FS_BLKSIZE, SEEK_SET);

Completed in 555 milliseconds

1234