/system/iorap/src/maintenance/ |
D | db_cleaner.cc | 45 for (db::PackageModel package : packages) { in CleanUpDatabase() local 46 std::optional<int64_t> version = version_map->Find(package.name); in CleanUpDatabase() 48 LOG(DEBUG) << "Fail to find version for package " << package.name in CleanUpDatabase() 49 << " with version " << package.version in CleanUpDatabase() 56 if (*version != package.version) { in CleanUpDatabase() 57 db::CleanUpFilesForPackage(db, package.id, package.name, package.version); in CleanUpDatabase() 58 if (!package.Delete()) { in CleanUpDatabase() 59 LOG(ERROR) << "Fail to delete package " << package.name in CleanUpDatabase() 60 << " with version " << package.version; in CleanUpDatabase()
|
D | controller.cc | 391 std::optional<db::PackageModel> package = in CompilePackage() local 394 if (!package) { in CompilePackage() 403 db::ActivityModel::SelectByPackageId(db, package->id); in CompilePackage() 407 if (!CompileActivity(db, package->id, package->name, activity.name, version, params)) { in CompilePackage() 423 for (db::PackageModel package : packages) { in CompileAppsOnDevice() local 424 if (!CompilePackage(db, package.name, package.version, params)) { in CompileAppsOnDevice() 443 for (db::PackageModel package : packages) { in CompileSingleAppOnDevice() local 444 if (!CompilePackage(db, package.name, package.version, params)) { in CompileSingleAppOnDevice() 475 std::optional<db::PackageModel> package = in Compile() local 478 if (!package) { in Compile() [all …]
|
/system/update_engine/cros/ |
D | boot_control_chromeos_unittest.cc | 73 string id, package; in TEST_F() local 75 EXPECT_TRUE(bootctl_.ParseDlcPartitionName("dlc/id/package", &id, &package)); in TEST_F() 77 EXPECT_EQ(package, "package"); in TEST_F() 80 bootctl_.ParseDlcPartitionName("dlc-foo/id/package", &id, &package)); in TEST_F() 82 bootctl_.ParseDlcPartitionName("dlc-foo/id/package/", &id, &package)); in TEST_F() 83 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc/id", &id, &package)); in TEST_F() 84 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc/id/", &id, &package)); in TEST_F() 85 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc//package", &id, &package)); in TEST_F() 86 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc", &id, &package)); in TEST_F() 87 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("foo", &id, &package)); in TEST_F()
|
D | omaha_response_handler_action.cc | 94 for (const auto& package : response.packages) { in PerformAction() local 96 if (!base::HexStringToBytes(package.hash, &raw_hash)) { in PerformAction() 98 << package.hash; in PerformAction() 103 {.payload_urls = package.payload_urls, in PerformAction() 104 .size = package.size, in PerformAction() 105 .metadata_size = package.metadata_size, in PerformAction() 106 .metadata_signature = package.metadata_signature, in PerformAction() 108 .type = package.is_delta ? InstallPayloadType::kDelta in PerformAction() 110 .fp = package.fp, in PerformAction() 111 .app_id = package.app_id}); in PerformAction() [all …]
|
/system/tools/hidl/test/error_test/ |
D | hidl_error_test.sh | 17 package=$(basename $dir) 18 output=$($HIDL_GEN_PATH -L check -r test:$HIDL_ERROR_TEST_DIR test.$package@1.0 2>&1) 20 error=$(cat $HIDL_ERROR_TEST_DIR/$package/1.0/required_error) 23 echo "error: No required error message specified for $package." 29 echo "error: $package test finished with code $command_fails, but expected 1" 34 echo "error: error output for $package does not contain '$error':"
|
/system/tools/hidl/c2hal/ |
D | main.cpp | 52 auto package = val.substr(0, index); in addPackageRootToMap() local 55 packageRootPaths[package] = path; in addPackageRootToMap() 74 const std::string &package, in applyPackageRootPath() argument 77 auto index = package.find_first_of('@'); in applyPackageRootPath() 80 auto packagePath = package.substr(0, index); in applyPackageRootPath() 81 auto packageVersion = package.substr(index + 1); in applyPackageRootPath() 102 CHECK(!outputPath.empty()) << "No package root path provided for: " << package; in applyPackageRootPath() 116 std::string package; in main() local 129 package = optarg; in main() 165 applyPackageRootPath(packageRootPaths, package, outputDir); in main() [all …]
|
/system/iorap/src/db/ |
D | clean_up.cc | 76 std::optional<PackageModel> package = in CleanUpFilesForPackage() local 79 if (!package) { in CleanUpFilesForPackage() 84 CleanUpFilesForPackage(db, package->id, package_name, version); in CleanUpFilesForPackage() 89 for (db::PackageModel package : packages) { in CleanUpFilesForDb() local 90 CleanUpFilesForPackage(db, package.id, package.name, package.version); in CleanUpFilesForDb() 106 for (PackageModel& package : packages) { in CleanUpFilesForPackage() 107 CleanUpFilesForPackage(db, package.id, package.name, package.version); in CleanUpFilesForPackage()
|
D | app_component_name.h | 21 std::string package; member 29 return {package, package + activity_name}; in Canonicalize() 31 return {package, activity_name}; in Canonicalize() 46 std::string package = s.substr(0, s.find(delimiter)); in FromString() local 51 return {std::move(package), std::move(activity_name)}; in FromString() 56 return package + "/" + activity_name; in ToString() 103 std::string s = package; in ToMakeFileSafeEncodedPkgString()
|
/system/libvintf/ |
D | utils.cpp | 24 bool canConvertToFqInstance(const std::string& package, const Version& version, in canConvertToFqInstance() argument 27 if (FqInstance::from(package, version.majorVer, version.minorVer, interface, instance) in canConvertToFqInstance() 39 ss << toAidlFqnameString(package, interface, instance) << " (@" << version.minorVer << ")"; in canConvertToFqInstance() 41 ss << toFQNameString(package, version, interface, instance); in canConvertToFqInstance() 47 if (!FqInstance::from(package).has_value()) { in canConvertToFqInstance() 48 ss << "Package '" << package in canConvertToFqInstance()
|
D | MatrixInstance.cpp | 53 const std::string& MatrixInstance::package() const { in package() function in android::vintf::MatrixInstance 74 return package() == provided.getPackage() && in isSatisfiedBy() 109 return toFQNameString(package(), replaceVersion, interface()); in interfaceDescription() 112 return toAidlFqnameString(package(), interface()) + " (@" + in interfaceDescription() 124 return toFQNameString(package(), replaceVersion, interface(), instanceDescription); in description() 127 return toAidlFqnameString(package(), interface(), instanceDescription) + " (@" + in description()
|
D | HalManifest.cpp | 184 names.insert(toFQNameString(e.package(), e.version())); in getHalNamesAndVersions() 187 names.insert(e.package()); in getHalNamesAndVersions() 195 Transport HalManifest::getHidlTransport(const std::string& package, const Version& v, in getHidlTransport() argument 199 forEachInstanceOfInterface(HalFormat::HIDL, package, v, interfaceName, [&](const auto& e) { in getHidlTransport() 207 << toFQNameString(package, v, interfaceName, instanceName); in getHidlTransport() 213 HalFormat format, const std::string& package, const Version& expectVersion, in forEachInstanceOfVersion() argument 215 for (const ManifestHal* hal : getHals(package)) { in forEachInstanceOfVersion() 292 if (mat.matchInstance(manifestInstance.format(), manifestInstance.package(), in checkUnusedHals() 308 if (mat.matchInstance(manifestInstance.format(), fqName.package(), in checkUnusedHals() 458 instances.emplace(e.format(), e.package(), e.version(), e.interface(), e.instance()); in generateCompatibleMatrix() [all …]
|
/system/libvintf/include/vintf/ |
D | HalGroup.h | 91 bool forEachInstanceOfPackage(HalFormat format, const std::string& package, in forEachInstanceOfPackage() 93 for (const auto* hal : getHals(package)) { in forEachInstanceOfPackage() 103 bool forEachHidlInstanceOfPackage(const std::string& package, in forEachHidlInstanceOfPackage() 105 return forEachInstanceOfPackage(HalFormat::HIDL, package, func); in forEachHidlInstanceOfPackage() 114 HalFormat format, const std::string& package, const Version& expectVersion, 121 bool forEachInstanceOfInterface(HalFormat format, const std::string& package, in forEachInstanceOfInterface() 124 return forEachInstanceOfVersion(format, package, expectVersion, in forEachInstanceOfInterface() 138 const std::string& package, const Version& expectVersion, in forEachHidlInstanceOfVersion() 140 return forEachInstanceOfVersion(HalFormat::HIDL, package, expectVersion, func); in forEachHidlInstanceOfVersion() 147 const std::string& package, const Version& expectVersion, const std::string& interface, in forEachHidlInstanceOfInterface() [all …]
|
D | HalManifest.h | 129 std::set<std::string> getHidlInstances(const std::string& package, const Version& version, 131 std::set<std::string> getAidlInstances(const std::string& package, size_t version, 133 std::set<std::string> getAidlInstances(const std::string& package, 137 bool hasHidlInstance(const std::string& package, const Version& version, 141 bool hasAidlInstance(const std::string& package, size_t version, 145 bool hasAidlInstance(const std::string& package, const std::string& interfaceName, 164 HalFormat format, const std::string& package, const Version& expectVersion, 205 std::set<std::string> getInstances(HalFormat format, const std::string& package, 210 bool hasInstance(HalFormat format, const std::string& package, const Version& version,
|
/system/apex/apexd/ |
D | apex_database.h | 93 inline void AddMountedApexLocked(const std::string& package, bool latest, in AddMountedApexLocked() argument 96 auto it = mounted_apexes_.find(package); in AddMountedApexLocked() 99 mounted_apexes_.emplace(package, std::map<MountedApexData, bool>()); in AddMountedApexLocked() 113 inline void AddMountedApex(const std::string& package, bool latest, in AddMountedApex() argument 116 AddMountedApexLocked(package, latest, args...); in AddMountedApex() 119 inline void RemoveMountedApex(const std::string& package, 124 auto it = mounted_apexes_.find(package); 140 inline void SetLatest(const std::string& package, in SetLatest() argument 144 SetLatestLocked(package, full_path); in SetLatest() 147 inline void SetLatestLocked(const std::string& package, in SetLatestLocked() argument [all …]
|
/system/libhidl/base/ |
D | HidlInternal.cpp | 70 HidlInstrumentor::HidlInstrumentor(const std::string& package, const std::string& interface) in HidlInstrumentor() argument 72 mInstrumentationLibPackage(package), in HidlInstrumentor() 184 std::string package = mInstrumentationLibPackage; in registerInstrumentationCallbacks() local 185 for (size_t i = 0; i < package.size(); i++) { in registerInstrumentationCallbacks() 186 if (package[i] == '.') { in registerInstrumentationCallbacks() 187 package[i] = '_'; in registerInstrumentationCallbacks() 191 if (package[i] == '@') { in registerInstrumentationCallbacks() 192 package[i] = '_'; in registerInstrumentationCallbacks() 193 package.insert(i + 1, "V"); in registerInstrumentationCallbacks() 198 + package + "_" + mInterfaceName).c_str()); in registerInstrumentationCallbacks() [all …]
|
/system/tools/hidl/lint/lints/ |
D | importTypes.cpp | 30 if (fqName.package() == ast.package().package() && in importTypes() 31 fqName.version() == ast.package().version()) { in importTypes()
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.cpp | 106 string package, class_name, rel_path; in AddStubParcelable() local 107 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddStubParcelable() 111 package.c_str(), class_name.c_str()); in AddStubParcelable() 114 package.c_str(), class_name.c_str(), in AddStubParcelable() 121 string package, class_name, rel_path; in AddStubInterface() local 122 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddStubInterface() 124 package.c_str(), class_name.c_str()); in AddStubInterface() 130 string package, class_name, rel_path; in AddCompoundParcelable() local 131 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddCompoundParcelable() 132 string contents = StringPrintf("package %s;\n", package.c_str()); in AddCompoundParcelable()
|
/system/tools/hidl/utils/ |
D | FQName.cpp | 33 FQName::FQName(const std::string& package, const std::string& version, const std::string& name, in FQName() argument 37 CHECK(setTo(package, majorVer, minorVer, name, valueName)) << string(); in FQName() 40 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument 42 mPackage = package; in setTo() 134 StartEnd package, major, minor, name, type; in setTo() local 137 package.start = l; in setTo() 138 if ((package.end = l = eatPackage(l, end)) == nullptr) return false; in setTo() 173 name.start = package.start; in setTo() 174 name.end = package.end; in setTo() 175 package.start = package.end = nullptr; in setTo() [all …]
|
D | FqInstance.cpp | 26 return mFqName.package(); in getPackage() 108 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument 110 if (!mFqName.setTo(package, majorVer, minorVer, interface)) return false; in setTo() 142 bool FqInstance::inPackage(const std::string& package) const { in inPackage() 143 return mFqName.inPackage(package); in inPackage()
|
/system/tools/hidl/ |
D | Coordinator.cpp | 86 FQName package = FQName(root, "0.0", ""); in addPackagePath() local 88 if (packageRoot.root.inPackage(root) || package.inPackage(packageRoot.root.package())) { in addPackagePath() 91 packageRoot.root.package() + in addPackagePath() 100 mPackageRoots.push_back({path, package}); in addPackagePath() 282 if ((*ast)->package().package() != fqName.package() || in parseOptional() 283 (*ast)->package().version() != fqName.version()) { in parseOptional() 353 CHECK(!fqName.package().empty()) << fqName.string(); in findPackageRoot() 364 if (!fqName.inPackage(it->root.package())) { in findPackageRoot() 370 << it->root.package() << " and " << ret->root.package() << ")\n"; in findPackageRoot() 402 *root = packageRoot->root.package(); in getPackageRoot() [all …]
|
D | update-makefiles-helper.sh | 109 local package="$3" 110 echo "Updating $package" 111 hidl-gen -O "$owner" -Landroidbp $root_arguments $package || { 112 echo "Command failed: hidl-gen -O \"$owner\" -Landroidbp $root_arguments $package";
|
/system/security/keystore2/src/vintf/ |
D | vintf.cpp | 46 char** getHidlInstances(size_t* len, const char* package, size_t major_version, in getHidlInstances() argument 50 const auto names = manifest->getHidlInstances(package, version, interfaceName); in getHidlInstances() 55 char** getAidlInstances(size_t* len, const char* package, size_t version, in getAidlInstances() argument 58 const auto names = manifest->getAidlInstances(package, version, interfaceName); in getAidlInstances()
|
/system/libvintf/analyze_matrix/ |
D | hals_for_release.py | 250 package = GetPackage(instance) 251 d[package].append(instance) 269 package_matches = lambda package: any(pattern in package for pattern in args.packages) argument 273 for package in all_packages: 274 package_instances1 = set(instances_by_package1.get(package, [])) 275 package_instances2 = set(instances_by_package2.get(package, [])) 293 packages_report[package] = package_report 298 for package, lines in sorted(packages_report.items()): 299 report.append(package)
|
/system/libvintf/libaidlvintf_test_helper/ |
D | Vintf.cpp | 27 const std::string package = descriptor.substr(0, lastDot); in getAidlHalInstanceNames() local 33 for (const std::string& instance : deviceManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames() 38 for (const std::string& instance : frameworkManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames()
|
/system/libhidl/adapter/include/hidladapter/ |
D | HidlBinderAdapter.h | 34 int adapterMain(const std::string& package, int argc, char** argv, const AdaptersFactory& adapters); 42 int adapterMain(const std::string& package, int argc, char** argv) { in adapterMain() argument 44 package, argc, argv, in adapterMain()
|