/system/chre/util/nanoapp/ |
H A D | debug.cc | 65 char *pos = tabs; local 67 *pos++ = '\t'; 70 *pos = '\0';
|
/system/extras/simpleperf/ |
H A D | cmd_stat_test.cpp | 119 size_t pos = s.find("instructions:u"); local 120 ASSERT_NE(s.npos, pos); 121 pos = s.find("instructions:k", pos); 122 ASSERT_NE(s.npos, pos); 123 pos += strlen("instructions:k"); 125 ASSERT_NE(s.npos, s.find("instructions", pos)); 142 size_t pos = 0; local 144 while((pos = s.find(subs, pos)) ! [all...] |
H A D | read_elf_test.cpp | 81 auto pos = symbols.find("GlobalVar"); local 82 ASSERT_NE(pos, symbols.end()); 83 ASSERT_FALSE(pos->second.is_func); 87 auto pos = symbols.find("GlobalFunc"); local 88 ASSERT_NE(pos, symbols.end()); 89 ASSERT_TRUE(pos->second.is_func); 90 ASSERT_TRUE(pos->second.is_in_text_section);
|
H A D | cmd_report_test.cpp | 325 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);
|
H A D | event_attr.cpp | 173 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 D | read_apk.cpp | 180 size_t pos = path.find("!/"); local 181 if (pos == std::string::npos) { 184 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2));
|
/system/keymaster/legacy_support/ |
H A D | ecdsa_keymaster1_operation.cpp | 50 int pos = begin_params.find(TAG_DIGEST); local 51 if (pos == -1) 53 begin_params[pos].enumerated = KM_DIGEST_NONE;
|
H A D | rsa_keymaster1_operation.cpp | 49 int pos = begin_params.find(TAG_DIGEST); local 50 if (pos == -1) 52 begin_params[pos].enumerated = KM_DIGEST_NONE; 54 pos = begin_params.find(TAG_PADDING); 55 if (pos == -1) 57 switch (begin_params[pos].enumerated) { 62 begin_params[pos].enumerated = KM_PAD_NONE;
|
/system/nvram/messages/include/nvram/messages/ |
H A D | vector.h | 71 ElementType& operator[](size_t pos) { argument 72 NVRAM_CHECK(pos < size_); 73 return data_[pos]; 75 const ElementType& operator[](size_t pos) const { 76 NVRAM_CHECK(pos < size_); 77 return data_[pos];
|
/system/vold/ |
H A D | Process.cpp | 52 std::string::size_type pos = line.find('/'); local 53 if (pos != std::string::npos) { 54 line = line.substr(pos);
|
/system/extras/libfec/ |
H A D | fec_process.cpp | 73 uint64_t pos = offset; local 89 info[i].buf = &buf[pos - offset]; 90 info[i].count = (size_t)(end - pos); 91 info[i].offset = pos; 109 pos = end;
|
/system/extras/preopt2cachename/ |
H A D | preopt2cachename.cpp | 92 std::string::size_type pos = file_location.find_last_of("."); local 93 if (pos == std::string::npos) { 98 std::string extension(file_location.substr(pos));
|
/system/keymaster/ng/include/ |
H A D | keystore_hidl_support.h | 115 auto pos = result.begin(); local 116 *pos++ = 0; // Version byte 117 pos = copy_bytes_to_iterator(token.challenge, pos); 118 pos = copy_bytes_to_iterator(token.userId, pos); 119 pos = copy_bytes_to_iterator(token.authenticatorId, pos); 120 pos = copy_bytes_to_iterator(token.authenticatorType, pos); [all...] |
/system/keymaster/tests/ |
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...] |
/system/libufdt/tests/src/ |
H A D | extract_dtb.c | 31 int pos = buf_size; local 33 pos--; 34 if (pos < 0) { 37 uint32_t tag = fdt32_to_cpu(*(fdt32_t *)(buf + pos)); 44 return pos;
|
/system/libvintf/ |
H A D | RuntimeInfo-target.cpp | 134 auto pos = mRuntimeInfo->mOsRelease.find('.'); local 135 if (pos == std::string::npos) { 138 pos = mRuntimeInfo->mOsRelease.find('.', pos + 1); 139 if (pos == std::string::npos) { 142 pos = mRuntimeInfo->mOsRelease.find_first_not_of("0123456789", pos + 1); 143 // no need to check pos == std::string::npos, because substr will handle this 144 if (!parse(mRuntimeInfo->mOsRelease.substr(0, pos), &mRuntimeInfo->mKernelVersion)) {
|
/system/security/keystore/ |
H A D | grant_store.cpp | 34 auto pos = grantAlias.rfind(kKeystoreGrantInfix); local 35 if (pos == std::string::npos) return {kInvalidGrantNo, ""}; 36 std::stringstream s(grantAlias.substr(pos + kKeystoreGrantInfixLength)); 37 std::string wrapped_alias = grantAlias.substr(0, pos);
|
/system/security/keystore/include/keystore/ |
H A D | keystore_hidl_support.h | 97 auto pos = result.begin(); local 98 *pos++ = 0; // Version byte 99 pos = copy_bytes_to_iterator(token.challenge, pos); 100 pos = copy_bytes_to_iterator(token.userId, pos); 101 pos = copy_bytes_to_iterator(token.authenticatorId, pos); 102 pos = copy_bytes_to_iterator(token.authenticatorType, pos); [all...] |
/system/tools/hidl/ |
H A D | Location.cpp | 42 bool Position::operator<(const Position& pos) const { 43 CHECK(inSameFile(*this, pos)) << "Cannot compare positions in different files"; 44 if (mLine == pos.mLine) { 45 return mColumn < pos.mColumn; 47 return mLine < pos.mLine; 50 std::ostream& operator<<(std::ostream& ostr, const Position& pos) { argument 51 if (!pos.filename().empty()) { 52 ostr << pos.filename() << ":"; 54 return ostr << pos.line() << "." << pos [all...] |
/system/core/healthd/ |
H A D | charger_test.cpp | 91 auto pos = content.find(field); local 92 if (pos == std::string::npos) {
|
/system/core/libstats/ |
H A D | stats_event_list.c | 26 unsigned pos; /* Read/write position into buffer */ member in struct:__anon1766 28 unsigned list[ANDROID_MAX_LIST_NEST_DEPTH + 1]; /* pos for list counter */ 58 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { 62 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 63 context->list[0] = context->pos + 1; 64 context->pos += needed; 83 len = context->len = context->pos;
|
/system/core/libunwindstack/ |
H A D | Unwinder.cpp | 118 auto pos = map_name.find_last_of('.'); local 119 if (pos == std::string::npos) { 124 map_name.substr(pos + 1)) != map_suffixes_to_ignore->end();
|
/system/extras/verity/fec/ |
H A D | image.h | 58 uint64_t pos; member in struct:image
|
/system/tools/hidl/utils/ |
H A D | Formatter.cpp | 122 size_t pos = out.find('\n', start); local 124 if (pos == std::string::npos) { 135 if (mAtStartOfLine && (pos > start || !mLinePrefix.empty())) { 140 if (pos == start) { 143 } else if (pos > start) { 144 output(out.substr(start, pos - start + 1)); 148 start = pos + 1;
|
H A D | FqInstance.cpp | 66 auto pos = s.find(INSTANCE_SEP); local 67 if (!mFqName.setTo(s.substr(0, pos))) return false; 68 mInstance = pos == std::string::npos ? std::string{} : s.substr(pos + 1);
|