Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 61) sorted by relevance

123

/system/core/liblog/
Dlogd_write_kern.c157 int __android_log_write(int prio, const char *tag, const char *msg) in __android_log_write() argument
163 if (!tag) in __android_log_write()
164 tag = ""; in __android_log_write()
167 if (!strcmp(tag, "HTC_RIL") || in __android_log_write()
168 !strncmp(tag, "RIL", 3) || /* Any log tag with "RIL" as the prefix */ in __android_log_write()
169 !strncmp(tag, "IMS", 3) || /* Any log tag with "IMS" as the prefix */ in __android_log_write()
170 !strcmp(tag, "AT") || in __android_log_write()
171 !strcmp(tag, "GSM") || in __android_log_write()
172 !strcmp(tag, "STK") || in __android_log_write()
173 !strcmp(tag, "CDMA") || in __android_log_write()
[all …]
Dlogd_write.c312 int __android_log_write(int prio, const char *tag, const char *msg) in __android_log_write() argument
318 if (!tag) in __android_log_write()
319 tag = ""; in __android_log_write()
322 if (!strcmp(tag, "HTC_RIL") || in __android_log_write()
323 !strncmp(tag, "RIL", 3) || /* Any log tag with "RIL" as the prefix */ in __android_log_write()
324 !strncmp(tag, "IMS", 3) || /* Any log tag with "IMS" as the prefix */ in __android_log_write()
325 !strcmp(tag, "AT") || in __android_log_write()
326 !strcmp(tag, "GSM") || in __android_log_write()
327 !strcmp(tag, "STK") || in __android_log_write()
328 !strcmp(tag, "CDMA") || in __android_log_write()
[all …]
Dfake_log_device.c85 char tag[kMaxTagLen]; member
264 strcpy(logState->tagSet[entry].tag, tagName); in configureInitialState()
267 logState->tagSet[entry].tag, in configureInitialState()
353 int logPrio, const char* tag, const char* msg) in showLog() argument
365 TRACE("LOG %d: %s %s", logPrio, tag, msg); in showLog()
396 "%c/%-8s: ", priChar, tag); in showLog()
403 " (%s)\n", tag); in showLog()
416 "%s %-8s\n\t", timeBuf, tag); in showLog()
421 "%s %5d %5d %c %-8s \n\t", timeBuf, pid, tid, priChar, tag); in showLog()
427 timeBuf, pid, tid, priChar, tag); in showLog()
[all …]
Dlogprint.c44 static FilterInfo * filterinfo_new(const char * tag, android_LogPriority pri) in filterinfo_new() argument
49 p_ret->mTag = strdup(tag); in filterinfo_new()
114 AndroidLogFormat *p_format, const char *tag) in filterPriForTag() argument
122 if (0 == strcmp(tag, p_curFilter->mTag)) { in filterPriForTag()
139 AndroidLogFormat *p_format, const char *tag, android_LogPriority pri) in android_log_shouldPrintLine() argument
141 return pri >= filterPriForTag(p_format, tag); in android_log_shouldPrintLine()
381 entry->tag = msg + 1; in android_log_processLogBuffer()
608 entry->tag = android_lookupEventTag(map, tagIndex); in android_log_processBinaryLogBuffer()
610 entry->tag = NULL; in android_log_processBinaryLogBuffer()
618 if (entry->tag == NULL) { in android_log_processBinaryLogBuffer()
[all …]
/system/keymaster/include/keymaster/
Dauthorization_set.h105 int find(keymaster_tag_t tag, int begin = -1) const;
117 inline bool GetTagValue(TypedTag<KM_INT, T> tag, uint32_t* val) const { in GetTagValue() argument
118 return GetTagValueInt(tag, val); in GetTagValue()
127 bool GetTagValue(TypedTag<KM_INT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() argument
128 return GetTagValueIntRep(tag, instance, val); in GetTagValue()
136 inline bool GetTagValue(TypedTag<KM_LONG, T> tag, uint64_t* val) const { in GetTagValue() argument
137 return GetTagValueLong(tag, val); in GetTagValue()
145 bool GetTagValue(TypedEnumTag<KM_ENUM, Tag, T> tag, T* val) const { in GetTagValue() argument
146 return GetTagValueEnum(tag, reinterpret_cast<uint32_t*>(val)); in GetTagValue()
155 bool GetTagValue(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, size_t instance, T* val) const { in GetTagValue() argument
[all …]
Dkeymaster_defs.h270 keymaster_tag_t tag; member
379 static inline keymaster_tag_type_t keymaster_tag_get_type(keymaster_tag_t tag) { in keymaster_tag_get_type() argument
380 return (keymaster_tag_type_t)(tag & (0xF << 28)); in keymaster_tag_get_type()
383 static inline uint32_t keymaster_tag_mask_type(keymaster_tag_t tag) { in keymaster_tag_mask_type() argument
384 return tag & 0x0FFFFFFF; in keymaster_tag_mask_type()
397 static inline bool keymaster_tag_repeatable(keymaster_tag_t tag) { in keymaster_tag_repeatable() argument
398 return keymaster_tag_type_repeatable(keymaster_tag_get_type(tag)); in keymaster_tag_repeatable()
403 inline keymaster_key_param_t keymaster_param_enum(keymaster_tag_t tag, uint32_t value) { in keymaster_param_enum() argument
407 param.tag = tag; in keymaster_param_enum()
412 inline keymaster_key_param_t keymaster_param_int(keymaster_tag_t tag, uint32_t value) { in keymaster_param_int() argument
[all …]
Dkeymaster_tags.h98 template <keymaster_tag_type_t tag_type, keymaster_tag_t tag> class TypedTag {
110 StaticAssert<(tag & tag_type) == tag_type>::check();
113 inline operator keymaster_tag_t() { return tag; }
122 template <keymaster_tag_type_t tag_type, keymaster_tag_t tag, typename KeymasterEnum>
135 StaticAssert<(tag & tag_type) == tag_type>::check();
138 inline operator keymaster_tag_t() { return tag; }
205 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) {
206 return keymaster_param_bool(tag);
210 inline keymaster_key_param_t Authorization(TypedTag<KM_INT, Tag> tag, uint32_t value) {
211 return keymaster_param_int(tag, value);
[all …]
/system/core/include/cutils/
Dklog.h41 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument
42 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument
43 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument
44 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument
45 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
Dtrace.h174 static inline uint64_t atrace_is_tag_enabled(uint64_t tag) in atrace_is_tag_enabled() argument
176 return atrace_get_enabled_tags() & tag; in atrace_is_tag_enabled()
184 static inline void atrace_begin(uint64_t tag, const char* name) in atrace_begin() argument
186 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_begin()
200 static inline void atrace_end(uint64_t tag) in atrace_end() argument
202 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_end()
217 static inline void atrace_async_begin(uint64_t tag, const char* name, in atrace_async_begin() argument
220 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_begin()
235 static inline void atrace_async_end(uint64_t tag, const char* name, in atrace_async_end() argument
238 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) { in atrace_async_end()
[all …]
Dqtaguid.h31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
54 extern int qtaguid_deleteTagData(int tag, uid_t uid);
/system/media/camera/tests/
Dcamera_metadata_tests_fake_vendor.h113 uint32_t tag);
115 uint32_t tag);
117 uint32_t tag);
130 uint32_t tag) { in get_fakevendor_section_name() argument
132 int tag_section = (tag >> 16) - VENDOR_SECTION; in get_fakevendor_section_name()
140 uint32_t tag) { in get_fakevendor_tag_name() argument
142 int tag_section = (tag >> 16) - VENDOR_SECTION; in get_fakevendor_tag_name()
145 || tag >= fakevendor_section_bounds[tag_section][1]) return NULL; in get_fakevendor_tag_name()
146 int tag_index = tag & 0xFFFF; in get_fakevendor_tag_name()
151 uint32_t tag) { in get_fakevendor_tag_type() argument
[all …]
Dcamera_metadata_tests.cpp304 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); in TEST()
314 EXPECT_EQ(ANDROID_SENSOR_SENSITIVITY, entry.tag); in TEST()
324 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
334 EXPECT_EQ(ANDROID_COLOR_CORRECTION_GAINS, entry.tag); in TEST()
346 EXPECT_EQ(ANDROID_COLOR_CORRECTION_TRANSFORM, entry.tag); in TEST()
416 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); in TEST()
421 entry.tag = 1234; in TEST()
428 EXPECT_EQ((uint32_t)1234, entry.tag); in TEST()
497 EXPECT_EQ(e1.tag, e2.tag); in TEST()
557 EXPECT_EQ(e1.tag, e2.tag); in TEST()
[all …]
/system/core/liblog/tests/
Dliblog_test.cpp436 char tag[sizeof(max_payload_tag)]; in TEST() local
437 memcpy(tag, max_payload_tag, sizeof(tag)); in TEST()
438 snprintf(tag + sizeof(tag) - 5, 5, "%04X", pid & 0xFFFF); in TEST()
441 tag, max_payload_buf)); in TEST()
463 if (strcmp(data, tag)) { in TEST()
496 char tag[sizeof(big_payload_tag)]; in TEST() local
497 memcpy(tag, big_payload_tag, sizeof(tag)); in TEST()
498 snprintf(tag + sizeof(tag) - 5, 5, "%04X", pid & 0xFFFF); in TEST()
503 ANDROID_LOG_INFO, tag, longString.c_str())); in TEST()
524 if (strcmp(data, tag)) { in TEST()
[all …]
/system/core/include/log/
Dlog.h431 #define ALOG(priority, tag, ...) \ argument
432 LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
439 #define LOG_PRI(priority, tag, ...) \ argument
440 android_printLog(priority, tag, __VA_ARGS__)
447 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument
448 android_vprintLog(priority, NULL, tag, fmt, args)
455 #define IF_ALOG(priority, tag) \ argument
456 if (android_testLog(ANDROID_##priority, tag))
504 #define android_printLog(prio, tag, fmt...) \ argument
505 __android_log_print(prio, tag, fmt)
[all …]
Dlogd.h41 int __android_log_bwrite(int32_t tag, const void *payload, size_t len);
42 int __android_log_btwrite(int32_t tag, char type, const void *payload,
44 int __android_log_bswrite(int32_t tag, const char *payload);
/system/keymaster/
Dgoogle_keymaster_test_utils.h44 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, in contains() argument
46 int pos = set.find(tag); in contains()
51 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, in contains() argument
54 while ((pos = set.find(tag, pos)) != -1) in contains()
61 bool contains(const AuthorizationSet& set, TypedTag<KM_INT, Tag> tag, uint32_t val) { in contains() argument
62 int pos = set.find(tag); in contains()
67 bool contains(const AuthorizationSet& set, TypedTag<KM_INT_REP, Tag> tag, uint32_t val) { in contains() argument
69 while ((pos = set.find(tag, pos)) != -1) in contains()
76 bool contains(const AuthorizationSet& set, TypedTag<KM_LONG, Tag> tag, uint64_t val) { in contains() argument
77 int pos = set.find(tag); in contains()
[all …]
Dauthorization_set.cpp28 static inline bool is_blob_tag(keymaster_tag_t tag) { in is_blob_tag() argument
29 return (keymaster_tag_get_type(tag) == KM_BYTES || keymaster_tag_get_type(tag) == KM_BIGNUM); in is_blob_tag()
75 if (is_blob_tag(elems_[i].tag)) in reserve_indirect()
106 int AuthorizationSet::find(keymaster_tag_t tag, int begin) const { in find() argument
111 while (i < (int)elems_size_ && elems_[i].tag != tag) in find()
141 if (lhs->tag < rhs->tag) in param_comparator()
143 else if (lhs->tag > rhs->tag) in param_comparator()
146 switch (keymaster_tag_get_type(lhs->tag)) { in param_comparator()
207 if (is_blob_tag(elem.tag)) { in push_back()
222 switch (keymaster_tag_get_type(param.tag)) { in serialized_size()
[all …]
Dgoogle_keymaster_test_utils.cpp20 os << "Tag: " << keymaster_tag_mask_type(param.tag); in operator <<()
21 switch (keymaster_tag_get_type(param.tag)) { in operator <<()
57 if (a.tag != b.tag) { in operator ==()
61 switch (keymaster_tag_get_type(a.tag)) { in operator ==()
/system/media/camera/include/system/
Dcamera_metadata.h83 uint32_t tag; member
102 uint32_t tag; member
341 uint32_t tag,
389 uint32_t tag,
397 uint32_t tag,
432 const char *get_camera_metadata_section_name(uint32_t tag);
440 const char *get_camera_metadata_tag_name(uint32_t tag);
448 int get_camera_metadata_tag_type(uint32_t tag);
470 uint32_t tag);
478 uint32_t tag);
[all …]
Dcamera_vendor_tags.h69 const char *(*get_section_name)(const vendor_tag_ops_t *v, uint32_t tag);
79 const char *(*get_tag_name)(const vendor_tag_ops_t *v, uint32_t tag);
87 int (*get_tag_type)(const vendor_tag_ops_t *v, uint32_t tag);
/system/media/camera/src/
Dcamera_metadata.c43 uint32_t tag; member
409 uint32_t tag_section = entry.tag >> 16; in validate_camera_metadata_structure()
410 int tag_type = get_camera_metadata_tag_type(entry.tag); in validate_camera_metadata_structure()
430 get_camera_metadata_tag_name(entry.tag) ?: "unknown", in validate_camera_metadata_structure()
449 get_camera_metadata_tag_name(entry.tag) ?: "unknown"); in validate_camera_metadata_structure()
520 uint32_t tag, in add_camera_metadata_entry_raw() argument
537 entry->tag = tag; in add_camera_metadata_entry_raw()
557 uint32_t tag, in add_camera_metadata_entry() argument
561 int type = get_camera_metadata_tag_type(tag); in add_camera_metadata_entry()
563 ALOGE("%s: Unknown tag %04x.", __FUNCTION__, tag); in add_camera_metadata_entry()
[all …]
/system/media/camera/docs/
Dmetadata_template.mako23 % for tag in metadata.tags:
24 % if tag.description and tag.description.strip():
25 <tag id="${tag.id}">${tag.description | x}</tag>
27 <tag id="${tag.id}"><!-- TODO: fill the tag description --></tag>
82 % for tag in prop.tags:
83 <tag id="${tag.id}" />
175 % for tag in prop.tags:
176 <tag id="${tag.id}" />
/system/core/libcutils/
Dqtaguid.c100 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { in qtaguid_tagSocket() argument
103 uint64_t kTag = ((uint64_t)tag << 32); in qtaguid_tagSocket()
109 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid); in qtaguid_tagSocket()
114 sockfd, kTag, tag, uid, res); in qtaguid_tagSocket()
146 int qtaguid_deleteTagData(int tag, uid_t uid) { in qtaguid_deleteTagData() argument
149 uint64_t kTag = (uint64_t)tag << 32; in qtaguid_deleteTagData()
151 ALOGV("Deleting tag data with tag %" PRIx64 "{%d,0} for uid %d", kTag, tag, uid); in qtaguid_deleteTagData()
159 kTag, tag, uid, cnt, errno); in qtaguid_deleteTagData()
/system/core/include/android/
Dlog.h94 int __android_log_write(int prio, const char *tag, const char *text);
99 int __android_log_print(int prio, const char *tag, const char *fmt, ...)
117 int __android_log_vprint(int prio, const char *tag,
124 void __android_log_assert(const char *cond, const char *tag,
/system/core/toolbox/
Dlog.c93 const char *tag = "log"; in log_main() local
110 tag = optarg; in log_main()
141 __android_log_print(priority, tag, "%s", buffer); in log_main()

123