/system/libhwbinder/ |
H A D | Debug.cpp | 95 char* pos = out; local 134 if( fullContext ) *pos++ = '\''; 135 pos = appendcharornum(c[0], pos); 136 pos = appendcharornum(c[1], pos); 137 pos = appendcharornum(c[2], pos); 138 pos = appendcharornum(c[3], pos); 173 unsigned char *pos = (unsigned char *)buf; local [all...] |
/system/core/liblog/ |
H A D | log_event_list.c | 34 unsigned pos; /* Read/write position into buffer */ member in struct:__anon1572 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; 113 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { 126 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 127 context->storage[context->pos + 1] = 0; 128 context->list[context->list_nest_depth] = context->pos 390 unsigned pos; local [all...] |
/system/core/liblog/tests/ |
H A D | log_radio_test.cpp | 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; 101 ++pos) { 104 for (size_t pos = 0; 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) {
|
H A D | log_system_test.cpp | 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; 101 ++pos) { 104 for (size_t pos = 0; 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) {
|
/system/security/keystore/include/keystore/ |
H A D | keystore_hidl_support.h | 112 auto pos = result.begin(); local 113 *pos++ = 0; // Version byte 114 pos = copy_bytes_to_iterator(token.challenge, pos); 115 pos = copy_bytes_to_iterator(token.userId, pos); 116 pos = copy_bytes_to_iterator(token.authenticatorId, pos); 117 pos = copy_bytes_to_iterator(token.authenticatorType, pos); [all...] |
/system/chre/util/nanoapp/ |
H A D | debug.cc | 65 char *pos = tabs; local 67 *pos++ = '\t'; 70 *pos = '\0';
|
/system/security/keystore/ |
H A D | authorization_set.cpp | 124 int pos = -1; local 126 pos = find(i->tag, pos); 127 if (pos != -1 && keyParamEqual(*i, data_[pos])) { 128 data_.erase(data_.begin() + pos); 131 } while (pos != -1); 146 auto pos = data_.begin() + index; local 147 if (pos != data_.end()) { 148 data_.erase(pos); 174 int pos = find(tag); local 288 auto pos = indirect.tellp(); local [all...] |
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/tools/hidl/ |
H A D | Location.h | 43 inline std::ostream& operator<< (std::ostream& ostr, const Position& pos) { argument 44 if (!pos.filename().empty()) { 45 ostr << pos.filename() << ":"; 47 return ostr << pos.line() << "." << pos.column();
|
/system/keymaster/ |
H A D | authorization_set.cpp | 548 for (int pos = -1; (pos = find(tag, pos)) != -1;) 554 int pos = find(tag); local 555 if (pos == -1) { 558 *val = elems_[pos].enumerated; 565 int pos = -1; local 567 pos = find(tag, pos); 568 if (pos 578 int pos = find(tag); local 589 int pos = -1; local 602 int pos = find(tag); local 613 int pos = -1; local 626 int pos = find(tag); local 635 int pos = find(tag); local 644 int pos = find(tag); local [all...] |
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 && static_cast<KeymasterEnum>(set[pos].enumerated) == val; 67 int pos = -1; local 68 while ((pos = set.find(tag, pos)) != -1) 69 if (static_cast<KeymasterEnum>(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_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 | keymaster_enforcement.cpp | 151 for (size_t pos = 0; pos < auth_set.size(); ++pos) { 152 switch (auth_set[pos].tag) { 159 auth_type_index = pos; 200 for (size_t pos = 0; pos < auth_set.size(); ++pos) { 201 switch (auth_set[pos].tag) { 203 auth_timeout_index = pos; [all...] |
/system/libvintf/ |
H A D | RuntimeInfo-target.cpp | 133 auto pos = mRuntimeInfo->mOsRelease.find('.'); local 134 if (pos == std::string::npos) { 137 pos = mRuntimeInfo->mOsRelease.find('.', pos + 1); 138 if (pos == std::string::npos) { 141 pos = mRuntimeInfo->mOsRelease.find_first_not_of("0123456789", pos + 1); 142 // no need to check pos == std::string::npos, because substr will handle this 143 if (!parse(mRuntimeInfo->mOsRelease.substr(0, pos), &mRuntimeInfo->mKernelVersion)) {
|
/system/extras/tests/icachetest/ |
H A D | icache_main.cpp | 40 for (size_t pos = usage.find(from); pos != std::string::npos; pos = usage.find(from, pos)) { 41 usage.replace(pos, from.length(), exec_name);
|
/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/extras/simpleperf/ |
H A D | cmd_stat_test.cpp | 118 size_t pos = s.find("instructions:u"); local 119 ASSERT_NE(s.npos, pos); 120 pos = s.find("instructions:k", pos); 121 ASSERT_NE(s.npos, pos); 122 pos += strlen("instructions:k"); 124 ASSERT_NE(s.npos, s.find("instructions", pos)); 141 size_t pos = 0; local 143 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);
|
/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/tools/hidl/utils/ |
H A D | Formatter.cpp | 118 size_t pos = out.find("\n", start); local 120 if (pos == std::string::npos) { 131 if (pos == start) { 134 } else if (pos > start) { 140 output(out.substr(start, pos - start + 1)); 145 start = pos + 1;
|
/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/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.h | 68 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data);
|