Searched defs:match (Results 1 - 25 of 25) sorted by relevance

/system/core/fastboot/
H A Dusbtest.cpp129 ifc_match_func match; member in struct:__anon1421
193 usb = usb_open(tests[i].match);
H A Dengine.cpp171 static int match(const char* str, const char** value, unsigned count) { function
177 int match; local
181 match = !strncmp(val, str, len);
183 match = !strcmp(val, str);
186 if (match) return 1;
216 yes = match(resp, value, count);
/system/bt/btif/src/
H A Dbtif_gatt_util.cc54 int match = 0; local
60 if (p_uuid[i] == BASE_UUID[i]) ++match;
65 if (match == 12) return LEN_UUID_32;
66 if (match == 14) return LEN_UUID_16;
/system/core/libcutils/
H A Dconfig_utils.c41 cnode *node, *match = NULL; local
46 match = node;
48 return match;
/system/keymaster/
H A Dkeymaster_configuration.cpp53 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { argument
54 if (match.rm_so == -1)
57 size_t len = match.rm_eo - match.rm_so;
58 std::string s(expression + match.rm_so, len);
88 ALOGI("Platform version string does not match expected format. Using version 0.");
117 ALOGI("Platform patchlevel string does not match expected format. Using patchlevel 0");
/system/tools/hidl/
H A DHash.cpp126 std::smatch match; local
127 bool valid = std::regex_match(line, match, kHashLine);
135 CHECK_EQ(match.size(), 3u);
137 std::string hash = match.str(1);
138 std::string fqName = match.str(2);
H A DAST.cpp157 Type *match = importAST->findDefinedType(fqName, &matchingName); local
158 if (match == nullptr) {
162 mImportedTypes[importAST].insert(match);
175 Type *match = importAST->findDefinedType(fqName, &matchingName); local
176 if (match == nullptr) {
180 mImportedTypes[importAST].insert(match);
368 Type *match = importedAST->findDefinedType(fqName, &matchingName); local
370 if (match != nullptr) {
382 resolvedType = match;
386 // Keep going even after finding a match
395 Type *match = importedAST->findDefinedType(fqName, &matchingName); local
461 Type *match = importedAST->findDefinedType(ifc, &matchingName); local
[all...]
/system/tools/hidl/utils/
H A DStringHelper.cpp71 std::smatch match; local
83 if (std::regex_search(copy, match, kStartLowercase))
84 matches.push_back(match.str(0));
85 if (std::regex_search(copy, match, kStartCapcase))
86 matches.push_back(match.str(0));
87 if (std::regex_search(copy, match, kStartUppercase))
88 matches.push_back(match.str(0));
91 for (std::string &match : matches)
92 if(match.length() > maxmatch.length())
93 maxmatch = match;
[all...]
H A DFQName.cpp124 std::smatch match; local
125 if (std::regex_match(s, match, kRE1)) {
126 CHECK_EQ(match.size(), 5u);
128 mPackage = match.str(1);
129 parseVersion(match.str(2), match.str(3));
130 mName = match.str(4);
131 } else if (std::regex_match(s, match, kRE2)) {
132 CHECK_EQ(match.size(), 4u);
134 parseVersion(match
205 std::smatch match; local
[all...]
/system/core/liblog/tests/
H A Dbenchmark_main.cpp84 // see if any of our benchmarks match.
92 int match = regexec(&re, b->Name(), 0, NULL, 0); local
94 if (match != REG_NOMATCH) {
/system/core/logcat/
H A Dgetopt_long.cpp114 // Returns -1 if short_too is set and the option does not match long_options.
146 int match = -1; local
156 // exact match
157 match = i;
162 // a partial match of a single character.
165 if (match == -1) { // first partial match
166 match = i;
167 } else if (long_options[i].has_arg != long_options[match].has_arg ||
168 long_options[i].flag != long_options[match]
[all...]
H A Dlogcat.cpp337 bool match = regexOk(context, entry); local
339 context->printCount += match;
340 if (match || context->printItAnyways) {
496 // Check ANDROID_LOG_WRAP_DEFAULT_TIMEOUT value for match to 2 hours
538 " color — Display in highlighted color to match priority. i.e. \x1B[38;5;231mVERBOSE\n"
/system/libvintf/
H A DHalManifest.cpp239 return true; // match!
282 bool match = false; local
302 match = true;
305 if (!match) {
312 bool match = false; local
315 match = true;
319 if (!match) {
/system/sepolicy/tools/
H A Dsepolicy-check.c70 int match; local
85 match = 1;
86 match &= check(s_op, source_type, cur->key.source_type);
87 match &= check(t_op, target_type, cur->key.target_type);
88 match &= check(c_op, target_class, cur->key.target_class);
89 match &= check_perm(cur, perm);
90 if (match) {
112 * - 0 indicates a successful return without a match
113 * - 1 indicates a successful return with a match
126 int match; local
240 int match = 1; local
[all...]
/system/libhidl/transport/
H A DServiceManagement.cpp188 std::smatch match; local
189 if (std::regex_match(lib, match, gLibraryFileNamePattern)) {
190 *matchedName = match.str(1) + "::I*";
/system/bt/stack/smp/
H A Dsmp_act.cc1638 SMP_TRACE_WARNING("dhkey chcks do no match");
1644 SMP_TRACE_EVENT("dhkey chcks match");
1880 bool match = false; local
1883 match = true;
1891 match = true;
1895 if (match && smp_cb.state == SMP_STATE_ENCRYPTION_PENDING) {
/system/core/adf/libadf/
H A Dadf.cpp249 bool (*filter)(struct adf_interface_data *data, __u32 match),
250 __u32 match)
264 if (filter(&data, match))
247 adf_interfaces_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_interface_data *data, __u32 match), __u32 match) argument
/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp571 static int compare_last_signature(struct fstab_rec *fstab, int *match) argument
582 *match = 1;
623 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH);
625 if (!*match) {
657 int match = 0; local
683 if (!compare_last_signature(fstab, &match) && !match) {
/system/core/logd/
H A DLogBuffer.cpp242 // outgoing: if match != DIFFERENT
245 // break: if match == DIFFERENT
257 // outgoing: if match == SAME
262 // outgoing: if match == SAME_LIBLOG
271 // break: if match == DIFFERENT
285 // outgoing: if match != DIFFERENT
290 // break: if match == DIFFERENT
297 enum match_type match = identical(elem, currentLast); local
298 if (match != DIFFERENT) {
301 if ((count == 0) /* at Pass 1 */ && (match
[all...]
/system/extras/simpleperf/
H A Ddso.cpp375 bool match = (build_id == real_build_id); local
376 if (!match) {
/system/security/keystore/
H A Dkeystore.cpp98 * that Base64 cannot be used here due to the need of prefix match on keys. */
303 ALOGW("key found but type doesn't match: %d vs %d", keyBlob->getType(), type);
408 char* match = (char*)malloc(extra + 1); local
409 if (match != NULL) {
410 decode_key(match, p, plen);
411 matches->push(android::String16(match, extra));
412 free(match);
414 ALOGW("could not allocate match of size %zd", extra);
/system/core/init/
H A Ddevices.cpp196 bool match = false; local
202 match = true;
208 match = true;
215 if (match) {
/system/bt/stack/btm/
H A Dbtm_ble.cc1292 * Description Check BLE link security level match.
1768 bool match = false; local
1789 match = btm_identity_addr_to_random_pseudo(bda, &bda_type, true);
1793 if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) {
1797 match = true;
1807 LOG_INFO(LOG_TAG, "%s unable to match and resolve random address",
1814 match);
H A Dbtm_ble_gap.cc1655 * Check ADV flag to make sure device is discoverable and match the search
1668 /* does not match filter condition */
1940 bool match = btm_identity_addr_to_random_pseudo(bda, &addr_type, false); local
1945 if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) {
/system/core/libpixelflinger/include/private/pixelflinger/
H A Dggl_context.h239 inline int match(const needs_filter_t& filter);
263 int needs_t::match(const needs_filter_t& filter) { function in class:android::needs_t

Completed in 2496 milliseconds