/system/extras/simpleperf/ |
H A D | read_elf_test.cpp | 42 auto pos = symbols.find("GlobalVar"); local 43 ASSERT_NE(pos, symbols.end()); 44 ASSERT_FALSE(pos->second.is_func); 45 pos = symbols.find("GlobalFunc"); 46 ASSERT_NE(pos, symbols.end()); 47 ASSERT_TRUE(pos->second.is_func); 48 ASSERT_TRUE(pos->second.is_in_text_section);
|
H A D | sample_tree_test.cpp | 45 std::vector<ExpectedSampleInMap>& expected_samples, size_t* pos) { 46 ASSERT_LT(*pos, expected_samples.size()); 48 SampleMatchExpectation(sample, expected_samples[*pos], &has_error); 49 ASSERT_FALSE(has_error) << "Error matching sample at pos " << *pos; 50 ++*pos; 74 size_t pos = 0; local 76 std::bind(&CheckSampleCallback, std::placeholders::_1, expected_samples, &pos)); 77 ASSERT_EQ(expected_samples.size(), pos); 44 CheckSampleCallback(const SampleEntry& sample, std::vector<ExpectedSampleInMap>& expected_samples, size_t* pos) argument
|
H A D | read_apk.cpp | 166 size_t pos = path.find("!/"); local 167 if (pos == std::string::npos) { 170 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2));
|
/system/keymaster/ |
H A D | authorization_set_test.cpp | 80 int pos = set.find(TAG_ALGORITHM); local 81 ASSERT_NE(-1, pos); 82 EXPECT_EQ(KM_TAG_ALGORITHM, set[pos].tag); 83 EXPECT_EQ(KM_ALGORITHM_RSA, set[pos].enumerated); 85 pos = set.find(TAG_MAC_LENGTH); 86 EXPECT_EQ(-1, pos); 111 int pos = set.find(TAG_PURPOSE); local 112 ASSERT_FALSE(pos == -1); 113 EXPECT_EQ(KM_TAG_PURPOSE, set[pos].tag); 114 EXPECT_EQ(KM_PURPOSE_SIGN, set[pos] 172 int pos = deserialized.find(TAG_APPLICATION_ID); local 207 int pos = deserialized.find(TAG_APPLICATION_ID); local [all...] |
H A D | ecdsa_keymaster1_operation.cpp | 51 int pos = begin_params.find(TAG_DIGEST); local 52 if (pos == -1) 54 begin_params[pos].enumerated = KM_DIGEST_NONE;
|
H A D | rsa_keymaster1_operation.cpp | 50 int pos = begin_params.find(TAG_DIGEST); local 51 if (pos == -1) 53 begin_params[pos].enumerated = KM_DIGEST_NONE; 55 pos = begin_params.find(TAG_PADDING); 56 if (pos == -1) 58 switch (begin_params[pos].enumerated) { 63 begin_params[pos].enumerated = KM_PAD_NONE;
|
H A D | android_keymaster_test_utils.h | 60 int pos = set.find(tag); local 61 return pos != -1 && set[pos].enumerated == val; 67 int pos = -1; local 68 while ((pos = set.find(tag, pos)) != -1) 69 if (set[pos].enumerated == val) 76 int pos = set.find(tag); local 77 return pos != -1 && set[pos] 82 int pos = -1; local 91 int pos = set.find(tag); local 97 int pos = set.find(tag); local 105 int pos = set.find(tag); local [all...] |
H A D | authorization_set.cpp | 522 for (int pos = -1; (pos = find(tag, pos)) != -1;) 528 int pos = find(tag); local 529 if (pos == -1) { 532 *val = elems_[pos].enumerated; 539 int pos = -1; local 541 pos = find(tag, pos); 542 if (pos 552 int pos = find(tag); local 563 int pos = -1; local 576 int pos = find(tag); local 587 int pos = -1; local 600 int pos = find(tag); local 609 int pos = find(tag); local 618 int pos = find(tag); local [all...] |
/system/extras/bootctl/ |
H A D | bootctl.c | 152 static int parse_slot(int pos, int argc, char *argv[]) argument 154 if (pos > argc - 1) { 160 long int ret = strtol(argv[pos], NULL, 10);
|
/system/extras/libfec/ |
H A D | fec_process.cpp | 71 uint64_t pos = offset; local 87 info[i].buf = &buf[pos - offset]; 88 info[i].count = (size_t)(end - pos); 89 info[i].offset = pos; 107 pos = end;
|
H A D | fec_private.h | 107 uint64_t pos; member in struct:fec_handle
|
/system/netd/server/ |
H A D | IptablesBaseTest.cpp | 90 int IptablesBaseTest::expectIptablesCommand(IptablesTarget target, int pos, argument 93 if ((unsigned) pos >= sCmds.size()) { 95 << pos + 1 << "/" << sCmds.size(); 100 EXPECT_EQ("/system/bin/iptables -w " + cmd, sCmds[pos++]); 103 EXPECT_EQ("/system/bin/ip6tables -w " + cmd, sCmds[pos++]); 118 size_t pos = 0; local 122 int numConsumed = expectIptablesCommand(target, pos, cmd); 127 pos += numConsumed; 130 EXPECT_EQ(pos, sCmds.size());
|
/system/connectivity/apmanager/ |
H A D | hostapd_monitor.cc | 201 size_t pos = msg.find_first_of(' ', 0); local 202 if (pos == string::npos) { 205 event = msg.substr(0, pos); 206 data = msg.substr(pos + 1);
|
/system/core/toolbox/ |
H A D | nandread.c | 34 loff_t pos, opos, end, bpos; local 190 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) { 193 printf("reading at %" PRIx64 "\n", pos); 194 lseek64(fd, pos, SEEK_SET); 197 fprintf(stderr, "short read at %" PRIx64 ", %d\n", pos, ret); 201 oobbuf.start = pos; 204 fprintf(stderr, "failed to read oob data at %" PRIx64 ", %d\n", pos, ret); 214 bpos = pos / mtdinf [all...] |
/system/core/crash_reporter/ |
H A D | kernel_collector_test.cc | 277 size_t pos = log.find(kNamePrefix); local 278 ASSERT_NE(std::string::npos, pos) 281 pos += strlen(kNamePrefix); 282 std::string filename = log.substr(pos, std::string::npos);
|
/system/core/liblog/ |
H A D | log_event_list.c | 34 unsigned pos; /* Read/write position into buffer */ member in struct:__anon1614 36 unsigned list[ANDROID_MAX_LIST_NEST_DEPTH + 1]; /* pos for list counter */ 59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 64 context->list[0] = context->pos + 1; 65 context->pos += needed; 115 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { 128 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 129 context->storage[context->pos + 1] = 0; 130 context->list[context->list_nest_depth] = context->pos 364 unsigned pos; local [all...] |
/system/core/libutils/ |
H A D | String16.cpp | 265 status_t String16::insert(size_t pos, const char16_t* chrs) argument 267 return insert(pos, chrs, strlen16(chrs)); 270 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) argument 280 if (pos > myLen) pos = myLen; 283 printf("Insert in to %s: pos=%d, len=%d, myLen=%d, chrs=%s\n", 284 String8(*this).string(), pos, 292 if (pos < myLen) { 293 memmove(str+pos+len, str+pos, (myLe [all...] |
/system/extras/tests/iptables/qtaguid/ |
H A D | socketTag.cpp | 139 char *pos; local 169 pos = strstr(ctrl_data, buff); 171 if (pos && !addr) { 173 res = sscanf(pos - strlen("sock=1234abcd"), 187 return pos != NULL;
|
/system/extras/verity/fec/ |
H A D | image.h | 59 uint64_t pos; member in struct:image
|
/system/tools/aidl/ |
H A D | ast_java.cpp | 441 size_t pos = name.rfind('.'); local 442 if (pos != string::npos) { 443 name = name.c_str() + pos + 1;
|
/system/core/include/utils/ |
H A D | Vector.h | 196 inline iterator erase(iterator pos) { argument 197 ssize_t index = removeItemsAt(pos-array());
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 476 size_t pos = kTagLength; local 481 buf[pos++] = ','; 483 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); 484 pos += strlen(buf + pos); 486 buf[pos++] = '%'; 487 pos += strlcpy(buf + pos, ifname, bufsize - pos); [all...] |
/system/core/libsparse/ |
H A D | output_file.c | 716 off64_t pos; local 721 pos = lseek64(fd, offset, SEEK_SET); 722 if (pos < 0) {
|
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 485 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) { argument 555 int copy_used(u64 pos, void *data) argument 559 int pdone = (pos * 100) / d->info->total_blocks; 567 if(read_structure_blk(d->infd, (unsigned long long)pos, d->buf, 1)) { 573 ret = lseek64(d->outfd, pos * F2FS_BLKSIZE, SEEK_SET);
|
/system/core/libbacktrace/ |
H A D | BacktraceOffline.cpp | 681 size_t pos = filename.find("!/"); local 682 if (pos == std::string::npos) { 685 std::string apk_file = filename.substr(0, pos); 686 std::string elf_file = filename.substr(pos + 2);
|