Searched defs:cmp (Results 1 - 9 of 9) sorted by relevance

/system/core/logd/
H A DLogWhiteBlackList.h33 int cmp(uid_t uid, pid_t pid) const;
44 int cmp(LogBufferElement *e) const { return cmp(e->getUid(), e->getPid()); } function in class:Prune
H A DLogWhiteBlackList.cpp30 int Prune::cmp(uid_t uid, pid_t pid) const { function in class:Prune
217 // ToDo: Lists are in sorted order, Prune->cmp() returns + or -
224 if (!(*it)->cmp(element)) {
234 if (!(*it)->cmp(element)) {
/system/vold/
H A Dvdc.c81 char *cmp; local
84 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
86 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");
88 ret = strlcat(final_cmd, cmp, sizeof(final_cmd));
91 free(cmp);
/system/core/libcutils/
H A Ddir_hash.c122 static int cmp(const void *a, const void *b) { function
302 qsort(list, count, sizeof(struct list *), cmp);
/system/core/liblog/
H A Devent_tag_map.c134 int cmp; local
137 cmp = map->tagArray[mid].tagIndex - tag;
138 if (cmp < 0) {
141 } else if (cmp > 0) {
/system/core/libutils/
H A DVectorImpl.cpp160 status_t VectorImpl::sort(VectorImpl::compar_t cmp) argument
162 return sort(sortProxy, (void*)cmp);
165 status_t VectorImpl::sort(VectorImpl::compar_r_t cmp, void* state) argument
178 if (cmp(curr, item, state) > 0) {
202 } while (j>=0 && (cmp(curr, temp, state) > 0));
/system/core/include/utils/
H A DVector.h174 inline status_t sort(compar_t cmp);
175 inline status_t sort(compar_r_t cmp, void* state);
377 status_t Vector<TYPE>::sort(Vector<TYPE>::compar_t cmp) { argument
378 return VectorImpl::sort((VectorImpl::compar_t)cmp);
382 status_t Vector<TYPE>::sort(Vector<TYPE>::compar_r_t cmp, void* state) { argument
383 return VectorImpl::sort((VectorImpl::compar_r_t)cmp, state);
/system/extras/ext4_utils/
H A Dcontents.c321 int cmp = next->e_name_index - entry->e_name_index; local
322 if (cmp == 0)
323 cmp = next->e_name_len - entry->e_name_len;
324 if (cmp == 0)
325 cmp = memcmp(next->e_name, entry->e_name, next->e_name_len);
326 if (cmp < 0) {
330 if (cmp == 0) {
/system/extras/ksmutils/
H A Dksminfo.c412 int cmp = pg_b->vaddr_count - pg_a->vaddr_count; local
414 return cmp ? cmp : pg_b->count - pg_a->count;

Completed in 701 milliseconds