/system/security/keystore/include/keystore/ |
D | keystore_hidl_support.h | 100 auto pos = result.begin(); in authToken2HidlVec() local 101 *pos++ = 0; // Version byte in authToken2HidlVec() 102 pos = copy_bytes_to_iterator(token.challenge, pos); in authToken2HidlVec() 103 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec() 104 pos = copy_bytes_to_iterator(token.authenticatorId, pos); in authToken2HidlVec() 105 pos = copy_bytes_to_iterator(token.authenticatorType, pos); in authToken2HidlVec() 106 pos = copy_bytes_to_iterator(token.timestamp, pos); in authToken2HidlVec() 107 pos = std::copy(token.hmac.data(), token.hmac.data() + token.hmac.size(), pos); in authToken2HidlVec() 132 auto pos = buffer.begin(); in hidlVec2Km3AuthToken() local 133 ++pos; // skip first byte in hidlVec2Km3AuthToken() [all …]
|
/system/core/liblog/ |
D | log_event_list.cpp | 37 unsigned pos; /* Read/write position into buffer */ member 52 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in init_context() 56 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in init_context() 57 context->list[0] = context->pos + 1; in init_context() 58 context->pos += needed; in init_context() 142 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in android_log_write_list_begin() 155 auto* event_list = reinterpret_cast<android_event_list_t*>(&context->storage[context->pos]); in android_log_write_list_begin() 158 context->list[context->list_nest_depth] = context->pos + 1; in android_log_write_list_begin() 160 context->pos += needed; in android_log_write_list_begin() 172 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in android_log_write_int32() [all …]
|
/system/libhwbinder/ |
D | Debug.cpp | 95 char* pos = out; in typetostring() local 134 if( fullContext ) *pos++ = '\''; in typetostring() 135 pos = appendcharornum(c[0], pos); in typetostring() 136 pos = appendcharornum(c[1], pos); in typetostring() 137 pos = appendcharornum(c[2], pos); in typetostring() 138 pos = appendcharornum(c[3], pos); in typetostring() 139 if( fullContext ) *pos++ = '\''; in typetostring() 140 *pos = 0; in typetostring() 141 return pos; in typetostring() 145 *pos++ = '0'; in typetostring() [all …]
|
/system/core/libstats/socket/ |
D | stats_event_list.c | 27 unsigned pos; /* Read/write position into buffer */ member 54 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in reset_log_context() 58 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 59 context->list[0] = context->pos + 1; in reset_log_context() 60 context->pos += needed; in reset_log_context() 79 len = context->len = context->pos; in stats_write_list() 139 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in android_log_write_char_array() 141 len = MAX_EVENT_PAYLOAD - context->pos - 1 - sizeof(int32_t); in android_log_write_char_array() 148 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_char_array() 149 copy4LE(&context->storage[context->pos + 1], len); in android_log_write_char_array() [all …]
|
/system/teeui/libteeui/src/ |
D | msg_formatting.cpp | 31 auto pos = out.pos(); in write() local 34 std::copy(buffer, buffer + size, pos); in write() 42 auto pos = in.pos(); in read() local 44 return {in, pos, size}; in read()
|
D | cbor.cpp | 30 auto pos = state.data_; in writeBytes() local 34 *pos++ = getByte(value, 7); in writeBytes() 35 *pos++ = getByte(value, 6); in writeBytes() 36 *pos++ = getByte(value, 5); in writeBytes() 37 *pos++ = getByte(value, 4); in writeBytes() 40 *pos++ = getByte(value, 3); in writeBytes() 41 *pos++ = getByte(value, 2); in writeBytes() 44 *pos++ = getByte(value, 1); in writeBytes() 47 *pos++ = getByte(value, 0); in writeBytes()
|
/system/keymaster/ng/include/ |
D | keystore_hidl_support.h | 115 auto pos = result.begin(); in authToken2HidlVec() local 116 *pos++ = 0; // Version byte in authToken2HidlVec() 117 pos = copy_bytes_to_iterator(token.challenge, pos); in authToken2HidlVec() 118 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec() 119 pos = copy_bytes_to_iterator(token.authenticatorId, pos); in authToken2HidlVec() 120 pos = copy_bytes_to_iterator(token.authenticatorType, pos); in authToken2HidlVec() 121 pos = copy_bytes_to_iterator(token.timestamp, pos); in authToken2HidlVec() 122 pos = std::copy(token.hmac.data(), token.hmac.data() + token.hmac.size(), pos); in authToken2HidlVec()
|
/system/memory/lmkd/tests/ |
D | lmkd_test.cpp | 69 size_t pos = content.find(marker); in readLogcat() local 70 if (pos == std::string::npos) return ""; in readLogcat() 71 content.erase(0, pos); in readLogcat() 87 std::string getTextAround(const std::string& text, size_t pos, in getTextAround() argument 89 size_t start_pos = pos; in getTextAround() 104 (pos = text.find('\n', pos)) != std::string::npos) { in getTextAround() 105 pos++; in getTextAround() 108 return text.substr(start_pos, (pos == std::string::npos) ? in getTextAround() 109 std::string::npos : pos - start_pos); in getTextAround() 336 size_t pos = 0; in TEST() local [all …]
|
/system/core/liblog/tests/ |
D | log_radio_test.cpp | 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; in TEST() local 101 ++pos) { in TEST() 104 for (size_t pos = 0; in TEST() local 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) { in TEST()
|
D | log_system_test.cpp | 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; in TEST() local 101 ++pos) { in TEST() 104 for (size_t pos = 0; in TEST() local 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) { in TEST()
|
/system/keymaster/android_keymaster/ |
D | authorization_set.cpp | 574 for (int pos = -1; (pos = find(tag, pos)) != -1;) in GetTagCount() local 580 int pos = find(tag); in GetTagValueEnum() local 581 if (pos == -1) { in GetTagValueEnum() 584 *val = elems_[pos].enumerated; in GetTagValueEnum() 591 int pos = -1; in GetTagValueEnumRep() local 593 pos = find(tag, pos); in GetTagValueEnumRep() 594 if (pos == -1) { in GetTagValueEnumRep() 599 *val = elems_[pos].enumerated; in GetTagValueEnumRep() 604 int pos = find(tag); in GetTagValueInt() local 605 if (pos == -1) { in GetTagValueInt() [all …]
|
/system/tools/hidl/ |
D | Location.cpp | 43 bool Position::operator<(const Position& pos) const { in operator <() 44 return std::tie(mFilename, mLine, mColumn) < std::tie(pos.mFilename, pos.mLine, pos.mColumn); in operator <() 47 std::ostream& operator<<(std::ostream& ostr, const Position& pos) { in operator <<() argument 48 if (!pos.filename().empty()) { in operator <<() 49 ostr << pos.filename() << ":"; in operator <<() 51 return ostr << pos.line() << "." << pos.column(); in operator <<()
|
/system/teeui/libteeui/include/teeui/ |
D | common_message_types.h | 73 template <typename T> inline const uint8_t* copyField(T& field, const uint8_t*(&pos)) { in copyField() argument 75 std::copy(pos, pos + sizeof(T), s); in copyField() 76 return pos + sizeof(T); in copyField() 79 template <typename T> inline uint8_t* copyField(const T& field, uint8_t*(&pos)) { in copyField() argument 81 return std::copy(s, &s[sizeof(T)], pos); in copyField() 91 ReadStream::ptr_t pos = nullptr; in readSimpleVecInPlace() local 93 std::tie(std::get<0>(result), pos, read_size) = read(in); in readSimpleVecInPlace() 99 MsgVector<T>(reinterpret_cast<T*>(const_cast<uint8_t*>(pos)), in readSimpleVecInPlace() 100 reinterpret_cast<T*>(const_cast<uint8_t*>(pos)) + (read_size / sizeof(T))); in readSimpleVecInPlace() 160 teeui::ReadStream::ptr_t pos = nullptr; in read() local [all …]
|
D | utf8range.h | 107 for (auto pos = begin_; pos != end_;) { in verify() local 109 if ((*pos & 0xc0) == 0x80) return false; in verify() 110 auto byte_count = byteCount(*pos); in verify() 112 if (end_ - pos < byte_count) return false; in verify() 116 pos += byte_count; in verify()
|
/system/core/adb/client/ |
D | mdns_utils.cpp | 69 auto pos = name.rfind("."); in mdns_parse_instance_name() local 70 if (pos == 0 || pos == std::string::npos || pos == name.size() - 1) { in mdns_parse_instance_name() 74 return std::make_optional<MdnsInstance>(name.substr(0, pos), name.substr(pos + 1), transport); in mdns_parse_instance_name()
|
/system/core/libstats/push_compat/ |
D | stats_event_list.c | 27 unsigned pos; /* Read/write position into buffer */ member 59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in reset_log_context() 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 64 context->list[0] = context->pos + 1; in reset_log_context() 65 context->pos += needed; in reset_log_context() 84 len = context->len = context->pos; in stats_write_list() 223 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in android_log_write_char_array() 225 len = MAX_EVENT_PAYLOAD - context->pos - 1 - sizeof(int32_t); in android_log_write_char_array() 232 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_char_array() 233 copy4LE(&context->storage[context->pos + 1], len); in android_log_write_char_array() [all …]
|
/system/extras/simpleperf/ |
D | RecordReadThread.cpp | 112 size_t pos = sizeof(perf_event_header); in RecordParser() local 114 pos += __builtin_popcountll(sample_type_ & mask) * sizeof(uint64_t); in RecordParser() 116 pid_pos_in_sample_records_ = pos; in RecordParser() 117 pos += sizeof(uint64_t); in RecordParser() 120 time_pos_in_sample_records_ = pos; in RecordParser() 121 pos += sizeof(uint64_t); in RecordParser() 125 pos += __builtin_popcountll(sample_type_ & mask) * sizeof(uint64_t); in RecordParser() 126 callchain_pos_in_sample_records_ = pos; in RecordParser() 147 size_t pos = callchain_pos_in_sample_records_; in GetStackSizePos() local 150 read_record_fn(pos, sizeof(ip_nr), &ip_nr); in GetStackSizePos() [all …]
|
D | read_apk.cpp | 131 size_t pos = path.find("!/"); in SplitUrlInApk() local 132 if (pos == std::string::npos) { in SplitUrlInApk() 135 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2)); in SplitUrlInApk() 144 size_t pos = path.find(key); in ParseExtractedInMemoryPath() local 145 if (pos != std::string::npos) { in ParseExtractedInMemoryPath() 149 size_t entry_name_end = pos; in ParseExtractedInMemoryPath() 150 size_t zip_path_start = pos + strlen(key); in ParseExtractedInMemoryPath()
|
/system/libvintf/ |
D | RuntimeInfo-target.cpp | 137 auto pos = mRuntimeInfo->mOsRelease.find('.'); in parseKernelVersion() local 138 if (pos == std::string::npos) { in parseKernelVersion() 141 pos = mRuntimeInfo->mOsRelease.find('.', pos + 1); in parseKernelVersion() 142 if (pos == std::string::npos) { in parseKernelVersion() 145 pos = mRuntimeInfo->mOsRelease.find_first_not_of("0123456789", pos + 1); in parseKernelVersion() 147 if (!parse(mRuntimeInfo->mOsRelease.substr(0, pos), &mRuntimeInfo->mKernel.mVersion)) { in parseKernelVersion() 151 pos != std::string::npos && in parseKernelVersion() 152 android::base::StartsWith(mRuntimeInfo->mOsRelease.substr(pos), kMainline); in parseKernelVersion()
|
/system/core/bootstat/ |
D | bootstat.cpp | 530 size_t pos = 0; in isBluntRebootReason() local 531 while ((pos = r.find(',', pos)) != std::string::npos) { in isBluntRebootReason() 532 ++pos; in isBluntRebootReason() 533 std::string next(r.substr(pos)); in isBluntRebootReason() 570 size_t numError(size_t pos, const std::string& _r) const { in numError() argument 571 const char* l = console.c_str() + pos; in numError() 600 size_t pos = console.rfind(needle); // exact match? in rfind() local 601 if (pos != std::string::npos) return pos; in rfind() 604 pos = console.length(); in rfind() 605 if (needle.length() > pos) return std::string::npos; in rfind() [all …]
|
/system/tools/aidl/ |
D | code_writer.cpp | 52 size_t pos = 0; in Write() local 53 while (pos < formatted.size()) { in Write() 54 size_t line_end = formatted.find('\n', pos); in Write() 56 lines.push_back(formatted.substr(pos, (line_end - pos) + 1)); in Write() 57 pos = line_end + 1; in Write() 59 lines.push_back(formatted.substr(pos)); in Write()
|
/system/teeui/libteeui/example/ |
D | example_utils.cpp | 40 size_t pos = (top_ + y) * lineStride_ + x + left_; in drawPixel() local 41 if (pos >= size_in_elements_) { in drawPixel() 46 auto acc = buffer_[pos]; in drawPixel() 47 buffer_[pos] = alfaCombineChannel(0, alfa, color, acc) | in drawPixel()
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.h | 60 int pos = set.find(tag); in contains() local 61 return pos != -1 && static_cast<KeymasterEnum>(set[pos].enumerated) == val; in contains() 67 int pos = -1; in contains() local 68 while ((pos = set.find(tag, pos)) != -1) in contains() 69 if (static_cast<KeymasterEnum>(set[pos].enumerated) == val) in contains() 76 int pos = set.find(tag); in contains() local 77 return pos != -1 && set[pos].integer == val; in contains() 82 int pos = -1; in contains() local 83 while ((pos = set.find(tag, pos)) != -1) in contains() 84 if (set[pos].integer == val) in contains() [all …]
|
/system/keymaster/legacy_support/ |
D | rsa_keymaster1_operation.cpp | 49 int pos = begin_params.find(TAG_DIGEST); in Begin() local 50 if (pos == -1) { in Begin() 56 begin_params[pos].enumerated = KM_DIGEST_NONE; in Begin() 59 pos = begin_params.find(TAG_PADDING); in Begin() 60 if (pos == -1) in Begin() 62 switch (begin_params[pos].enumerated) { in Begin() 67 begin_params[pos].enumerated = KM_PAD_NONE; in Begin()
|
/system/update_engine/ |
D | omaha_request_builder_xml_unittest.cc | 49 size_t count = 0, pos = 0; in CountSubstringInString() local 50 while ((pos = str.find(substr, pos ? pos + 1 : 0)) != string::npos) in CountSubstringInString() 238 auto FindAppId = [request_xml](size_t pos) -> size_t { in TEST_F() argument 239 return request_xml.find("<app appid", pos); in TEST_F() 242 size_t pos = FindAppId(0); in TEST_F() local 245 EXPECT_NE(string::npos, (pos = FindAppId(pos + 1))) << request_xml; in TEST_F() 247 request_xml.substr(pos), "version", string(kNoVersion).size()); in TEST_F() 252 request_xml.substr(pos), "delta_okay", false_str.length()); in TEST_F()
|