/system/logging/liblog/tests/ |
D | liblog_global_state.cpp | 34 auto LoggerFunction = [&](LogId log_id, LogSeverity severity, const char* tag, const char* file, in TEST() 39 EXPECT_STREQ(LOG_TAG, tag); in TEST() 67 EXPECT_STREQ(LOG_TAG, log_message->tag); in TEST() 85 auto LoggerFunction = [&](LogId log_id, LogSeverity severity, const char* tag, const char* file, in TEST() 90 EXPECT_STREQ(LOG_TAG, tag); in TEST() 118 EXPECT_STREQ(LOG_TAG, log_message->tag); in TEST() 157 std::string tag = LOG_TAG; in UniqueLogTag() local 158 tag += "-" + std::to_string(getpid()); in UniqueLogTag() 159 return tag; in UniqueLogTag() 163 auto tag = UniqueLogTag(); in TEST() local [all …]
|
D | liblog_default_tag.cpp | 40 SetLogger([&](LogId, LogSeverity, const char* tag, const char*, unsigned int, const char*) { in TEST() argument 42 EXPECT_EQ(expected_tag, tag); in TEST() 58 SetLogger([&](LogId, LogSeverity, const char* tag, const char*, unsigned int, const char*) { in TEST() argument 60 EXPECT_EQ(expected_tag, tag); in TEST() 76 SetLogger([&](LogId, LogSeverity, const char* tag, const char*, unsigned int, const char*) { in TEST() argument 78 EXPECT_EQ(expected_tag, tag); in TEST() 94 SetLogger([&](LogId, LogSeverity, const char* tag, const char*, unsigned int, const char*) { in TEST() argument 96 EXPECT_EQ(expected_tag, tag); in TEST() 113 SetLogger([&](LogId, LogSeverity, const char* tag, const char*, unsigned int, const char*) { in TEST() argument 115 EXPECT_EQ(expected_tag, tag); in TEST() [all …]
|
/system/tools/xsdc/src/com/android/xsdc/ |
D | XsdHandler.java | 19 import com.android.xsdc.tag.*; 252 for (XsdTag tag : state.tags) { in makeSchema() 253 if (tag == null) continue; in makeSchema() 254 if (tag instanceof XsdElement) { in makeSchema() 255 elementMap.put(tag.getName(), (XsdElement) tag); in makeSchema() 256 } else if (tag instanceof XsdAttribute) { in makeSchema() 257 attrMap.put(tag.getName(), (XsdAttribute) tag); in makeSchema() 258 } else if (tag instanceof XsdAttributeGroup) { in makeSchema() 259 attrGroupMap.put(tag.getName(), (XsdAttributeGroup) tag); in makeSchema() 260 } else if (tag instanceof XsdType) { in makeSchema() [all …]
|
/system/chre/util/include/chre/util/nanoapp/ |
D | log.h | 45 #define CHRE_LOG_TAG(level, tag, fmt, ...) \ argument 48 chreLog(level, "%s " fmt, tag, ##__VA_ARGS__); \ 53 #define LOGE_TAG(tag, fmt, ...) \ argument 54 CHRE_LOG_TAG(CHRE_LOG_ERROR, tag, fmt, ##__VA_ARGS__) 56 #define LOGE_TAG(tag, fmt, ...) CHRE_LOG_NULL(fmt, ##__VA_ARGS__) argument 61 #define LOGW_TAG(tag, fmt, ...) \ argument 62 CHRE_LOG_TAG(CHRE_LOG_WARN, tag, fmt, ##__VA_ARGS__) 64 #define LOGW_TAG(tag, fmt, ...) CHRE_LOG_NULL(fmt, ##__VA_ARGS__) argument 69 #define LOGI_TAG(tag, fmt, ...) \ argument 70 CHRE_LOG_TAG(CHRE_LOG_INFO, tag, fmt, ##__VA_ARGS__) [all …]
|
/system/nvram/messages/include/nvram/messages/ |
D | tagged_union.h | 101 template <uint64_t tag, typename Member> 103 static constexpr uint64_t kTag = tag; 129 template <typename TagType, TagType tag, typename... Member> 133 TagType tag, 138 tag, 141 using Type = typename MemberForTag<TagType, tag, Tail...>::Type; 144 template <typename TagType, TagType tag, typename MemberType, typename... Tail> 146 tag, 147 TaggedUnionMember<static_cast<uint64_t>(tag), MemberType>, 149 using Type = TaggedUnionMember<tag, MemberType>; [all …]
|
/system/logging/liblog/include_vndk/log/ |
D | log_main.h | 82 #define android_writeLog(prio, tag, text) __android_log_write(prio, tag, text) argument 84 #define android_printLog(prio, tag, ...) \ argument 85 __android_log_print(prio, tag, __VA_ARGS__) 87 #define android_vprintLog(prio, cond, tag, ...) \ argument 88 __android_log_vprint(prio, tag, __VA_ARGS__) 94 #define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__) argument 101 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument 102 android_vprintLog(priority, NULL, tag, fmt, args) 122 #define android_printAssert(cond, tag, ...) \ argument 123 __android_log_assert(cond, tag, \ [all …]
|
/system/logging/liblog/include/log/ |
D | log_main.h | 82 #define android_writeLog(prio, tag, text) __android_log_write(prio, tag, text) argument 84 #define android_printLog(prio, tag, ...) \ argument 85 __android_log_print(prio, tag, __VA_ARGS__) 87 #define android_vprintLog(prio, cond, tag, ...) \ argument 88 __android_log_vprint(prio, tag, __VA_ARGS__) 94 #define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__) argument 101 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument 102 android_vprintLog(priority, NULL, tag, fmt, args) 122 #define android_printAssert(cond, tag, ...) \ argument 123 __android_log_assert(cond, tag, \ [all …]
|
D | log.h | 81 int __android_log_bwrite(int32_t tag, const void* payload, size_t len); 82 int __android_log_btwrite(int32_t tag, char type, const void* payload, 84 int __android_log_bswrite(int32_t tag, const char* payload); 86 int __android_log_stats_bwrite(int32_t tag, const void* payload, size_t len); 88 #define android_bWriteLog(tag, payload, len) \ argument 89 __android_log_bwrite(tag, payload, len) 90 #define android_btWriteLog(tag, type, payload, len) \ argument 91 __android_log_btwrite(tag, type, payload, len)
|
/system/core/libcutils/include/cutils/ |
D | klog.h | 40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
D | trace.h | 148 static inline uint64_t atrace_is_tag_enabled(uint64_t tag) in atrace_is_tag_enabled() argument 150 return atrace_get_enabled_tags() & tag; in atrace_is_tag_enabled() 158 static inline void atrace_begin(uint64_t tag, const char* name) in atrace_begin() argument 160 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_begin() 171 static inline void atrace_end(uint64_t tag) in atrace_end() argument 173 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_end() 188 static inline void atrace_async_begin(uint64_t tag, const char* name, in atrace_async_begin() argument 191 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_begin() 202 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) in atrace_async_end() argument 204 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_end() [all …]
|
/system/core/libcutils/include_outside_system/cutils/ |
D | klog.h | 40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
D | trace.h | 148 static inline uint64_t atrace_is_tag_enabled(uint64_t tag) in atrace_is_tag_enabled() argument 150 return atrace_get_enabled_tags() & tag; in atrace_is_tag_enabled() 158 static inline void atrace_begin(uint64_t tag, const char* name) in atrace_begin() argument 160 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_begin() 171 static inline void atrace_end(uint64_t tag) in atrace_end() argument 173 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_end() 188 static inline void atrace_async_begin(uint64_t tag, const char* name, in atrace_async_begin() argument 191 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_begin() 202 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) in atrace_async_end() argument 204 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_end() [all …]
|
/system/keymaster/include/keymaster/ |
D | authorization_set.h | 198 int find(keymaster_tag_t tag, int begin = -1) const; 229 bool Contains(keymaster_tag_t tag) const { return find(tag) != -1; } in Contains() argument 234 size_t GetTagCount(keymaster_tag_t tag) const; 240 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() argument 241 return ContainsEnumValue(tag, val); in Contains() 248 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() argument 249 return ContainsEnumValue(tag, val); in Contains() 255 template <keymaster_tag_t Tag> bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const { in Contains() argument 256 return ContainsIntValue(tag, val); in Contains() 264 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const { in GetTagValue() argument [all …]
|
D | keymaster_tags.h | 97 template <keymaster_tag_type_t tag_type, keymaster_tag_t tag> class TypedTag { 105 StaticAssert<(tag & tag_type) == tag_type>::check(); 109 inline operator keymaster_tag_t() { return tag; } 111 inline long masked_tag() { return static_cast<long>(keymaster_tag_mask_type(tag)); } 114 template <keymaster_tag_type_t tag_type, keymaster_tag_t tag, typename KeymasterEnum> 123 StaticAssert<(tag & tag_type) == tag_type>::check(); 127 inline operator keymaster_tag_t() { return tag; } 129 inline long masked_tag() { return static_cast<long>(keymaster_tag_mask_type(tag)); } 133 const char* StringifyTag(keymaster_tag_t tag); 222 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) { [all …]
|
/system/media/camera/tests/ |
D | camera_metadata_tests_fake_vendor.h | 113 uint32_t tag); 115 uint32_t tag); 117 uint32_t tag); 131 uint32_t tag) { in get_fakevendor_section_name() argument 133 int tag_section = (tag >> 16) - VENDOR_SECTION; in get_fakevendor_section_name() 141 uint32_t tag) { in get_fakevendor_tag_name() argument 143 int tag_section = (tag >> 16) - VENDOR_SECTION; in get_fakevendor_tag_name() 146 || tag >= fakevendor_section_bounds[tag_section][1]) return NULL; in get_fakevendor_tag_name() 147 int tag_index = tag & 0xFFFF; in get_fakevendor_tag_name() 152 uint32_t tag) { in get_fakevendor_tag_type() argument [all …]
|
/system/logging/liblog/ |
D | logger_write.cpp | 144 void __android_log_set_default_tag(const char* tag) { in __android_log_set_default_tag() argument 145 GetDefaultTag().assign(tag, 0, LOGGER_ENTRY_MAX_PAYLOAD); in __android_log_set_default_tag() 267 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in __android_log_stderr_logger() 271 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in __android_log_stderr_logger() 283 vec[1].iov_base = const_cast<void*>(static_cast<const void*>(log_message->tag)); in __android_log_logd_logger() 284 vec[1].iov_len = strlen(log_message->tag) + 1; in __android_log_logd_logger() 291 int __android_log_write(int prio, const char* tag, const char* msg) { in __android_log_write() argument 292 return __android_log_buf_write(LOG_ID_MAIN, prio, tag, msg); in __android_log_write() 304 if (log_message->tag == nullptr) { in __android_log_write_log_message() 305 log_message->tag = GetDefaultTag().c_str(); in __android_log_write_log_message() [all …]
|
/system/keymaster/ng/ |
D | KeyMintUtils.cpp | 29 switch (param.tag) { in kmEnumParam2Aidl() 62 keymaster_key_param_t kInvalidTag{.tag = KM_TAG_INVALID, .integer = 0}; 72 auto tag = km_utils::legacy_enum_conversion(param.tag); in aidlEnumParam2Km() local 73 switch (tag) { in aidlEnumParam2Km() 75 return aidlEnumVal2Km<KeyParameterValue::keyPurpose>(tag, param.value); in aidlEnumParam2Km() 77 return aidlEnumVal2Km<KeyParameterValue::algorithm>(tag, param.value); in aidlEnumParam2Km() 79 return aidlEnumVal2Km<KeyParameterValue::blockMode>(tag, param.value); in aidlEnumParam2Km() 82 return aidlEnumVal2Km<KeyParameterValue::digest>(tag, param.value); in aidlEnumParam2Km() 84 return aidlEnumVal2Km<KeyParameterValue::paddingMode>(tag, param.value); in aidlEnumParam2Km() 86 return aidlEnumVal2Km<KeyParameterValue::ecCurve>(tag, param.value); in aidlEnumParam2Km() [all …]
|
D | KeyMintAidlUtils.cpp | 60 auto tag = params[i].tag; in kmParamSet2Aidl() local 61 result[i].tag = legacy_enum_conversion(tag); in kmParamSet2Aidl() 62 switch (typeFromTag(tag)) { in kmParamSet2Aidl() 88 params[i].tag = KM_TAG_INVALID; in kmParamSet2Aidl() 105 auto tag = legacy_enum_conversion(keyParams[i].tag); in aidlKeyParams2Km() local 106 switch (typeFromTag(tag)) { in aidlKeyParams2Km() 109 set.params[i] = keymaster_param_enum(tag, keyParams[i].integer); in aidlKeyParams2Km() 113 set.params[i] = keymaster_param_int(tag, keyParams[i].integer); in aidlKeyParams2Km() 117 set.params[i] = keymaster_param_long(tag, keyParams[i].longInteger); in aidlKeyParams2Km() 120 set.params[i] = keymaster_param_date(tag, keyParams[i].longInteger); in aidlKeyParams2Km() [all …]
|
/system/media/camera/fuzz/ |
D | libcamera_metadata_fuzzer.cpp | 34 uint32_t tag = *reinterpret_cast<const uint32_t*>(data + i); in LLVMFuzzerTestOneInput() local 40 int32_t tag_type = get_camera_metadata_tag_type(tag); in LLVMFuzzerTestOneInput() 45 add_camera_metadata_entry(m, tag, data, data_count); in LLVMFuzzerTestOneInput() 59 add_camera_metadata_entry(m, tag, tag_data, data_count); in LLVMFuzzerTestOneInput() 62 if (OK == find_camera_metadata_ro_entry(m, tag, &entry)) { in LLVMFuzzerTestOneInput() 68 add_camera_metadata_entry(m, tag, tag_data, data_count); in LLVMFuzzerTestOneInput() 69 tags.push_back(tag); in LLVMFuzzerTestOneInput() 71 get_camera_metadata_section_name(tag); in LLVMFuzzerTestOneInput() 72 get_camera_metadata_tag_name(tag); in LLVMFuzzerTestOneInput() 73 get_camera_metadata_tag_type(tag); in LLVMFuzzerTestOneInput() [all …]
|
/system/bt/stack/btm/ |
D | btm_main.cc | 64 static void btm_log_history(const std::string& tag, const char* addr, in btm_log_history() argument 67 "%-6s %-25s: %s %s", tag.substr(0, kMaxLogHistoryTagLength).c_str(), in btm_log_history() 71 void BTM_LogHistory(const std::string& tag, const RawAddress& bd_addr, in BTM_LogHistory() argument 73 btm_log_history(tag, PRIVATE_ADDRESS(bd_addr), msg, extra); in BTM_LogHistory() 76 void BTM_LogHistory(const std::string& tag, const RawAddress& bd_addr, in BTM_LogHistory() argument 78 BTM_LogHistory(tag, bd_addr, msg, std::string()); in BTM_LogHistory() 81 void BTM_LogHistory(const std::string& tag, const tBLE_BD_ADDR& ble_bd_addr, in BTM_LogHistory() argument 83 btm_log_history(tag, PRIVATE_ADDRESS(ble_bd_addr), msg, extra); in BTM_LogHistory() 86 void BTM_LogHistory(const std::string& tag, const tBLE_BD_ADDR& ble_bd_addr, in BTM_LogHistory() argument 88 BTM_LogHistory(tag, ble_bd_addr, msg, std::string()); in BTM_LogHistory()
|
/system/logging/liblog/include/android/ |
D | log.h | 98 int __android_log_write(int prio, const char* tag, const char* text); 105 int __android_log_print(int prio, const char* tag, const char* fmt, ...) 112 int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap) 131 void __android_log_assert(const char* cond, const char* tag, const char* fmt, ...) 170 int __android_log_buf_write(int bufID, int prio, const char* tag, const char* text); 180 int __android_log_buf_print(int bufID, int prio, const char* tag, const char* fmt, ...) 198 const char* tag; member 318 int __android_log_is_loggable(int prio, const char* tag, int default_prio) __INTRODUCED_IN(30); 338 int __android_log_is_loggable_len(int prio, const char* tag, size_t len, int default_prio) 372 void __android_log_set_default_tag(const char* tag) __INTRODUCED_IN(30);
|
/system/security/keystore2/src/ |
D | key_parameter.rs | 274 tag: Tag, 278 Ok(match tag { 454 tag: Tag, 457 Ok(match tag { 545 tag: Tag::$tag_name, 558 tag: Tag::$tag_name, 583 tag: Tag::$tag_name, 596 tag: Tag::$tag_name, 661 #[key_param(tag = $tag_name:ident, field = $field_name:ident)] 762 tag: Tag::$tag_name, [all …]
|
/system/keymaster/android_keymaster/ |
D | authorization_set.cpp | 29 static inline bool is_blob_tag(keymaster_tag_t tag) { in is_blob_tag() argument 30 return (keymaster_tag_get_type(tag) == KM_BYTES || keymaster_tag_get_type(tag) == KM_BIGNUM); in is_blob_tag() 92 if (is_blob_tag(elems_[i].tag)) in reserve_indirect() 153 if (elems_[i - 1].tag == KM_TAG_INVALID) in Deduplicate() 159 elems_[i - 1].tag = KM_TAG_INVALID; in Deduplicate() 163 if (size() > 0 && elems_[size() - 1].tag == KM_TAG_INVALID) ++invalid_count; in Deduplicate() 189 index = find(set.params[i].tag, index); in Difference() 210 keymaster_tag_type_t type = keymaster_tag_get_type(src.tag); in CopyToParamSet() 219 int AuthorizationSet::find(keymaster_tag_t tag, int begin) const { in find() argument 223 while (i < (int)elems_size_ && elems_[i].tag != tag) in find() [all …]
|
/system/libbase/ |
D | logging_splitters_test.cpp | 72 void TestLogdChunkSplitter(const std::string& tag, const std::string& file, in TestLogdChunkSplitter() argument 80 SplitByLogdChunks(MAIN, FATAL, tag.c_str(), file.empty() ? nullptr : file.c_str(), 1000, in TestLogdChunkSplitter() 136 std::string ReduceToMaxSize(const std::string& tag, const std::string& string) { in ReduceToMaxSize() argument 137 return string.substr(0, LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35); in ReduceToMaxSize() 147 std::string tag = "tag"; in TEST() local 148 std::vector expected = {ReduceToMaxSize(tag, long_string_x), ReduceToMaxSize(tag, long_string_y), in TEST() 151 TestLogdChunkSplitter(tag, "", long_strings, expected); in TEST() 168 const char* tag = "tag"; in TEST() local 169 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - strlen(tag) - 35; in TEST() 176 TestLogdChunkSplitter(tag, "", long_strings, in TEST() [all …]
|
/system/media/camera/include/system/ |
D | camera_metadata.h | 82 uint32_t tag; member 101 uint32_t tag; member 351 uint32_t tag, 399 uint32_t tag, 407 uint32_t tag, 442 const char *get_camera_metadata_section_name(uint32_t tag); 450 const char *get_camera_metadata_tag_name(uint32_t tag); 458 int get_camera_metadata_tag_type(uint32_t tag); 465 const char *get_local_camera_metadata_section_name(uint32_t tag, 473 const char *get_local_camera_metadata_tag_name(uint32_t tag, [all …]
|