/system/security/keystore/tests/ |
D | auth_token_table_test.cpp | 100 HardwareAuthToken found; in TEST() local 104 (std::tie(rc, found) = table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0), rc)); in TEST() 105 EXPECT_EQ(1U, found.userId); in TEST() 106 EXPECT_EQ(2U, found.authenticatorId); in TEST() 110 (std::tie(rc, found) = table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0), rc)); in TEST() 111 EXPECT_EQ(1U, found.userId); in TEST() 112 EXPECT_EQ(2U, found.authenticatorId); in TEST() 116 (std::tie(rc, found) = table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0), rc)); in TEST() 117 EXPECT_EQ(3U, found.userId); in TEST() 118 EXPECT_EQ(4U, found.authenticatorId); in TEST() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_boot_config.cpp | 36 auto found = base; in fs_mgr_parse_boot_config() local 37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_boot_config() 38 (cmdline[found] == quote)) { in fs_mgr_parse_boot_config() 40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_boot_config() 41 ++found; in fs_mgr_parse_boot_config() 44 auto source = cmdline.substr(base, found - base); in fs_mgr_parse_boot_config() 56 if (found == cmdline.npos) break; in fs_mgr_parse_boot_config() 57 base = found + 1; in fs_mgr_parse_boot_config()
|
/system/vold/ |
D | Process.cpp | 48 bool found = false; in checkMaps() local 63 found = true; in checkMaps() 70 return found; in checkMaps() 101 bool found = false; in KillProcessesWithOpenFiles() local 103 found |= checkMaps(path + "/maps", prefix); in KillProcessesWithOpenFiles() 104 found |= checkSymlink(path + "/cwd", prefix); in KillProcessesWithOpenFiles() 105 found |= checkSymlink(path + "/root", prefix); in KillProcessesWithOpenFiles() 106 found |= checkSymlink(path + "/exe", prefix); in KillProcessesWithOpenFiles() 116 found |= checkSymlink(fd_path + "/" + fd_de->d_name, prefix); in KillProcessesWithOpenFiles() 120 if (found) { in KillProcessesWithOpenFiles()
|
/system/core/adb/daemon/ |
D | abb.cpp | 58 size_t found; in parseCmdArgs() local 59 for (found = base; found < size && args[found] && args[found] != delim; ++found) in parseCmdArgs() 61 if (found > base) { in parseCmdArgs() 62 argv.emplace_back(args.substr(base, found - base)); in parseCmdArgs() 64 base = found + 1; in parseCmdArgs()
|
/system/core/init/ |
D | block_dev_initializer.cpp | 49 bool found = false; in InitMiscDevice() local 50 auto dm_callback = [this, &dm_path, &found](const Uevent& uevent) { in InitMiscDevice() 53 found = true; in InitMiscDevice() 59 if (!found) { in InitMiscDevice() 65 if (!found) { in InitMiscDevice() 129 bool found = false; in InitDmDevice() local 131 auto uevent_callback = [&device_name, &device, this, &found](const Uevent& uevent) { in InitDmDevice() 135 found = true; in InitDmDevice() 142 if (!found) { in InitDmDevice() 148 if (!found) { in InitDmDevice()
|
/system/bt/bta/mce/ |
D | bta_mce_act.cc | 63 int found = 0; in bta_mce_search_cback() local 90 evt_data.mas[found].scn = pe.params[0]; in bta_mce_search_cback() 95 evt_data.mas[found].p_srv_name = (char*)p_attr->attr_value.v.array; in bta_mce_search_cback() 96 evt_data.mas[found].srv_name_len = in bta_mce_search_cback() 102 evt_data.mas[found].instance_id = p_attr->attr_value.v.u8; in bta_mce_search_cback() 107 evt_data.mas[found].msg_type = p_attr->attr_value.v.u8; in bta_mce_search_cback() 109 found++; in bta_mce_search_cback() 110 } while (p_rec != NULL && found < BTA_MCE_MAX_MAS_INSTANCES); in bta_mce_search_cback() 112 evt_data.num_mas = found; in bta_mce_search_cback()
|
/system/libvintf/ |
D | HalInterface.cpp | 47 bool found = false; in hasAnyInstance() local 48 forEachInstance([&found](const auto&, const auto&, bool) { in hasAnyInstance() 49 found = true; in hasAnyInstance() 52 return found; in hasAnyInstance()
|
D | CompatibilityMatrix.cpp | 154 bool found = false; in splitInstance() local 167 found |= match; in splitInstance() 170 return !found || !foundOthers; in splitInstance() 173 if (!found) { in splitInstance() 455 bool found = false; in matchInstance() local 457 [&found, &instance](const auto& e) { in matchInstance() 458 found |= (e.matchInstance(instance)); in matchInstance() 459 return !found; // if not found, continue in matchInstance() 461 return found; in matchInstance()
|
/system/core/debuggerd/libdebuggerd/test/ |
D | open_files_list_test.cpp | 39 bool found = false; in TEST() local 43 found = true; in TEST() 47 EXPECT_TRUE(found); in TEST()
|
/system/incremental_delivery/incfs/ |
D | split.h | 36 const auto found = s.find_first_of(delimiters, base); in Split() local 37 onSplitCb(s.substr(base, found - base)); in Split() 38 if (found == std::string_view::npos) { in Split() 41 base = found + 1; in Split()
|
/system/core/logd/ |
D | ChattyLogBuffer.cpp | 187 LogBufferIteratorMap::iterator found = mLastWorst[id].find(key); in Erase() local 188 if ((found != mLastWorst[id].end()) && (it == found->second)) { in Erase() 189 mLastWorst[id].erase(found); in Erase() 197 LogBufferPidIteratorMap::iterator found = mLastWorstPidOfSystem[id].find(element.pid()); in Erase() local 198 if (found != mLastWorstPidOfSystem[id].end() && it == found->second) { in Erase() 199 mLastWorstPidOfSystem[id].erase(found); in Erase() 245 LogBufferElement* found = it->second; in coalesce() local 246 uint16_t moreDropped = found->dropped_count(); in coalesce() 250 found->SetDropped(dropped + moreDropped); in coalesce() 417 LogBufferIteratorMap::iterator found = mLastWorst[id].find(worst); in Prune() local [all …]
|
/system/tools/aidl/ |
D | aidl_checkapi.cpp | 100 const auto found = new_methods.find(old_m->Signature()); in are_compatible_interfaces() local 101 if (found == new_methods.end()) { in are_compatible_interfaces() 111 const auto new_m = found->second; in are_compatible_interfaces() 151 const auto found = new_constdecls.find(old_c->GetName()); in are_compatible_interfaces() local 152 if (found == new_constdecls.end()) { in are_compatible_interfaces() 159 const auto new_c = found->second; in are_compatible_interfaces() 214 auto found = std::find_if(old_fields.begin(), old_fields.end(), [&new_field](const auto& f) { in are_compatible_parcelables() local 217 if (found != old_fields.end()) { in are_compatible_parcelables() 218 size_t old_index = std::distance(old_fields.begin(), found); in are_compatible_parcelables() 337 const auto found = new_map.find(old_type->GetCanonicalName()); in check_api() local [all …]
|
/system/bt/btif/co/ |
D | bta_gatts_co.cc | 65 bool found = false; in btif_gatts_add_bonded_dev_from_nv() local 72 found = true; in btif_gatts_add_bonded_dev_from_nv() 77 if (!found) { in btif_gatts_add_bonded_dev_from_nv()
|
/system/core/adb/client/ |
D | console.cpp | 169 size_t found = 0; in adb_send_emulator_command() local 171 const size_t result = emulator_output.find(delims, found); in adb_send_emulator_command() 175 found = result + delims.size(); in adb_send_emulator_command() 179 printf("%s", emulator_output.c_str() + found); in adb_send_emulator_command()
|
/system/hwservicemanager/ |
D | HidlService.cpp | 85 bool found = false; in removeListener() local 90 found = true; in removeListener() 96 return found; in removeListener() 122 bool found = false; in removeClientCallback() local 127 found = true; in removeClientCallback() 133 return found; in removeClientCallback()
|
D | ServiceManager.cpp | 221 bool found = false; in removePackageListener() local 226 found = true; in removePackageListener() 232 return found; in removePackageListener() 236 bool found = false; in removeServiceListener() local 240 found |= service->removeListener(who); in removeServiceListener() 243 return found; in removeServiceListener() 811 bool found = false; in removePackageListener() local 814 found |= interfaceMapping.second.removePackageListener(who); in removePackageListener() 817 return found; in removePackageListener() 821 bool found = false; in removeServiceListener() local [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_util.cpp | 129 bool found = false; in GetHashDescriptor() local 142 for (size_t n = 0; n < num_descriptors && !found; n++) { in GetHashDescriptor() 161 found = true; in GetHashDescriptor() 166 if (found) break; in GetHashDescriptor() 169 if (!found) { in GetHashDescriptor() 187 bool found = false; in GetHashtreeDescriptor() local 200 for (size_t n = 0; n < num_descriptors && !found; n++) { in GetHashtreeDescriptor() 220 found = true; in GetHashtreeDescriptor() 225 if (found) break; in GetHashtreeDescriptor() 228 if (!found) { in GetHashtreeDescriptor() [all …]
|
/system/libbase/ |
D | strings.cpp | 38 size_t found; in Split() local 40 found = s.find_first_of(delimiters, base); in Split() 41 result.push_back(s.substr(base, found - base)); in Split() 42 if (found == s.npos) break; in Split() 43 base = found + 1; in Split()
|
/system/extras/libperfmgr/ |
D | Node.cc | 72 bool found = false; in GetValueIndex() local 76 found = true; in GetValueIndex() 80 return found; in GetValueIndex()
|
/system/bt/tools/scripts/ |
D | btsnooz.py | 147 found = False 150 if found: 157 found = True 159 if not found:
|
/system/tools/hidl/hidl2aidl/ |
D | main.cpp | 69 bool found = false; in getLatestMinorVersionFQNameFromList() local 75 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionFQNameFromList() 76 found = true; in getLatestMinorVersionFQNameFromList() 86 bool found = false; in getLatestMinorVersionNamedTypeFromList() local 93 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionNamedTypeFromList() 94 found = true; in getLatestMinorVersionNamedTypeFromList()
|
/system/core/libunwindstack/tests/ |
D | VerifyBionicTerminationTest.cpp | 108 bool found = false; in TEST() local 116 found = true; in TEST() 119 ASSERT_TRUE(found) << "Unable to find libc.so:__libc_init frame\n"; in TEST()
|
/system/core/libunwindstack/benchmarks/ |
D | SymbolBenchmark.cpp | 56 bool found = elf.GetFunctionName(pc, &name, &offset); in BenchmarkSymbolLookup() local 57 if (expect_found && !found) { in BenchmarkSymbolLookup() 59 } else if (!expect_found && found) { in BenchmarkSymbolLookup()
|
/system/extras/simpleperf/ |
D | utils_test.cpp | 81 bool found = false; in TEST() local 85 found = true; in TEST() 91 ASSERT_TRUE(found); in TEST()
|
/system/apex/apexd/ |
D | apex_database_test.cpp | 108 bool found = false; in Contains() local 114 found = true; in Contains() 117 return found; in Contains() 124 bool found = false; in ContainsPackage() local 129 found = true; in ContainsPackage() 132 return found; in ContainsPackage()
|