• Home
  • Raw
  • Download

Lines Matching refs:error

48 bool CompatibilityMatrix::addKernel(MatrixKernel&& kernel, std::string* error) {  in addKernel()  argument
50 if (error) { in addKernel()
51 *error = "Cannot add <kernel> to a " + to_string(mType) + " compatibility matrix."; in addKernel()
69 if (error) { in addKernel()
70 *error = "Kernel version mismatch; for level " + in addKernel()
91 if (error) { in addKernel()
92 *error = in addKernel()
122 const std::string& path, std::string* error) { in fetchAllInformation() argument
123 return details::fetchAllInformation(fileSystem, path, this, error); in fetchAllInformation()
193 bool CompatibilityMatrix::addAllHalsAsOptional(CompatibilityMatrix* other, std::string* error) { in addAllHalsAsOptional() argument
240 if (error) { in addAllHalsAsOptional()
241 *error = "Cannot add HAL " + name + " for unknown reason."; in addAllHalsAsOptional()
250 bool CompatibilityMatrix::addAllXmlFilesAsOptional(CompatibilityMatrix* other, std::string* error) { in addAllXmlFilesAsOptional() argument
260 if (error) { in addAllXmlFilesAsOptional()
261 *error = "Cannot add XML File " + name + " for unknown reason."; in addAllXmlFilesAsOptional()
270 bool CompatibilityMatrix::addAllKernels(CompatibilityMatrix* other, std::string* error) { in addAllKernels() argument
276 if (!addKernel(std::move(kernel), error)) { in addAllKernels()
277 if (error) { in addAllKernels()
278 *error = "Cannot add kernel version " + to_string(ver) + ": " + *error; in addAllKernels()
286 bool CompatibilityMatrix::addSepolicy(CompatibilityMatrix* other, std::string* error) { in addSepolicy() argument
288 if (!success && error) *error = "<sepolicy> is already defined"; in addSepolicy()
292 bool CompatibilityMatrix::addAvbMetaVersion(CompatibilityMatrix* other, std::string* error) { in addAvbMetaVersion() argument
294 if (!success && error) *error = "<avb><vbmeta-version> is already defined"; in addAvbMetaVersion()
298 bool CompatibilityMatrix::addVndk(CompatibilityMatrix* other, std::string* error) { in addVndk() argument
303 if (!success && error) *error = "<vndk> is already defined"; in addVndk()
307 bool CompatibilityMatrix::addVendorNdk(CompatibilityMatrix* other, std::string* error) { in addVendorNdk() argument
309 if (!success && error) *error = "<vendor-ndk> is already defined"; in addVendorNdk()
337 Level deviceLevel, std::vector<CompatibilityMatrix>* matrices, std::string* error) { in combine() argument
341 if (error) { in combine()
342 *error = "File \"" + e.fileName() + "\" is not a framework compatibility matrix."; in combine()
372 success = baseMatrix->addAll(&e, error); in combine()
374 success = baseMatrix->addAllAsOptional(&e, error); in combine()
377 if (error) { in combine()
378 *error = "Conflict when merging \"" + e.fileName() + "\": " + *error + "\n" + in combine()
390 std::vector<CompatibilityMatrix>* matrices, std::string* error) { in combineDeviceMatrices() argument
396 bool success = baseMatrix->addAll(&e, error); in combineDeviceMatrices()
398 if (error) { in combineDeviceMatrices()
399 *error = "Conflict when merging \"" + e.fileName() + "\": " + *error + "\n" + in combineDeviceMatrices()
409 bool CompatibilityMatrix::addAll(CompatibilityMatrix* inputMatrix, std::string* error) { in addAll() argument
410 if (!addAllHals(inputMatrix, error) || !addAllXmlFiles(inputMatrix, error) || in addAll()
411 !addAllKernels(inputMatrix, error) || !addSepolicy(inputMatrix, error) || in addAll()
412 !addAvbMetaVersion(inputMatrix, error) || !addVndk(inputMatrix, error) || in addAll()
413 !addVendorNdk(inputMatrix, error) || !addSystemSdk(inputMatrix, error)) { in addAll()
414 if (error) { in addAll()
415 *error = "File \"" + inputMatrix->fileName() + "\" cannot be added: " + *error + "."; in addAll()
422 bool CompatibilityMatrix::addAllAsOptional(CompatibilityMatrix* inputMatrix, std::string* error) { in addAllAsOptional() argument
423 if (!addAllHalsAsOptional(inputMatrix, error) || in addAllAsOptional()
424 !addAllXmlFilesAsOptional(inputMatrix, error) || !addAllKernels(inputMatrix, error)) { in addAllAsOptional()
425 if (error) { in addAllAsOptional()
426 *error = "File \"" + inputMatrix->fileName() + "\" cannot be added: " + *error; in addAllAsOptional()