/system/libvintf/ |
H A D | Regex.cpp | 42 regmatch_t match; local 44 regexec(mImpl.get(), s.c_str(), 1 /* nmatch */, &match /* pmatch */, 0 /* flags */); 45 return status == 0 && match.rm_so == 0 && match.rm_eo >= 0 && 46 static_cast<size_t>(match.rm_eo) == s.length();
|
H A D | KernelConfigParser.cpp | 64 std::smatch match; local 68 if (std::regex_match(mRemaining, match, sKeyValuePattern)) { 69 if (mConfigs.emplace(match[1], trimTrailingSpaces(match[2])).second) { 72 mError << "Duplicated key in configs: " << match[1] << "\n"; local 89 if (mProcessComments && std::regex_match(mRemaining, match, sNotSetPattern)) { 90 if (mConfigs.emplace(match[1], "n").second) { 93 mError << "Key " << match[1] << " is set but commented as not set" local 100 if (std::regex_match(mRemaining, match, sCommentPattern)) {
|
H A D | HalManifest.cpp | 261 // no match is found. 320 bool match = false; local 323 match = true; 327 if (!match) {
|
/system/core/fastboot/ |
H A D | usbtest.cpp | 129 ifc_match_func match; member in struct:__anon1559 193 usb = usb_open(tests[i].match);
|
H A D | engine.cpp | 153 static int match(const char* str, const char** value, unsigned count) { function 159 int match; local 163 match = !strncmp(val, str, len); 165 match = !strcmp(val, str); 168 if (match) return 1; 194 int yes = match(resp, value, count);
|
/system/core/libcutils/tests/ |
H A D | fs_config.cpp | 43 bool match; member in struct:fs_config_cmp_test 137 bool match, retval = false; local 139 match = __for_testing_only__fs_config_cmp(tests[idx].dir, tests[idx].prefix, 142 if (match != tests[idx].match) { 143 GTEST_LOG_(ERROR) << tests[idx].path << (match ? " matched " : " didn't match ")
|
/system/core/libcutils/ |
H A D | config_utils.cpp | 40 cnode *node, *match = NULL; local 45 match = node; 47 return match;
|
/system/keymaster/android_keymaster/ |
H A D | keymaster_configuration.cpp | 53 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/netd/libnetdutils/include/netdutils/ |
H A D | Slice.h | 150 // Return suffix of Slice s starting at the first match of byte c. If no matched 153 uint8_t* match = (uint8_t*)memchr(s.base(), c, s.size()); local 154 if (!match) return Slice(); 155 return drop(s, match - s.base());
|
/system/tools/hidl/ |
H A D | Hash.cpp | 137 std::smatch match; local 138 bool valid = std::regex_match(line, match, kHashLine); 146 CHECK_EQ(match.size(), 3u); 148 std::string hash = match.str(1); 149 std::string fqName = match.str(2);
|
/system/tools/hidl/utils/ |
H A D | StringHelper.cpp | 67 std::smatch match; local 79 if (std::regex_search(copy, match, kStartLowercase)) 80 matches.push_back(match.str(0)); 81 if (std::regex_search(copy, match, kStartCapcase)) 82 matches.push_back(match.str(0)); 83 if (std::regex_search(copy, match, kStartUppercase)) 84 matches.push_back(match.str(0)); 87 for (std::string &match : matches) 88 if(match.length() > maxmatch.length()) 89 maxmatch = match; [all...] |
H A D | FQName.cpp | 123 std::smatch match; local 124 if (std::regex_match(s, match, kRE1)) { 125 CHECK_EQ(match.size(), 5u); 127 mPackage = match.str(1); 128 invalid |= !parseVersion(match.str(2), match.str(3)); 129 mName = match.str(4); 130 } else if (std::regex_match(s, match, kRE2)) { 131 CHECK_EQ(match.size(), 4u); 133 invalid |= !parseVersion(match 218 std::smatch match; local [all...] |
/system/core/logcat/ |
H A D | getopt_long.cpp | 113 // Returns -1 if short_too is set and the option does not match long_options. 145 int match = -1; local 155 // exact match 156 match = i; 161 // a partial match of a single character. 164 if (match == -1) { // first partial match 165 match = i; 166 } else if (long_options[i].has_arg != long_options[match].has_arg || 167 long_options[i].flag != long_options[match] [all...] |
/system/netd/bpfloader/ |
H A D | bpf_kern.h | 168 int match = bpf_owner_match(skb, sock_uid); local 169 if ((direction == BPF_EGRESS) && (match == BPF_DROP)) { 172 return match; 198 return match;
|
/system/sepolicy/tools/ |
H A D | sepolicy-check.c | 70 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/bt/stack/smp/ |
H A D | smp_act.cc | 1670 SMP_TRACE_WARNING("dhkey chcks do no match"); 1678 SMP_TRACE_EVENT("dhkey chcks match"); 1916 bool match = false; local 1919 match = true; 1924 match = true; 1928 if (match && smp_cb.state == SMP_STATE_ENCRYPTION_PENDING) {
|
/system/core/adf/libadf/ |
H A D | adf.cpp | 253 bool (*filter)(struct adf_interface_data *data, __u32 match), 254 __u32 match) 268 if (filter(&data, match)) 251 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 D | fs_mgr_verity.cpp | 574 static int compare_last_signature(struct fstab_rec *fstab, int *match) argument 585 *match = 1; 626 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH); 628 if (!*match) { 660 int match = 0; local 686 if (!compare_last_signature(fstab, &match) && !match) {
|
/system/extras/simpleperf/ |
H A D | dso.cpp | 397 bool match = (build_id == real_build_id); local 398 if (!match) {
|
/system/core/bootstat/ |
H A D | bootstat.cpp | 400 // in the match to a maximum of the bitLength / kBitErrorRate, at that 401 // point returning npos to indicate match is too poor. 437 // Our implementation of rfind, use exact match first, then resort to fuzzy. 439 size_t pos = console.rfind(needle); // exact match? 446 // fuzzy match to maximum kBitErrorRate 455 // Our implementation of find, use only fuzzy match. 460 // fuzzy match to maximum kBitErrorRate 468 // If bit error match to needle, correct it. 479 // exact match has no malice 728 const char* match local [all...] |
/system/core/logd/ |
H A D | LogBuffer.cpp | 260 // outgoing: if match != DIFFERENT 263 // break: if match == DIFFERENT 275 // outgoing: if match == SAME 280 // outgoing: if match == SAME_LIBLOG 289 // break: if match == DIFFERENT 303 // outgoing: if match != DIFFERENT 308 // break: if match == DIFFERENT 315 enum match_type match = identical(elem, currentLast); local 316 if (match != DIFFERENT) { 319 if ((count == 0) /* at Pass 1 */ && (match [all...] |
/system/libhidl/transport/ |
H A D | ServiceManagement.cpp | 219 std::smatch match; local 220 if (std::regex_match(lib, match, gLibraryFileNamePattern)) { 221 *matchedName = match.str(1) + "::I*"; 222 *implName = match.str(2);
|
/system/security/keystore/ |
H A D | KeyStore.cpp | 116 * that Base64 cannot be used here due to the need of prefix match on keys. */ 354 ALOGW("key found but type doesn't match: %d vs %d", keyBlob->getType(), type); 506 char* match = (char*)malloc(extra + 1); local 507 if (match != NULL) { 508 decode_key(match, p, plen); 509 matches->push(android::String16(match, extra)); 510 free(match); 512 ALOGW("could not allocate match of size %zd", extra);
|
/system/bt/stack/btm/ |
H A D | btm_ble.cc | 1455 * Description Check BLE link security level match. 1931 bool match = false; local 1952 match = btm_identity_addr_to_random_pseudo(&bda, &bda_type, true); 1956 if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) { 1960 match = true; 1970 LOG_INFO(LOG_TAG, "%s unable to match and resolve random address", 1977 match);
|
H A D | btm_ble_gap.cc | 1564 * Check ADV flag to make sure device is discoverable and match the search 1577 /* does not match filter condition */ 1849 bool match = btm_identity_addr_to_random_pseudo(&bda, addr_type, false); local 1853 if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) {
|