Lines Matching refs:name
82 char *name = android::pidToName(tid); in tidToName() local
84 retval = name; in tidToName()
85 name = NULL; in tidToName()
89 if (name) { in tidToName()
92 size_t name_len = strlen(name); in tidToName()
94 if ((retval_len < name_len) && !strcmp(retval, name + name_len - retval_len)) { in tidToName()
96 retval = name; in tidToName()
98 free(name); in tidToName()
115 char *name = parent->uidToName(mUid); in populateDroppedMessage() local
126 size_t len = name ? strlen(name) : 0; in populateDroppedMessage()
127 if (len && commName && !strncmp(name, commName, len)) { in populateDroppedMessage()
132 free(name); in populateDroppedMessage()
133 name = NULL; in populateDroppedMessage()
136 if (name) { in populateDroppedMessage()
138 asprintf(&p, "(%s)", name); in populateDroppedMessage()
140 free(name); in populateDroppedMessage()
141 name = p; in populateDroppedMessage()
153 len = snprintf(NULL, 0, format_uid, mUid, name ? name : "", in populateDroppedMessage()
166 free(name); in populateDroppedMessage()
184 snprintf(buffer + hdrLen, len + 1, format_uid, mUid, name ? name : "", in populateDroppedMessage()
187 free(name); in populateDroppedMessage()