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

/system/core/include/utils/
H A DTrace.h47 inline ScopedTrace(uint64_t tag, const char* name) argument
48 : mTag(tag) {
/system/core/libutils/
H A DLog.cpp24 LogIfSlow::LogIfSlow(const char* tag, android_LogPriority priority, argument
26 mTag(tag), mPriority(priority), mTimeoutMillis(timeoutMillis), mMessage(message),
/system/core/toolbox/
H A Dlog.c82 fprintf(stderr, "USAGE: %s [-p priorityChar] [-t tag] message\n", s);
93 const char *tag = "log"; local
110 tag = optarg;
141 __android_log_print(priority, tag, "%s", buffer);
/system/core/include/log/
H A Dlogprint.h49 const char * tag; member in struct:AndroidLogEntry_t
96 * and tag, and 0 if it should not
99 AndroidLogFormat *p_format, const char *tag, android_LogPriority pri);
115 * If "map" is non-NULL, it will be used to convert the log tag number
/system/core/libcutils/
H A Dqtaguid.c99 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument
102 uint64_t kTag = ((uint64_t)tag << 32);
108 ALOGV("Tagging socket %d with tag %llx{%u,0} for uid %d", sockfd, kTag, tag, uid);
112 ALOGI("Tagging socket %d with tag %llx(%d) for uid %d failed errno=%d",
113 sockfd, kTag, tag, uid, res);
145 int qtaguid_deleteTagData(int tag, uid_t uid) { argument
148 uint64_t kTag = (uint64_t)tag << 32;
150 ALOGV("Deleting tag data with tag
[all...]
/system/core/liblog/
H A Dlogd_write.c135 int __android_log_write(int prio, const char *tag, const char *msg) argument
141 if (!tag)
142 tag = "";
145 if (!strcmp(tag, "HTC_RIL") ||
146 !strncmp(tag, "RIL", 3) || /* Any log tag with "RIL" as the prefix */
147 !strncmp(tag, "IMS", 3) || /* Any log tag with "IMS" as the prefix */
148 !strcmp(tag, "AT") ||
149 !strcmp(tag, "GS
170 __android_log_buf_write(int bufID, int prio, const char *tag, const char *msg) argument
205 __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) argument
214 __android_log_print(int prio, const char *tag, const char *fmt, ...) argument
226 __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) argument
238 __android_log_assert(const char *cond, const char *tag, const char *fmt, ...) argument
264 __android_log_bwrite(int32_t tag, const void *payload, size_t len) argument
281 __android_log_btwrite(int32_t tag, char type, const void *payload, size_t len) argument
[all...]
H A Devent_tag_map.c44 /* array of event tags, sorted numerically by tag index */
53 static int scanTagLine(char** pData, EventTag* tag, int lineNum);
61 * We create a private mapping because we want to terminate the log tag
124 * The entries are sorted by tag number, so we can do a binary search.
126 const char* android_lookupEventTag(const EventTagMap* map, int tag) argument
137 cmp = map->tagArray[mid].tagIndex - tag;
139 /* tag is bigger */
142 /* tag is smaller */
164 * Determine whether "c" is a valid tag char.
184 * Crunch through the file, parsing the contents and creating a tag inde
333 scanTagLine(char** pData, EventTag* tag, int lineNum) argument
434 const EventTag* tag = &map->tagArray[i]; local
[all...]
H A Dfake_log_device.c79 char tag[kMaxTagLen]; member in struct:LogState::__anon171
170 * The tag (or '*' for the global level) comes first, followed by a colon
213 TRACE("ERROR: env tag too long (%d chars max)\n", kMaxTagLen-1);
247 TRACE("ERROR: garbage in tag env; expected whitespace\n");
258 strcpy(logState->tagSet[entry].tag, tagName);
261 logState->tagSet[entry].tag,
281 else if (strcmp(fstr, "tag") == 0)
347 int logPrio, const char* tag, const char* msg)
359 TRACE("LOG %d: %s %s", logPrio, tag, msg);
390 "%c/%-8s: ", priChar, tag);
346 showLog(LogState *state, int logPrio, const char* tag, const char* msg) argument
571 const char* tag = (const char*) vector[1].iov_base; local
[all...]
H A Dlogprint.c44 static FilterInfo * filterinfo_new(const char * tag, android_LogPriority pri) argument
49 p_ret->mTag = strdup(tag);
122 AndroidLogFormat *p_format, const char *tag)
130 if (0 == strcmp(tag, p_curFilter->mTag)) {
161 * and tag, and 0 if it should not
164 AndroidLogFormat *p_format, const char *tag, android_LogPriority pri)
166 return pri >= filterPriForTag(p_format, tag);
214 else if (strcmp(formatString, "tag") == 0) format = FORMAT_TAG;
359 * format: <priority:1><tag:N>\0<message:N>\0
361 * tag st
121 filterPriForTag( AndroidLogFormat *p_format, const char *tag) argument
163 android_log_shouldPrintLine( AndroidLogFormat *p_format, const char *tag, android_LogPriority pri) argument
944 const char *tag; local
[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
315 * left to add the entry, or if the tag is unknown. data_count is the number of
316 * entries in the data array of the tag's type, not a count of
324 uint32_t tag,
349 * Find an entry with given tag value. If not found, returns -ENOENT. Otherwise,
352 * If multiple entries with the same tag exist, does not have any guarantees on
358 uint32_t tag,
[all...]
/system/media/camera/src/
H A Dcamera_metadata_tag_info.c21 * maintaining the tag info.
581 int camera_metadata_enum_snprint(uint32_t tag, argument
588 switch(tag) {
H A Dcamera_metadata.c50 uint32_t tag; member in struct:camera_metadata_buffer_entry
395 uint32_t tag_section = entry.tag >> 16;
396 int tag_type = get_camera_metadata_tag_type(entry.tag);
398 ALOGE("%s: Entry index %u had tag type %d, but the type was %d",
414 " expected align %d, (tag name %s, data size %u)",
416 get_camera_metadata_tag_name(entry.tag) ?: "unknown",
434 "(%u), tag name: %s", __FUNCTION__, i, entry.data.offset,
435 get_camera_metadata_tag_name(entry.tag) ?: "unknown");
504 uint32_t tag,
521 entry->tag
503 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument
539 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument
598 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument
631 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument
766 get_camera_metadata_section_name(uint32_t tag) argument
779 get_camera_metadata_tag_name(uint32_t tag) argument
794 get_camera_metadata_tag_type(uint32_t tag) argument
893 print_data(int fd, const uint8_t *data_ptr, uint32_t tag, int type, int count, int indentation) argument
[all...]
/system/core/include/cutils/
H A Dtrace.h38 * following ATRACE_TAG_* macros. The trace tag is used to filter tracing in
53 #define ATRACE_TAG_NEVER 0 // This tag is never enabled.
54 #define ATRACE_TAG_ALWAYS (1<<0) // This tag is always enabled.
86 * Note this message includes a tag, the pid, and the string given as the name.
165 * Test if a given tag is currently enabled.
166 * Returns nonzero if the tag is enabled, otherwise zero.
170 static inline uint64_t atrace_is_tag_enabled(uint64_t tag) argument
172 return atrace_get_enabled_tags() & tag;
180 static inline void atrace_begin(uint64_t tag, const char* name) argument
182 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
196 atrace_end(uint64_t tag) argument
213 atrace_async_begin(uint64_t tag, const char* name, int32_t cookie) argument
231 atrace_async_end(uint64_t tag, const char* name, int32_t cookie) argument
250 atrace_int(uint64_t tag, const char* name, int32_t value) argument
267 atrace_int64(uint64_t tag, const char* name, int64_t value) argument
[all...]
/system/core/libcutils/tests/memset_mips/
H A Dtest_memset.c82 testone(char *tag, void (*fn)(), int trials, int minbytes, int maxbytes, int size, int threshold) argument
149 printf ("%s: verify failure: preguard:%p d=%p v=%08x got=%08x n=%d\n", tag, p, d, v, got, n);
153 printf ("%s: verify failure: arena:%p d=%p v=%08x got=%08x n=%d\n", tag, p, d, v, n);
157 printf ("%s: verify failure: postguard:%p d=%p v=%08x got=%08x n=%d\n", tag, p, d, v, n);
171 tag, samples, totalbytes/samples, totalunits/samples, (double)totalbytes/(double)totalunits);
214 char tag[40]; local
225 sprintf(tag, "%10s: %7s %4d-%4d", fp->name, pp->type, pp->minbytes, pp->maxbytes);
229 testone(tag, fp->fn, pp->trials, pp->minbytes, pp->maxbytes, fp->size, threshold);
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp42 int setup(uint64_t tag);
43 bool checkTag(uint64_t tag, uid_t uid);
97 int SockInfo::setup(uint64_t tag) { argument
103 if (doCtrlCommand("t %d %llu", fd, tag) < 0) {
104 testPrintE("socket setup: failed to tag");
108 if (!checkTag(tag, getuid())) {
109 testPrintE("socket setup: Unexpected results: tag not found");
124 * tag + uid. But it is not fool proof.
125 * Without the kernel reporting more info on who setup the socket tag, it is
127 * Returns: true if tag foun
261 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32); local
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c161 // Set tag used while logging to the logcat error interface
162 void testSetLogCatTag(const char *tag) argument
164 logCatTag = tag;
167 // Obtain pointer to current log to logcat error interface tag
/system/media/camera/tests/
H A Dcamera_metadata_tests_fake_vendor.h108 uint32_t tag);
110 uint32_t tag);
112 uint32_t tag);
125 uint32_t tag) {
127 int tag_section = (tag >> 16) - VENDOR_SECTION;
135 uint32_t tag) {
137 int tag_section = (tag >> 16) - VENDOR_SECTION;
140 || tag >= fakevendor_section_bounds[tag_section][1]) return NULL;
141 int tag_index = tag & 0xFFFF;
146 uint32_t tag) {
124 get_fakevendor_section_name(const vendor_tag_query_ops_t *v, uint32_t tag) argument
134 get_fakevendor_tag_name(const vendor_tag_query_ops_t *v, uint32_t tag) argument
145 get_fakevendor_tag_type(const vendor_tag_query_ops_t *v, uint32_t tag) argument
172 unsigned int start, end, tag; local
[all...]
/system/core/logwrapper/
H A Dlogwrap.c297 static int parent(const char *tag, int parent_read, pid_t pid, argument
318 log_info.btag = basename(tag);
320 log_info.btag = (char*) tag;
/system/core/debuggerd/
H A Dtombstone.c553 * Msg format is: <priority:1><tag:N>\0<message:N>\0
563 char* tag = entry->msg + 1; local
564 char* msg = tag + strlen(tag) + 1;
585 prioChar, tag, msg);
591 prioChar, tag, msg);
/system/core/adb/
H A Dadb.c94 const char* tag; member in struct:__anon1
126 for (tagn = 0; tags[tagn].tag != NULL; tagn++)
128 int taglen = strlen(tags[tagn].tag);
130 if (len == taglen && !memcmp(tags[tagn].tag, p, len) )
231 char *tag; local
236 case A_SYNC: tag = "SYNC"; break;
237 case A_CNXN: tag = "CNXN" ; break;
238 case A_OPEN: tag = "OPEN"; break;
239 case A_OKAY: tag = "OKAY"; break;
240 case A_CLSE: tag
[all...]

Completed in 389 milliseconds