Searched defs:tag (Results 1 - 25 of 87) sorted by relevance

1234

/system/keymaster/
H A Dkeymaster_tags.cpp22 const char* StringifyTag(keymaster_tag_t tag) { argument
23 switch (tag) {
137 // DEFINE_KEYMASTER_TAG is used to create TypedTag instances for each non-enum keymaster tag.
182 // DEFINE_KEYMASTER_ENUM_TAG is used to create TypedEnumTag instances for each enum keymaster tag.
H A Dkeymaster_configuration_test.cpp23 int __android_log_print(int prio, const char* tag, const char* fmt);
24 int __android_log_print(int prio, const char* tag, const char* fmt) { argument
25 (void)prio, (void)tag, (void)fmt;
H A Dauth_encrypted_key_blob.cpp33 const Buffer& nonce, const Buffer& tag,
36 encrypted_key_material.SerializedSize() + tag.SerializedSize() +
48 buf = tag.Serialize(buf, end);
61 Buffer* tag) {
66 if (!nonce->reserve(OCB_NONCE_LENGTH) || !tag->reserve(OCB_TAG_LENGTH))
71 !copy_from_buf(buf_ptr, end, tag->peek_write(), OCB_TAG_LENGTH) ||
77 if (!nonce->advance_write(OCB_NONCE_LENGTH) || !tag->advance_write(OCB_TAG_LENGTH))
86 Buffer* tag) {
101 !tag->Deserialize(buf_ptr, end) || tag
29 SerializeAuthEncryptedBlob(const KeymasterKeyBlob& encrypted_key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Buffer& nonce, const Buffer& tag, KeymasterKeyBlob* key_blob) argument
57 DeserializeUnversionedBlob(const KeymasterKeyBlob& key_blob, KeymasterKeyBlob* encrypted_key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced, Buffer* nonce, Buffer* tag) argument
82 DeserializeAuthEncryptedBlob(const KeymasterKeyBlob& key_blob, KeymasterKeyBlob* encrypted_key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced, Buffer* nonce, Buffer* tag) argument
[all...]
H A Docb_utils.cpp122 KeymasterKeyBlob* ciphertext, Buffer* tag) {
123 assert(ciphertext && tag);
143 tag->peek_write(), 1 /* final */);
148 if (!tag->advance_write(OCB_TAG_LENGTH))
158 const Buffer& tag, KeymasterKeyBlob* plaintext) {
161 if (nonce.available_read() != OCB_NONCE_LENGTH || tag.available_read() != OCB_TAG_LENGTH)
179 tag.peek_read(), 1 /* final */);
184 LOG_E("Failed to validate authentication tag during key decryption", 0);
118 OcbEncryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& plaintext, const Buffer& nonce, KeymasterKeyBlob* ciphertext, Buffer* tag) argument
154 OcbDecryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& ciphertext, const Buffer& nonce, const Buffer& tag, KeymasterKeyBlob* plaintext) argument
/system/core/liblog/
H A Dlog_event_write.c27 LIBLOG_ABI_PUBLIC int __android_log_error_write(int tag, const char* subTag, argument
33 android_log_context ctx = create_android_logger(tag);
H A Dpmsg_writer.c135 * uint32_t tag
205 /* Write a buffer as filename references (tag = <basedir>:<basename>) */
213 const char* tag; local
233 tag = cp;
239 tag = slash + 1;
243 length = strlen(tag) + 1;
248 vec[1].iov_base = (unsigned char*)tag;
/system/security/keystore/
H A Dkeystore_tags_utils.cpp27 template<TagType tag_type, Tag tag>
28 static TypedTag<tag_type, tag> chooseString(TypedTag<tag_type, tag> ttag, Tag runtime_tag,
30 if (tag == runtime_tag) {
31 *result = Tag2String<tag>::value();
35 static const char* stringify(Tag tag) { argument
36 const char* result = "unknown tag";
37 [] (Tags&&...) {}(chooseString(Tags(), tag, &result)...); local
42 const char* stringifyTag(Tag tag) { argument
43 return TagStringifier<all_tags_t>::stringify(tag);
[all...]
H A Dkeystore_aidl_hidl_marshalling_utils.cpp89 Tag tag = static_cast<Tag>(in.readInt32()); local
90 result.tag = tag;
91 switch (typeFromTag(tag)) {
111 ALOGE("Unsupported KeyParameter tag %d", tag);
118 auto tag = param.tag; local
119 auto rc = out->writeInt32(uint32_t(tag));
121 switch (typeFromTag(param.tag)) {
[all...]
/system/core/include/utils/
H A DTrace.h40 inline ScopedTrace(uint64_t tag, const char* name) : mTag(tag) { argument
/system/core/liblog/tests/
H A Dlog_read_test.cpp45 static const char tag[] = local
48 ASSERT_LT(0, __android_log_write(prio, tag, buf.c_str()));
51 buf = std::string(&prio, sizeof(prio)) + tag + std::string("", 1) + buf +
/system/core/libutils/include/utils/
H A DTrace.h40 inline ScopedTrace(uint64_t tag, const char* name) : mTag(tag) { argument
/system/extras/perfprofd/tests/
H A Dperfprofdmockutils.cc65 void perfprofd_mocklog(const char *tag, const char *fmt, va_list ap) argument
68 strcpy(buffer, tag);
69 vsnprintf(buffer+strlen(tag), LMAX, fmt, ap);
/system/nvram/messages/include/nvram/messages/
H A Dstruct.h162 // pointer, the field specification also records the |TaggedUnion| tag value
171 TagType tag)
172 : FieldSpec<Struct, TaggedUnionType>(field_number, member), kTag(tag) {}
174 // The |TaggedUnion| tag corresponding to the |TaggedUnion| member that holds
185 TagType tag) {
186 return OneOfFieldSpec<Struct, TagType, Member...>(field_number, member, tag);
169 OneOfFieldSpec(uint32_t field_number, TaggedUnionType Struct::*member, TagType tag) argument
182 MakeOneOfField( uint32_t field_number, TaggedUnion<TagType, Member...> Struct::*member, TagType tag) argument
/system/core/debuggerd/libdebuggerd/test/
H A Dlog_fake.cpp47 extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { argument
49 g_fake_log_buf += tag;
55 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { argument
57 g_fake_log_print += tag;
/system/core/libunwindstack/tests/
H A DLogFake.cpp52 extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { argument
54 g_fake_log_buf += tag;
60 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { argument
63 int val = __android_log_vprint(prio, tag, fmt, ap);
69 extern "C" int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap) { argument
71 g_fake_log_print += tag;
/system/keymaster/include/keymaster/
H A Dkeymaster_tags.h25 * example, it's an error to create a keymaster_param_t with tag == KM_TAG_PURPOSE and then to
32 * TypedTag and TypedEnumTag. These classes are templated on a tag type and a tag value, and in the
34 * keymaster tag, associating the tag type with the tag, and an instance of each specialization is
35 * created, and named the same as the keymaster tag, but with the KM_ prefix omitted. Because the
40 * particular tag. This enables template functions to be written that check that the correct
41 * parameter type is used for a given tag, and that use the correct union entry for the tag typ
202 Authorization(TypedTag<KM_BOOL, Tag> tag) argument
207 Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) argument
212 Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) argument
217 Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) argument
222 Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) argument
227 Authorization(TypedTag<KM_DATE, Tag> tag, uint64_t value) argument
232 Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes, size_t bytes_len) argument
238 Authorization(TypedTag<KM_BYTES, Tag> tag, const keymaster_blob_t& blob) argument
244 Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, size_t bytes_len) argument
250 Authorization(TypedTag<KM_BIGNUM, Tag> tag, const keymaster_blob_t& blob) argument
256 Authorization(TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, KeymasterEnum value) argument
262 Authorization(TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, KeymasterEnum value) argument
[all...]
/system/libufdt/tests/src/
H A Dextract_dtb.c37 uint32_t tag = fdt32_to_cpu(*(fdt32_t *)(buf + pos)); local
38 if (tag == FDT_MAGIC) {
/system/connectivity/wifilogd/tests/
H A Dcommand_processor_unittest.cpp83 const std::string& tag, const std::string& message,
88 tag.length() + ascii_message_tag_len_adjustment;
103 const size_t payload_len = sizeof(ascii_message_header) + tag.length() +
116 .AppendOrDie(tag.data(), tag.length())
120 CommandBuffer BuildAsciiMessageCommand(const std::string& tag, argument
122 return BuildAsciiMessageCommandWithAdjustments(tag, message, 0, 0, 0);
126 const std::string& tag, const std::string& message,
131 tag, message, command_payload_len_adjustment,
141 bool SendAsciiMessage(const std::string& tag, cons argument
82 BuildAsciiMessageCommandWithAdjustments( const std::string& tag, const std::string& message, ssize_t command_payload_len_adjustment, ssize_t ascii_message_tag_len_adjustment, ssize_t ascii_message_data_len_adjustment) argument
125 SendAsciiMessageWithAdjustments( const std::string& tag, const std::string& message, ssize_t transport_len_adjustment, ssize_t command_payload_len_adjustment, ssize_t ascii_message_tag_len_adjustment, ssize_t ascii_message_data_len_adjustment) argument
[all...]
/system/core/adb/
H A Dadb_trace.cpp41 const char* tag, const char* file, unsigned int line,
43 android::base::StderrLogger(id, severity, tag, file, line, message);
45 gLogdLogger(id, severity, tag, file, line, message);
40 AdbLogger(android::base::LogId id, android::base::LogSeverity severity, const char* tag, const char* file, unsigned int line, const char* message) argument
/system/core/include/log/
H A Dlogprint.h63 const char* tag; member in struct:AndroidLogEntry_t
110 * and tag, and 0 if it should not
112 int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag,
128 * If "map" is non-NULL, it will be used to convert the log tag number
/system/core/libcutils/
H A Dqtaguid.c98 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument
101 uint64_t kTag = ((uint64_t)tag << 32);
107 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid);
111 ALOGI("Tagging socket %d with tag %" PRIx64 "(%d) for uid %d failed errno=%d",
112 sockfd, kTag, tag, uid, res);
144 int qtaguid_deleteTagData(int tag, uid_t uid) { argument
147 uint64_t kTag = (uint64_t)tag << 32;
149 ALOGV("Deleting tag data with tag
[all...]
/system/core/liblog/include/log/
H A Dlogprint.h63 const char* tag; member in struct:AndroidLogEntry_t
110 * and tag, and 0 if it should not
112 int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag,
128 * If "map" is non-NULL, it will be used to convert the log tag number
/system/core/logd/
H A DLogBufferElement.cpp70 ? reinterpret_cast<const android_event_header_t*>(mMsg)->tag
75 // The tag information is saved in mMsg data, if the tag is non-zero
76 // save only the information needed to get the tag.
140 static const char tag[] = "chatty"; local
142 if (!__android_log_is_loggable_len(ANDROID_LOG_INFO, tag, strlen(tag),
198 hdrLen = 1 + sizeof(tag);
213 event->header.tag = htole32(CHATTY_LOG_TAG);
219 strcpy(buffer + 1, tag);
[all...]
/system/media/camera/include/system/
H A Dcamera_metadata.h82 uint32_t tag; member in struct:camera_metadata_entry
101 uint32_t tag; member in struct:camera_metadata_ro_entry
133 * an integer tag to identify its meaning, 'type' and 'count' field, and the
141 * entries with the same tag are allowed. The packet will not dynamically resize
340 * left to add the entry, or if the tag is unknown. data_count is the number of
341 * entries in the data array of the tag's type, not a count of
351 uint32_t tag,
390 * Find an entry with given tag value. If not found, returns -ENOENT. Otherwise,
393 * If multiple entries with the same tag exist, does not have any guarantees on
399 uint32_t tag,
[all...]
/system/media/camera/src/
H A Dcamera_metadata_tag_info.c21 * maintaining the tag info.
708 int camera_metadata_enum_snprint(uint32_t tag, argument
715 switch(tag) {

Completed in 536 milliseconds

1234