Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 22 of 22) sorted by relevance

/system/core/libutils/include/utils/
DFastStrcmp.h42 template <int (*cmp)(const char* l, const char* r, const size_t s)>
46 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp()
49 template <int (*cmp)(const char* l, const char* r, const size_t s)>
53 ((tolower(*l) != tolower(*r)) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fasticmp()
56 template <int (*cmp)(const void* l, const void* r, const size_t s)>
62 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp()
65 template <int (*cmp)(const char* l, const char* r)>
67 return (*l != *r) || (__predict_true(*l) && cmp(l + 1, r + 1)); in fastcmp()
70 template <int (*cmp)(const char* l, const char* r)>
72 return (tolower(*l) != tolower(*r)) || (__predict_true(*l) && cmp(l + 1, r + 1)); in fasticmp()
DVector.h188 inline status_t sort(compar_t cmp);
189 inline status_t sort(compar_r_t cmp, void* state);
387 status_t Vector<TYPE>::sort(Vector<TYPE>::compar_t cmp) { in sort() argument
388 return VectorImpl::sort(reinterpret_cast<VectorImpl::compar_t>(cmp)); in sort()
392 status_t Vector<TYPE>::sort(Vector<TYPE>::compar_r_t cmp, void* state) { in sort() argument
393 return VectorImpl::sort(reinterpret_cast<VectorImpl::compar_r_t>(cmp), state); in sort()
DVectorImpl.h95 status_t sort(compar_t cmp);
96 status_t sort(compar_r_t cmp, void* state);
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_vendor.c93 int (*cmp)(const void *, const void *)) { in med3()
94 return cmp(a, b) < 0 ? (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a)) in med3()
95 : (cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c)); in med3()
99 int (*cmp)(const void *, const void *)) { in qsort()
108 for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es) in qsort()
118 pl = med3(pl, pl + d, pl + 2 * d, cmp); in qsort()
119 pm = med3(pm - d, pm, pm + d, cmp); in qsort()
120 pn = med3(pn - 2 * d, pn - d, pn, cmp); in qsort()
122 pm = med3(pl, pm, pn, cmp); in qsort()
129 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort()
[all …]
/system/core/logd/
DLogWhiteBlackList.h34 int cmp(uid_t uid, pid_t pid) const;
49 int cmp(LogBufferElement* e) const { in cmp() function
50 return cmp(e->getUid(), e->getPid()); in cmp()
DLogWhiteBlackList.cpp29 int Prune::cmp(uid_t uid, pid_t pid) const { in cmp() function in Prune
256 if (!(*it).cmp(element)) { in naughty()
266 if (!(*it).cmp(element)) { in nice()
/system/core/property_service/libpropertyinfoparser/
Dproperty_info_parser.cpp39 auto cmp = f(search); in Find() local
41 if (cmp == 0) return search; in Find()
42 if (cmp < 0) bottom = search + 1; in Find()
43 if (cmp > 0) top = search - 1; in Find()
73 int cmp = strncmp(child_name, name, namelen); in FindChildForString() local
74 if (cmp == 0 && child_name[namelen] != '\0') { in FindChildForString()
81 return cmp; in FindChildForString()
/system/core/shell_and_utilities/
DREADME.md40 toolbox: chmod chown cmp date df dmesg getevent getprop hd id ifconfig
51 toolbox: chmod chown cmp date df dmesg getevent getprop hd id ifconfig
62 toolbox: chcon chmod chown clear cmp date df dmesg getenforce getevent
74 toolbox: chcon chmod chown clear cmp date df dmesg getenforce getevent
86 toolbox: chcon chmod clear cmp date df dmesg getenforce getevent getprop
102 chroot cksum clear comm cmp cp cpio cut date dirname dmesg dos2unix echo
122 chown chroot cksum clear comm cmp cp cpio cut date df dirname dmesg
144 chroot chrt cksum clear cmp comm cp cpio cut date df diff dirname dmesg
170 chroot chrt cksum clear cmp comm cp cpio cut date df diff dirname dmesg
196 chmod chown chroot chrt cksum clear cmp comm cp cpio cut date dd df
[all …]
/system/chre/util/tests/
Dpriority_queue_test.cc170 auto cmp = [](const DummyElement &left, const DummyElement &right) { in TEST() local
173 PriorityQueue<DummyElement, decltype(cmp)> q(cmp); in TEST()
/system/core/libutils/
DVectorImpl.cpp165 status_t VectorImpl::sort(VectorImpl::compar_t cmp) in sort() argument
167 return sort(sortProxy, (void*)cmp); in sort()
170 status_t VectorImpl::sort(VectorImpl::compar_r_t cmp, void* state) in sort() argument
183 if (cmp(curr, item, state) > 0) { in sort()
210 } while (j>=0 && (cmp(curr, temp, state) > 0)); in sort()
/system/gatekeeper/
DAndroid.bp41 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h89 const int cmp = std::memcmp(v6a.s6_addr, v6b.s6_addr, IPV6_ADDR_LEN); member
90 if (cmp != 0) return cmp < 0;
/system/sepolicy/tests/
Dfc_sort.py120 Fc.sort(cmp=compare)
/system/sepolicy/tools/
Dcheck_seapp.c997 map_match cmp; in rule_add() local
1019 cmp = rule_map_cmp(rm, tmp->r); in rule_add()
1023 map_match_str[cmp]); in rule_add()
/system/update_engine/scripts/
Dpaycheck.py288 if not filecmp.cmp(out_dst_part.name, dst_part):
Dbrillo_update_payload843 if ! cmp "${TMP_PARTITIONS[${part}]}" "${DST_PARTITIONS[${part}]}"; then
/system/extras/simpleperf/scripts/
Dtest.py1472 self.assertTrue(filecmp.cmp(target_file, source_file))
1477 self.assertTrue(filecmp.cmp(target_file, source_file))
1482 self.assertTrue(filecmp.cmp(target_file, source_file))
1491 self.assertTrue(filecmp.cmp(target_file, source_file))
1493 self.assertTrue(filecmp.cmp(target_file, source_file))
/system/keymaster/
DAndroid.bp32 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h575 const auto cmp = memcmp(a_data, b_data, (std::min)(a_size, b_size));
576 return cmp == 0 ? a_size < b_size : cmp < 0;
/system/extras/ioblame/
Dioblame-gmail-launch.example3 Starting: Intent { cmp=com.google.android.gm/.ConversationListActivityGmail }
/system/core/fs_mgr/tests/
Dadb-remount-test.sh1387 cmp -s ${ANDROID_PRODUCT_OUT}/vendor/build.prop
/system/iorap/tests/src/compiler/testdata/
Dcommon_textcache2454 64768 546 -1 /system/bin/cmp
4682 64769 347 -1 /vendor/bin/cmp