Searched defs:cmp (Results 1 - 8 of 8) 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.cpp28 int Prune::cmp(uid_t uid, pid_t pid) const { function in class:Prune
219 // ToDo: Lists are in sorted order, Prune->cmp() returns + or -
226 if (!(*it)->cmp(element)) {
236 if (!(*it)->cmp(element)) {
/system/vold/
H A Dvdc.c87 char *cmp; local
90 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
92 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");
94 ret = strlcat(final_cmd, cmp, sizeof(final_cmd));
97 free(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.cpp166 status_t VectorImpl::sort(VectorImpl::compar_t cmp) argument
168 return sort(sortProxy, (void*)cmp);
171 status_t VectorImpl::sort(VectorImpl::compar_r_t cmp, void* state) argument
184 if (cmp(curr, item, state) > 0) {
208 } 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.c322 int cmp = next->e_name_index - entry->e_name_index; local
323 if (cmp == 0)
324 cmp = next->e_name_len - entry->e_name_len;
325 if (cmp == 0)
326 cmp = memcmp(next->e_name, entry->e_name, next->e_name_len);
327 if (cmp < 0) {
331 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 97 milliseconds